<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><BR><DIV><DIV>On Oct 27, 2006, at 10:35 AM, Jean Pierre Arabonis wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite">  Hi Jennifer<BR>     I'm back at the problem and it appears that there are others also now onto/in it.<BR>     I looked into installing the older version and have a suspicion that it may in the long run lead to more problems.<BR>     I tried to build dods version 3.2 with no success (will not compile) and the folk at opendap are not keen on supporting the old version.<BR></BLOCKQUOTE>Right. We're moving on to later versions too...</DIV><DIV><BR><BLOCKQUOTE type="cite">     Now I expect that Patrice's -enable-dynamic-supplibs will only work with dods 3.2. so building Opendap 3.4 won't help.<BR></BLOCKQUOTE><DIV>I don't believe that is correct, but Patrice will have to answer for sure.</DIV><BR><BLOCKQUOTE type="cite">     This leads me to come to the conclusion that the mucky-muck solution is the way forward ?<BR></BLOCKQUOTE><DIV>In my experience, mucky-muck is the only way when building GrADS from source.</DIV><BR><BLOCKQUOTE type="cite">     Am I on the right track in believing that with an effective build of opendap 3.4 I should then have the drivers, or the updated version thereof that are presently packaged in supplib tar file, from that I should be able to create an updated supplib and then work through the changes required in the .configure.</BLOCKQUOTE><DIV>Looks like when you ran configure, it told you everything was okay to build gradsdods. That's good, that makes it simpler. All you have to do is change dods_libs in the Makefile. In my version it looks like this (old dods_libs commented out on the 2nd line -- note that you'll have to change paths here and there)</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>dods_libs= -lgadods -lnc-dods -ldap++ -lxml2 -L/var/adm/grads/supplib_builds/DODS/lib -lz -lpthread -lm \</DIV><DIV>-L/var/adm/grads/supplib_builds/DODS/lib -lcurl -L/usr/kerberos/lib -lssl -lcrypto -ldl -lssl -lcrypto -lgssapi_krb5 \</DIV><DIV>-lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz -lz  -lpthread -lz $(supp_lib_dir)/libudunits.a</DIV><DIV>#dods_libs = -lgadods -lnc-dods -ldap++ -lgadods -lnc-dods -ldap++  $(supp_lib_dir)/libudunits.a \</DIV><DIV>$(supp_lib_dir)/libwww.a $(supp_lib_dir)/librx.a $(supp_lib_dir)/libz.a</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Once you build DODS 3.4, there's a handy program called opendap-config (look in the DODS/bin directory) that will give you the text you need for linking. You'll have to tweak this a little to add udunits and such, but the above example from my build should give you some idea of what to do. </DIV><DIV><BR class="khtml-block-placeholder"></DIV><BLOCKQUOTE type="cite">As I am embarking on a journey of versionitis discovery any support you can off will be much appreciated.<BR></BLOCKQUOTE><DIV>I put the three required tar files for DODS 3.4 on our ftp site: <A href="ftp://grads.iges.org/grads/Supplibs/1.9/src/">ftp://grads.iges.org/grads/Supplibs/1.9/src/</A></DIV><DIV>Do  the packages first, then nc-dods, then dap. </DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>--Jennifer</DIV><DIV><BR class="khtml-block-placeholder"></DIV><BLOCKQUOTE type="cite"><BR> <BR> <BR> <BR> Jennifer M. Adams wrote: <BLOCKQUOTE cite="midDD732F84-7915-4389-AB62-48FD9666BD32@cola.iges.org" type="cite">   Jean Pierre --   <DIV>Current public builds of GrADS use DODS version 3.2 and were built with gcc version 2.9. These versions of the libraries and the complier are now in retirement, and in many operating systems are dead and gone. If you can find or install the old version of gcc on your box, then you can probably build 1.9b4 from source with the linux supplib tar file we provide. </DIV>  <DIV><BR>  </DIV>  <DIV>  <DIV>If you do not have gcc version 2.9, then you must build a more recent version of DODS (OPenDAP) and then you have to fiddle with the configure script and/or the Makefile in order to get a build of gradsdods. I have used DODS 3.4 successfully on linux, but it does require a bit of mucky-muck. If you can build DODS 3.2, then I would use Patrice's -enable-dynamic-supplibs mods and I bet it would find the new version of dods and create a usable makefile. </DIV>  <DIV><BR>  </DIV>  <DIV>Jennifer</DIV>  <DIV><BR>  </DIV>  <DIV><BR>  </DIV>  <DIV><BR>  </DIV>  <DIV><BR>  </DIV>  <DIV><BR>  <DIV>  <DIV>On Oct 18, 2006, at 11:46 AM, Jean Pierre Arabonis wrote:</DIV>  <BR>  <BLOCKQUOTE type="cite"> Thanks Patrice for the suggestions, I tried your tarball without success, same errors came up as before.<BR>    <BR> I have brought across the following:<BR>    <BR> grads-1.9b3-src.tar.gz<BR> grads-1.9b3-supplibs-linuxRH9.tar.gz<BR>    <BR> put them in a directory and tried:<BR>    <BR> &gt;./configure --with-dods --libdir=/data/source/Grads19b3work/grads-1.9b3/supplibs/lib <BR>    <BR> and I have success with everything in order, then all falls over when I try make:<BR>    <BR> &gt;make<BR>  <BR>    <A href="mailto:arabonis@baltic:/data/source/Grads19b3work/grads-1.9b3">arabonis@baltic:/data/source/Grads19b3work/grads-1.9b3</A>&gt; make<BR> Making all in src<BR> make[1]: Entering directory `/data/source/Grads19b3work/grads-1.9b3/src'<BR> make  all-am<BR> make[2]: Entering directory `/data/source/Grads19b3work/grads-1.9b3/src'<BR> gcc -DHAVE_CONFIG_H -I. -I. -I. -I.././supplibs/include -I/usr/X11R6/include    -g -O -c `test -f 'gxdxwd.c' || echo './'`gxdxwd.c<BR> gxdxwd.c:25: error: conflicting types for 'calloc'<BR> gxdxwd.c:25: error: conflicting types for 'calloc'<BR> make[2]: *** [gxdxwd.o] Error 1<BR> make[2]: Leaving directory `/data/source/Grads19b3work/grads-1.9b3/src'<BR> make[1]: *** [all] Error 2<BR> make[1]: Leaving directory `/data/source/Grads19b3work/grads-1.9b3/src'<BR> make: *** [all-recursive] Error 1<BR>    <BR> This is now well over my head, anyone out there can tell me what is going on and if/how to solve it.<BR>    <BR> On the side track I tried the fedora core 1.8 compilation again through gdb, maybe someone can tell me what is going on as it seems to be the common problem with all the versions of grads:<BR>    <BR> arabonis@baltic:/data/source/Gradsfedoracore&gt; gdb --quiet gradsdods<BR> Using host libthread_db library "/lib/libthread_db.so.1".<BR> (gdb) run<BR> Starting program: /data/source/Gradsfedoracore/gradsdods<BR> warning: Cannot initialize thread debugging library: unknown thread_db error '22'<BR>    <BR> Grid Analysis and Display System (GrADS) Version 1.8SL11<BR> Copyright (c) 1988-2001 by Brian Doty<BR> Center for Ocean-Land-Atmosphere Studies<BR> Institute for Global Environment and Society<BR> All Rights Reserved<BR>    <BR> Config: v1.8SL11 32-bit little-endian readline sdf/xdf netcdf DODS-enabled lats printim<BR>    <BR> Issue 'q config' command for more information.<BR>    <BR> Landscape mode? (no for portrait):  p<BR> GX Package Initialization: Size = 11 8.5<BR> ga-&gt; sdfopen <A href="http://monsoondata.org:9090/dods/gfs/gfs.2006101800i">http://monsoondata.org:9090/dods/gfs/gfs.2006101800i</A><BR> Scanning self-describing file:  <A href="http://monsoondata.org:9090/dods/gfs/gfs.2006101800i">http://monsoondata.org:9090/dods/gfs/gfs.2006101800i</A><BR>    <BR> Program received signal SIGSEGV, Segmentation fault.<BR> 0x083a16e5 in get_cie_encoding () <BR> (gdb)      <BR>    <BR>    <BR> Many Thanks <BR>     Jean Pierre<BR>    <BR>    <BR>    <BR>    <BR>    <BR> Patrice Dumas wrote:    <BLOCKQUOTE cite="mid20061017192222.GB2478@free.fr" type="cite">      <PRE>On Tue, Oct 17, 2006 at 07:23:37PM +0200, Jean Pierre Arabonis wrote:
  </PRE>      <BLOCKQUOTE type="cite">        <PRE>   My question is is it likely that I will have success in compiling
grads if I trawl the net and find these libraries and install them, or
can someone point me in the right direction to solve this problem.
    </PRE>      </BLOCKQUOTE>      <PRE>Since all the grads prerequisites are packaged for fedora, I can't see
why it shouldn't be possible to install them on slackware, either using
the packaging system or by recompiling (even though I don't know anything
about slackware). In case you want to build against 'system' libraries
(libraries not in the supplib directory) you may be interested in the
grads tarball I distribute here (with only changes in configure with
--dyn-supplib given):
<A href="http://www.environnement.ens.fr/perso/dumas/fc-srpms/grads-1.9b4.1.tar.gz">http://www.environnement.ens.fr/perso/dumas/fc-srpms/grads-1.9b4.1.tar.gz</A>


--
Pat

  </PRE>    </BLOCKQUOTE>    <BR>    <BR>    <PRE>--
Jean Pierre Arabonis
<A href="mailto:arabonis@egs.uct.ac.za">arabonis@egs.uct.ac.za</A>
Tel 021 780 1021 cell 084 401 1365
This email is 100% Microsoft Free
    </PRE>  </BLOCKQUOTE>  </DIV>  <BR>  <DIV> <SPAN>  <DIV>Jennifer M. Adams</DIV>  <DIV>IGES/COLA</DIV>  <DIV>4041 Powder Mill Road, Suite 302</DIV>  <DIV>Beltsville, MD 20705</DIV>  <DIV><A href="mailto:jma@cola.iges.org">jma@cola.iges.org</A></DIV>  <DIV><BR>  </DIV>  <BR>  </SPAN> </DIV>  <BR>  </DIV>  </DIV> </BLOCKQUOTE> <BR> <BR> <PRE class="moz-signature" cols="72">--
Jean Pierre Arabonis
<A class="moz-txt-link-abbreviated" href="mailto:arabonis@egs.uct.ac.za">arabonis@egs.uct.ac.za</A>
Tel 021 780 1021 cell 084 401 1365
This email is 100% Microsoft Free
</PRE>  </BLOCKQUOTE></DIV><BR><DIV> <SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV>Jennifer M. Adams</DIV><DIV>IGES/COLA</DIV><DIV>4041 Powder Mill Road, Suite 302</DIV><DIV>Beltsville, MD 20705</DIV><DIV><A href="mailto:jma@cola.iges.org">jma@cola.iges.org</A></DIV><DIV><BR class="khtml-block-placeholder"></DIV><BR class="Apple-interchange-newline"></SPAN> </DIV><BR></BODY></HTML>