From Wesley.Ebisuzaki at noaa.gov Thu Jul 1 11:55:58 2010 From: Wesley.Ebisuzaki at noaa.gov (Wesley Ebisuzaki) Date: Thu, 01 Jul 2010 11:55:58 -0400 Subject: [gradsusr] changing grid from 0-360 to -180-180 lon In-Reply-To: References: <985459.34300.qm@web36805.mail.mud.yahoo.com> Message-ID: <4C2CBA8E.40503@noaa.gov> Hi, wgrib2 (v1.8.5) can change the grid of grib2 files using the -new_grid option. Wesley Ebisuzaki P. R.M. wrote: > I have a problem with longitude ranges not matching when opening > multiple grib2 files. > - the first grib2 file (gfs) has a longitude range defined by g2ctl.pl as: > xdef 720 linear 0 0.5 > > - the second grib2 file has a longitude range defined by g2ctl.pl as: > xdef 586 linear 261 0.066667 > > when opening both files, setting an arbitrary longitude range, and > displaying a variable from the 2nd file, I get the following error: > ga-> set lon -100 -50 > LON set to -100 -50 > ga-> d myvar.2 > Data Request Warning: Request is completely outside file limits > Entire grid contents are set to missing data > Grid limits of file: X = 1 586 Y = 1 481 Z = 1 1 T = 1 61 E > = 1 1 > Grid limits of request: X = -3914 1486 Y = -1724 -1123 Z = 1 1 T > = 1 1 E = 1 1 > > the problem occurs because the first (gfs) grib2 longitude range gets > set from -180 to 180, while the second file's longitude range is in > the 0-360 range. grads doesnt seem to understand that the ranges > overlap and are, in fact, valid. > > I need set the 2nd file's longitude range to the -180-180 range, > without manually editing the .ctl file created by g2ctl.pl. > is this possible to do through either grads or through wgrib2/g2ctl.pl? > > please help, > thanks, > P.R. > > > The New Busy is not the too busy. Combine all your e-mail accounts > with Hotmail. Get busy. > > > ------------------------------------------------------------------------ > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > From huber.gilt at igp.gob.pe Thu Jul 1 18:15:12 2010 From: huber.gilt at igp.gob.pe (=?iso-8859-1?Q?Huber_Pa=FAl_Gilt_L=F3pez?=) Date: Thu, 1 Jul 2010 17:15:12 -0500 Subject: [gradsusr] error compiling gd library Message-ID: <201007012222.o61MMH7S021932@geo.igp.gob.pe> Hello, I want to compile the gd library, i used this command, but I have an unsatisfied symbol. How can I include these missing symbol? #cd /home/huber/grads/supplibs/src/gd-2.0.34 #./configure --disable-shared\ --with-png=/home/huber/grads/supplibs/src/libpng-1.2.18\ --with-jpeg=/home/huber/grads/supplibs/src/jpeg-6b\ --prefix=/home/huber/grads/supplibs/src/gd-2.0.34 #make gcc -g -O2 -o gdparttopng gdparttopng.o -L/home/huber/grads/supplibs/lib -L/usr/local/lib/hpux32 -L/usr/lib/X11R4 -L/home/huber/grads/supplibs/src/jpeg-6b/lib ./.libs/libgd.a -L/usr/contrib/X11R6/lib /usr/local/lib/hpux32/libXpm.so /usr/local/lib/hpux32/libintl.so -lX11 -ljpeg /usr/local/lib/hpux32/libfontconfig.so /usr/local/lib/hpux32/libiconv.so /usr/local/lib/hpux32/libexpat.so /usr/local/lib/hpux32/libfreetype.so /usr/local/lib/hpux32/libpng14.so -lz -lm ld: Unsatisfied symbol "png_check_sig" in file ./.libs/libgd.a[gd_png.o] 1 errors. collect2: ld returned 1 exit status make[2]: *** [gdparttopng] Error 1 make[2]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34' make: *** [all] Error 2 Please help me, Best regards, Huber Paul Gilt Lopez IGP-Peru -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100701/9e3c8290/attachment.html From Huddleston at cira.colostate.edu Thu Jul 1 19:46:19 2010 From: Huddleston at cira.colostate.edu (Huddleston, John) Date: Thu, 1 Jul 2010 16:46:19 -0700 Subject: [gradsusr] error compiling gd library In-Reply-To: <201007012222.o61MMH7S021932@geo.igp.gob.pe> References: <201007012222.o61MMH7S021932@geo.igp.gob.pe> Message-ID: Huber You need the PNG library1.2 not 1.4. Somehow you've installed a more recent version of PNG into /usr/local Go back to the PNG 1.2 build and do a "make install" to load it into /usr/local Otherwise, manually edit the Makefile and change it to point to your $(SUPPLIBS) PNG area. John Huddleston ________________________________ From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez [huber.gilt at igp.gob.pe] Sent: Thursday, July 01, 2010 4:15 PM To: 'GrADS Users Forum' Subject: [gradsusr] error compiling gd library Hello, I want to compile the gd library, i used this command, but I have an unsatisfied symbol. How can I include these missing symbol? #cd /home/huber/grads/supplibs/src/gd-2.0.34 #./configure --disable-shared\ --with-png=/home/huber/grads/supplibs/src/libpng-1.2.18\ --with-jpeg=/home/huber/grads/supplibs/src/jpeg-6b\ --prefix=/home/huber/grads/supplibs/src/gd-2.0.34 #make ? gcc -g -O2 -o gdparttopng gdparttopng.o -L/home/huber/grads/supplibs/lib -L/usr/local/lib/hpux32 -L/usr/lib/X11R4 -L/home/huber/grads/supplibs/src/jpeg-6b/lib ./.libs/libgd.a -L/usr/contrib/X11R6/lib /usr/local/lib/hpux32/libXpm.so /usr/local/lib/hpux32/libintl.so -lX11 -ljpeg /usr/local/lib/hpux32/libfontconfig.so /usr/local/lib/hpux32/libiconv.so /usr/local/lib/hpux32/libexpat.so /usr/local/lib/hpux32/libfreetype.so /usr/local/lib/hpux32/libpng14.so -lz -lm ld: Unsatisfied symbol "png_check_sig" in file ./.libs/libgd.a[gd_png.o] 1 errors. collect2: ld returned 1 exit status make[2]: *** [gdparttopng] Error 1 make[2]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34' make: *** [all] Error 2 Please help me, Best regards, Huber Paul Gilt Lopez IGP-Peru -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100701/1673cad4/attachment-0001.html From huber.gilt at igp.gob.pe Fri Jul 2 10:17:38 2010 From: huber.gilt at igp.gob.pe (=?iso-8859-1?Q?Huber_Pa=FAl_Gilt_L=F3pez?=) Date: Fri, 2 Jul 2010 09:17:38 -0500 Subject: [gradsusr] error compiling gd library In-Reply-To: Message-ID: <201007021424.o62EOhUk007244@geo.igp.gob.pe> John, Because I found this error when I configure PNG library 1.2: #cd /home/huber/grads/supplibs/src/libpng-1.2.18 ./configure --disable-shared --prefix=/home/huber/grads/supplibs/src/libpng-1.2.18 checking for pow in -lm... yes checking for zlibVersion in -lz... no configure: error: zlib not installed I?ve exported this variable CC=gcc by this other CC='gcc -L/home/huber/grads/supplibs/lib -lz', then I?ve done make, and make install. Provably the libpng12.a library didn?t build well, how I can fix the previous error when I tried to configure the libpng12 library? Please help me, Best regards, Huber Paul Gilt Lopez _____ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: jueves, 01 de julio de 2010 18:46 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Huber You need the PNG library1.2 not 1.4. Somehow you've installed a more recent version of PNG into /usr/local Go back to the PNG 1.2 build and do a "make install" to load it into /usr/local Otherwise, manually edit the Makefile and change it to point to your $(SUPPLIBS) PNG area. John Huddleston _____ From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez [huber.gilt at igp.gob.pe] Sent: Thursday, July 01, 2010 4:15 PM To: 'GrADS Users Forum' Subject: [gradsusr] error compiling gd library Hello, I want to compile the gd library, i used this command, but I have an unsatisfied symbol. How can I include these missing symbol? #cd /home/huber/grads/supplibs/src/gd-2.0.34 #./configure --disable-shared\ --with-png=/home/huber/grads/supplibs/src/libpng-1.2.18\ --with-jpeg=/home/huber/grads/supplibs/src/jpeg-6b\ --prefix=/home/huber/grads/supplibs/src/gd-2.0.34 #make gcc -g -O2 -o gdparttopng gdparttopng.o -L/home/huber/grads/supplibs/lib -L/usr/local/lib/hpux32 -L/usr/lib/X11R4 -L/home/huber/grads/supplibs/src/jpeg-6b/lib ./.libs/libgd.a -L/usr/contrib/X11R6/lib /usr/local/lib/hpux32/libXpm.so /usr/local/lib/hpux32/libintl.so -lX11 -ljpeg /usr/local/lib/hpux32/libfontconfig.so /usr/local/lib/hpux32/libiconv.so /usr/local/lib/hpux32/libexpat.so /usr/local/lib/hpux32/libfreetype.so /usr/local/lib/hpux32/libpng14.so -lz -lm ld: Unsatisfied symbol "png_check_sig" in file ./.libs/libgd.a[gd_png.o] 1 errors. collect2: ld returned 1 exit status make[2]: *** [gdparttopng] Error 1 make[2]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34' make: *** [all] Error 2 Please help me, Best regards, Huber Paul Gilt Lopez IGP-Peru -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100702/16f4402c/attachment.html From Huddleston at cira.colostate.edu Fri Jul 2 10:29:55 2010 From: Huddleston at cira.colostate.edu (Huddleston, John) Date: Fri, 2 Jul 2010 07:29:55 -0700 Subject: [gradsusr] error compiling gd library In-Reply-To: <201007021424.o62EOhUk007244@geo.igp.gob.pe> References: , <201007021424.o62EOhUk007244@geo.igp.gob.pe> Message-ID: Hi Huber, On June 15th I sent you a PDF on how to build GrADS, please look it over, libpng doesn't build because you do not have the zlib. Get zlib from ftp://grads.iges.org/grads/Supplibs/2.0/src/zlib-1.2.3.tar.gz tar xvfz ./tarfiles/zlib-1.2.3.tar.gz cd zlib-1.2.3/ ./configure --prefix=$HOME/supplibs/src/zlib-1.2.3 make make install cp ./lib/libz.a $HOME/supplibs/lib mkdir $HOME/supplibs/include/zlib cp ./include/zlib.h $HOME/supplibs/include/zlib John ________________________________ From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez [huber.gilt at igp.gob.pe] Sent: Friday, July 02, 2010 8:17 AM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library John, Because I found this error when I configure PNG library 1.2: #cd /home/huber/grads/supplibs/src/libpng-1.2.18 ./configure --disable-shared --prefix=/home/huber/grads/supplibs/src/libpng-1.2.18 ? checking for pow in -lm... yes checking for zlibVersion in -lz... no configure: error: zlib not installed I?ve exported this variable CC=gcc by this other CC='gcc -L/home/huber/grads/supplibs/lib -lz', then I?ve done make, and make install. Provably the libpng12.a library didn?t build well, how I can fix the previous error when I tried to configure the libpng12 library? Please help me, Best regards, Huber Paul Gilt Lopez ________________________________ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: jueves, 01 de julio de 2010 18:46 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Huber You need the PNG library1.2 not 1.4. Somehow you've installed a more recent version of PNG into /usr/local Go back to the PNG 1.2 build and do a "make install" to load it into /usr/local Otherwise, manually edit the Makefile and change it to point to your $(SUPPLIBS) PNG area. John Huddleston ________________________________ From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez [huber.gilt at igp.gob.pe] Sent: Thursday, July 01, 2010 4:15 PM To: 'GrADS Users Forum' Subject: [gradsusr] error compiling gd library Hello, I want to compile the gd library, i used this command, but I have an unsatisfied symbol. How can I include these missing symbol? #cd /home/huber/grads/supplibs/src/gd-2.0.34 #./configure --disable-shared\ --with-png=/home/huber/grads/supplibs/src/libpng-1.2.18\ --with-jpeg=/home/huber/grads/supplibs/src/jpeg-6b\ --prefix=/home/huber/grads/supplibs/src/gd-2.0.34 #make ? gcc -g -O2 -o gdparttopng gdparttopng.o -L/home/huber/grads/supplibs/lib -L/usr/local/lib/hpux32 -L/usr/lib/X11R4 -L/home/huber/grads/supplibs/src/jpeg-6b/lib ./.libs/libgd.a -L/usr/contrib/X11R6/lib /usr/local/lib/hpux32/libXpm.so /usr/local/lib/hpux32/libintl.so -lX11 -ljpeg /usr/local/lib/hpux32/libfontconfig.so /usr/local/lib/hpux32/libiconv.so /usr/local/lib/hpux32/libexpat.so /usr/local/lib/hpux32/libfreetype.so /usr/local/lib/hpux32/libpng14.so -lz -lm ld: Unsatisfied symbol "png_check_sig" in file ./.libs/libgd.a[gd_png.o] 1 errors. collect2: ld returned 1 exit status make[2]: *** [gdparttopng] Error 1 make[2]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34' make: *** [all] Error 2 Please help me, Best regards, Huber Paul Gilt Lopez IGP-Peru -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100702/08fca1d4/attachment-0001.html From huber.gilt at igp.gob.pe Fri Jul 2 13:06:25 2010 From: huber.gilt at igp.gob.pe (=?iso-8859-1?Q?Huber_Pa=FAl_Gilt_L=F3pez?=) Date: Fri, 2 Jul 2010 12:06:25 -0500 Subject: [gradsusr] error compiling gd library In-Reply-To: Message-ID: <201007021713.o62HDUM5009506@geo.igp.gob.pe> Hello John, I?ve done your instructions and also I compiled the zlib-1.2.3 library and I have the library libz.a, in supplibs/lib. And I have the same problem in libpng-1.2-18 compilation. What is going on with libpng library if I have the libz.a library in the folder supplibs/lib? (In the end I list the compiled libraries) Please help me, Best regards. Huber Paul Gilt L?pez # pwd /home/huber/grads/supplibs/lib # ls libcurl.a libhdf5_hl.a libncurses.a libreadline.a libxdr.a libdf.a libjpeg.a libnetcdf.a libsz.a libz.a libhdf5.a libmfhdf.a libpng12.a libudunits.a _____ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: viernes, 02 de julio de 2010 9:30 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber, On June 15th I sent you a PDF on how to build GrADS, please look it over, libpng doesn't build because you do not have the zlib. Get zlib from ftp://grads.iges.org/grads/Supplibs/2.0/src/zlib-1.2.3.tar.gz tar xvfz ./tarfiles/zlib-1.2.3.tar.gz cd zlib-1.2.3/ ./configure --prefix=$HOME/supplibs/src/zlib-1.2.3 make make install cp ./lib/libz.a $HOME/supplibs/lib mkdir $HOME/supplibs/include/zlib cp ./include/zlib.h $HOME/supplibs/include/zlib John _____ From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez [huber.gilt at igp.gob.pe] Sent: Friday, July 02, 2010 8:17 AM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library John, Because I found this error when I configure PNG library 1.2: #cd /home/huber/grads/supplibs/src/libpng-1.2.18 ./configure --disable-shared --prefix=/home/huber/grads/supplibs/src/libpng-1.2.18 checking for pow in -lm... yes checking for zlibVersion in -lz... no configure: error: zlib not installed I?ve exported this variable CC=gcc by this other CC='gcc -L/home/huber/grads/supplibs/lib -lz', then I?ve done make, and make install. Provably the libpng12.a library didn?t build well, how I can fix the previous error when I tried to configure the libpng12 library? Please help me, Best regards, Huber Paul Gilt Lopez _____ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: jueves, 01 de julio de 2010 18:46 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Huber You need the PNG library1.2 not 1.4. Somehow you've installed a more recent version of PNG into /usr/local Go back to the PNG 1.2 build and do a "make install" to load it into /usr/local Otherwise, manually edit the Makefile and change it to point to your $(SUPPLIBS) PNG area. John Huddleston _____ From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez [huber.gilt at igp.gob.pe] Sent: Thursday, July 01, 2010 4:15 PM To: 'GrADS Users Forum' Subject: [gradsusr] error compiling gd library Hello, I want to compile the gd library, i used this command, but I have an unsatisfied symbol. How can I include these missing symbol? #cd /home/huber/grads/supplibs/src/gd-2.0.34 #./configure --disable-shared\ --with-png=/home/huber/grads/supplibs/src/libpng-1.2.18\ --with-jpeg=/home/huber/grads/supplibs/src/jpeg-6b\ --prefix=/home/huber/grads/supplibs/src/gd-2.0.34 #make gcc -g -O2 -o gdparttopng gdparttopng.o -L/home/huber/grads/supplibs/lib -L/usr/local/lib/hpux32 -L/usr/lib/X11R4 -L/home/huber/grads/supplibs/src/jpeg-6b/lib ./.libs/libgd.a -L/usr/contrib/X11R6/lib /usr/local/lib/hpux32/libXpm.so /usr/local/lib/hpux32/libintl.so -lX11 -ljpeg /usr/local/lib/hpux32/libfontconfig.so /usr/local/lib/hpux32/libiconv.so /usr/local/lib/hpux32/libexpat.so /usr/local/lib/hpux32/libfreetype.so /usr/local/lib/hpux32/libpng14.so -lz -lm ld: Unsatisfied symbol "png_check_sig" in file ./.libs/libgd.a[gd_png.o] 1 errors. collect2: ld returned 1 exit status make[2]: *** [gdparttopng] Error 1 make[2]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34' make: *** [all] Error 2 Please help me, Best regards, Huber Paul Gilt Lopez IGP-Peru -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100702/75accdf0/attachment-0001.html From Huddleston at cira.colostate.edu Fri Jul 2 13:19:57 2010 From: Huddleston at cira.colostate.edu (Huddleston, John) Date: Fri, 2 Jul 2010 10:19:57 -0700 Subject: [gradsusr] error compiling gd library In-Reply-To: <201007021713.o62HDUM5009506@geo.igp.gob.pe> References: , <201007021713.o62HDUM5009506@geo.igp.gob.pe> Message-ID: Hi Huber, Did you remove the libpng directory, untar libpng again, configure again with the options specified in Building_GrADS.pdf, and make the system? Ditto for the GD build. You must follow the order of the build as shown in the PDF file. John Huddleston, PhD, PE ________________________________ From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez [huber.gilt at igp.gob.pe] Sent: Friday, July 02, 2010 11:06 AM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library Hello John, I?ve done your instructions and also I compiled the zlib-1.2.3 library and I have the library libz.a, in supplibs/lib. And I have the same problem in libpng-1.2-18 compilation. What is going on with libpng library if I have the libz.a library in the folder supplibs/lib? (In the end I list the compiled libraries) Please help me, Best regards. Huber Paul Gilt L?pez # pwd /home/huber/grads/supplibs/lib # ls libcurl.a libhdf5_hl.a libncurses.a libreadline.a libxdr.a libdf.a libjpeg.a libnetcdf.a libsz.a libz.a libhdf5.a libmfhdf.a libpng12.a libudunits.a ________________________________ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: viernes, 02 de julio de 2010 9:30 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber, On June 15th I sent you a PDF on how to build GrADS, please look it over, libpng doesn't build because you do not have the zlib. Get zlib from ftp://grads.iges.org/grads/Supplibs/2.0/src/zlib-1.2.3.tar.gz tar xvfz ./tarfiles/zlib-1.2.3.tar.gz cd zlib-1.2.3/ ./configure --prefix=$HOME/supplibs/src/zlib-1.2.3 make make install cp ./lib/libz.a $HOME/supplibs/lib mkdir $HOME/supplibs/include/zlib cp ./include/zlib.h $HOME/supplibs/include/zlib John ________________________________ From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez [huber.gilt at igp.gob.pe] Sent: Friday, July 02, 2010 8:17 AM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library John, Because I found this error when I configure PNG library 1.2: #cd /home/huber/grads/supplibs/src/libpng-1.2.18 ./configure --disable-shared --prefix=/home/huber/grads/supplibs/src/libpng-1.2.18 ? checking for pow in -lm... yes checking for zlibVersion in -lz... no configure: error: zlib not installed I?ve exported this variable CC=gcc by this other CC='gcc -L/home/huber/grads/supplibs/lib -lz', then I?ve done make, and make install. Provably the libpng12.a library didn?t build well, how I can fix the previous error when I tried to configure the libpng12 library? Please help me, Best regards, Huber Paul Gilt Lopez ________________________________ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: jueves, 01 de julio de 2010 18:46 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Huber You need the PNG library1.2 not 1.4. Somehow you've installed a more recent version of PNG into /usr/local Go back to the PNG 1.2 build and do a "make install" to load it into /usr/local Otherwise, manually edit the Makefile and change it to point to your $(SUPPLIBS) PNG area. John Huddleston ________________________________ From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez [huber.gilt at igp.gob.pe] Sent: Thursday, July 01, 2010 4:15 PM To: 'GrADS Users Forum' Subject: [gradsusr] error compiling gd library Hello, I want to compile the gd library, i used this command, but I have an unsatisfied symbol. How can I include these missing symbol? #cd /home/huber/grads/supplibs/src/gd-2.0.34 #./configure --disable-shared\ --with-png=/home/huber/grads/supplibs/src/libpng-1.2.18\ --with-jpeg=/home/huber/grads/supplibs/src/jpeg-6b\ --prefix=/home/huber/grads/supplibs/src/gd-2.0.34 #make ? gcc -g -O2 -o gdparttopng gdparttopng.o -L/home/huber/grads/supplibs/lib -L/usr/local/lib/hpux32 -L/usr/lib/X11R4 -L/home/huber/grads/supplibs/src/jpeg-6b/lib ./.libs/libgd.a -L/usr/contrib/X11R6/lib /usr/local/lib/hpux32/libXpm.so /usr/local/lib/hpux32/libintl.so -lX11 -ljpeg /usr/local/lib/hpux32/libfontconfig.so /usr/local/lib/hpux32/libiconv.so /usr/local/lib/hpux32/libexpat.so /usr/local/lib/hpux32/libfreetype.so /usr/local/lib/hpux32/libpng14.so -lz -lm ld: Unsatisfied symbol "png_check_sig" in file ./.libs/libgd.a[gd_png.o] 1 errors. collect2: ld returned 1 exit status make[2]: *** [gdparttopng] Error 1 make[2]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34' make: *** [all] Error 2 Please help me, Best regards, Huber Paul Gilt Lopez IGP-Peru -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100702/3c35bf72/attachment-0001.html From huber.gilt at igp.gob.pe Tue Jul 6 15:13:09 2010 From: huber.gilt at igp.gob.pe (=?iso-8859-1?Q?Huber_Pa=FAl_Gilt_L=F3pez?=) Date: Tue, 6 Jul 2010 14:13:09 -0500 Subject: [gradsusr] error compiling gd library In-Reply-To: Message-ID: <201007061920.o66JKBDj031145@geo.igp.gob.pe> Hello John, I start to compile all the supplemental libraries; I compiled readline, ncurses, zlib, libpng and jpeg libraries, but I cant compile gd library. Because I have the following error: gcc -g -O2 -o gdparttopng gdparttopng.o -L/usr/local/lib/hpux32 -L/usr/lib/X11R4 -L/home/huber/grads/supplibs/src/jpeg-6b/lib ./.libs/libgd.a -L/usr/contrib/X11R6/lib /usr/local/lib/hpux32/libXpm.so /usr/local/lib/hpux32/libintl.so -lX11 /usr/local/lib/hpux32/libjpeg.so /usr/local/lib/hpux32/libfontconfig.so /usr/local/lib/hpux32/libiconv.so /usr/local/lib/hpux32/libexpat.so /usr/local/lib/hpux32/libfreetype.so /usr/local/lib/hpux32/libpng14.so -lz -lm ld: Unsatisfied symbol "gdImageCreateFromGd2Part" in file gdparttopng.o ld: Unsatisfied symbol "png_check_sig" in file ./.libs/libgd.a[gd_png.o] 2 errors. collect2: ld returned 1 exit status make[2]: *** [gdparttopng] Error 1 make[2]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34' make: *** [all] Error 2 Who can I setup the correct path for the libpng1.2 library, because I follow the instructions in the PDF, and I executed the following commands: cd gd-2.0.34 ./configure --disable-shared \ --with-png=$HOME/supplibs/src/libpng-1.2.18 \ --with-jpeg=$HOME/supplibs/src/jpeg-6b \ --prefix=$HOME/supplibs/src/gd-2.0.34 make Please help me, Best regards, Huber _____ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: viernes, 02 de julio de 2010 12:20 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber, Did you remove the libpng directory, untar libpng again, configure again with the options specified in Building_GrADS.pdf, and make the system? Ditto for the GD build. You must follow the order of the build as shown in the PDF file. John Huddleston, PhD, PE _____ From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez [huber.gilt at igp.gob.pe] Sent: Friday, July 02, 2010 11:06 AM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library Hello John, I?ve done your instructions and also I compiled the zlib-1.2.3 library and I have the library libz.a, in supplibs/lib. And I have the same problem in libpng-1.2-18 compilation. What is going on with libpng library if I have the libz.a library in the folder supplibs/lib? (In the end I list the compiled libraries) Please help me, Best regards. Huber Paul Gilt L?pez # pwd /home/huber/grads/supplibs/lib # ls libcurl.a libhdf5_hl.a libncurses.a libreadline.a libxdr.a libdf.a libjpeg.a libnetcdf.a libsz.a libz.a libhdf5.a libmfhdf.a libpng12.a libudunits.a _____ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: viernes, 02 de julio de 2010 9:30 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber, On June 15th I sent you a PDF on how to build GrADS, please look it over, libpng doesn't build because you do not have the zlib. Get zlib from ftp://grads.iges.org/grads/Supplibs/2.0/src/zlib-1.2.3.tar.gz tar xvfz ./tarfiles/zlib-1.2.3.tar.gz cd zlib-1.2.3/ ./configure --prefix=$HOME/supplibs/src/zlib-1.2.3 make make install cp ./lib/libz.a $HOME/supplibs/lib mkdir $HOME/supplibs/include/zlib cp ./include/zlib.h $HOME/supplibs/include/zlib John _____ From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez [huber.gilt at igp.gob.pe] Sent: Friday, July 02, 2010 8:17 AM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library John, Because I found this error when I configure PNG library 1.2: #cd /home/huber/grads/supplibs/src/libpng-1.2.18 ./configure --disable-shared --prefix=/home/huber/grads/supplibs/src/libpng-1.2.18 checking for pow in -lm... yes checking for zlibVersion in -lz... no configure: error: zlib not installed I?ve exported this variable CC=gcc by this other CC='gcc -L/home/huber/grads/supplibs/lib -lz', then I?ve done make, and make install. Provably the libpng12.a library didn?t build well, how I can fix the previous error when I tried to configure the libpng12 library? Please help me, Best regards, Huber Paul Gilt Lopez _____ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: jueves, 01 de julio de 2010 18:46 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Huber You need the PNG library1.2 not 1.4. Somehow you've installed a more recent version of PNG into /usr/local Go back to the PNG 1.2 build and do a "make install" to load it into /usr/local Otherwise, manually edit the Makefile and change it to point to your $(SUPPLIBS) PNG area. John Huddleston _____ From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez [huber.gilt at igp.gob.pe] Sent: Thursday, July 01, 2010 4:15 PM To: 'GrADS Users Forum' Subject: [gradsusr] error compiling gd library Hello, I want to compile the gd library, i used this command, but I have an unsatisfied symbol. How can I include these missing symbol? #cd /home/huber/grads/supplibs/src/gd-2.0.34 #./configure --disable-shared\ --with-png=/home/huber/grads/supplibs/src/libpng-1.2.18\ --with-jpeg=/home/huber/grads/supplibs/src/jpeg-6b\ --prefix=/home/huber/grads/supplibs/src/gd-2.0.34 #make gcc -g -O2 -o gdparttopng gdparttopng.o -L/home/huber/grads/supplibs/lib -L/usr/local/lib/hpux32 -L/usr/lib/X11R4 -L/home/huber/grads/supplibs/src/jpeg-6b/lib ./.libs/libgd.a -L/usr/contrib/X11R6/lib /usr/local/lib/hpux32/libXpm.so /usr/local/lib/hpux32/libintl.so -lX11 -ljpeg /usr/local/lib/hpux32/libfontconfig.so /usr/local/lib/hpux32/libiconv.so /usr/local/lib/hpux32/libexpat.so /usr/local/lib/hpux32/libfreetype.so /usr/local/lib/hpux32/libpng14.so -lz -lm ld: Unsatisfied symbol "png_check_sig" in file ./.libs/libgd.a[gd_png.o] 1 errors. collect2: ld returned 1 exit status make[2]: *** [gdparttopng] Error 1 make[2]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34' make: *** [all] Error 2 Please help me, Best regards, Huber Paul Gilt Lopez IGP-Peru -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100706/a86dbf55/attachment-0001.html From Huddleston at cira.colostate.edu Tue Jul 6 15:30:13 2010 From: Huddleston at cira.colostate.edu (Huddleston, John) Date: Tue, 6 Jul 2010 12:30:13 -0700 Subject: [gradsusr] error compiling gd library In-Reply-To: <201007061920.o66JKBDj031145@geo.igp.gob.pe> References: <201007061920.o66JKBDj031145@geo.igp.gob.pe> Message-ID: Hi Huber, so sorry you are having so much difficulty. You should see the work I have for the Cygwin build! Look at your gcc line and you will see the path /usr/local/lib/hpux32/libpng14.so Edit the Makefile, search for libpng14, edit that line and replace it with the path to your libpng12 file. John John Huddleston, PhD Research Associate Cooperative Institute for Research in the Atmosphere Mail Stop 1375 @ CIRA Colorado State University Fort Collins, CO 80521 970-491-8602 From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez Sent: Tuesday, July 06, 2010 1:13 PM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library Hello John, I start to compile all the supplemental libraries; I compiled readline, ncurses, zlib, libpng and jpeg libraries, but I cant compile gd library. Because I have the following error: gcc -g -O2 -o gdparttopng gdparttopng.o -L/usr/local/lib/hpux32 -L/usr/lib/X11R4 -L/home/huber/grads/supplibs/src/jpeg-6b/lib ./.libs/libgd.a -L/usr/contrib/X11R6/lib /usr/local/lib/hpux32/libXpm.so /usr/local/lib/hpux32/libintl.so -lX11 /usr/local/lib/hpux32/libjpeg.so /usr/local/lib/hpux32/libfontconfig.so /usr/local/lib/hpux32/libiconv.so /usr/local/lib/hpux32/libexpat.so /usr/local/lib/hpux32/libfreetype.so /usr/local/lib/hpux32/libpng14.so -lz -lm ld: Unsatisfied symbol "gdImageCreateFromGd2Part" in file gdparttopng.o ld: Unsatisfied symbol "png_check_sig" in file ./.libs/libgd.a[gd_png.o] 2 errors. collect2: ld returned 1 exit status make[2]: *** [gdparttopng] Error 1 make[2]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34' make: *** [all] Error 2 Who can I setup the correct path for the libpng1.2 library, because I follow the instructions in the PDF, and I executed the following commands: cd gd-2.0.34 ./configure --disable-shared \ --with-png=$HOME/supplibs/src/libpng-1.2.18 \ --with-jpeg=$HOME/supplibs/src/jpeg-6b \ --prefix=$HOME/supplibs/src/gd-2.0.34 make Please help me, Best regards, Huber ________________________________ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: viernes, 02 de julio de 2010 12:20 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber, Did you remove the libpng directory, untar libpng again, configure again with the options specified in Building_GrADS.pdf, and make the system? Ditto for the GD build. You must follow the order of the build as shown in the PDF file. John Huddleston, PhD, PE ________________________________ From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez [huber.gilt at igp.gob.pe] Sent: Friday, July 02, 2010 11:06 AM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library Hello John, I've done your instructions and also I compiled the zlib-1.2.3 library and I have the library libz.a, in supplibs/lib. And I have the same problem in libpng-1.2-18 compilation. What is going on with libpng library if I have the libz.a library in the folder supplibs/lib? (In the end I list the compiled libraries) Please help me, Best regards. Huber Paul Gilt L?pez # pwd /home/huber/grads/supplibs/lib # ls libcurl.a libhdf5_hl.a libncurses.a libreadline.a libxdr.a libdf.a libjpeg.a libnetcdf.a libsz.a libz.a libhdf5.a libmfhdf.a libpng12.a libudunits.a ________________________________ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: viernes, 02 de julio de 2010 9:30 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber, On June 15th I sent you a PDF on how to build GrADS, please look it over, libpng doesn't build because you do not have the zlib. Get zlib from ftp://grads.iges.org/grads/Supplibs/2.0/src/zlib-1.2.3.tar.gz tar xvfz ./tarfiles/zlib-1.2.3.tar.gz cd zlib-1.2.3/ ./configure --prefix=$HOME/supplibs/src/zlib-1.2.3 make make install cp ./lib/libz.a $HOME/supplibs/lib mkdir $HOME/supplibs/include/zlib cp ./include/zlib.h $HOME/supplibs/include/zlib John ________________________________ From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez [huber.gilt at igp.gob.pe] Sent: Friday, July 02, 2010 8:17 AM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library John, Because I found this error when I configure PNG library 1.2: #cd /home/huber/grads/supplibs/src/libpng-1.2.18 ./configure --disable-shared --prefix=/home/huber/grads/supplibs/src/libpng-1.2.18 ... checking for pow in -lm... yes checking for zlibVersion in -lz... no configure: error: zlib not installed I've exported this variable CC=gcc by this other CC='gcc -L/home/huber/grads/supplibs/lib -lz', then I've done make, and make install. Provably the libpng12.a library didn't build well, how I can fix the previous error when I tried to configure the libpng12 library? Please help me, Best regards, Huber Paul Gilt Lopez ________________________________ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: jueves, 01 de julio de 2010 18:46 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Huber You need the PNG library1.2 not 1.4. Somehow you've installed a more recent version of PNG into /usr/local Go back to the PNG 1.2 build and do a "make install" to load it into /usr/local Otherwise, manually edit the Makefile and change it to point to your $(SUPPLIBS) PNG area. John Huddleston ________________________________ From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez [huber.gilt at igp.gob.pe] Sent: Thursday, July 01, 2010 4:15 PM To: 'GrADS Users Forum' Subject: [gradsusr] error compiling gd library Hello, I want to compile the gd library, i used this command, but I have an unsatisfied symbol. How can I include these missing symbol? #cd /home/huber/grads/supplibs/src/gd-2.0.34 #./configure --disable-shared\ --with-png=/home/huber/grads/supplibs/src/libpng-1.2.18\ --with-jpeg=/home/huber/grads/supplibs/src/jpeg-6b\ --prefix=/home/huber/grads/supplibs/src/gd-2.0.34 #make ... gcc -g -O2 -o gdparttopng gdparttopng.o -L/home/huber/grads/supplibs/lib -L/usr/local/lib/hpux32 -L/usr/lib/X11R4 -L/home/huber/grads/supplibs/src/jpeg-6b/lib ./.libs/libgd.a -L/usr/contrib/X11R6/lib /usr/local/lib/hpux32/libXpm.so /usr/local/lib/hpux32/libintl.so -lX11 -ljpeg /usr/local/lib/hpux32/libfontconfig.so /usr/local/lib/hpux32/libiconv.so /usr/local/lib/hpux32/libexpat.so /usr/local/lib/hpux32/libfreetype.so /usr/local/lib/hpux32/libpng14.so -lz -lm ld: Unsatisfied symbol "png_check_sig" in file ./.libs/libgd.a[gd_png.o] 1 errors. collect2: ld returned 1 exit status make[2]: *** [gdparttopng] Error 1 make[2]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34' make: *** [all] Error 2 Please help me, Best regards, Huber Paul Gilt Lopez IGP-Peru -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100706/97e6d188/attachment-0001.html From C.Hayes at meteovista.nl Wed Jul 7 09:18:00 2010 From: C.Hayes at meteovista.nl (Chris Hayes) Date: Wed, 7 Jul 2010 15:18:00 +0200 Subject: [gradsusr] moved server: lost shapes Message-ID: <4815D38748E8CD4DA972E78502F379622202458266@EX01.NL.LOCAL> Dear group, For performance reasons we are changing host. Unfortunately I did not keep track of every file I moved to the old server. The new one has opengrads 2.0.a8. * I lost shp_lines world ('unknown command shp_lines 1') I cannot get it to work with shp_lines /var/www/vhosts/opengrads/data/shapes/world In that location I put the world.* files * I use a php class that after each request/command waited for the response by grads, and this class knew the response always ended with . But now it waits for that tag till the cows come home. And beyond. Indefinitely and forever. What changed ? How to fix it? Much obliged, Chris Hayes Webdeveloper [cid:image001.png at 01CB1DE7.5C97BC50] [cid:image002.jpg at 01CB1DE7.5C97BC50] A Kwekerijweg 2c | 3709 JA Zeist | The Netherlands T +31 (0) 88 8786625 E c.hayes at meteovista.nl | W www.weeronline.nl [cid:image006.jpg at 01CB1DE7.95C94E80] twitter.com/weeronline MeteoVista is ISO 9001-2008 gecertificeerd. Hiermee toont MeteoVista aan, dat zij kwaliteit biedt conform de ISO kwaliteitseisen. [cid:image005.jpg at 01CB1DE7.5C97BC50] -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100707/39c8ebcc/attachment-0001.html -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 1415 bytes Desc: image001.png Url : http://gradsusr.org/pipermail/gradsusr/attachments/20100707/39c8ebcc/attachment-0001.png -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.jpg Type: image/jpeg Size: 5157 bytes Desc: image002.jpg Url : http://gradsusr.org/pipermail/gradsusr/attachments/20100707/39c8ebcc/attachment-0004.jpg -------------- next part -------------- A non-text attachment was scrubbed... Name: image003.jpg Type: image/jpeg Size: 447 bytes Desc: image003.jpg Url : http://gradsusr.org/pipermail/gradsusr/attachments/20100707/39c8ebcc/attachment-0005.jpg -------------- next part -------------- A non-text attachment was scrubbed... Name: image005.jpg Type: image/jpeg Size: 1318 bytes Desc: image005.jpg Url : http://gradsusr.org/pipermail/gradsusr/attachments/20100707/39c8ebcc/attachment-0006.jpg -------------- next part -------------- A non-text attachment was scrubbed... Name: image006.jpg Type: image/jpeg Size: 651 bytes Desc: image006.jpg Url : http://gradsusr.org/pipermail/gradsusr/attachments/20100707/39c8ebcc/attachment-0007.jpg From jma at cola.iges.org Wed Jul 7 09:34:50 2010 From: jma at cola.iges.org (Jennifer Adams) Date: Wed, 7 Jul 2010 09:34:50 -0400 Subject: [gradsusr] moved server: lost shapes In-Reply-To: <4815D38748E8CD4DA972E78502F379622202458266@EX01.NL.LOCAL> References: <4815D38748E8CD4DA972E78502F379622202458266@EX01.NL.LOCAL> Message-ID: <85EAC738-56F6-4DDA-AAD8-973954CCB973@cola.iges.org> On Jul 7, 2010, at 9:18 AM, Chris Hayes wrote: > Dear group, > For performance reasons we are changing host. > Unfortunately I did not keep track of every file I moved to the old > server. > > The new one has opengrads 2.0.a8. As far as I know, there is no opengrads version based on COLA's GrADS 2.0.a8. What is the output from 'q config'? > > ? I lost shp_lines world (?unknown command shp_lines 1?) > I cannot get it to work with shp_lines /var/www/vhosts/opengrads/ > data/shapes/world > In that location I put the world.* files Try the 'draw shp' command instead, the COLA interface for shapefiles (introduced in version 2.0.a8) is not the same as the opengrads interface. http://iges.org/grads/gadoc/gradcomddrawshp.html > > ? I use a php class that after each request/command waited > for the response by grads, and this class knew the response always > ended with . > But now it waits for that tag till the cows come home. And beyond. > Indefinitely and forever. > What changed ? How to fix it? I think this feature is enabled with the -u option on startup, and it is in COLA's version of GrADS as a hook for opengrads features. --Jennifer > > > Much obliged, > > > Chris Hayes > Webdeveloper > > > > A Kwekerijweg 2c | 3709 JA Zeist | The Netherlands > > T +31 (0) 88 8786625 > E c.hayes at meteovista.nl | W www.weeronline.nl > twitter.com/weeronline > MeteoVista is ISO 9001-2008 gecertificeerd. > Hiermee toont MeteoVista aan, dat zij kwaliteit biedt conform de ISO > kwaliteitseisen. > > > > > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr -- Jennifer M. Adams IGES/COLA 4041 Powder Mill Road, Suite 302 Calverton, MD 20705 jma at cola.iges.org -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100707/be64ad60/attachment.html From C.Hayes at meteovista.nl Wed Jul 7 10:22:04 2010 From: C.Hayes at meteovista.nl (Chris Hayes) Date: Wed, 7 Jul 2010 16:22:04 +0200 Subject: [gradsusr] moved server: lost shapes In-Reply-To: <85EAC738-56F6-4DDA-AAD8-973954CCB973@cola.iges.org> References: <4815D38748E8CD4DA972E78502F379622202458266@EX01.NL.LOCAL> <85EAC738-56F6-4DDA-AAD8-973954CCB973@cola.iges.org> Message-ID: <4815D38748E8CD4DA972E78502F37962220245826D@EX01.NL.LOCAL> Thanks, Jennifer - you fixed the borders on our maps! Funny though is that I start grads with /usr/local/bin/grads -u -b -l so the -u is already there. So if you have any other idea? Chris Van: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] Namens Jennifer Adams Verzonden: woensdag 7 juli 2010 15:35 Aan: GrADS Users Forum Onderwerp: Re: [gradsusr] moved server: lost shapes On Jul 7, 2010, at 9:18 AM, Chris Hayes wrote: Dear group, For performance reasons we are changing host. Unfortunately I did not keep track of every file I moved to the old server. The new one has opengrads 2.0.a8. As far as I know, there is no opengrads version based on COLA's GrADS 2.0.a8. What is the output from 'q config'? * I lost shp_lines world ('unknown command shp_lines 1') I cannot get it to work with shp_lines /var/www/vhosts/opengrads/data/shapes/world In that location I put the world.* files Try the 'draw shp' command instead, the COLA interface for shapefiles (introduced in version 2.0.a8) is not the same as the opengrads interface. http://iges.org/grads/gadoc/gradcomddrawshp.html * I use a php class that after each request/command waited for the response by grads, and this class knew the response always ended with . But now it waits for that tag till the cows come home. And beyond. Indefinitely and forever. What changed ? How to fix it? I think this feature is enabled with the -u option on startup, and it is in COLA's version of GrADS as a hook for opengrads features. --Jennifer Much obliged, Chris Hayes Webdeveloper A Kwekerijweg 2c | 3709 JA Zeist | The Netherlands T +31 (0) 88 8786625 E c.hayes at meteovista.nl | W www.weeronline.nl twitter.com/weeronline MeteoVista is ISO 9001-2008 gecertificeerd. Hiermee toont MeteoVista aan, dat zij kwaliteit biedt conform de ISO kwaliteitseisen. _______________________________________________ gradsusr mailing list gradsusr at gradsusr.org http://gradsusr.org/mailman/listinfo/gradsusr -- Jennifer M. Adams IGES/COLA 4041 Powder Mill Road, Suite 302 Calverton, MD 20705 jma at cola.iges.org -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100707/be630c5e/attachment-0001.html From huber.gilt at igp.gob.pe Wed Jul 7 11:42:25 2010 From: huber.gilt at igp.gob.pe (=?iso-8859-1?Q?Huber_Pa=FAl_Gilt_L=F3pez?=) Date: Wed, 7 Jul 2010 10:42:25 -0500 Subject: [gradsusr] error compiling gd library In-Reply-To: Message-ID: <201007071549.o67FnReA030031@geo.igp.gob.pe> Hi John, Don?t worry about the difficulty that I?m having, I can?t figure how you build in or with Cygwin, I suppose it is a heavy work. Any way, I don?t found any reference with libpng14 in the libgb?s Makefile , but I found the following lines that I think it would be not setup for the libpng12. How can I setup this Makefile in order to use the libpng12 library, and so try to compile the gb library? (I?m attaching the libgb?s Makefile) LIBPNG12_CONFIG = LIBPNG_CONFIG = /usr/local/bin/libpng-config Please help me, Best regards, Huber _____ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: martes, 06 de julio de 2010 14:30 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber, so sorry you are having so much difficulty. You should see the work I have for the Cygwin build! Look at your gcc line and you will see the path /usr/local/lib/hpux32/libpng14.so Edit the Makefile, search for libpng14, edit that line and replace it with the path to your libpng12 file. John John Huddleston, PhD Research Associate Cooperative Institute for Research in the Atmosphere Mail Stop 1375 @ CIRA Colorado State University Fort Collins, CO 80521 970-491-8602 From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez Sent: Tuesday, July 06, 2010 1:13 PM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library Hello John, I start to compile all the supplemental libraries; I compiled readline, ncurses, zlib, libpng and jpeg libraries, but I cant compile gd library. Because I have the following error: gcc -g -O2 -o gdparttopng gdparttopng.o -L/usr/local/lib/hpux32 -L/usr/lib/X11R4 -L/home/huber/grads/supplibs/src/jpeg-6b/lib ./.libs/libgd.a -L/usr/contrib/X11R6/lib /usr/local/lib/hpux32/libXpm.so /usr/local/lib/hpux32/libintl.so -lX11 /usr/local/lib/hpux32/libjpeg.so /usr/local/lib/hpux32/libfontconfig.so /usr/local/lib/hpux32/libiconv.so /usr/local/lib/hpux32/libexpat.so /usr/local/lib/hpux32/libfreetype.so /usr/local/lib/hpux32/libpng14.so -lz -lm ld: Unsatisfied symbol "gdImageCreateFromGd2Part" in file gdparttopng.o ld: Unsatisfied symbol "png_check_sig" in file ./.libs/libgd.a[gd_png.o] 2 errors. collect2: ld returned 1 exit status make[2]: *** [gdparttopng] Error 1 make[2]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34' make: *** [all] Error 2 Who can I setup the correct path for the libpng1.2 library, because I follow the instructions in the PDF, and I executed the following commands: cd gd-2.0.34 ./configure --disable-shared \ --with-png=$HOME/supplibs/src/libpng-1.2.18 \ --with-jpeg=$HOME/supplibs/src/jpeg-6b \ --prefix=$HOME/supplibs/src/gd-2.0.34 make Please help me, Best regards, Huber _____ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: viernes, 02 de julio de 2010 12:20 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber, Did you remove the libpng directory, untar libpng again, configure again with the options specified in Building_GrADS.pdf, and make the system? Ditto for the GD build. You must follow the order of the build as shown in the PDF file. John Huddleston, PhD, PE _____ From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez [huber.gilt at igp.gob.pe] Sent: Friday, July 02, 2010 11:06 AM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library Hello John, I?ve done your instructions and also I compiled the zlib-1.2.3 library and I have the library libz.a, in supplibs/lib. And I have the same problem in libpng-1.2-18 compilation. What is going on with libpng library if I have the libz.a library in the folder supplibs/lib? (In the end I list the compiled libraries) Please help me, Best regards. Huber Paul Gilt L?pez # pwd /home/huber/grads/supplibs/lib # ls libcurl.a libhdf5_hl.a libncurses.a libreadline.a libxdr.a libdf.a libjpeg.a libnetcdf.a libsz.a libz.a libhdf5.a libmfhdf.a libpng12.a libudunits.a _____ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: viernes, 02 de julio de 2010 9:30 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber, On June 15th I sent you a PDF on how to build GrADS, please look it over, libpng doesn't build because you do not have the zlib. Get zlib from ftp://grads.iges.org/grads/Supplibs/2.0/src/zlib-1.2.3.tar.gz tar xvfz ./tarfiles/zlib-1.2.3.tar.gz cd zlib-1.2.3/ ./configure --prefix=$HOME/supplibs/src/zlib-1.2.3 make make install cp ./lib/libz.a $HOME/supplibs/lib mkdir $HOME/supplibs/include/zlib cp ./include/zlib.h $HOME/supplibs/include/zlib John _____ From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez [huber.gilt at igp.gob.pe] Sent: Friday, July 02, 2010 8:17 AM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library John, Because I found this error when I configure PNG library 1.2: #cd /home/huber/grads/supplibs/src/libpng-1.2.18 ./configure --disable-shared --prefix=/home/huber/grads/supplibs/src/libpng-1.2.18 checking for pow in -lm... yes checking for zlibVersion in -lz... no configure: error: zlib not installed I?ve exported this variable CC=gcc by this other CC='gcc -L/home/huber/grads/supplibs/lib -lz', then I?ve done make, and make install. Provably the libpng12.a library didn?t build well, how I can fix the previous error when I tried to configure the libpng12 library? Please help me, Best regards, Huber Paul Gilt Lopez _____ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: jueves, 01 de julio de 2010 18:46 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Huber You need the PNG library1.2 not 1.4. Somehow you've installed a more recent version of PNG into /usr/local Go back to the PNG 1.2 build and do a "make install" to load it into /usr/local Otherwise, manually edit the Makefile and change it to point to your $(SUPPLIBS) PNG area. John Huddleston _____ From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez [huber.gilt at igp.gob.pe] Sent: Thursday, July 01, 2010 4:15 PM To: 'GrADS Users Forum' Subject: [gradsusr] error compiling gd library Hello, I want to compile the gd library, i used this command, but I have an unsatisfied symbol. How can I include these missing symbol? #cd /home/huber/grads/supplibs/src/gd-2.0.34 #./configure --disable-shared\ --with-png=/home/huber/grads/supplibs/src/libpng-1.2.18\ --with-jpeg=/home/huber/grads/supplibs/src/jpeg-6b\ --prefix=/home/huber/grads/supplibs/src/gd-2.0.34 #make gcc -g -O2 -o gdparttopng gdparttopng.o -L/home/huber/grads/supplibs/lib -L/usr/local/lib/hpux32 -L/usr/lib/X11R4 -L/home/huber/grads/supplibs/src/jpeg-6b/lib ./.libs/libgd.a -L/usr/contrib/X11R6/lib /usr/local/lib/hpux32/libXpm.so /usr/local/lib/hpux32/libintl.so -lX11 -ljpeg /usr/local/lib/hpux32/libfontconfig.so /usr/local/lib/hpux32/libiconv.so /usr/local/lib/hpux32/libexpat.so /usr/local/lib/hpux32/libfreetype.so /usr/local/lib/hpux32/libpng14.so -lz -lm ld: Unsatisfied symbol "png_check_sig" in file ./.libs/libgd.a[gd_png.o] 1 errors. collect2: ld returned 1 exit status make[2]: *** [gdparttopng] Error 1 make[2]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34' make: *** [all] Error 2 Please help me, Best regards, Huber Paul Gilt Lopez IGP-Peru -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100707/26328cd5/attachment-0001.html -------------- next part -------------- A non-text attachment was scrubbed... Name: Makefile Type: application/octet-stream Size: 37856 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20100707/26328cd5/attachment-0001.obj From funnytyphoon at gmail.com Wed Jul 7 21:39:24 2010 From: funnytyphoon at gmail.com (MY) Date: Thu, 8 Jul 2010 09:39:24 +0800 Subject: [gradsusr] Can collect, gr2stn(), and coll2gr() be applied to defined variable? In-Reply-To: References: Message-ID: Hi, dear all, Can collect, gr2stn(), and coll2gr() be applied to defined variables? I use the opengrads v2.0.a7.oga.3 little-endian version in the MS Windows system. 'define uu=ugrd' ;* the ugrd is variable defined in ctl file 'collect 1 free' i=0 while(i<=10) ...... i=i+1 'collect 1 gr2stn(uu,'xlon','xlat')' ...... endwhile 'set x 1 'i 'd coll2gr(1,-u)' I got error message: ************************ Error from COLL2GR: Invalid dimension environment Operation Error: Error from coll2gr function DISPLAY error: Invalid expression Expression = coll2gr(1,-u) ************************ But, the following is OK: ..... 'collect 1 gr2stn(ugrd,'xlon','xlat')' ..... 'd coll2gr(1,-u)' Thank you. MY -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100708/8962f4d7/attachment.html From gibiesgeorge at gmail.com Thu Jul 8 03:52:22 2010 From: gibiesgeorge at gmail.com (gibies george) Date: Thu, 8 Jul 2010 13:22:22 +0530 Subject: [gradsusr] Intermediate data storage Message-ID: Hello GrADS users, I want to get a time correlation between a time series index (time only) and a spatial distribution (lat, lon, time). My data is having daily time interval and I can use ave() function to get seasonal mean values for each year. But I cannot hold this huge dataset in RAM. Hence I tried to write it to a data file using *sdfwrite*. I have use the following script to create NetCDF file to store my time series index 'set time jan'yr1' jan'yrn 'set lon 0' 'set lat 0' 'set sdfwrite ../'fld'/'file'.nc' 'sdfwrite ssn' say 'SDF output is available in file : ../'fld'/'file'.nc' There is no error during the writting process, but it shows an error when I attempted to open the same file using *sdfopen*. 'sdfopen ../'fld'/'file'.nc' 'q file' The error message is as follows. gadsdf: SDF file has no discernable X coordinate. No Files Open Anybody please sugest a way to solve my problem. Thanking you in advance Gibies George,CSIR-RF, Climate and Global Modelling Division, Indian Institute of Tropical Meteorology, Dr. Homi Bhabha Road, NCL (P. O.), Pashan, Pune 411008, India. http://sites.google.com/site/gibiesge/ Think about the environment. Please don't print this e-mail unless it is necessary. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100708/88cdde32/attachment.html From C.Hayes at meteovista.nl Thu Jul 8 05:21:03 2010 From: C.Hayes at meteovista.nl (Chris Hayes) Date: Thu, 8 Jul 2010 11:21:03 +0200 Subject: [gradsusr] moved server: lost shapes In-Reply-To: <85EAC738-56F6-4DDA-AAD8-973954CCB973@cola.iges.org> References: <4815D38748E8CD4DA972E78502F379622202458266@EX01.NL.LOCAL> <85EAC738-56F6-4DDA-AAD8-973954CCB973@cola.iges.org> Message-ID: <4815D38748E8CD4DA972E78502F37962220245828F@EX01.NL.LOCAL> * >> I use a php class that after each request/command waited for the response by grads, and this class knew the response * >> always ended with . >> But now it waits for that tag till the cows come home. And beyond. Indefinitely and forever. >> What changed ? How to fix it? > I think this feature is enabled with the -u option on startup, and it is in COLA's version of GrADS as a hook for opengrads features. > --Jennifer Funnily, looking at the source the version came from it might be Grads our host installed for us, I can hardly see the difference, can you see a difference in config? On the old server: Config: v2.0.a5.oga.5 little-endian readline printim grib2 netcdf hdf4-sds opendap-grids,stn athena geotiff Grid Analysis and Display System (GrADS) Version 2.0.a5.oga.5 Copyright (c) 1988-2008 by Brian Doty and the Institute for Global Environment and Society (IGES) This program is distributed WITHOUT ANY WARRANTY See file COPYRIGHT for more information. Built Thu May 7 11:02:53 EDT 2009 for i686-pc-linux-gnu This version of GrADS has been configured with the following options: o Built on a LITTLE ENDIAN machine o Command line editing ENABLED http://tiswww.case.edu/php/chet/readline/rltop.html o printim command for image output ENABLED http://www.zlib.net http://www.libpng.org/pub/png/libpng.html http://www.libgd.org/Main_Page o GRIB2 interface ENABLED http://www.ijg.org http://www.ece.uvic.ca/~mdadams/jasper http://www.nco.ncep.noaa.gov/pmb/codes/GRIB2 g2clib-1.0.5 o NetCDF interface ENABLED http://www.opendap.org libnc-dap 4.0.1-beta3-snapshot2009021712 of Feb 21 2009 14:55:15 $ o NCSA HDF interface ENABLED http://hdf.ncsa.uiuc.edu HDF4.2r3 o Athena Widget GUI ENABLED o OPeNDAP gridded data interface ENABLED http://www.opendap.org libdap 3.7.10 o OPeNDAP station data interface ENABLED http://iges.org/grads/gadoc/supplibs.html libgadap 2.0.oga.1 o GeoTIFF and KML output ENABLED http://www.libtiff.org http://geotiff.osgeo.org For additional information please consult http://iges.org/grads On the new serverE: Config: v2.0.a8 little-endian readline printim grib2 netcdf hdf4-sds hdf5 opendap-grids,stn geotiff shapefile Grid Analysis and Display System (GrADS) Version 2.0.a8 Copyright (c) 1988-2010 by Brian Doty and the Institute for Global Environment and Society (IGES) This program is distributed WITHOUT ANY WARRANTY See file COPYRIGHT for more information. Built Fri Mar 26 10:24:10 EDT 2010 for x86_64-unknown-linux-gnu This version of GrADS has been configured with the following options: o Built on a LITTLE ENDIAN machine o Athena Widget GUI DISABLED o Command line editing ENABLED http://tiswww.case.edu/php/chet/readline/rltop.html o printim command for image output ENABLED http://www.zlib.net http://www.libpng.org/pub/png/libpng.html http://www.libgd.org/Main_Page o GRIB2 interface ENABLED http://www.ijg.org http://www.ece.uvic.ca/~mdadams/jasper http://www.nco.ncep.noaa.gov/pmb/codes/GRIB2 g2clib-1.1.8 o NetCDF interface ENABLED http://www.unidata.ucar.edu/software/netcdf netcdf 4.1.1-rc2 of Mar 23 2010 09:31:58 $ o OPeNDAP gridded data interface ENABLED o OPeNDAP station data interface ENABLED http://iges.org/grads/gadoc/supplibs.html libgadap 2.0 o HDF4 and HDF5 interfaces ENABLED http://hdfgroup.org HDF 4.2r3 HDF5 1.8.4 o GeoTIFF and KML output ENABLED http://www.libtiff.org http://geotiff.osgeo.org o Shapefile interface ENABLED http://shapelib.maptools.org For additional information please consult http://iges.org/grads I used gradsnc -u, just like the perl interface does, but now with version 2.0.a8 there is only the grads executable. I found http://opengrads.org/doc/udxt/libipc/libipc.html which specifies ipc_verb but that command is not recognized. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100708/ff974fde/attachment-0001.html From Huddleston at cira.colostate.edu Thu Jul 8 10:53:37 2010 From: Huddleston at cira.colostate.edu (Huddleston, John) Date: Thu, 8 Jul 2010 07:53:37 -0700 Subject: [gradsusr] error compiling gd library In-Reply-To: <201007071549.o67FnReA030031@geo.igp.gob.pe> References: <201007071549.o67FnReA030031@geo.igp.gob.pe> Message-ID: Hi Huber, The /usr/local/lib/libpng.la controls which PNG library is used. It seems as if someone else built and installed version 14 under /usr/local. Unless you have sudo privlileges you are going to have to work around that implementation. This is going to sound funny..but; if you have already built the GD library file that's all you need to continue building. In my case, the path is /home/dasilva/src/supplibs-2.1.0/i686-pc-linux/lib/libgd.a In your case copy the libgd.a to your $(SUPPLIBS)/lib directory and copy the include files gd.h gdfx.h gd_io.h gdcache.h gdfontg.h gdfontl.h gdfontmb.h gdfonts.h gdfontt.h entities.h to your ${SUPPLIBS}/include directory. Next, go on to build jasper, g2clib, szlib, etc. John John Huddleston, PhD Cooperative Institute for Research in the Atmosphere From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez Sent: Wednesday, July 07, 2010 9:42 AM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library Hi John, Don't worry about the difficulty that I'm having, I can't figure how you build in or with Cygwin, I suppose it is a heavy work. Any way, I don't found any reference with libpng14 in the libgb's Makefile , but I found the following lines that I think it would be not setup for the libpng12. How can I setup this Makefile in order to use the libpng12 library, and so try to compile the gb library? (I'm attaching the libgb's Makefile) LIBPNG12_CONFIG = LIBPNG_CONFIG = /usr/local/bin/libpng-config Please help me, Best regards, Huber ________________________________ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: martes, 06 de julio de 2010 14:30 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber, so sorry you are having so much difficulty. You should see the work I have for the Cygwin build! Look at your gcc line and you will see the path /usr/local/lib/hpux32/libpng14.so Edit the Makefile, search for libpng14, edit that line and replace it with the path to your libpng12 file. John John Huddleston, PhD Cooperative Institute for Research in the Atmosphere From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez Sent: Tuesday, July 06, 2010 1:13 PM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library Hello John, I start to compile all the supplemental libraries; I compiled readline, ncurses, zlib, libpng and jpeg libraries, but I cant compile gd library. Because I have the following error: gcc -g -O2 -o gdparttopng gdparttopng.o -L/usr/local/lib/hpux32 -L/usr/lib/X11R4 -L/home/huber/grads/supplibs/src/jpeg-6b/lib ./.libs/libgd.a -L/usr/contrib/X11R6/lib /usr/local/lib/hpux32/libXpm.so /usr/local/lib/hpux32/libintl.so -lX11 /usr/local/lib/hpux32/libjpeg.so /usr/local/lib/hpux32/libfontconfig.so /usr/local/lib/hpux32/libiconv.so /usr/local/lib/hpux32/libexpat.so /usr/local/lib/hpux32/libfreetype.so /usr/local/lib/hpux32/libpng14.so -lz -lm ld: Unsatisfied symbol "gdImageCreateFromGd2Part" in file gdparttopng.o ld: Unsatisfied symbol "png_check_sig" in file ./.libs/libgd.a[gd_png.o] 2 errors. collect2: ld returned 1 exit status make[2]: *** [gdparttopng] Error 1 make[2]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34' make: *** [all] Error 2 Who can I setup the correct path for the libpng1.2 library, because I follow the instructions in the PDF, and I executed the following commands: cd gd-2.0.34 ./configure --disable-shared \ --with-png=$HOME/supplibs/src/libpng-1.2.18 \ --with-jpeg=$HOME/supplibs/src/jpeg-6b \ --prefix=$HOME/supplibs/src/gd-2.0.34 make Please help me, Best regards, Huber ________________________________ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: viernes, 02 de julio de 2010 12:20 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber, Did you remove the libpng directory, untar libpng again, configure again with the options specified in Building_GrADS.pdf, and make the system? Ditto for the GD build. You must follow the order of the build as shown in the PDF file. John Huddleston, PhD, PE ________________________________ From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez [huber.gilt at igp.gob.pe] Sent: Friday, July 02, 2010 11:06 AM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library Hello John, I've done your instructions and also I compiled the zlib-1.2.3 library and I have the library libz.a, in supplibs/lib. And I have the same problem in libpng-1.2-18 compilation. What is going on with libpng library if I have the libz.a library in the folder supplibs/lib? (In the end I list the compiled libraries) Please help me, Best regards. Huber Paul Gilt L?pez # pwd /home/huber/grads/supplibs/lib # ls libcurl.a libhdf5_hl.a libncurses.a libreadline.a libxdr.a libdf.a libjpeg.a libnetcdf.a libsz.a libz.a libhdf5.a libmfhdf.a libpng12.a libudunits.a ________________________________ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: viernes, 02 de julio de 2010 9:30 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber, On June 15th I sent you a PDF on how to build GrADS, please look it over, libpng doesn't build because you do not have the zlib. Get zlib from ftp://grads.iges.org/grads/Supplibs/2.0/src/zlib-1.2.3.tar.gz tar xvfz ./tarfiles/zlib-1.2.3.tar.gz cd zlib-1.2.3/ ./configure --prefix=$HOME/supplibs/src/zlib-1.2.3 make make install cp ./lib/libz.a $HOME/supplibs/lib mkdir $HOME/supplibs/include/zlib cp ./include/zlib.h $HOME/supplibs/include/zlib John ________________________________ From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez [huber.gilt at igp.gob.pe] Sent: Friday, July 02, 2010 8:17 AM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library John, Because I found this error when I configure PNG library 1.2: #cd /home/huber/grads/supplibs/src/libpng-1.2.18 ./configure --disable-shared --prefix=/home/huber/grads/supplibs/src/libpng-1.2.18 ... checking for pow in -lm... yes checking for zlibVersion in -lz... no configure: error: zlib not installed I've exported this variable CC=gcc by this other CC='gcc -L/home/huber/grads/supplibs/lib -lz', then I've done make, and make install. Provably the libpng12.a library didn't build well, how I can fix the previous error when I tried to configure the libpng12 library? Please help me, Best regards, Huber Paul Gilt Lopez ________________________________ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: jueves, 01 de julio de 2010 18:46 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Huber You need the PNG library1.2 not 1.4. Somehow you've installed a more recent version of PNG into /usr/local Go back to the PNG 1.2 build and do a "make install" to load it into /usr/local Otherwise, manually edit the Makefile and change it to point to your $(SUPPLIBS) PNG area. John Huddleston ________________________________ From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez [huber.gilt at igp.gob.pe] Sent: Thursday, July 01, 2010 4:15 PM To: 'GrADS Users Forum' Subject: [gradsusr] error compiling gd library Hello, I want to compile the gd library, i used this command, but I have an unsatisfied symbol. How can I include these missing symbol? #cd /home/huber/grads/supplibs/src/gd-2.0.34 #./configure --disable-shared\ --with-png=/home/huber/grads/supplibs/src/libpng-1.2.18\ --with-jpeg=/home/huber/grads/supplibs/src/jpeg-6b\ --prefix=/home/huber/grads/supplibs/src/gd-2.0.34 #make ... gcc -g -O2 -o gdparttopng gdparttopng.o -L/home/huber/grads/supplibs/lib -L/usr/local/lib/hpux32 -L/usr/lib/X11R4 -L/home/huber/grads/supplibs/src/jpeg-6b/lib ./.libs/libgd.a -L/usr/contrib/X11R6/lib /usr/local/lib/hpux32/libXpm.so /usr/local/lib/hpux32/libintl.so -lX11 -ljpeg /usr/local/lib/hpux32/libfontconfig.so /usr/local/lib/hpux32/libiconv.so /usr/local/lib/hpux32/libexpat.so /usr/local/lib/hpux32/libfreetype.so /usr/local/lib/hpux32/libpng14.so -lz -lm ld: Unsatisfied symbol "png_check_sig" in file ./.libs/libgd.a[gd_png.o] 1 errors. collect2: ld returned 1 exit status make[2]: *** [gdparttopng] Error 1 make[2]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34' make: *** [all] Error 2 Please help me, Best regards, Huber Paul Gilt Lopez IGP-Peru -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100708/e240c71c/attachment-0001.html From jma at cola.iges.org Thu Jul 8 12:03:42 2010 From: jma at cola.iges.org (Jennifer Adams) Date: Thu, 8 Jul 2010 12:03:42 -0400 Subject: [gradsusr] moved server: lost shapes In-Reply-To: <4815D38748E8CD4DA972E78502F37962220245828F@EX01.NL.LOCAL> References: <4815D38748E8CD4DA972E78502F379622202458266@EX01.NL.LOCAL> <85EAC738-56F6-4DDA-AAD8-973954CCB973@cola.iges.org> <4815D38748E8CD4DA972E78502F37962220245828F@EX01.NL.LOCAL> Message-ID: Your old version (2.0.a5.oga.5) is opengrads with the extensions, which enable your php class. Your new version (2.0.a8) is the latest COLA version. I can't help you with enabling the opengrads extensions with 2.0.a8. --Jennifer On Jul 8, 2010, at 5:21 AM, Chris Hayes wrote: > > > > > ? >> I use a php class that after each request/command > waited for the response by grads, and this class knew the response > ? >> always ended with . > >> But now it waits for that tag till the cows come home. And > beyond. Indefinitely and forever. > >> What changed ? How to fix it? > > > I think this feature is enabled with the -u option on startup, and > it is in COLA's version of GrADS as a hook for opengrads features. > > --Jennifer > > > Funnily, looking at the source the version came from it might be > Grads our host installed for us, I can hardly see the difference, > can you see a difference in config? > > > On the old server: > Config: v2.0.a5.oga.5 little-endian readline printim grib2 netcdf > hdf4-sds opendap-grids,stn athena geotiff > Grid Analysis and Display System (GrADS) Version 2.0.a5.oga.5 > Copyright (c) 1988-2008 by Brian Doty and the > Institute for Global Environment and Society (IGES) > This program is distributed WITHOUT ANY WARRANTY > See file COPYRIGHT for more information. > > Built Thu May 7 11:02:53 EDT 2009 for i686-pc-linux-gnu > > This version of GrADS has been configured with the following options: > o Built on a LITTLE ENDIAN machine > o Command line editing ENABLED > http://tiswww.case.edu/php/chet/readline/rltop.html > o printim command for image output ENABLED > http://www.zlib.net > http://www.libpng.org/pub/png/libpng.html > http://www.libgd.org/Main_Page > o GRIB2 interface ENABLED > http://www.ijg.org > http://www.ece.uvic.ca/~mdadams/jasper > http://www.nco.ncep.noaa.gov/pmb/codes/GRIB2 > g2clib-1.0.5 > o NetCDF interface ENABLED > http://www.opendap.org > libnc-dap 4.0.1-beta3-snapshot2009021712 of Feb 21 2009 14:55:15 $ > o NCSA HDF interface ENABLED > http://hdf.ncsa.uiuc.edu > HDF4.2r3 > o Athena Widget GUI ENABLED > o OPeNDAP gridded data interface ENABLED > http://www.opendap.org > libdap 3.7.10 > o OPeNDAP station data interface ENABLED > http://iges.org/grads/gadoc/supplibs.html > libgadap 2.0.oga.1 > o GeoTIFF and KML output ENABLED > http://www.libtiff.org > http://geotiff.osgeo.org > > For additional information please consult http://iges.org/grads > > > > On the new serverE: > > Config: v2.0.a8 little-endian readline printim grib2 netcdf hdf4-sds > hdf5 opendap-grids,stn geotiff shapefile > Grid Analysis and Display System (GrADS) Version 2.0.a8 > Copyright (c) 1988-2010 by Brian Doty and the > Institute for Global Environment and Society (IGES) > This program is distributed WITHOUT ANY WARRANTY > See file COPYRIGHT for more information. > > Built Fri Mar 26 10:24:10 EDT 2010 for x86_64-unknown-linux-gnu > > This version of GrADS has been configured with the following options: > o Built on a LITTLE ENDIAN machine > o Athena Widget GUI DISABLED > o Command line editing ENABLED > http://tiswww.case.edu/php/chet/readline/rltop.html > o printim command for image output ENABLED > http://www.zlib.net > http://www.libpng.org/pub/png/libpng.html > http://www.libgd.org/Main_Page > o GRIB2 interface ENABLED > http://www.ijg.org > http://www.ece.uvic.ca/~mdadams/jasper > http://www.nco.ncep.noaa.gov/pmb/codes/GRIB2 > g2clib-1.1.8 > o NetCDF interface ENABLED > http://www.unidata.ucar.edu/software/netcdf > netcdf 4.1.1-rc2 of Mar 23 2010 09:31:58 $ > o OPeNDAP gridded data interface ENABLED > o OPeNDAP station data interface ENABLED > http://iges.org/grads/gadoc/supplibs.html > libgadap 2.0 > o HDF4 and HDF5 interfaces ENABLED > http://hdfgroup.org > HDF 4.2r3 > HDF5 1.8.4 > o GeoTIFF and KML output ENABLED > http://www.libtiff.org > http://geotiff.osgeo.org > o Shapefile interface ENABLED > http://shapelib.maptools.org > > For additional information please consult http://iges.org/grads > > > > > > > I used gradsnc ?u, just like the perl interface does, but now with > version 2.0.a8 there is only the grads executable. > > I found http://opengrads.org/doc/udxt/libipc/libipc.html which > specifies ipc_verb but that command is not recognized. > > > > > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr -- Jennifer M. Adams IGES/COLA 4041 Powder Mill Road, Suite 302 Calverton, MD 20705 jma at cola.iges.org -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100708/9cb29840/attachment-0001.html From huber.gilt at igp.gob.pe Thu Jul 8 15:19:01 2010 From: huber.gilt at igp.gob.pe (=?iso-8859-1?Q?Huber_Pa=FAl_Gilt_L=F3pez?=) Date: Thu, 8 Jul 2010 14:19:01 -0500 Subject: [gradsusr] error compiling gd library In-Reply-To: Message-ID: <201007081926.o68JQ2C9025707@geo.igp.gob.pe> Hello John, Thanks you for your help, I?ve compiled libgb.a library and also jasper, g2clib, and szip, but I can?t compiled udunits library. I get the following error: cc -o udunits -O udunits.o -R/data/hoop/udunits-1.11.7/src/lib -L/data/hoop/udunits-1.11.7/src/lib -ludunits -R/data/hoop/udunits-1.11.7/src/port/misc -L/data/hoop/udunits-1.11.7/src/port/misc -ludport -ly -lm (Bundled) cc: warning 922: "-O" is unsupported in the bundled compiler, ignored. (Bundled) cc: warning 901: unknown option: `-R/data/hoop/udunits-1.11.7/src/lib': use +help for online documentation. (Bundled) cc: warning 901: unknown option: `-R/data/hoop/udunits-1.11.7/src/port/misc': use +help for online documentation. ld: Can't find library for -ludunits Fatal error. make[2]: *** [udunits] Error 1 make[2]: Leaving directory `/home/huber/grads/supplibs/src/udunits-1.11.7/src/udunits' make[1]: *** [program] Error 2 make[1]: Leaving directory `/home/huber/grads/supplibs/src/udunits-1.11.7/src/udunits' make: *** [udunits/all] Error 1 But I saw that I have the libunits.a library, but I think it isn?t complete because it?s so small. How can I resolve this error? # ls lib/libudunits.a lib/libudunits.a # du -sk lib/libudunits.a 144 lib/libudunits.a Please help me, Best regards, Huber _____ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: jueves, 08 de julio de 2010 9:54 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber, The /usr/local/lib/libpng.la controls which PNG library is used. It seems as if someone else built and installed version 14 under /usr/local. Unless you have sudo privlileges you are going to have to work around that implementation. This is going to sound funny..but; if you have already built the GD library file that?s all you need to continue building. In my case, the path is /home/dasilva/src/supplibs-2.1.0/i686-pc-linux/lib/libgd.a In your case copy the libgd.a to your $(SUPPLIBS)/lib directory and copy the include files gd.h gdfx.h gd_io.h gdcache.h gdfontg.h gdfontl.h gdfontmb.h gdfonts.h gdfontt.h entities.h to your ${SUPPLIBS}/include directory. Next, go on to build jasper, g2clib, szlib, etc. John John Huddleston, PhD Cooperative Institute for Research in the Atmosphere From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez Sent: Wednesday, July 07, 2010 9:42 AM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library Hi John, Don?t worry about the difficulty that I?m having, I can?t figure how you build in or with Cygwin, I suppose it is a heavy work. Any way, I don?t found any reference with libpng14 in the libgb?s Makefile , but I found the following lines that I think it would be not setup for the libpng12. How can I setup this Makefile in order to use the libpng12 library, and so try to compile the gb library? (I?m attaching the libgb?s Makefile) LIBPNG12_CONFIG = LIBPNG_CONFIG = /usr/local/bin/libpng-config Please help me, Best regards, Huber _____ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: martes, 06 de julio de 2010 14:30 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber, so sorry you are having so much difficulty. You should see the work I have for the Cygwin build! Look at your gcc line and you will see the path /usr/local/lib/hpux32/libpng14.so Edit the Makefile, search for libpng14, edit that line and replace it with the path to your libpng12 file. John John Huddleston, PhD Cooperative Institute for Research in the Atmosphere From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez Sent: Tuesday, July 06, 2010 1:13 PM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library Hello John, I start to compile all the supplemental libraries; I compiled readline, ncurses, zlib, libpng and jpeg libraries, but I cant compile gd library. Because I have the following error: gcc -g -O2 -o gdparttopng gdparttopng.o -L/usr/local/lib/hpux32 -L/usr/lib/X11R4 -L/home/huber/grads/supplibs/src/jpeg-6b/lib ./.libs/libgd.a -L/usr/contrib/X11R6/lib /usr/local/lib/hpux32/libXpm.so /usr/local/lib/hpux32/libintl.so -lX11 /usr/local/lib/hpux32/libjpeg.so /usr/local/lib/hpux32/libfontconfig.so /usr/local/lib/hpux32/libiconv.so /usr/local/lib/hpux32/libexpat.so /usr/local/lib/hpux32/libfreetype.so /usr/local/lib/hpux32/libpng14.so -lz -lm ld: Unsatisfied symbol "gdImageCreateFromGd2Part" in file gdparttopng.o ld: Unsatisfied symbol "png_check_sig" in file ./.libs/libgd.a[gd_png.o] 2 errors. collect2: ld returned 1 exit status make[2]: *** [gdparttopng] Error 1 make[2]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34' make: *** [all] Error 2 Who can I setup the correct path for the libpng1.2 library, because I follow the instructions in the PDF, and I executed the following commands: cd gd-2.0.34 ./configure --disable-shared \ --with-png=$HOME/supplibs/src/libpng-1.2.18 \ --with-jpeg=$HOME/supplibs/src/jpeg-6b \ --prefix=$HOME/supplibs/src/gd-2.0.34 make Please help me, Best regards, Huber _____ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: viernes, 02 de julio de 2010 12:20 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber, Did you remove the libpng directory, untar libpng again, configure again with the options specified in Building_GrADS.pdf, and make the system? Ditto for the GD build. You must follow the order of the build as shown in the PDF file. John Huddleston, PhD, PE _____ From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez [huber.gilt at igp.gob.pe] Sent: Friday, July 02, 2010 11:06 AM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library Hello John, I?ve done your instructions and also I compiled the zlib-1.2.3 library and I have the library libz.a, in supplibs/lib. And I have the same problem in libpng-1.2-18 compilation. What is going on with libpng library if I have the libz.a library in the folder supplibs/lib? (In the end I list the compiled libraries) Please help me, Best regards. Huber Paul Gilt L?pez # pwd /home/huber/grads/supplibs/lib # ls libcurl.a libhdf5_hl.a libncurses.a libreadline.a libxdr.a libdf.a libjpeg.a libnetcdf.a libsz.a libz.a libhdf5.a libmfhdf.a libpng12.a libudunits.a _____ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: viernes, 02 de julio de 2010 9:30 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber, On June 15th I sent you a PDF on how to build GrADS, please look it over, libpng doesn't build because you do not have the zlib. Get zlib from ftp://grads.iges.org/grads/Supplibs/2.0/src/zlib-1.2.3.tar.gz tar xvfz ./tarfiles/zlib-1.2.3.tar.gz cd zlib-1.2.3/ ./configure --prefix=$HOME/supplibs/src/zlib-1.2.3 make make install cp ./lib/libz.a $HOME/supplibs/lib mkdir $HOME/supplibs/include/zlib cp ./include/zlib.h $HOME/supplibs/include/zlib John _____ From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez [huber.gilt at igp.gob.pe] Sent: Friday, July 02, 2010 8:17 AM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library John, Because I found this error when I configure PNG library 1.2: #cd /home/huber/grads/supplibs/src/libpng-1.2.18 ./configure --disable-shared --prefix=/home/huber/grads/supplibs/src/libpng-1.2.18 checking for pow in -lm... yes checking for zlibVersion in -lz... no configure: error: zlib not installed I?ve exported this variable CC=gcc by this other CC='gcc -L/home/huber/grads/supplibs/lib -lz', then I?ve done make, and make install. Provably the libpng12.a library didn?t build well, how I can fix the previous error when I tried to configure the libpng12 library? Please help me, Best regards, Huber Paul Gilt Lopez _____ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: jueves, 01 de julio de 2010 18:46 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Huber You need the PNG library1.2 not 1.4. Somehow you've installed a more recent version of PNG into /usr/local Go back to the PNG 1.2 build and do a "make install" to load it into /usr/local Otherwise, manually edit the Makefile and change it to point to your $(SUPPLIBS) PNG area. John Huddleston _____ From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez [huber.gilt at igp.gob.pe] Sent: Thursday, July 01, 2010 4:15 PM To: 'GrADS Users Forum' Subject: [gradsusr] error compiling gd library Hello, I want to compile the gd library, i used this command, but I have an unsatisfied symbol. How can I include these missing symbol? #cd /home/huber/grads/supplibs/src/gd-2.0.34 #./configure --disable-shared\ --with-png=/home/huber/grads/supplibs/src/libpng-1.2.18\ --with-jpeg=/home/huber/grads/supplibs/src/jpeg-6b\ --prefix=/home/huber/grads/supplibs/src/gd-2.0.34 #make gcc -g -O2 -o gdparttopng gdparttopng.o -L/home/huber/grads/supplibs/lib -L/usr/local/lib/hpux32 -L/usr/lib/X11R4 -L/home/huber/grads/supplibs/src/jpeg-6b/lib ./.libs/libgd.a -L/usr/contrib/X11R6/lib /usr/local/lib/hpux32/libXpm.so /usr/local/lib/hpux32/libintl.so -lX11 -ljpeg /usr/local/lib/hpux32/libfontconfig.so /usr/local/lib/hpux32/libiconv.so /usr/local/lib/hpux32/libexpat.so /usr/local/lib/hpux32/libfreetype.so /usr/local/lib/hpux32/libpng14.so -lz -lm ld: Unsatisfied symbol "png_check_sig" in file ./.libs/libgd.a[gd_png.o] 1 errors. collect2: ld returned 1 exit status make[2]: *** [gdparttopng] Error 1 make[2]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34' make: *** [all] Error 2 Please help me, Best regards, Huber Paul Gilt Lopez IGP-Peru -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100708/cf433a8a/attachment-0001.html From Huddleston at cira.colostate.edu Thu Jul 8 15:55:03 2010 From: Huddleston at cira.colostate.edu (Huddleston, John) Date: Thu, 8 Jul 2010 12:55:03 -0700 Subject: [gradsusr] error compiling gd library In-Reply-To: <201007081926.o68JQ2C9025707@geo.igp.gob.pe> References: <201007081926.o68JQ2C9025707@geo.igp.gob.pe> Message-ID: Hi Huber, it is a small file, Do a 'ar tv libudunits.a', you should see something like rw-r--r-- 1000/1000 16568 Jul 27 10:02 2009 utlib.o rw-r--r-- 1000/1000 7524 Jul 27 10:02 2009 utparse.o rw-r--r-- 1000/1000 14272 Jul 27 10:02 2009 utscan.o rw-r--r-- 1000/1000 1136 Jul 27 10:02 2009 udalloc.o If you have all four then you're good to go. Copy it to ${SUPPLIBS}/lib, copy etc/udunits.dat to ${SUPPLIBS}/etc You are getting an error on creating udunits executable. If the four objects are not in the libudunits.a file, cd into the lib directory, and try compiling by hand: cc -c -O -I../port/misc -I../port/cfortran -DUT_DEFAULT_PATH='"${SUPPLIBS}/etc/udunits.dat"' *.c then type 'make' and it should update the libudunits.a file. Go to the ../udunits directory and edit the Makefile to remove the -R option arguments, exit the editor, and type make, or manually cc -o udunits -O udunits.o -L ../lib -ludunits -lm -L ../port/misc -ludport -lm John John Huddleston, PhD Cooperative Institute for Research in the Atmosphere From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez Sent: Thursday, July 08, 2010 1:19 PM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library Hello John, Thanks you for your help, I've compiled libgb.a library and also jasper, g2clib, and szip, but I can't compiled udunits library. I get the following error: cc -o udunits -O udunits.o -R/data/hoop/udunits-1.11.7/src/lib -L/data/hoop/udunits-1.11.7/src/lib -ludunits -R/data/hoop/udunits-1.11.7/src/port/misc -L/data/hoop/udunits-1.11.7/src/port/misc -ludport -ly -lm (Bundled) cc: warning 922: "-O" is unsupported in the bundled compiler, ignored. (Bundled) cc: warning 901: unknown option: `-R/data/hoop/udunits-1.11.7/src/lib': use +help for online documentation. (Bundled) cc: warning 901: unknown option: `-R/data/hoop/udunits-1.11.7/src/port/misc': use +help for online documentation. ld: Can't find library for -ludunits Fatal error. make[2]: *** [udunits] Error 1 make[2]: Leaving directory `/home/huber/grads/supplibs/src/udunits-1.11.7/src/udunits' make[1]: *** [program] Error 2 make[1]: Leaving directory `/home/huber/grads/supplibs/src/udunits-1.11.7/src/udunits' make: *** [udunits/all] Error 1 But I saw that I have the libunits.a library, but I think it isn't complete because it's so small. How can I resolve this error? # ls lib/libudunits.a lib/libudunits.a # du -sk lib/libudunits.a 144 lib/libudunits.a Please help me, Best regards, Huber ________________________________ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: jueves, 08 de julio de 2010 9:54 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber, The /usr/local/lib/libpng.la controls which PNG library is used. It seems as if someone else built and installed version 14 under /usr/local. Unless you have sudo privlileges you are going to have to work around that implementation. This is going to sound funny..but; if you have already built the GD library file that's all you need to continue building. In my case, the path is /home/dasilva/src/supplibs-2.1.0/i686-pc-linux/lib/libgd.a In your case copy the libgd.a to your $(SUPPLIBS)/lib directory and copy the include files gd.h gdfx.h gd_io.h gdcache.h gdfontg.h gdfontl.h gdfontmb.h gdfonts.h gdfontt.h entities.h to your ${SUPPLIBS}/include directory. Next, go on to build jasper, g2clib, szlib, etc. John John Huddleston, PhD Cooperative Institute for Research in the Atmosphere From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez Sent: Wednesday, July 07, 2010 9:42 AM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library Hi John, Don't worry about the difficulty that I'm having, I can't figure how you build in or with Cygwin, I suppose it is a heavy work. Any way, I don't found any reference with libpng14 in the libgb's Makefile , but I found the following lines that I think it would be not setup for the libpng12. How can I setup this Makefile in order to use the libpng12 library, and so try to compile the gb library? (I'm attaching the libgb's Makefile) LIBPNG12_CONFIG = LIBPNG_CONFIG = /usr/local/bin/libpng-config Please help me, Best regards, Huber ________________________________ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: martes, 06 de julio de 2010 14:30 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber, so sorry you are having so much difficulty. You should see the work I have for the Cygwin build! Look at your gcc line and you will see the path /usr/local/lib/hpux32/libpng14.so Edit the Makefile, search for libpng14, edit that line and replace it with the path to your libpng12 file. John John Huddleston, PhD Cooperative Institute for Research in the Atmosphere From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez Sent: Tuesday, July 06, 2010 1:13 PM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library Hello John, I start to compile all the supplemental libraries; I compiled readline, ncurses, zlib, libpng and jpeg libraries, but I cant compile gd library. Because I have the following error: gcc -g -O2 -o gdparttopng gdparttopng.o -L/usr/local/lib/hpux32 -L/usr/lib/X11R4 -L/home/huber/grads/supplibs/src/jpeg-6b/lib ./.libs/libgd.a -L/usr/contrib/X11R6/lib /usr/local/lib/hpux32/libXpm.so /usr/local/lib/hpux32/libintl.so -lX11 /usr/local/lib/hpux32/libjpeg.so /usr/local/lib/hpux32/libfontconfig.so /usr/local/lib/hpux32/libiconv.so /usr/local/lib/hpux32/libexpat.so /usr/local/lib/hpux32/libfreetype.so /usr/local/lib/hpux32/libpng14.so -lz -lm ld: Unsatisfied symbol "gdImageCreateFromGd2Part" in file gdparttopng.o ld: Unsatisfied symbol "png_check_sig" in file ./.libs/libgd.a[gd_png.o] 2 errors. collect2: ld returned 1 exit status make[2]: *** [gdparttopng] Error 1 make[2]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34' make: *** [all] Error 2 Who can I setup the correct path for the libpng1.2 library, because I follow the instructions in the PDF, and I executed the following commands: cd gd-2.0.34 ./configure --disable-shared \ --with-png=$HOME/supplibs/src/libpng-1.2.18 \ --with-jpeg=$HOME/supplibs/src/jpeg-6b \ --prefix=$HOME/supplibs/src/gd-2.0.34 make Please help me, Best regards, Huber ________________________________ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: viernes, 02 de julio de 2010 12:20 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber, Did you remove the libpng directory, untar libpng again, configure again with the options specified in Building_GrADS.pdf, and make the system? Ditto for the GD build. You must follow the order of the build as shown in the PDF file. John Huddleston, PhD, PE ________________________________ From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez [huber.gilt at igp.gob.pe] Sent: Friday, July 02, 2010 11:06 AM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library Hello John, I've done your instructions and also I compiled the zlib-1.2.3 library and I have the library libz.a, in supplibs/lib. And I have the same problem in libpng-1.2-18 compilation. What is going on with libpng library if I have the libz.a library in the folder supplibs/lib? (In the end I list the compiled libraries) Please help me, Best regards. Huber Paul Gilt L?pez # pwd /home/huber/grads/supplibs/lib # ls libcurl.a libhdf5_hl.a libncurses.a libreadline.a libxdr.a libdf.a libjpeg.a libnetcdf.a libsz.a libz.a libhdf5.a libmfhdf.a libpng12.a libudunits.a ________________________________ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: viernes, 02 de julio de 2010 9:30 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber, On June 15th I sent you a PDF on how to build GrADS, please look it over, libpng doesn't build because you do not have the zlib. Get zlib from ftp://grads.iges.org/grads/Supplibs/2.0/src/zlib-1.2.3.tar.gz tar xvfz ./tarfiles/zlib-1.2.3.tar.gz cd zlib-1.2.3/ ./configure --prefix=$HOME/supplibs/src/zlib-1.2.3 make make install cp ./lib/libz.a $HOME/supplibs/lib mkdir $HOME/supplibs/include/zlib cp ./include/zlib.h $HOME/supplibs/include/zlib John ________________________________ From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez [huber.gilt at igp.gob.pe] Sent: Friday, July 02, 2010 8:17 AM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library John, Because I found this error when I configure PNG library 1.2: #cd /home/huber/grads/supplibs/src/libpng-1.2.18 ./configure --disable-shared --prefix=/home/huber/grads/supplibs/src/libpng-1.2.18 ... checking for pow in -lm... yes checking for zlibVersion in -lz... no configure: error: zlib not installed I've exported this variable CC=gcc by this other CC='gcc -L/home/huber/grads/supplibs/lib -lz', then I've done make, and make install. Provably the libpng12.a library didn't build well, how I can fix the previous error when I tried to configure the libpng12 library? Please help me, Best regards, Huber Paul Gilt Lopez ________________________________ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: jueves, 01 de julio de 2010 18:46 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Huber You need the PNG library1.2 not 1.4. Somehow you've installed a more recent version of PNG into /usr/local Go back to the PNG 1.2 build and do a "make install" to load it into /usr/local Otherwise, manually edit the Makefile and change it to point to your $(SUPPLIBS) PNG area. John Huddleston ________________________________ From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez [huber.gilt at igp.gob.pe] Sent: Thursday, July 01, 2010 4:15 PM To: 'GrADS Users Forum' Subject: [gradsusr] error compiling gd library Hello, I want to compile the gd library, i used this command, but I have an unsatisfied symbol. How can I include these missing symbol? #cd /home/huber/grads/supplibs/src/gd-2.0.34 #./configure --disable-shared\ --with-png=/home/huber/grads/supplibs/src/libpng-1.2.18\ --with-jpeg=/home/huber/grads/supplibs/src/jpeg-6b\ --prefix=/home/huber/grads/supplibs/src/gd-2.0.34 #make ... gcc -g -O2 -o gdparttopng gdparttopng.o -L/home/huber/grads/supplibs/lib -L/usr/local/lib/hpux32 -L/usr/lib/X11R4 -L/home/huber/grads/supplibs/src/jpeg-6b/lib ./.libs/libgd.a -L/usr/contrib/X11R6/lib /usr/local/lib/hpux32/libXpm.so /usr/local/lib/hpux32/libintl.so -lX11 -ljpeg /usr/local/lib/hpux32/libfontconfig.so /usr/local/lib/hpux32/libiconv.so /usr/local/lib/hpux32/libexpat.so /usr/local/lib/hpux32/libfreetype.so /usr/local/lib/hpux32/libpng14.so -lz -lm ld: Unsatisfied symbol "png_check_sig" in file ./.libs/libgd.a[gd_png.o] 1 errors. collect2: ld returned 1 exit status make[2]: *** [gdparttopng] Error 1 make[2]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34' make: *** [all] Error 2 Please help me, Best regards, Huber Paul Gilt Lopez IGP-Peru -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100708/99011d0a/attachment-0001.html From huber.gilt at igp.gob.pe Thu Jul 8 17:45:17 2010 From: huber.gilt at igp.gob.pe (=?iso-8859-1?Q?Huber_Pa=FAl_Gilt_L=F3pez?=) Date: Thu, 8 Jul 2010 16:45:17 -0500 Subject: [gradsusr] error compiling gd library In-Reply-To: Message-ID: <201007082152.o68LqKsJ029616@geo.igp.gob.pe> Hello John, Do a ?ar tv libudunits.a?, you should see something like rw-r--r-- 1000/1000 16568 Jul 27 10:02 2009 utlib.o rw-r--r-- 1000/1000 7524 Jul 27 10:02 2009 utparse.o rw-r--r-- 1000/1000 14272 Jul 27 10:02 2009 utscan.o rw-r--r-- 1000/1000 1136 Jul 27 10:02 2009 udalloc.o Yes, I do. And I see: # ar -tv libudunits.a rw-r--r-- 0/ 3 74480 Jul 8 15:47 2010 utlib.o rw-r--r-- 0/ 3 18232 Jul 8 15:47 2010 utparse.o rw-r--r-- 0/ 3 45144 Jul 8 15:47 2010 utscan.o rw-r--r-- 0/ 3 5328 Jul 8 15:47 2010 udalloc.o If you have all four then you?re good to go. Yes, I have but I think all four is empty. Copy it to ${SUPPLIBS}/lib, copy etc/udunits.dat to ${SUPPLIBS}/etc I think this is not match. You are getting an error on creating udunits executable. I think this is match. If the four objects are not in the libudunits.a file, cd into the lib directory, and try compiling by hand: cc -c -O -I../port/misc -I../port/cfortran -DUT_DEFAULT_PATH='"${SUPPLIBS}/etc/udunits.dat"' *.c I tried, but I think this is not complete well. #cc -c -O -I../port/misc -I../port/cfortran -DUT_DEFAULT_PATH='"${SUPPLIBS}/etc/udunits.dat"' *.c (Bundled) cc: warning 922: "-O" is unsupported in the bundled compiler, ignored. udalloc.c: utlib-1.11.7.nof77intfc.c: "utlib-1.11.7.nof77intfc.c", line 1488: warning #2177-D: function "CopyCtorNode" was declared but never referenced CopyCtorNode(node) ^ "utlib-1.11.7.nof77intfc.c", line 1520: warning #2177-D: function "AssignNode" was declared but never referenced AssignNode(to, from) ^ utlib.c: "utlib.c", line 1488: warning #2177-D: function "CopyCtorNode" was declared but never referenced CopyCtorNode(node) ^ "utlib.c", line 1520: warning #2177-D: function "AssignNode" was declared but never referenced AssignNode(to, from) ^ utparse.c: "utparse.y", line 386: warning #2175-D: subscript out of range yypv = &yyv[-1]; ^ "utparse.y", line 387: warning #2175-D: subscript out of range yyps = &yys[-1]; ^ "utparse.y", line 405: warning #2177-D: label "yynewstate" was declared but never referenced yynewstate: ^ utscan.c: then type ?make? and it should update the libudunits.a file. I done, but I think libudunits.a library is still too small. # make ar rcuv libudunits.a utlib.o utparse.o utscan.o udalloc.o r - utlib.o r - utparse.o r - utscan.o r - udalloc.o case "" in \ '') ;; \ *) ar rucv libudunits.a ;; \ esac ranlib libudunits.a # du -sk libudunits.a 144 libudunits.a Go to the ../udunits directory and edit the Makefile to remove the ?R option arguments, exit the editor, and type make, or manually cc -o udunits -O udunits.o ?L../lib -ludunits -lm ?L../port/misc -ludport -lm I did the manually form, then I type these commands but I have the same problem. # cd ../udunits # cc -o udunits -O udunits.o ?L../lib -ludunits -lm ?L../port/misc -ludport -lm cc -c -O -I../lib -I../port/misc udunits.c (Bundled) cc: warning 922: "-O" is unsupported in the bundled compiler, ignored. cc -o udunits -O udunits.o -R/data/hoop/udunits-1.11.7/src/lib -L/data/hoop/udunits-1.11.7/src/lib -ludunits -R/data/hoop/udunits-1.11.7/src/port/misc -L/data/hoop/udunits-1.11.7/src/port/misc -ludport -ly -lm (Bundled) cc: warning 922: "-O" is unsupported in the bundled compiler, ignored. (Bundled) cc: warning 901: unknown option: `-R/data/hoop/udunits-1.11.7/src/lib': use +help for online documentation. (Bundled) cc: warning 901: unknown option: `-R/data/hoop/udunits-1.11.7/src/port/misc': use +help for online documentation. ld: Can't find library for -ludunits Fatal error. make[1]: *** [udunits] Error 1 make[1]: Leaving directory `/home/huber/grads/supplibs/src/udunits-1.11.7/src/udunits' make: *** [program] Error 2 And also I remove ?R option arguments. Then make output were: make[1]: Entering directory `/home/huber/grads/supplibs/src/udunits-1.11.7/src/udunits' cc -o udunits -O udunits.o -ly -lm (Bundled) cc: warning 922: "-O" is unsupported in the bundled compiler, ignored. ld: Unsatisfied symbol "utIsTime" in file udunits.o ld: Unsatisfied symbol "utInit" in file udunits.o ld: Unsatisfied symbol "utCalendar" in file udunits.o ld: Unsatisfied symbol "utScan" in file udunits.o ld: Unsatisfied symbol "utTerm" in file udunits.o ld: Unsatisfied symbol "utConvert" in file udunits.o ld: (Warning) Unsatisfied symbol "yyparse" in file /usr/lib/hpux32/liby.so ld: Unsatisfied symbol "utPrint" in file udunits.o 1 warnings. 7 errors. make[1]: *** [udunits] Error 1 make[1]: Leaving directory `/home/huber/grads/supplibs/src/udunits-1.11.7/src/udunits' make: *** [program] Error 2 If it possible to have the equivalent commands with gcc compiler, the libudunits.a is still too small I don?t know what is going on with compilation with libudunits library, do you have extra information or tips about the process of compilation in gcc o cc? Thanks you, Very much Huber _____ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: jueves, 08 de julio de 2010 14:55 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber, it is a small file, Do a ?ar tv libudunits.a?, you should see something like rw-r--r-- 1000/1000 16568 Jul 27 10:02 2009 utlib.o rw-r--r-- 1000/1000 7524 Jul 27 10:02 2009 utparse.o rw-r--r-- 1000/1000 14272 Jul 27 10:02 2009 utscan.o rw-r--r-- 1000/1000 1136 Jul 27 10:02 2009 udalloc.o If you have all four then you?re good to go. Copy it to ${SUPPLIBS}/lib, copy etc/udunits.dat to ${SUPPLIBS}/etc You are getting an error on creating udunits executable. If the four objects are not in the libudunits.a file, cd into the lib directory, and try compiling by hand: cc -c -O -I../port/misc -I../port/cfortran -DUT_DEFAULT_PATH='"${SUPPLIBS}/etc/udunits.dat"' *.c then type ?make? and it should update the libudunits.a file. Go to the ../udunits directory and edit the Makefile to remove the ?R option arguments, exit the editor, and type make, or manually cc -o udunits -O udunits.o ?L ../lib -ludunits -lm ?L ../port/misc -ludport -lm John John Huddleston, PhD Cooperative Institute for Research in the Atmosphere From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez Sent: Thursday, July 08, 2010 1:19 PM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library Hello John, Thanks you for your help, I?ve compiled libgb.a library and also jasper, g2clib, and szip, but I can?t compiled udunits library. I get the following error: cc -o udunits -O udunits.o -R/data/hoop/udunits-1.11.7/src/lib -L/data/hoop/udunits-1.11.7/src/lib -ludunits -R/data/hoop/udunits-1.11.7/src/port/misc -L/data/hoop/udunits-1.11.7/src/port/misc -ludport -ly -lm (Bundled) cc: warning 922: "-O" is unsupported in the bundled compiler, ignored. (Bundled) cc: warning 901: unknown option: `-R/data/hoop/udunits-1.11.7/src/lib': use +help for online documentation. (Bundled) cc: warning 901: unknown option: `-R/data/hoop/udunits-1.11.7/src/port/misc': use +help for online documentation. ld: Can't find library for -ludunits Fatal error. make[2]: *** [udunits] Error 1 make[2]: Leaving directory `/home/huber/grads/supplibs/src/udunits-1.11.7/src/udunits' make[1]: *** [program] Error 2 make[1]: Leaving directory `/home/huber/grads/supplibs/src/udunits-1.11.7/src/udunits' make: *** [udunits/all] Error 1 But I saw that I have the libunits.a library, but I think it isn?t complete because it?s so small. How can I resolve this error? # ls lib/libudunits.a lib/libudunits.a # du -sk lib/libudunits.a 144 lib/libudunits.a Please help me, Best regards, Huber _____ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: jueves, 08 de julio de 2010 9:54 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber, The /usr/local/lib/libpng.la controls which PNG library is used. It seems as if someone else built and installed version 14 under /usr/local. Unless you have sudo privlileges you are going to have to work around that implementation. This is going to sound funny..but; if you have already built the GD library file that?s all you need to continue building. In my case, the path is /home/dasilva/src/supplibs-2.1.0/i686-pc-linux/lib/libgd.a In your case copy the libgd.a to your $(SUPPLIBS)/lib directory and copy the include files gd.h gdfx.h gd_io.h gdcache.h gdfontg.h gdfontl.h gdfontmb.h gdfonts.h gdfontt.h entities.h to your ${SUPPLIBS}/include directory. Next, go on to build jasper, g2clib, szlib, etc. John John Huddleston, PhD Cooperative Institute for Research in the Atmosphere From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez Sent: Wednesday, July 07, 2010 9:42 AM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library Hi John, Don?t worry about the difficulty that I?m having, I can?t figure how you build in or with Cygwin, I suppose it is a heavy work. Any way, I don?t found any reference with libpng14 in the libgb?s Makefile , but I found the following lines that I think it would be not setup for the libpng12. How can I setup this Makefile in order to use the libpng12 library, and so try to compile the gb library? (I?m attaching the libgb?s Makefile) LIBPNG12_CONFIG = LIBPNG_CONFIG = /usr/local/bin/libpng-config Please help me, Best regards, Huber _____ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: martes, 06 de julio de 2010 14:30 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber, so sorry you are having so much difficulty. You should see the work I have for the Cygwin build! Look at your gcc line and you will see the path /usr/local/lib/hpux32/libpng14.so Edit the Makefile, search for libpng14, edit that line and replace it with the path to your libpng12 file. John John Huddleston, PhD Cooperative Institute for Research in the Atmosphere From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez Sent: Tuesday, July 06, 2010 1:13 PM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library Hello John, I start to compile all the supplemental libraries; I compiled readline, ncurses, zlib, libpng and jpeg libraries, but I cant compile gd library. Because I have the following error: gcc -g -O2 -o gdparttopng gdparttopng.o -L/usr/local/lib/hpux32 -L/usr/lib/X11R4 -L/home/huber/grads/supplibs/src/jpeg-6b/lib ./.libs/libgd.a -L/usr/contrib/X11R6/lib /usr/local/lib/hpux32/libXpm.so /usr/local/lib/hpux32/libintl.so -lX11 /usr/local/lib/hpux32/libjpeg.so /usr/local/lib/hpux32/libfontconfig.so /usr/local/lib/hpux32/libiconv.so /usr/local/lib/hpux32/libexpat.so /usr/local/lib/hpux32/libfreetype.so /usr/local/lib/hpux32/libpng14.so -lz -lm ld: Unsatisfied symbol "gdImageCreateFromGd2Part" in file gdparttopng.o ld: Unsatisfied symbol "png_check_sig" in file ./.libs/libgd.a[gd_png.o] 2 errors. collect2: ld returned 1 exit status make[2]: *** [gdparttopng] Error 1 make[2]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34' make: *** [all] Error 2 Who can I setup the correct path for the libpng1.2 library, because I follow the instructions in the PDF, and I executed the following commands: cd gd-2.0.34 ./configure --disable-shared \ --with-png=$HOME/supplibs/src/libpng-1.2.18 \ --with-jpeg=$HOME/supplibs/src/jpeg-6b \ --prefix=$HOME/supplibs/src/gd-2.0.34 make Please help me, Best regards, Huber _____ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: viernes, 02 de julio de 2010 12:20 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber, Did you remove the libpng directory, untar libpng again, configure again with the options specified in Building_GrADS.pdf, and make the system? Ditto for the GD build. You must follow the order of the build as shown in the PDF file. John Huddleston, PhD, PE _____ From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez [huber.gilt at igp.gob.pe] Sent: Friday, July 02, 2010 11:06 AM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library Hello John, I?ve done your instructions and also I compiled the zlib-1.2.3 library and I have the library libz.a, in supplibs/lib. And I have the same problem in libpng-1.2-18 compilation. What is going on with libpng library if I have the libz.a library in the folder supplibs/lib? (In the end I list the compiled libraries) Please help me, Best regards. Huber Paul Gilt L?pez # pwd /home/huber/grads/supplibs/lib # ls libcurl.a libhdf5_hl.a libncurses.a libreadline.a libxdr.a libdf.a libjpeg.a libnetcdf.a libsz.a libz.a libhdf5.a libmfhdf.a libpng12.a libudunits.a _____ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: viernes, 02 de julio de 2010 9:30 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber, On June 15th I sent you a PDF on how to build GrADS, please look it over, libpng doesn't build because you do not have the zlib. Get zlib from ftp://grads.iges.org/grads/Supplibs/2.0/src/zlib-1.2.3.tar.gz tar xvfz ./tarfiles/zlib-1.2.3.tar.gz cd zlib-1.2.3/ ./configure --prefix=$HOME/supplibs/src/zlib-1.2.3 make make install cp ./lib/libz.a $HOME/supplibs/lib mkdir $HOME/supplibs/include/zlib cp ./include/zlib.h $HOME/supplibs/include/zlib John _____ From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez [huber.gilt at igp.gob.pe] Sent: Friday, July 02, 2010 8:17 AM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library John, Because I found this error when I configure PNG library 1.2: #cd /home/huber/grads/supplibs/src/libpng-1.2.18 ./configure --disable-shared --prefix=/home/huber/grads/supplibs/src/libpng-1.2.18 checking for pow in -lm... yes checking for zlibVersion in -lz... no configure: error: zlib not installed I?ve exported this variable CC=gcc by this other CC='gcc -L/home/huber/grads/supplibs/lib -lz', then I?ve done make, and make install. Provably the libpng12.a library didn?t build well, how I can fix the previous error when I tried to configure the libpng12 library? Please help me, Best regards, Huber Paul Gilt Lopez _____ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: jueves, 01 de julio de 2010 18:46 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Huber You need the PNG library1.2 not 1.4. Somehow you've installed a more recent version of PNG into /usr/local Go back to the PNG 1.2 build and do a "make install" to load it into /usr/local Otherwise, manually edit the Makefile and change it to point to your $(SUPPLIBS) PNG area. John Huddleston _____ From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez [huber.gilt at igp.gob.pe] Sent: Thursday, July 01, 2010 4:15 PM To: 'GrADS Users Forum' Subject: [gradsusr] error compiling gd library Hello, I want to compile the gd library, i used this command, but I have an unsatisfied symbol. How can I include these missing symbol? #cd /home/huber/grads/supplibs/src/gd-2.0.34 #./configure --disable-shared\ --with-png=/home/huber/grads/supplibs/src/libpng-1.2.18\ --with-jpeg=/home/huber/grads/supplibs/src/jpeg-6b\ --prefix=/home/huber/grads/supplibs/src/gd-2.0.34 #make gcc -g -O2 -o gdparttopng gdparttopng.o -L/home/huber/grads/supplibs/lib -L/usr/local/lib/hpux32 -L/usr/lib/X11R4 -L/home/huber/grads/supplibs/src/jpeg-6b/lib ./.libs/libgd.a -L/usr/contrib/X11R6/lib /usr/local/lib/hpux32/libXpm.so /usr/local/lib/hpux32/libintl.so -lX11 -ljpeg /usr/local/lib/hpux32/libfontconfig.so /usr/local/lib/hpux32/libiconv.so /usr/local/lib/hpux32/libexpat.so /usr/local/lib/hpux32/libfreetype.so /usr/local/lib/hpux32/libpng14.so -lz -lm ld: Unsatisfied symbol "png_check_sig" in file ./.libs/libgd.a[gd_png.o] 1 errors. collect2: ld returned 1 exit status make[2]: *** [gdparttopng] Error 1 make[2]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34' make: *** [all] Error 2 Please help me, Best regards, Huber Paul Gilt Lopez IGP-Peru -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100708/7e41302b/attachment-0001.html From Huddleston at cira.colostate.edu Thu Jul 8 20:20:31 2010 From: Huddleston at cira.colostate.edu (Huddleston, John) Date: Thu, 8 Jul 2010 17:20:31 -0700 Subject: [gradsusr] error compiling gd library In-Reply-To: <201007082152.o68LqKsJ029616@geo.igp.gob.pe> References: , <201007082152.o68LqKsJ029616@geo.igp.gob.pe> Message-ID: Huber, The archive library libunits.a is not empty. It is fine. Copy it to the ${SUPPLIBS}/lib area and move on. BTW, if you have the gcc compiler on your system, then 'export CC=gcc' and start over. e.g. 'gcc --version' send me the results ... John ________________________________ From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez [huber.gilt at igp.gob.pe] Sent: Thursday, July 08, 2010 3:45 PM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library Hello John, Do a ?ar tv libudunits.a?, you should see something like rw-r--r-- 1000/1000 16568 Jul 27 10:02 2009 utlib.o rw-r--r-- 1000/1000 7524 Jul 27 10:02 2009 utparse.o rw-r--r-- 1000/1000 14272 Jul 27 10:02 2009 utscan.o rw-r--r-- 1000/1000 1136 Jul 27 10:02 2009 udalloc.o Yes, I do. And I see: # ar -tv libudunits.a rw-r--r-- 0/ 3 74480 Jul 8 15:47 2010 utlib.o rw-r--r-- 0/ 3 18232 Jul 8 15:47 2010 utparse.o rw-r--r-- 0/ 3 45144 Jul 8 15:47 2010 utscan.o rw-r--r-- 0/ 3 5328 Jul 8 15:47 2010 udalloc.o If you have all four then you?re good to go. Yes, I have but I think all four is empty. Copy it to ${SUPPLIBS}/lib, copy etc/udunits.dat to ${SUPPLIBS}/etc I think this is not match. You are getting an error on creating udunits executable. I think this is match. If the four objects are not in the libudunits.a file, cd into the lib directory, and try compiling by hand: cc -c -O -I../port/misc -I../port/cfortran -DUT_DEFAULT_PATH='"${SUPPLIBS}/etc/udunits.dat"' *.c I tried, but I think this is not complete well. #cc -c -O -I../port/misc -I../port/cfortran -DUT_DEFAULT_PATH='"${SUPPLIBS}/etc/udunits.dat"' *.c (Bundled) cc: warning 922: "-O" is unsupported in the bundled compiler, ignored. udalloc.c: utlib-1.11.7.nof77intfc.c: "utlib-1.11.7.nof77intfc.c", line 1488: warning #2177-D: function "CopyCtorNode" was declared but never referenced CopyCtorNode(node) ^ "utlib-1.11.7.nof77intfc.c", line 1520: warning #2177-D: function "AssignNode" was declared but never referenced AssignNode(to, from) ^ utlib.c: "utlib.c", line 1488: warning #2177-D: function "CopyCtorNode" was declared but never referenced CopyCtorNode(node) ^ "utlib.c", line 1520: warning #2177-D: function "AssignNode" was declared but never referenced AssignNode(to, from) ^ utparse.c: "utparse.y", line 386: warning #2175-D: subscript out of range yypv = &yyv[-1]; ^ "utparse.y", line 387: warning #2175-D: subscript out of range yyps = &yys[-1]; ^ "utparse.y", line 405: warning #2177-D: label "yynewstate" was declared but never referenced yynewstate: ^ utscan.c: then type ?make? and it should update the libudunits.a file. I done, but I think libudunits.a library is still too small. # make ar rcuv libudunits.a utlib.o utparse.o utscan.o udalloc.o r - utlib.o r - utparse.o r - utscan.o r - udalloc.o case "" in \ '') ;; \ *) ar rucv libudunits.a ;; \ esac ranlib libudunits.a # du -sk libudunits.a 144 libudunits.a Go to the ../udunits directory and edit the Makefile to remove the ?R option arguments, exit the editor, and type make, or manually cc -o udunits -O udunits.o ?L../lib -ludunits -lm ?L../port/misc -ludport -lm I did the manually form, then I type these commands but I have the same problem. # cd ../udunits # cc -o udunits -O udunits.o ?L../lib -ludunits -lm ?L../port/misc -ludport -lm cc -c -O -I../lib -I../port/misc udunits.c (Bundled) cc: warning 922: "-O" is unsupported in the bundled compiler, ignored. cc -o udunits -O udunits.o -R/data/hoop/udunits-1.11.7/src/lib -L/data/hoop/udunits-1.11.7/src/lib -ludunits -R/data/hoop/udunits-1.11.7/src/port/misc -L/data/hoop/udunits-1.11.7/src/port/misc -ludport -ly -lm (Bundled) cc: warning 922: "-O" is unsupported in the bundled compiler, ignored. (Bundled) cc: warning 901: unknown option: `-R/data/hoop/udunits-1.11.7/src/lib': use +help for online documentation. (Bundled) cc: warning 901: unknown option: `-R/data/hoop/udunits-1.11.7/src/port/misc': use +help for online documentation. ld: Can't find library for -ludunits Fatal error. make[1]: *** [udunits] Error 1 make[1]: Leaving directory `/home/huber/grads/supplibs/src/udunits-1.11.7/src/udunits' make: *** [program] Error 2 And also I remove ?R option arguments. Then make output were: make[1]: Entering directory `/home/huber/grads/supplibs/src/udunits-1.11.7/src/udunits' cc -o udunits -O udunits.o -ly -lm (Bundled) cc: warning 922: "-O" is unsupported in the bundled compiler, ignored. ld: Unsatisfied symbol "utIsTime" in file udunits.o ld: Unsatisfied symbol "utInit" in file udunits.o ld: Unsatisfied symbol "utCalendar" in file udunits.o ld: Unsatisfied symbol "utScan" in file udunits.o ld: Unsatisfied symbol "utTerm" in file udunits.o ld: Unsatisfied symbol "utConvert" in file udunits.o ld: (Warning) Unsatisfied symbol "yyparse" in file /usr/lib/hpux32/liby.so ld: Unsatisfied symbol "utPrint" in file udunits.o 1 warnings. 7 errors. make[1]: *** [udunits] Error 1 make[1]: Leaving directory `/home/huber/grads/supplibs/src/udunits-1.11.7/src/udunits' make: *** [program] Error 2 If it possible to have the equivalent commands with gcc compiler, the libudunits.a is still too small I don?t know what is going on with compilation with libudunits library, do you have extra information or tips about the process of compilation in gcc o cc? Thanks you, Very much Huber ________________________________ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: jueves, 08 de julio de 2010 14:55 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber, it is a small file, Do a ?ar tv libudunits.a?, you should see something like rw-r--r-- 1000/1000 16568 Jul 27 10:02 2009 utlib.o rw-r--r-- 1000/1000 7524 Jul 27 10:02 2009 utparse.o rw-r--r-- 1000/1000 14272 Jul 27 10:02 2009 utscan.o rw-r--r-- 1000/1000 1136 Jul 27 10:02 2009 udalloc.o If you have all four then you?re good to go. Copy it to ${SUPPLIBS}/lib, copy etc/udunits.dat to ${SUPPLIBS}/etc You are getting an error on creating udunits executable. If the four objects are not in the libudunits.a file, cd into the lib directory, and try compiling by hand: cc -c -O -I../port/misc -I../port/cfortran -DUT_DEFAULT_PATH='"${SUPPLIBS}/etc/udunits.dat"' *.c then type ?make? and it should update the libudunits.a file. Go to the ../udunits directory and edit the Makefile to remove the ?R option arguments, exit the editor, and type make, or manually cc -o udunits -O udunits.o ?L ../lib -ludunits -lm ?L ../port/misc -ludport -lm John John Huddleston, PhD Cooperative Institute for Research in the Atmosphere From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez Sent: Thursday, July 08, 2010 1:19 PM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library Hello John, Thanks you for your help, I?ve compiled libgb.a library and also jasper, g2clib, and szip, but I can?t compiled udunits library. I get the following error: cc -o udunits -O udunits.o -R/data/hoop/udunits-1.11.7/src/lib -L/data/hoop/udunits-1.11.7/src/lib -ludunits -R/data/hoop/udunits-1.11.7/src/port/misc -L/data/hoop/udunits-1.11.7/src/port/misc -ludport -ly -lm (Bundled) cc: warning 922: "-O" is unsupported in the bundled compiler, ignored. (Bundled) cc: warning 901: unknown option: `-R/data/hoop/udunits-1.11.7/src/lib': use +help for online documentation. (Bundled) cc: warning 901: unknown option: `-R/data/hoop/udunits-1.11.7/src/port/misc': use +help for online documentation. ld: Can't find library for -ludunits Fatal error. make[2]: *** [udunits] Error 1 make[2]: Leaving directory `/home/huber/grads/supplibs/src/udunits-1.11.7/src/udunits' make[1]: *** [program] Error 2 make[1]: Leaving directory `/home/huber/grads/supplibs/src/udunits-1.11.7/src/udunits' make: *** [udunits/all] Error 1 But I saw that I have the libunits.a library, but I think it isn?t complete because it?s so small. How can I resolve this error? # ls lib/libudunits.a lib/libudunits.a # du -sk lib/libudunits.a 144 lib/libudunits.a Please help me, Best regards, Huber ________________________________ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: jueves, 08 de julio de 2010 9:54 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber, The /usr/local/lib/libpng.la controls which PNG library is used. It seems as if someone else built and installed version 14 under /usr/local. Unless you have sudo privlileges you are going to have to work around that implementation. This is going to sound funny..but; if you have already built the GD library file that?s all you need to continue building. In my case, the path is /home/dasilva/src/supplibs-2.1.0/i686-pc-linux/lib/libgd.a In your case copy the libgd.a to your $(SUPPLIBS)/lib directory and copy the include files gd.h gdfx.h gd_io.h gdcache.h gdfontg.h gdfontl.h gdfontmb.h gdfonts.h gdfontt.h entities.h to your ${SUPPLIBS}/include directory. Next, go on to build jasper, g2clib, szlib, etc. John John Huddleston, PhD Cooperative Institute for Research in the Atmosphere From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez Sent: Wednesday, July 07, 2010 9:42 AM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library Hi John, Don?t worry about the difficulty that I?m having, I can?t figure how you build in or with Cygwin, I suppose it is a heavy work. Any way, I don?t found any reference with libpng14 in the libgb?s Makefile , but I found the following lines that I think it would be not setup for the libpng12. How can I setup this Makefile in order to use the libpng12 library, and so try to compile the gb library? (I?m attaching the libgb?s Makefile) LIBPNG12_CONFIG = LIBPNG_CONFIG = /usr/local/bin/libpng-config Please help me, Best regards, Huber ________________________________ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: martes, 06 de julio de 2010 14:30 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber, so sorry you are having so much difficulty. You should see the work I have for the Cygwin build! Look at your gcc line and you will see the path /usr/local/lib/hpux32/libpng14.so Edit the Makefile, search for libpng14, edit that line and replace it with the path to your libpng12 file. John John Huddleston, PhD Cooperative Institute for Research in the Atmosphere From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez Sent: Tuesday, July 06, 2010 1:13 PM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library Hello John, I start to compile all the supplemental libraries; I compiled readline, ncurses, zlib, libpng and jpeg libraries, but I cant compile gd library. Because I have the following error: gcc -g -O2 -o gdparttopng gdparttopng.o -L/usr/local/lib/hpux32 -L/usr/lib/X11R4 -L/home/huber/grads/supplibs/src/jpeg-6b/lib ./.libs/libgd.a -L/usr/contrib/X11R6/lib /usr/local/lib/hpux32/libXpm.so /usr/local/lib/hpux32/libintl.so -lX11 /usr/local/lib/hpux32/libjpeg.so /usr/local/lib/hpux32/libfontconfig.so /usr/local/lib/hpux32/libiconv.so /usr/local/lib/hpux32/libexpat.so /usr/local/lib/hpux32/libfreetype.so /usr/local/lib/hpux32/libpng14.so -lz -lm ld: Unsatisfied symbol "gdImageCreateFromGd2Part" in file gdparttopng.o ld: Unsatisfied symbol "png_check_sig" in file ./.libs/libgd.a[gd_png.o] 2 errors. collect2: ld returned 1 exit status make[2]: *** [gdparttopng] Error 1 make[2]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34' make: *** [all] Error 2 Who can I setup the correct path for the libpng1.2 library, because I follow the instructions in the PDF, and I executed the following commands: cd gd-2.0.34 ./configure --disable-shared \ --with-png=$HOME/supplibs/src/libpng-1.2.18 \ --with-jpeg=$HOME/supplibs/src/jpeg-6b \ --prefix=$HOME/supplibs/src/gd-2.0.34 make Please help me, Best regards, Huber ________________________________ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: viernes, 02 de julio de 2010 12:20 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber, Did you remove the libpng directory, untar libpng again, configure again with the options specified in Building_GrADS.pdf, and make the system? Ditto for the GD build. You must follow the order of the build as shown in the PDF file. John Huddleston, PhD, PE ________________________________ From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez [huber.gilt at igp.gob.pe] Sent: Friday, July 02, 2010 11:06 AM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library Hello John, I?ve done your instructions and also I compiled the zlib-1.2.3 library and I have the library libz.a, in supplibs/lib. And I have the same problem in libpng-1.2-18 compilation. What is going on with libpng library if I have the libz.a library in the folder supplibs/lib? (In the end I list the compiled libraries) Please help me, Best regards. Huber Paul Gilt L?pez # pwd /home/huber/grads/supplibs/lib # ls libcurl.a libhdf5_hl.a libncurses.a libreadline.a libxdr.a libdf.a libjpeg.a libnetcdf.a libsz.a libz.a libhdf5.a libmfhdf.a libpng12.a libudunits.a ________________________________ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: viernes, 02 de julio de 2010 9:30 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber, On June 15th I sent you a PDF on how to build GrADS, please look it over, libpng doesn't build because you do not have the zlib. Get zlib from ftp://grads.iges.org/grads/Supplibs/2.0/src/zlib-1.2.3.tar.gz tar xvfz ./tarfiles/zlib-1.2.3.tar.gz cd zlib-1.2.3/ ./configure --prefix=$HOME/supplibs/src/zlib-1.2.3 make make install cp ./lib/libz.a $HOME/supplibs/lib mkdir $HOME/supplibs/include/zlib cp ./include/zlib.h $HOME/supplibs/include/zlib John ________________________________ From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez [huber.gilt at igp.gob.pe] Sent: Friday, July 02, 2010 8:17 AM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library John, Because I found this error when I configure PNG library 1.2: #cd /home/huber/grads/supplibs/src/libpng-1.2.18 ./configure --disable-shared --prefix=/home/huber/grads/supplibs/src/libpng-1.2.18 ? checking for pow in -lm... yes checking for zlibVersion in -lz... no configure: error: zlib not installed I?ve exported this variable CC=gcc by this other CC='gcc -L/home/huber/grads/supplibs/lib -lz', then I?ve done make, and make install. Provably the libpng12.a library didn?t build well, how I can fix the previous error when I tried to configure the libpng12 library? Please help me, Best regards, Huber Paul Gilt Lopez ________________________________ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: jueves, 01 de julio de 2010 18:46 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Huber You need the PNG library1.2 not 1.4. Somehow you've installed a more recent version of PNG into /usr/local Go back to the PNG 1.2 build and do a "make install" to load it into /usr/local Otherwise, manually edit the Makefile and change it to point to your $(SUPPLIBS) PNG area. John Huddleston ________________________________ From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez [huber.gilt at igp.gob.pe] Sent: Thursday, July 01, 2010 4:15 PM To: 'GrADS Users Forum' Subject: [gradsusr] error compiling gd library Hello, I want to compile the gd library, i used this command, but I have an unsatisfied symbol. How can I include these missing symbol? #cd /home/huber/grads/supplibs/src/gd-2.0.34 #./configure --disable-shared\ --with-png=/home/huber/grads/supplibs/src/libpng-1.2.18\ --with-jpeg=/home/huber/grads/supplibs/src/jpeg-6b\ --prefix=/home/huber/grads/supplibs/src/gd-2.0.34 #make ? gcc -g -O2 -o gdparttopng gdparttopng.o -L/home/huber/grads/supplibs/lib -L/usr/local/lib/hpux32 -L/usr/lib/X11R4 -L/home/huber/grads/supplibs/src/jpeg-6b/lib ./.libs/libgd.a -L/usr/contrib/X11R6/lib /usr/local/lib/hpux32/libXpm.so /usr/local/lib/hpux32/libintl.so -lX11 -ljpeg /usr/local/lib/hpux32/libfontconfig.so /usr/local/lib/hpux32/libiconv.so /usr/local/lib/hpux32/libexpat.so /usr/local/lib/hpux32/libfreetype.so /usr/local/lib/hpux32/libpng14.so -lz -lm ld: Unsatisfied symbol "png_check_sig" in file ./.libs/libgd.a[gd_png.o] 1 errors. collect2: ld returned 1 exit status make[2]: *** [gdparttopng] Error 1 make[2]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34' make: *** [all] Error 2 Please help me, Best regards, Huber Paul Gilt Lopez IGP-Peru -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100708/5465a033/attachment-0001.html From funnytyphoon at gmail.com Thu Jul 8 20:29:10 2010 From: funnytyphoon at gmail.com (M YING) Date: Fri, 9 Jul 2010 08:29:10 +0800 Subject: [gradsusr] moved server: lost shapes In-Reply-To: References: <4815D38748E8CD4DA972E78502F379622202458266@EX01.NL.LOCAL> <85EAC738-56F6-4DDA-AAD8-973954CCB973@cola.iges.org> <4815D38748E8CD4DA972E78502F37962220245828F@EX01.NL.LOCAL> Message-ID: Hi, Chris, The new GrADS version 2.0.a8 introduced several commands to treat shapefiles: q shp, set shp, q shpopts, set shpopts, draw shp Please check them. Cheers, MY 2010/7/9 Jennifer Adams : > Your old version (2.0.a5.oga.5) is opengrads with the extensions, which > enable your php class. Your new version (2.0.a8) is the latest COLA version. > I can't help you with enabling the opengrads extensions with 2.0.a8. > --Jennifer > > On Jul 8, 2010, at 5:21 AM, Chris Hayes wrote: > > > > > > ??????????>>?I use a php class that after each request/command waited for > the response by grads, and this class knew the response > ??????????>>?always?ended with . >>>?But now it waits for that tag till the cows come home. And beyond. >>> Indefinitely and forever. >>>?What changed ? How to fix it? > >> I think this feature is enabled with the -u option on startup, and it is >> in COLA's version of GrADS as a hook for opengrads features. >> --Jennifer > > > Funnily, looking at the source the version came from it might be Grads our > host installed for us, I can hardly see the difference, can you see a > difference in config? > > > On the old server: > Config: v2.0.a5.oga.5 little-endian readline printim grib2 netcdf hdf4-sds > opendap-grids,stn athena geotiff > Grid Analysis and Display System (GrADS) Version 2.0.a5.oga.5 > Copyright (c) 1988-2008 by Brian Doty and the > Institute for Global Environment and Society (IGES) > This program is distributed WITHOUT ANY WARRANTY > See file COPYRIGHT for more information. > > Built Thu May 7 11:02:53 EDT 2009 for i686-pc-linux-gnu > > This version of GrADS has been configured with the following options: > o Built on a LITTLE ENDIAN machine > o Command line editing ENABLED > http://tiswww.case.edu/php/chet/readline/rltop.html > o printim command for image output ENABLED > http://www.zlib.net > http://www.libpng.org/pub/png/libpng.html > http://www.libgd.org/Main_Page > o GRIB2 interface ENABLED > http://www.ijg.org > http://www.ece.uvic.ca/~mdadams/jasper > http://www.nco.ncep.noaa.gov/pmb/codes/GRIB2 > g2clib-1.0.5 > o NetCDF interface ENABLED > http://www.opendap.org > libnc-dap 4.0.1-beta3-snapshot2009021712 of Feb 21 2009 14:55:15 $ > o NCSA HDF interface ENABLED > http://hdf.ncsa.uiuc.edu > HDF4.2r3 > o Athena Widget GUI ENABLED > o OPeNDAP gridded data interface ENABLED > http://www.opendap.org > libdap 3.7.10 > o OPeNDAP station data interface ENABLED > http://iges.org/grads/gadoc/supplibs.html > libgadap 2.0.oga.1 > o GeoTIFF and KML output ENABLED > http://www.libtiff.org > http://geotiff.osgeo.org > > For additional information please consult?http://iges.org/grads > > > > On the new serverE: > > Config: v2.0.a8 little-endian readline printim grib2 netcdf hdf4-sds hdf5 > opendap-grids,stn geotiff shapefile > Grid Analysis and Display System (GrADS) Version 2.0.a8 > Copyright (c) 1988-2010 by Brian Doty and the > Institute for Global Environment and Society (IGES) > This program is distributed WITHOUT ANY WARRANTY > See file COPYRIGHT for more information. > > Built Fri Mar 26 10:24:10 EDT 2010 for x86_64-unknown-linux-gnu > > This version of GrADS has been configured with the following options: > o Built on a LITTLE ENDIAN machine > o Athena Widget GUI DISABLED > o Command line editing ENABLED > http://tiswww.case.edu/php/chet/readline/rltop.html > o printim command for image output ENABLED > http://www.zlib.net > http://www.libpng.org/pub/png/libpng.html > http://www.libgd.org/Main_Page > o GRIB2 interface ENABLED > http://www.ijg.org > http://www.ece.uvic.ca/~mdadams/jasper > http://www.nco.ncep.noaa.gov/pmb/codes/GRIB2 > g2clib-1.1.8 > o NetCDF interface ENABLED > http://www.unidata.ucar.edu/software/netcdf > netcdf 4.1.1-rc2 of Mar 23 2010 09:31:58 $ > o OPeNDAP gridded data interface ENABLED > o OPeNDAP station data interface ENABLED > http://iges.org/grads/gadoc/supplibs.html > libgadap 2.0 > o HDF4 and HDF5 interfaces ENABLED > http://hdfgroup.org > HDF 4.2r3 > HDF5 1.8.4 > o GeoTIFF and KML output ENABLED > http://www.libtiff.org > http://geotiff.osgeo.org > o Shapefile interface ENABLED > http://shapelib.maptools.org > > For additional information please consult?http://iges.org/grads > > > > > > > I used gradsnc ?u, just like the perl interface does, but now with version > 2.0.a8 there is only the grads executable. > > I found?http://opengrads.org/doc/udxt/libipc/libipc.html? which specifies > ipc_verb but that command is not recognized. > > > > > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > > -- > Jennifer M. Adams > IGES/COLA > 4041 Powder Mill Road, Suite 302 > Calverton, MD 20705 > jma at cola.iges.org > > > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > > From funnytyphoon at gmail.com Thu Jul 8 20:35:20 2010 From: funnytyphoon at gmail.com (YING, Ming) Date: Fri, 9 Jul 2010 08:35:20 +0800 Subject: [gradsusr] moved server: lost shapes In-Reply-To: References: <4815D38748E8CD4DA972E78502F379622202458266@EX01.NL.LOCAL> <85EAC738-56F6-4DDA-AAD8-973954CCB973@cola.iges.org> <4815D38748E8CD4DA972E78502F37962220245828F@EX01.NL.LOCAL> Message-ID: sorry, I misunderstood... *^_^* 2010/7/9 M YING : > Hi, Chris, > > The new GrADS version 2.0.a8 introduced several commands to treat shapefiles: > > q shp, ?set shp, q shpopts, set shpopts, draw shp > > Please check them. > > Cheers, > > MY > > > 2010/7/9 Jennifer Adams : >> Your old version (2.0.a5.oga.5) is opengrads with the extensions, which >> enable your php class. Your new version (2.0.a8) is the latest COLA version. >> I can't help you with enabling the opengrads extensions with 2.0.a8. >> --Jennifer >> >> On Jul 8, 2010, at 5:21 AM, Chris Hayes wrote: >> >> >> >> >> >> ??????????>>?I use a php class that after each request/command waited for >> the response by grads, and this class knew the response >> ??????????>>?always?ended with . >>>>?But now it waits for that tag till the cows come home. And beyond. >>>> Indefinitely and forever. >>>>?What changed ? How to fix it? >> >>> I think this feature is enabled with the -u option on startup, and it is >>> in COLA's version of GrADS as a hook for opengrads features. >>> --Jennifer >> >> >> Funnily, looking at the source the version came from it might be Grads our >> host installed for us, I can hardly see the difference, can you see a >> difference in config? >> >> >> On the old server: >> Config: v2.0.a5.oga.5 little-endian readline printim grib2 netcdf hdf4-sds >> opendap-grids,stn athena geotiff >> Grid Analysis and Display System (GrADS) Version 2.0.a5.oga.5 >> Copyright (c) 1988-2008 by Brian Doty and the >> Institute for Global Environment and Society (IGES) >> This program is distributed WITHOUT ANY WARRANTY >> See file COPYRIGHT for more information. >> >> Built Thu May 7 11:02:53 EDT 2009 for i686-pc-linux-gnu >> >> This version of GrADS has been configured with the following options: >> o Built on a LITTLE ENDIAN machine >> o Command line editing ENABLED >> http://tiswww.case.edu/php/chet/readline/rltop.html >> o printim command for image output ENABLED >> http://www.zlib.net >> http://www.libpng.org/pub/png/libpng.html >> http://www.libgd.org/Main_Page >> o GRIB2 interface ENABLED >> http://www.ijg.org >> http://www.ece.uvic.ca/~mdadams/jasper >> http://www.nco.ncep.noaa.gov/pmb/codes/GRIB2 >> g2clib-1.0.5 >> o NetCDF interface ENABLED >> http://www.opendap.org >> libnc-dap 4.0.1-beta3-snapshot2009021712 of Feb 21 2009 14:55:15 $ >> o NCSA HDF interface ENABLED >> http://hdf.ncsa.uiuc.edu >> HDF4.2r3 >> o Athena Widget GUI ENABLED >> o OPeNDAP gridded data interface ENABLED >> http://www.opendap.org >> libdap 3.7.10 >> o OPeNDAP station data interface ENABLED >> http://iges.org/grads/gadoc/supplibs.html >> libgadap 2.0.oga.1 >> o GeoTIFF and KML output ENABLED >> http://www.libtiff.org >> http://geotiff.osgeo.org >> >> For additional information please consult?http://iges.org/grads >> >> >> >> On the new serverE: >> >> Config: v2.0.a8 little-endian readline printim grib2 netcdf hdf4-sds hdf5 >> opendap-grids,stn geotiff shapefile >> Grid Analysis and Display System (GrADS) Version 2.0.a8 >> Copyright (c) 1988-2010 by Brian Doty and the >> Institute for Global Environment and Society (IGES) >> This program is distributed WITHOUT ANY WARRANTY >> See file COPYRIGHT for more information. >> >> Built Fri Mar 26 10:24:10 EDT 2010 for x86_64-unknown-linux-gnu >> >> This version of GrADS has been configured with the following options: >> o Built on a LITTLE ENDIAN machine >> o Athena Widget GUI DISABLED >> o Command line editing ENABLED >> http://tiswww.case.edu/php/chet/readline/rltop.html >> o printim command for image output ENABLED >> http://www.zlib.net >> http://www.libpng.org/pub/png/libpng.html >> http://www.libgd.org/Main_Page >> o GRIB2 interface ENABLED >> http://www.ijg.org >> http://www.ece.uvic.ca/~mdadams/jasper >> http://www.nco.ncep.noaa.gov/pmb/codes/GRIB2 >> g2clib-1.1.8 >> o NetCDF interface ENABLED >> http://www.unidata.ucar.edu/software/netcdf >> netcdf 4.1.1-rc2 of Mar 23 2010 09:31:58 $ >> o OPeNDAP gridded data interface ENABLED >> o OPeNDAP station data interface ENABLED >> http://iges.org/grads/gadoc/supplibs.html >> libgadap 2.0 >> o HDF4 and HDF5 interfaces ENABLED >> http://hdfgroup.org >> HDF 4.2r3 >> HDF5 1.8.4 >> o GeoTIFF and KML output ENABLED >> http://www.libtiff.org >> http://geotiff.osgeo.org >> o Shapefile interface ENABLED >> http://shapelib.maptools.org >> >> For additional information please consult?http://iges.org/grads >> >> >> >> >> >> >> I used gradsnc ?u, just like the perl interface does, but now with version >> 2.0.a8 there is only the grads executable. >> >> I found?http://opengrads.org/doc/udxt/libipc/libipc.html? which specifies >> ipc_verb but that command is not recognized. >> >> >> >> >> >> _______________________________________________ >> gradsusr mailing list >> gradsusr at gradsusr.org >> http://gradsusr.org/mailman/listinfo/gradsusr >> >> -- >> Jennifer M. Adams >> IGES/COLA >> 4041 Powder Mill Road, Suite 302 >> Calverton, MD 20705 >> jma at cola.iges.org >> >> >> >> _______________________________________________ >> gradsusr mailing list >> gradsusr at gradsusr.org >> http://gradsusr.org/mailman/listinfo/gradsusr >> >> > From gibiesgeorge at gmail.com Fri Jul 9 02:24:27 2010 From: gibiesgeorge at gmail.com (gibies george) Date: Fri, 9 Jul 2010 11:54:27 +0530 Subject: [gradsusr] sdfwrite and sdfopen Message-ID: Hello GrADS users, I have created a self-describing file using sdfwrite. But when I try to open the same file it gives an error message as follows. Scanning self-describing file: smi gaopnc error: nc_open failed to open file smi read_metadata: gaopnc failed gadsdf: Couldn't ingest SDF metadata. Can anybody point out the reason for the error message ? Gibies George,CSIR-RF, Climate and Global Modelling Division, Indian Institute of Tropical Meteorology, Dr. Homi Bhabha Road, NCL (P. O.), Pashan, Pune 411008, India. http://sites.google.com/site/gibiesge/ Think about the environment. Please don't print this e-mail unless it is necessary. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100709/85ba1ae3/attachment.html From gibiesgeorge at gmail.com Fri Jul 9 02:33:07 2010 From: gibiesgeorge at gmail.com (gibies george) Date: Fri, 9 Jul 2010 12:03:07 +0530 Subject: [gradsusr] sdfwrite and sdfopen In-Reply-To: References: Message-ID: > Hello GrADS users, > > I have created a self-describing file using sdfwrite. But when I try to > open the same file it gives an error message as follows. > > Scanning self-describing file: smi > gaopnc error: nc_open failed to open file smi > read_metadata: gaopnc failed > gadsdf: Couldn't ingest SDF metadata. > > Can anybody point out the reason for the error message ? > I am attaching the self-describing file (smi.nc) and a text file (smi.txt) with the data which I have tried to write to the self-describing file. -- Gibies George,CSIR-RF, Climate and Global Modelling Division, Indian Institute of Tropical Meteorology, Dr. Homi Bhabha Road, NCL (P. O.), Pashan, Pune 411008, India. http://sites.google.com/site/gibiesge/ Think about the environment. Please don't print this e-mail unless it is necessary. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100709/1292e5a4/attachment-0001.html -------------- next part -------------- year index 1951 3.08384 1952 3.48687 1953 4.20546 1954 3.65821 1955 4.30367 1956 5.07299 1957 4.56984 1958 3.14583 1959 3.00086 1960 4.58475 1961 3.32002 1962 4.44521 1963 4.13324 1964 3.90097 1965 3.65978 1966 5.625 1967 3.73266 1968 2.86413 1969 4.89831 1970 3.42238 1971 3.83852 1972 5.45539 1973 3.7653 1974 2.18921 1975 4.08672 1976 4.07736 1977 6.73332 1978 5.26188 1979 4.72004 1980 3.29682 1981 3.66234 1982 3.01303 1983 3.52819 1984 3.0388 1985 3.31362 1986 3.24472 1987 5.28992 1988 1.8506 1989 2.97406 1990 3.92179 1991 4.49149 1992 4.65975 1993 6.35682 1994 4.47828 1995 2.57083 1996 4.67104 1997 5.67506 1998 5.05119 1999 4.75334 2000 3.65178 2001 3.84953 2002 4.64495 2003 3.83307 -------------- next part -------------- A non-text attachment was scrubbed... Name: smi.nc Type: application/x-netcdf Size: 309960 bytes Desc: not available Url : http://gradsusr.org/pipermail/gradsusr/attachments/20100709/1292e5a4/attachment-0001.nc From Marc at uhurucom.co.za Fri Jul 9 06:02:55 2010 From: Marc at uhurucom.co.za (Marc Stonestreet) Date: Fri, 9 Jul 2010 12:02:55 +0200 Subject: [gradsusr] Quickest and easiest way to install Grass add-ons Message-ID: <2A8C311DF827BB479122E0B1E067A4FD4BA04B2C4C@UCCPTSBS01.uhuru.local> Hi all What is the easiest way to install the add-ons into Grass? I am using Grass 6.4.0RC5 (2009) in Ubuntu Karmic . I cannot use (or find ) GEM - is this only included from 6.5 on? I want to use the landscape evolution package from the Med Landscapes Dynamics Project - r.landscape.evolve.py. I have tried various routes after searching the web but have had no success yet - tried svn, apt, source compile etc. I have followed the Wiki ref http://grass.osgeo.org/wiki/GRASS_AddOns but have not got it right (yet). Does any one have a simple set of instructions that I could access? Would it be easier to upgrade to Grass 7? Thank you in advance Marc S From Huddleston at cira.colostate.edu Fri Jul 9 10:08:18 2010 From: Huddleston at cira.colostate.edu (Huddleston, John) Date: Fri, 9 Jul 2010 07:08:18 -0700 Subject: [gradsusr] Quickest and easiest way to install Grass add-ons In-Reply-To: <2A8C311DF827BB479122E0B1E067A4FD4BA04B2C4C@UCCPTSBS01.uhuru.local> References: <2A8C311DF827BB479122E0B1E067A4FD4BA04B2C4C@UCCPTSBS01.uhuru.local> Message-ID: Marc This is the Grid Analysis and Display System (GrADS) list. See http://www.osgeo.org/mailman/listinfo/grass-user for the GRASS user list. John Huddleston, PhD Cooperative Institute for Research in the Atmosphere -----Original Message----- From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Marc Stonestreet Sent: Friday, July 09, 2010 4:03 AM To: GrADS Users Forum Subject: [gradsusr] Quickest and easiest way to install Grass add-ons Hi all What is the easiest way to install the add-ons into Grass? I am using Grass 6.4.0RC5 (2009) in Ubuntu Karmic . I cannot use (or find ) GEM - is this only included from 6.5 on? I want to use the landscape evolution package from the Med Landscapes Dynamics Project - r.landscape.evolve.py. I have tried various routes after searching the web but have had no success yet - tried svn, apt, source compile etc. I have followed the Wiki ref http://grass.osgeo.org/wiki/GRASS_AddOns but have not got it right (yet). Does any one have a simple set of instructions that I could access? Would it be easier to upgrade to Grass 7? Thank you in advance Marc S _______________________________________________ gradsusr mailing list gradsusr at gradsusr.org http://gradsusr.org/mailman/listinfo/gradsusr From huber.gilt at igp.gob.pe Fri Jul 9 11:37:40 2010 From: huber.gilt at igp.gob.pe (=?iso-8859-1?Q?Huber_Pa=FAl_Gilt_L=F3pez?=) Date: Fri, 9 Jul 2010 10:37:40 -0500 Subject: [gradsusr] error compiling gd library In-Reply-To: Message-ID: <201007091544.o69Fiei7011866@geo.igp.gob.pe> Hello John, Thank you I copied libunits.a to ${SUPPLIBS}/lib area, and also I copied libdbf.a and libmfhdf.a, but when I configured the hdf5 library, with this command ./configure --disable-shared --disable-fortran \ --with-zlib=$HOME/supplibs/src/zlib-1.2.3 \ --with-jpeg=$HOME/supplibs/src/jpeg-6b \ --with-szlib=$HOME/supplibs/src/szip-2.1 \ --prefix=$HOME/supplibs/src/hdf5-1.8.4-patch1 I think this ?--with-jpeg? option did not exists because don?t show me in the final summary: AM_LDFLAGS: -L/home/huber/grads/supplibs/src/zlib-1.2.3/lib -L/home/huber/grads/supplibs/src/szip-2.1/lib Is it necessary to include jpeg library? Please help me, Best regards, Huber _____ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: jueves, 08 de julio de 2010 19:21 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Huber, The archive library libunits.a is not empty. It is fine. Copy it to the ${SUPPLIBS}/lib area and move on. BTW, if you have the gcc compiler on your system, then 'export CC=gcc' and start over. e.g. 'gcc --version' send me the results ... John _____ From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez [huber.gilt at igp.gob.pe] Sent: Thursday, July 08, 2010 3:45 PM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library Hello John, Do a ?ar tv libudunits.a?, you should see something like rw-r--r-- 1000/1000 16568 Jul 27 10:02 2009 utlib.o rw-r--r-- 1000/1000 7524 Jul 27 10:02 2009 utparse.o rw-r--r-- 1000/1000 14272 Jul 27 10:02 2009 utscan.o rw-r--r-- 1000/1000 1136 Jul 27 10:02 2009 udalloc.o Yes, I do. And I see: # ar -tv libudunits.a rw-r--r-- 0/ 3 74480 Jul 8 15:47 2010 utlib.o rw-r--r-- 0/ 3 18232 Jul 8 15:47 2010 utparse.o rw-r--r-- 0/ 3 45144 Jul 8 15:47 2010 utscan.o rw-r--r-- 0/ 3 5328 Jul 8 15:47 2010 udalloc.o If you have all four then you?re good to go. Yes, I have but I think all four is empty. Copy it to ${SUPPLIBS}/lib, copy etc/udunits.dat to ${SUPPLIBS}/etc I think this is not match. You are getting an error on creating udunits executable. I think this is match. If the four objects are not in the libudunits.a file, cd into the lib directory, and try compiling by hand: cc -c -O -I../port/misc -I../port/cfortran -DUT_DEFAULT_PATH='"${SUPPLIBS}/etc/udunits.dat"' *.c I tried, but I think this is not complete well. #cc -c -O -I../port/misc -I../port/cfortran -DUT_DEFAULT_PATH='"${SUPPLIBS}/etc/udunits.dat"' *.c (Bundled) cc: warning 922: "-O" is unsupported in the bundled compiler, ignored. udalloc.c: utlib-1.11.7.nof77intfc.c: "utlib-1.11.7.nof77intfc.c", line 1488: warning #2177-D: function "CopyCtorNode" was declared but never referenced CopyCtorNode(node) ^ "utlib-1.11.7.nof77intfc.c", line 1520: warning #2177-D: function "AssignNode" was declared but never referenced AssignNode(to, from) ^ utlib.c: "utlib.c", line 1488: warning #2177-D: function "CopyCtorNode" was declared but never referenced CopyCtorNode(node) ^ "utlib.c", line 1520: warning #2177-D: function "AssignNode" was declared but never referenced AssignNode(to, from) ^ utparse.c: "utparse.y", line 386: warning #2175-D: subscript out of range yypv = &yyv[-1]; ^ "utparse.y", line 387: warning #2175-D: subscript out of range yyps = &yys[-1]; ^ "utparse.y", line 405: warning #2177-D: label "yynewstate" was declared but never referenced yynewstate: ^ utscan.c: then type ?make? and it should update the libudunits.a file. I done, but I think libudunits.a library is still too small. # make ar rcuv libudunits.a utlib.o utparse.o utscan.o udalloc.o r - utlib.o r - utparse.o r - utscan.o r - udalloc.o case "" in \ '') ;; \ *) ar rucv libudunits.a ;; \ esac ranlib libudunits.a # du -sk libudunits.a 144 libudunits.a Go to the ../udunits directory and edit the Makefile to remove the ?R option arguments, exit the editor, and type make, or manually cc -o udunits -O udunits.o ?L../lib -ludunits -lm ?L../port/misc -ludport -lm I did the manually form, then I type these commands but I have the same problem. # cd ../udunits # cc -o udunits -O udunits.o ?L../lib -ludunits -lm ?L../port/misc -ludport -lm cc -c -O -I../lib -I../port/misc udunits.c (Bundled) cc: warning 922: "-O" is unsupported in the bundled compiler, ignored. cc -o udunits -O udunits.o -R/data/hoop/udunits-1.11.7/src/lib -L/data/hoop/udunits-1.11.7/src/lib -ludunits -R/data/hoop/udunits-1.11.7/src/port/misc -L/data/hoop/udunits-1.11.7/src/port/misc -ludport -ly -lm (Bundled) cc: warning 922: "-O" is unsupported in the bundled compiler, ignored. (Bundled) cc: warning 901: unknown option: `-R/data/hoop/udunits-1.11.7/src/lib': use +help for online documentation. (Bundled) cc: warning 901: unknown option: `-R/data/hoop/udunits-1.11.7/src/port/misc': use +help for online documentation. ld: Can't find library for -ludunits Fatal error. make[1]: *** [udunits] Error 1 make[1]: Leaving directory `/home/huber/grads/supplibs/src/udunits-1.11.7/src/udunits' make: *** [program] Error 2 And also I remove ?R option arguments. Then make output were: make[1]: Entering directory `/home/huber/grads/supplibs/src/udunits-1.11.7/src/udunits' cc -o udunits -O udunits.o -ly -lm (Bundled) cc: warning 922: "-O" is unsupported in the bundled compiler, ignored. ld: Unsatisfied symbol "utIsTime" in file udunits.o ld: Unsatisfied symbol "utInit" in file udunits.o ld: Unsatisfied symbol "utCalendar" in file udunits.o ld: Unsatisfied symbol "utScan" in file udunits.o ld: Unsatisfied symbol "utTerm" in file udunits.o ld: Unsatisfied symbol "utConvert" in file udunits.o ld: (Warning) Unsatisfied symbol "yyparse" in file /usr/lib/hpux32/liby.so ld: Unsatisfied symbol "utPrint" in file udunits.o 1 warnings. 7 errors. make[1]: *** [udunits] Error 1 make[1]: Leaving directory `/home/huber/grads/supplibs/src/udunits-1.11.7/src/udunits' make: *** [program] Error 2 If it possible to have the equivalent commands with gcc compiler, the libudunits.a is still too small I don?t know what is going on with compilation with libudunits library, do you have extra information or tips about the process of compilation in gcc o cc? Thanks you, Very much Huber _____ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: jueves, 08 de julio de 2010 14:55 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber, it is a small file, Do a ?ar tv libudunits.a?, you should see something like rw-r--r-- 1000/1000 16568 Jul 27 10:02 2009 utlib.o rw-r--r-- 1000/1000 7524 Jul 27 10:02 2009 utparse.o rw-r--r-- 1000/1000 14272 Jul 27 10:02 2009 utscan.o rw-r--r-- 1000/1000 1136 Jul 27 10:02 2009 udalloc.o If you have all four then you?re good to go. Copy it to ${SUPPLIBS}/lib, copy etc/udunits.dat to ${SUPPLIBS}/etc You are getting an error on creating udunits executable. If the four objects are not in the libudunits.a file, cd into the lib directory, and try compiling by hand: cc -c -O -I../port/misc -I../port/cfortran -DUT_DEFAULT_PATH='"${SUPPLIBS}/etc/udunits.dat"' *.c then type ?make? and it should update the libudunits.a file. Go to the ../udunits directory and edit the Makefile to remove the ?R option arguments, exit the editor, and type make, or manually cc -o udunits -O udunits.o ?L ../lib -ludunits -lm ?L ../port/misc -ludport -lm John John Huddleston, PhD Cooperative Institute for Research in the Atmosphere From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez Sent: Thursday, July 08, 2010 1:19 PM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library Hello John, Thanks you for your help, I?ve compiled libgb.a library and also jasper, g2clib, and szip, but I can?t compiled udunits library. I get the following error: cc -o udunits -O udunits.o -R/data/hoop/udunits-1.11.7/src/lib -L/data/hoop/udunits-1.11.7/src/lib -ludunits -R/data/hoop/udunits-1.11.7/src/port/misc -L/data/hoop/udunits-1.11.7/src/port/misc -ludport -ly -lm (Bundled) cc: warning 922: "-O" is unsupported in the bundled compiler, ignored. (Bundled) cc: warning 901: unknown option: `-R/data/hoop/udunits-1.11.7/src/lib': use +help for online documentation. (Bundled) cc: warning 901: unknown option: `-R/data/hoop/udunits-1.11.7/src/port/misc': use +help for online documentation. ld: Can't find library for -ludunits Fatal error. make[2]: *** [udunits] Error 1 make[2]: Leaving directory `/home/huber/grads/supplibs/src/udunits-1.11.7/src/udunits' make[1]: *** [program] Error 2 make[1]: Leaving directory `/home/huber/grads/supplibs/src/udunits-1.11.7/src/udunits' make: *** [udunits/all] Error 1 But I saw that I have the libunits.a library, but I think it isn?t complete because it?s so small. How can I resolve this error? # ls lib/libudunits.a lib/libudunits.a # du -sk lib/libudunits.a 144 lib/libudunits.a Please help me, Best regards, Huber _____ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: jueves, 08 de julio de 2010 9:54 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber, The /usr/local/lib/libpng.la controls which PNG library is used. It seems as if someone else built and installed version 14 under /usr/local. Unless you have sudo privlileges you are going to have to work around that implementation. This is going to sound funny..but; if you have already built the GD library file that?s all you need to continue building. In my case, the path is /home/dasilva/src/supplibs-2.1.0/i686-pc-linux/lib/libgd.a In your case copy the libgd.a to your $(SUPPLIBS)/lib directory and copy the include files gd.h gdfx.h gd_io.h gdcache.h gdfontg.h gdfontl.h gdfontmb.h gdfonts.h gdfontt.h entities.h to your ${SUPPLIBS}/include directory. Next, go on to build jasper, g2clib, szlib, etc. John John Huddleston, PhD Cooperative Institute for Research in the Atmosphere From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez Sent: Wednesday, July 07, 2010 9:42 AM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library Hi John, Don?t worry about the difficulty that I?m having, I can?t figure how you build in or with Cygwin, I suppose it is a heavy work. Any way, I don?t found any reference with libpng14 in the libgb?s Makefile , but I found the following lines that I think it would be not setup for the libpng12. How can I setup this Makefile in order to use the libpng12 library, and so try to compile the gb library? (I?m attaching the libgb?s Makefile) LIBPNG12_CONFIG = LIBPNG_CONFIG = /usr/local/bin/libpng-config Please help me, Best regards, Huber _____ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: martes, 06 de julio de 2010 14:30 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber, so sorry you are having so much difficulty. You should see the work I have for the Cygwin build! Look at your gcc line and you will see the path /usr/local/lib/hpux32/libpng14.so Edit the Makefile, search for libpng14, edit that line and replace it with the path to your libpng12 file. John John Huddleston, PhD Cooperative Institute for Research in the Atmosphere From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez Sent: Tuesday, July 06, 2010 1:13 PM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library Hello John, I start to compile all the supplemental libraries; I compiled readline, ncurses, zlib, libpng and jpeg libraries, but I cant compile gd library. Because I have the following error: gcc -g -O2 -o gdparttopng gdparttopng.o -L/usr/local/lib/hpux32 -L/usr/lib/X11R4 -L/home/huber/grads/supplibs/src/jpeg-6b/lib ./.libs/libgd.a -L/usr/contrib/X11R6/lib /usr/local/lib/hpux32/libXpm.so /usr/local/lib/hpux32/libintl.so -lX11 /usr/local/lib/hpux32/libjpeg.so /usr/local/lib/hpux32/libfontconfig.so /usr/local/lib/hpux32/libiconv.so /usr/local/lib/hpux32/libexpat.so /usr/local/lib/hpux32/libfreetype.so /usr/local/lib/hpux32/libpng14.so -lz -lm ld: Unsatisfied symbol "gdImageCreateFromGd2Part" in file gdparttopng.o ld: Unsatisfied symbol "png_check_sig" in file ./.libs/libgd.a[gd_png.o] 2 errors. collect2: ld returned 1 exit status make[2]: *** [gdparttopng] Error 1 make[2]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34' make: *** [all] Error 2 Who can I setup the correct path for the libpng1.2 library, because I follow the instructions in the PDF, and I executed the following commands: cd gd-2.0.34 ./configure --disable-shared \ --with-png=$HOME/supplibs/src/libpng-1.2.18 \ --with-jpeg=$HOME/supplibs/src/jpeg-6b \ --prefix=$HOME/supplibs/src/gd-2.0.34 make Please help me, Best regards, Huber _____ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: viernes, 02 de julio de 2010 12:20 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber, Did you remove the libpng directory, untar libpng again, configure again with the options specified in Building_GrADS.pdf, and make the system? Ditto for the GD build. You must follow the order of the build as shown in the PDF file. John Huddleston, PhD, PE _____ From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez [huber.gilt at igp.gob.pe] Sent: Friday, July 02, 2010 11:06 AM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library Hello John, I?ve done your instructions and also I compiled the zlib-1.2.3 library and I have the library libz.a, in supplibs/lib. And I have the same problem in libpng-1.2-18 compilation. What is going on with libpng library if I have the libz.a library in the folder supplibs/lib? (In the end I list the compiled libraries) Please help me, Best regards. Huber Paul Gilt L?pez # pwd /home/huber/grads/supplibs/lib # ls libcurl.a libhdf5_hl.a libncurses.a libreadline.a libxdr.a libdf.a libjpeg.a libnetcdf.a libsz.a libz.a libhdf5.a libmfhdf.a libpng12.a libudunits.a _____ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: viernes, 02 de julio de 2010 9:30 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber, On June 15th I sent you a PDF on how to build GrADS, please look it over, libpng doesn't build because you do not have the zlib. Get zlib from ftp://grads.iges.org/grads/Supplibs/2.0/src/zlib-1.2.3.tar.gz tar xvfz ./tarfiles/zlib-1.2.3.tar.gz cd zlib-1.2.3/ ./configure --prefix=$HOME/supplibs/src/zlib-1.2.3 make make install cp ./lib/libz.a $HOME/supplibs/lib mkdir $HOME/supplibs/include/zlib cp ./include/zlib.h $HOME/supplibs/include/zlib John _____ From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez [huber.gilt at igp.gob.pe] Sent: Friday, July 02, 2010 8:17 AM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library John, Because I found this error when I configure PNG library 1.2: #cd /home/huber/grads/supplibs/src/libpng-1.2.18 ./configure --disable-shared --prefix=/home/huber/grads/supplibs/src/libpng-1.2.18 checking for pow in -lm... yes checking for zlibVersion in -lz... no configure: error: zlib not installed I?ve exported this variable CC=gcc by this other CC='gcc -L/home/huber/grads/supplibs/lib -lz', then I?ve done make, and make install. Provably the libpng12.a library didn?t build well, how I can fix the previous error when I tried to configure the libpng12 library? Please help me, Best regards, Huber Paul Gilt Lopez _____ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: jueves, 01 de julio de 2010 18:46 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Huber You need the PNG library1.2 not 1.4. Somehow you've installed a more recent version of PNG into /usr/local Go back to the PNG 1.2 build and do a "make install" to load it into /usr/local Otherwise, manually edit the Makefile and change it to point to your $(SUPPLIBS) PNG area. John Huddleston _____ From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez [huber.gilt at igp.gob.pe] Sent: Thursday, July 01, 2010 4:15 PM To: 'GrADS Users Forum' Subject: [gradsusr] error compiling gd library Hello, I want to compile the gd library, i used this command, but I have an unsatisfied symbol. How can I include these missing symbol? #cd /home/huber/grads/supplibs/src/gd-2.0.34 #./configure --disable-shared\ --with-png=/home/huber/grads/supplibs/src/libpng-1.2.18\ --with-jpeg=/home/huber/grads/supplibs/src/jpeg-6b\ --prefix=/home/huber/grads/supplibs/src/gd-2.0.34 #make gcc -g -O2 -o gdparttopng gdparttopng.o -L/home/huber/grads/supplibs/lib -L/usr/local/lib/hpux32 -L/usr/lib/X11R4 -L/home/huber/grads/supplibs/src/jpeg-6b/lib ./.libs/libgd.a -L/usr/contrib/X11R6/lib /usr/local/lib/hpux32/libXpm.so /usr/local/lib/hpux32/libintl.so -lX11 -ljpeg /usr/local/lib/hpux32/libfontconfig.so /usr/local/lib/hpux32/libiconv.so /usr/local/lib/hpux32/libexpat.so /usr/local/lib/hpux32/libfreetype.so /usr/local/lib/hpux32/libpng14.so -lz -lm ld: Unsatisfied symbol "png_check_sig" in file ./.libs/libgd.a[gd_png.o] 1 errors. collect2: ld returned 1 exit status make[2]: *** [gdparttopng] Error 1 make[2]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34' make: *** [all] Error 2 Please help me, Best regards, Huber Paul Gilt Lopez IGP-Peru -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100709/03755084/attachment-0001.html From huber.gilt at igp.gob.pe Fri Jul 9 12:26:02 2010 From: huber.gilt at igp.gob.pe (=?iso-8859-1?Q?Huber_Pa=FAl_Gilt_L=F3pez?=) Date: Fri, 9 Jul 2010 11:26:02 -0500 Subject: [gradsusr] error compiling gd library In-Reply-To: Message-ID: <201007091633.o69GX2kn004681@geo.igp.gob.pe> Hello John, I?m trying to compile xml2 library, but after I applied this commands: #./configure --disable-shared \ --prefix=$HOME/supplibs/src/libxml2-2.6.16 #make I found these 2 errors. I think this variable or function ?xlattable? is not defined. How can I fix these two errors? gcc -DHAVE_CONFIG_H -I. -I. -I. -I./include -I./include -D_REENTRANT -g -O2 -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls -MT encoding.lo -MD -MP -MF .deps/encoding.Tpo -c encoding.c -o encoding.o encoding.c: In function 'UTF16LEToUTF8': encoding.c:418: warning: cast increases required alignment of target type encoding.c: In function 'UTF8ToUTF16LE': encoding.c:500: warning: cast increases required alignment of target type encoding.c: In function 'UTF16BEToUTF8': encoding.c:655: warning: cast increases required alignment of target type encoding.c: In function 'UTF8ToUTF16BE': encoding.c:741: warning: cast increases required alignment of target type encoding.c: In function 'ISO8859xToUTF8': encoding.c:2338: error: 'xlattable' undeclared (first use in this function) encoding.c:2338: error: (Each undeclared identifier is reported only once encoding.c:2338: error: for each function it appears in.) encoding.c: At top level: encoding.c:2998: warning: string length '688' is greater than the length '509' ISO C90 compilers are required to support encoding.c:3108: warning: string length '624' is greater than the length '509' ISO C90 compilers are required to support make[2]: *** [encoding.lo] Error 1 make[2]: Leaving directory `/home/huber/grads/supplibs/src/libxml2-2.6.16' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/huber/grads/supplibs/src/libxml2-2.6.16' make: *** [all] Error 2 Please help me, Best regards, Huber _____ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: jueves, 08 de julio de 2010 19:21 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Huber, The archive library libunits.a is not empty. It is fine. Copy it to the ${SUPPLIBS}/lib area and move on. BTW, if you have the gcc compiler on your system, then 'export CC=gcc' and start over. e.g. 'gcc --version' send me the results ... John _____ From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez [huber.gilt at igp.gob.pe] Sent: Thursday, July 08, 2010 3:45 PM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library Hello John, Do a ?ar tv libudunits.a?, you should see something like rw-r--r-- 1000/1000 16568 Jul 27 10:02 2009 utlib.o rw-r--r-- 1000/1000 7524 Jul 27 10:02 2009 utparse.o rw-r--r-- 1000/1000 14272 Jul 27 10:02 2009 utscan.o rw-r--r-- 1000/1000 1136 Jul 27 10:02 2009 udalloc.o Yes, I do. And I see: # ar -tv libudunits.a rw-r--r-- 0/ 3 74480 Jul 8 15:47 2010 utlib.o rw-r--r-- 0/ 3 18232 Jul 8 15:47 2010 utparse.o rw-r--r-- 0/ 3 45144 Jul 8 15:47 2010 utscan.o rw-r--r-- 0/ 3 5328 Jul 8 15:47 2010 udalloc.o If you have all four then you?re good to go. Yes, I have but I think all four is empty. Copy it to ${SUPPLIBS}/lib, copy etc/udunits.dat to ${SUPPLIBS}/etc I think this is not match. You are getting an error on creating udunits executable. I think this is match. If the four objects are not in the libudunits.a file, cd into the lib directory, and try compiling by hand: cc -c -O -I../port/misc -I../port/cfortran -DUT_DEFAULT_PATH='"${SUPPLIBS}/etc/udunits.dat"' *.c I tried, but I think this is not complete well. #cc -c -O -I../port/misc -I../port/cfortran -DUT_DEFAULT_PATH='"${SUPPLIBS}/etc/udunits.dat"' *.c (Bundled) cc: warning 922: "-O" is unsupported in the bundled compiler, ignored. udalloc.c: utlib-1.11.7.nof77intfc.c: "utlib-1.11.7.nof77intfc.c", line 1488: warning #2177-D: function "CopyCtorNode" was declared but never referenced CopyCtorNode(node) ^ "utlib-1.11.7.nof77intfc.c", line 1520: warning #2177-D: function "AssignNode" was declared but never referenced AssignNode(to, from) ^ utlib.c: "utlib.c", line 1488: warning #2177-D: function "CopyCtorNode" was declared but never referenced CopyCtorNode(node) ^ "utlib.c", line 1520: warning #2177-D: function "AssignNode" was declared but never referenced AssignNode(to, from) ^ utparse.c: "utparse.y", line 386: warning #2175-D: subscript out of range yypv = &yyv[-1]; ^ "utparse.y", line 387: warning #2175-D: subscript out of range yyps = &yys[-1]; ^ "utparse.y", line 405: warning #2177-D: label "yynewstate" was declared but never referenced yynewstate: ^ utscan.c: then type ?make? and it should update the libudunits.a file. I done, but I think libudunits.a library is still too small. # make ar rcuv libudunits.a utlib.o utparse.o utscan.o udalloc.o r - utlib.o r - utparse.o r - utscan.o r - udalloc.o case "" in \ '') ;; \ *) ar rucv libudunits.a ;; \ esac ranlib libudunits.a # du -sk libudunits.a 144 libudunits.a Go to the ../udunits directory and edit the Makefile to remove the ?R option arguments, exit the editor, and type make, or manually cc -o udunits -O udunits.o ?L../lib -ludunits -lm ?L../port/misc -ludport -lm I did the manually form, then I type these commands but I have the same problem. # cd ../udunits # cc -o udunits -O udunits.o ?L../lib -ludunits -lm ?L../port/misc -ludport -lm cc -c -O -I../lib -I../port/misc udunits.c (Bundled) cc: warning 922: "-O" is unsupported in the bundled compiler, ignored. cc -o udunits -O udunits.o -R/data/hoop/udunits-1.11.7/src/lib -L/data/hoop/udunits-1.11.7/src/lib -ludunits -R/data/hoop/udunits-1.11.7/src/port/misc -L/data/hoop/udunits-1.11.7/src/port/misc -ludport -ly -lm (Bundled) cc: warning 922: "-O" is unsupported in the bundled compiler, ignored. (Bundled) cc: warning 901: unknown option: `-R/data/hoop/udunits-1.11.7/src/lib': use +help for online documentation. (Bundled) cc: warning 901: unknown option: `-R/data/hoop/udunits-1.11.7/src/port/misc': use +help for online documentation. ld: Can't find library for -ludunits Fatal error. make[1]: *** [udunits] Error 1 make[1]: Leaving directory `/home/huber/grads/supplibs/src/udunits-1.11.7/src/udunits' make: *** [program] Error 2 And also I remove ?R option arguments. Then make output were: make[1]: Entering directory `/home/huber/grads/supplibs/src/udunits-1.11.7/src/udunits' cc -o udunits -O udunits.o -ly -lm (Bundled) cc: warning 922: "-O" is unsupported in the bundled compiler, ignored. ld: Unsatisfied symbol "utIsTime" in file udunits.o ld: Unsatisfied symbol "utInit" in file udunits.o ld: Unsatisfied symbol "utCalendar" in file udunits.o ld: Unsatisfied symbol "utScan" in file udunits.o ld: Unsatisfied symbol "utTerm" in file udunits.o ld: Unsatisfied symbol "utConvert" in file udunits.o ld: (Warning) Unsatisfied symbol "yyparse" in file /usr/lib/hpux32/liby.so ld: Unsatisfied symbol "utPrint" in file udunits.o 1 warnings. 7 errors. make[1]: *** [udunits] Error 1 make[1]: Leaving directory `/home/huber/grads/supplibs/src/udunits-1.11.7/src/udunits' make: *** [program] Error 2 If it possible to have the equivalent commands with gcc compiler, the libudunits.a is still too small I don?t know what is going on with compilation with libudunits library, do you have extra information or tips about the process of compilation in gcc o cc? Thanks you, Very much Huber _____ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: jueves, 08 de julio de 2010 14:55 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber, it is a small file, Do a ?ar tv libudunits.a?, you should see something like rw-r--r-- 1000/1000 16568 Jul 27 10:02 2009 utlib.o rw-r--r-- 1000/1000 7524 Jul 27 10:02 2009 utparse.o rw-r--r-- 1000/1000 14272 Jul 27 10:02 2009 utscan.o rw-r--r-- 1000/1000 1136 Jul 27 10:02 2009 udalloc.o If you have all four then you?re good to go. Copy it to ${SUPPLIBS}/lib, copy etc/udunits.dat to ${SUPPLIBS}/etc You are getting an error on creating udunits executable. If the four objects are not in the libudunits.a file, cd into the lib directory, and try compiling by hand: cc -c -O -I../port/misc -I../port/cfortran -DUT_DEFAULT_PATH='"${SUPPLIBS}/etc/udunits.dat"' *.c then type ?make? and it should update the libudunits.a file. Go to the ../udunits directory and edit the Makefile to remove the ?R option arguments, exit the editor, and type make, or manually cc -o udunits -O udunits.o ?L ../lib -ludunits -lm ?L ../port/misc -ludport -lm John John Huddleston, PhD Cooperative Institute for Research in the Atmosphere From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez Sent: Thursday, July 08, 2010 1:19 PM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library Hello John, Thanks you for your help, I?ve compiled libgb.a library and also jasper, g2clib, and szip, but I can?t compiled udunits library. I get the following error: cc -o udunits -O udunits.o -R/data/hoop/udunits-1.11.7/src/lib -L/data/hoop/udunits-1.11.7/src/lib -ludunits -R/data/hoop/udunits-1.11.7/src/port/misc -L/data/hoop/udunits-1.11.7/src/port/misc -ludport -ly -lm (Bundled) cc: warning 922: "-O" is unsupported in the bundled compiler, ignored. (Bundled) cc: warning 901: unknown option: `-R/data/hoop/udunits-1.11.7/src/lib': use +help for online documentation. (Bundled) cc: warning 901: unknown option: `-R/data/hoop/udunits-1.11.7/src/port/misc': use +help for online documentation. ld: Can't find library for -ludunits Fatal error. make[2]: *** [udunits] Error 1 make[2]: Leaving directory `/home/huber/grads/supplibs/src/udunits-1.11.7/src/udunits' make[1]: *** [program] Error 2 make[1]: Leaving directory `/home/huber/grads/supplibs/src/udunits-1.11.7/src/udunits' make: *** [udunits/all] Error 1 But I saw that I have the libunits.a library, but I think it isn?t complete because it?s so small. How can I resolve this error? # ls lib/libudunits.a lib/libudunits.a # du -sk lib/libudunits.a 144 lib/libudunits.a Please help me, Best regards, Huber _____ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: jueves, 08 de julio de 2010 9:54 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber, The /usr/local/lib/libpng.la controls which PNG library is used. It seems as if someone else built and installed version 14 under /usr/local. Unless you have sudo privlileges you are going to have to work around that implementation. This is going to sound funny..but; if you have already built the GD library file that?s all you need to continue building. In my case, the path is /home/dasilva/src/supplibs-2.1.0/i686-pc-linux/lib/libgd.a In your case copy the libgd.a to your $(SUPPLIBS)/lib directory and copy the include files gd.h gdfx.h gd_io.h gdcache.h gdfontg.h gdfontl.h gdfontmb.h gdfonts.h gdfontt.h entities.h to your ${SUPPLIBS}/include directory. Next, go on to build jasper, g2clib, szlib, etc. John John Huddleston, PhD Cooperative Institute for Research in the Atmosphere From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez Sent: Wednesday, July 07, 2010 9:42 AM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library Hi John, Don?t worry about the difficulty that I?m having, I can?t figure how you build in or with Cygwin, I suppose it is a heavy work. Any way, I don?t found any reference with libpng14 in the libgb?s Makefile , but I found the following lines that I think it would be not setup for the libpng12. How can I setup this Makefile in order to use the libpng12 library, and so try to compile the gb library? (I?m attaching the libgb?s Makefile) LIBPNG12_CONFIG = LIBPNG_CONFIG = /usr/local/bin/libpng-config Please help me, Best regards, Huber _____ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: martes, 06 de julio de 2010 14:30 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber, so sorry you are having so much difficulty. You should see the work I have for the Cygwin build! Look at your gcc line and you will see the path /usr/local/lib/hpux32/libpng14.so Edit the Makefile, search for libpng14, edit that line and replace it with the path to your libpng12 file. John John Huddleston, PhD Cooperative Institute for Research in the Atmosphere From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez Sent: Tuesday, July 06, 2010 1:13 PM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library Hello John, I start to compile all the supplemental libraries; I compiled readline, ncurses, zlib, libpng and jpeg libraries, but I cant compile gd library. Because I have the following error: gcc -g -O2 -o gdparttopng gdparttopng.o -L/usr/local/lib/hpux32 -L/usr/lib/X11R4 -L/home/huber/grads/supplibs/src/jpeg-6b/lib ./.libs/libgd.a -L/usr/contrib/X11R6/lib /usr/local/lib/hpux32/libXpm.so /usr/local/lib/hpux32/libintl.so -lX11 /usr/local/lib/hpux32/libjpeg.so /usr/local/lib/hpux32/libfontconfig.so /usr/local/lib/hpux32/libiconv.so /usr/local/lib/hpux32/libexpat.so /usr/local/lib/hpux32/libfreetype.so /usr/local/lib/hpux32/libpng14.so -lz -lm ld: Unsatisfied symbol "gdImageCreateFromGd2Part" in file gdparttopng.o ld: Unsatisfied symbol "png_check_sig" in file ./.libs/libgd.a[gd_png.o] 2 errors. collect2: ld returned 1 exit status make[2]: *** [gdparttopng] Error 1 make[2]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34' make: *** [all] Error 2 Who can I setup the correct path for the libpng1.2 library, because I follow the instructions in the PDF, and I executed the following commands: cd gd-2.0.34 ./configure --disable-shared \ --with-png=$HOME/supplibs/src/libpng-1.2.18 \ --with-jpeg=$HOME/supplibs/src/jpeg-6b \ --prefix=$HOME/supplibs/src/gd-2.0.34 make Please help me, Best regards, Huber _____ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: viernes, 02 de julio de 2010 12:20 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber, Did you remove the libpng directory, untar libpng again, configure again with the options specified in Building_GrADS.pdf, and make the system? Ditto for the GD build. You must follow the order of the build as shown in the PDF file. John Huddleston, PhD, PE _____ From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez [huber.gilt at igp.gob.pe] Sent: Friday, July 02, 2010 11:06 AM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library Hello John, I?ve done your instructions and also I compiled the zlib-1.2.3 library and I have the library libz.a, in supplibs/lib. And I have the same problem in libpng-1.2-18 compilation. What is going on with libpng library if I have the libz.a library in the folder supplibs/lib? (In the end I list the compiled libraries) Please help me, Best regards. Huber Paul Gilt L?pez # pwd /home/huber/grads/supplibs/lib # ls libcurl.a libhdf5_hl.a libncurses.a libreadline.a libxdr.a libdf.a libjpeg.a libnetcdf.a libsz.a libz.a libhdf5.a libmfhdf.a libpng12.a libudunits.a _____ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: viernes, 02 de julio de 2010 9:30 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber, On June 15th I sent you a PDF on how to build GrADS, please look it over, libpng doesn't build because you do not have the zlib. Get zlib from ftp://grads.iges.org/grads/Supplibs/2.0/src/zlib-1.2.3.tar.gz tar xvfz ./tarfiles/zlib-1.2.3.tar.gz cd zlib-1.2.3/ ./configure --prefix=$HOME/supplibs/src/zlib-1.2.3 make make install cp ./lib/libz.a $HOME/supplibs/lib mkdir $HOME/supplibs/include/zlib cp ./include/zlib.h $HOME/supplibs/include/zlib John _____ From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez [huber.gilt at igp.gob.pe] Sent: Friday, July 02, 2010 8:17 AM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library John, Because I found this error when I configure PNG library 1.2: #cd /home/huber/grads/supplibs/src/libpng-1.2.18 ./configure --disable-shared --prefix=/home/huber/grads/supplibs/src/libpng-1.2.18 checking for pow in -lm... yes checking for zlibVersion in -lz... no configure: error: zlib not installed I?ve exported this variable CC=gcc by this other CC='gcc -L/home/huber/grads/supplibs/lib -lz', then I?ve done make, and make install. Provably the libpng12.a library didn?t build well, how I can fix the previous error when I tried to configure the libpng12 library? Please help me, Best regards, Huber Paul Gilt Lopez _____ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: jueves, 01 de julio de 2010 18:46 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Huber You need the PNG library1.2 not 1.4. Somehow you've installed a more recent version of PNG into /usr/local Go back to the PNG 1.2 build and do a "make install" to load it into /usr/local Otherwise, manually edit the Makefile and change it to point to your $(SUPPLIBS) PNG area. John Huddleston _____ From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez [huber.gilt at igp.gob.pe] Sent: Thursday, July 01, 2010 4:15 PM To: 'GrADS Users Forum' Subject: [gradsusr] error compiling gd library Hello, I want to compile the gd library, i used this command, but I have an unsatisfied symbol. How can I include these missing symbol? #cd /home/huber/grads/supplibs/src/gd-2.0.34 #./configure --disable-shared\ --with-png=/home/huber/grads/supplibs/src/libpng-1.2.18\ --with-jpeg=/home/huber/grads/supplibs/src/jpeg-6b\ --prefix=/home/huber/grads/supplibs/src/gd-2.0.34 #make gcc -g -O2 -o gdparttopng gdparttopng.o -L/home/huber/grads/supplibs/lib -L/usr/local/lib/hpux32 -L/usr/lib/X11R4 -L/home/huber/grads/supplibs/src/jpeg-6b/lib ./.libs/libgd.a -L/usr/contrib/X11R6/lib /usr/local/lib/hpux32/libXpm.so /usr/local/lib/hpux32/libintl.so -lX11 -ljpeg /usr/local/lib/hpux32/libfontconfig.so /usr/local/lib/hpux32/libiconv.so /usr/local/lib/hpux32/libexpat.so /usr/local/lib/hpux32/libfreetype.so /usr/local/lib/hpux32/libpng14.so -lz -lm ld: Unsatisfied symbol "png_check_sig" in file ./.libs/libgd.a[gd_png.o] 1 errors. collect2: ld returned 1 exit status make[2]: *** [gdparttopng] Error 1 make[2]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34' make: *** [all] Error 2 Please help me, Best regards, Huber Paul Gilt Lopez IGP-Peru -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100709/ba2c9448/attachment-0001.html From Huddleston at cira.colostate.edu Fri Jul 9 12:52:29 2010 From: Huddleston at cira.colostate.edu (Huddleston, John) Date: Fri, 9 Jul 2010 09:52:29 -0700 Subject: [gradsusr] error compiling gd library In-Reply-To: <201007091544.o69Fiei7011866@geo.igp.gob.pe> References: <201007091544.o69Fiei7011866@geo.igp.gob.pe> Message-ID: Hi Huber The ZLIB and JPEG 6b external libraries are REQUIRED by HDF4; however, I do not think HDF5 needs them. My config.log shows: configure:31217: WARNING: unrecognized options: --with-jpeg So, you are correct, you do not have to include it. John Huddleston, PhD Cooperative Institute for Research in the Atmosphere From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez Sent: Friday, July 09, 2010 9:38 AM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library Hello John, Thank you I copied libunits.a to ${SUPPLIBS}/lib area, and also I copied libdbf.a and libmfhdf.a, but when I configured the hdf5 library, with this command ./configure --disable-shared --disable-fortran \ --with-zlib=$HOME/supplibs/src/zlib-1.2.3 \ --with-jpeg=$HOME/supplibs/src/jpeg-6b \ --with-szlib=$HOME/supplibs/src/szip-2.1 \ --prefix=$HOME/supplibs/src/hdf5-1.8.4-patch1 I think this "--with-jpeg" option did not exists because don't show me in the final summary: AM_LDFLAGS: -L/home/huber/grads/supplibs/src/zlib-1.2.3/lib -L/home/huber/grads/supplibs/src/szip-2.1/lib Is it necessary to include jpeg library? Please help me, Best regards, Huber ________________________________ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: jueves, 08 de julio de 2010 19:21 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Huber, The archive library libunits.a is not empty. It is fine. Copy it to the ${SUPPLIBS}/lib area and move on. BTW, if you have the gcc compiler on your system, then 'export CC=gcc' and start over. e.g. 'gcc --version' send me the results ... John ________________________________ From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez [huber.gilt at igp.gob.pe] Sent: Thursday, July 08, 2010 3:45 PM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library Hello John, Do a 'ar tv libudunits.a', you should see something like rw-r--r-- 1000/1000 16568 Jul 27 10:02 2009 utlib.o rw-r--r-- 1000/1000 7524 Jul 27 10:02 2009 utparse.o rw-r--r-- 1000/1000 14272 Jul 27 10:02 2009 utscan.o rw-r--r-- 1000/1000 1136 Jul 27 10:02 2009 udalloc.o Yes, I do. And I see: # ar -tv libudunits.a rw-r--r-- 0/ 3 74480 Jul 8 15:47 2010 utlib.o rw-r--r-- 0/ 3 18232 Jul 8 15:47 2010 utparse.o rw-r--r-- 0/ 3 45144 Jul 8 15:47 2010 utscan.o rw-r--r-- 0/ 3 5328 Jul 8 15:47 2010 udalloc.o If you have all four then you're good to go. Yes, I have but I think all four is empty. Copy it to ${SUPPLIBS}/lib, copy etc/udunits.dat to ${SUPPLIBS}/etc I think this is not match. You are getting an error on creating udunits executable. I think this is match. If the four objects are not in the libudunits.a file, cd into the lib directory, and try compiling by hand: cc -c -O -I../port/misc -I../port/cfortran -DUT_DEFAULT_PATH='"${SUPPLIBS}/etc/udunits.dat"' *.c I tried, but I think this is not complete well. #cc -c -O -I../port/misc -I../port/cfortran -DUT_DEFAULT_PATH='"${SUPPLIBS}/etc/udunits.dat"' *.c (Bundled) cc: warning 922: "-O" is unsupported in the bundled compiler, ignored. udalloc.c: utlib-1.11.7.nof77intfc.c: "utlib-1.11.7.nof77intfc.c", line 1488: warning #2177-D: function "CopyCtorNode" was declared but never referenced CopyCtorNode(node) ^ "utlib-1.11.7.nof77intfc.c", line 1520: warning #2177-D: function "AssignNode" was declared but never referenced AssignNode(to, from) ^ utlib.c: "utlib.c", line 1488: warning #2177-D: function "CopyCtorNode" was declared but never referenced CopyCtorNode(node) ^ "utlib.c", line 1520: warning #2177-D: function "AssignNode" was declared but never referenced AssignNode(to, from) ^ utparse.c: "utparse.y", line 386: warning #2175-D: subscript out of range yypv = &yyv[-1]; ^ "utparse.y", line 387: warning #2175-D: subscript out of range yyps = &yys[-1]; ^ "utparse.y", line 405: warning #2177-D: label "yynewstate" was declared but never referenced yynewstate: ^ utscan.c: then type 'make' and it should update the libudunits.a file. I done, but I think libudunits.a library is still too small. # make ar rcuv libudunits.a utlib.o utparse.o utscan.o udalloc.o r - utlib.o r - utparse.o r - utscan.o r - udalloc.o case "" in \ '') ;; \ *) ar rucv libudunits.a ;; \ esac ranlib libudunits.a # du -sk libudunits.a 144 libudunits.a Go to the ../udunits directory and edit the Makefile to remove the -R option arguments, exit the editor, and type make, or manually cc -o udunits -O udunits.o -L../lib -ludunits -lm -L../port/misc -ludport -lm I did the manually form, then I type these commands but I have the same problem. # cd ../udunits # cc -o udunits -O udunits.o -L../lib -ludunits -lm -L../port/misc -ludport -lm cc -c -O -I../lib -I../port/misc udunits.c (Bundled) cc: warning 922: "-O" is unsupported in the bundled compiler, ignored. cc -o udunits -O udunits.o -R/data/hoop/udunits-1.11.7/src/lib -L/data/hoop/udunits-1.11.7/src/lib -ludunits -R/data/hoop/udunits-1.11.7/src/port/misc -L/data/hoop/udunits-1.11.7/src/port/misc -ludport -ly -lm (Bundled) cc: warning 922: "-O" is unsupported in the bundled compiler, ignored. (Bundled) cc: warning 901: unknown option: `-R/data/hoop/udunits-1.11.7/src/lib': use +help for online documentation. (Bundled) cc: warning 901: unknown option: `-R/data/hoop/udunits-1.11.7/src/port/misc': use +help for online documentation. ld: Can't find library for -ludunits Fatal error. make[1]: *** [udunits] Error 1 make[1]: Leaving directory `/home/huber/grads/supplibs/src/udunits-1.11.7/src/udunits' make: *** [program] Error 2 And also I remove -R option arguments. Then make output were: make[1]: Entering directory `/home/huber/grads/supplibs/src/udunits-1.11.7/src/udunits' cc -o udunits -O udunits.o -ly -lm (Bundled) cc: warning 922: "-O" is unsupported in the bundled compiler, ignored. ld: Unsatisfied symbol "utIsTime" in file udunits.o ld: Unsatisfied symbol "utInit" in file udunits.o ld: Unsatisfied symbol "utCalendar" in file udunits.o ld: Unsatisfied symbol "utScan" in file udunits.o ld: Unsatisfied symbol "utTerm" in file udunits.o ld: Unsatisfied symbol "utConvert" in file udunits.o ld: (Warning) Unsatisfied symbol "yyparse" in file /usr/lib/hpux32/liby.so ld: Unsatisfied symbol "utPrint" in file udunits.o 1 warnings. 7 errors. make[1]: *** [udunits] Error 1 make[1]: Leaving directory `/home/huber/grads/supplibs/src/udunits-1.11.7/src/udunits' make: *** [program] Error 2 If it possible to have the equivalent commands with gcc compiler, the libudunits.a is still too small I don't know what is going on with compilation with libudunits library, do you have extra information or tips about the process of compilation in gcc o cc? Thanks you, Very much Huber ________________________________ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: jueves, 08 de julio de 2010 14:55 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber, it is a small file, Do a 'ar tv libudunits.a', you should see something like rw-r--r-- 1000/1000 16568 Jul 27 10:02 2009 utlib.o rw-r--r-- 1000/1000 7524 Jul 27 10:02 2009 utparse.o rw-r--r-- 1000/1000 14272 Jul 27 10:02 2009 utscan.o rw-r--r-- 1000/1000 1136 Jul 27 10:02 2009 udalloc.o If you have all four then you're good to go. Copy it to ${SUPPLIBS}/lib, copy etc/udunits.dat to ${SUPPLIBS}/etc You are getting an error on creating udunits executable. If the four objects are not in the libudunits.a file, cd into the lib directory, and try compiling by hand: cc -c -O -I../port/misc -I../port/cfortran -DUT_DEFAULT_PATH='"${SUPPLIBS}/etc/udunits.dat"' *.c then type 'make' and it should update the libudunits.a file. Go to the ../udunits directory and edit the Makefile to remove the -R option arguments, exit the editor, and type make, or manually cc -o udunits -O udunits.o -L ../lib -ludunits -lm -L ../port/misc -ludport -lm John John Huddleston, PhD Cooperative Institute for Research in the Atmosphere From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez Sent: Thursday, July 08, 2010 1:19 PM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library Hello John, Thanks you for your help, I've compiled libgb.a library and also jasper, g2clib, and szip, but I can't compiled udunits library. I get the following error: cc -o udunits -O udunits.o -R/data/hoop/udunits-1.11.7/src/lib -L/data/hoop/udunits-1.11.7/src/lib -ludunits -R/data/hoop/udunits-1.11.7/src/port/misc -L/data/hoop/udunits-1.11.7/src/port/misc -ludport -ly -lm (Bundled) cc: warning 922: "-O" is unsupported in the bundled compiler, ignored. (Bundled) cc: warning 901: unknown option: `-R/data/hoop/udunits-1.11.7/src/lib': use +help for online documentation. (Bundled) cc: warning 901: unknown option: `-R/data/hoop/udunits-1.11.7/src/port/misc': use +help for online documentation. ld: Can't find library for -ludunits Fatal error. make[2]: *** [udunits] Error 1 make[2]: Leaving directory `/home/huber/grads/supplibs/src/udunits-1.11.7/src/udunits' make[1]: *** [program] Error 2 make[1]: Leaving directory `/home/huber/grads/supplibs/src/udunits-1.11.7/src/udunits' make: *** [udunits/all] Error 1 But I saw that I have the libunits.a library, but I think it isn't complete because it's so small. How can I resolve this error? # ls lib/libudunits.a lib/libudunits.a # du -sk lib/libudunits.a 144 lib/libudunits.a Please help me, Best regards, Huber ________________________________ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: jueves, 08 de julio de 2010 9:54 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber, The /usr/local/lib/libpng.la controls which PNG library is used. It seems as if someone else built and installed version 14 under /usr/local. Unless you have sudo privlileges you are going to have to work around that implementation. This is going to sound funny..but; if you have already built the GD library file that's all you need to continue building. In my case, the path is /home/dasilva/src/supplibs-2.1.0/i686-pc-linux/lib/libgd.a In your case copy the libgd.a to your $(SUPPLIBS)/lib directory and copy the include files gd.h gdfx.h gd_io.h gdcache.h gdfontg.h gdfontl.h gdfontmb.h gdfonts.h gdfontt.h entities.h to your ${SUPPLIBS}/include directory. Next, go on to build jasper, g2clib, szlib, etc. John John Huddleston, PhD Cooperative Institute for Research in the Atmosphere From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez Sent: Wednesday, July 07, 2010 9:42 AM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library Hi John, Don't worry about the difficulty that I'm having, I can't figure how you build in or with Cygwin, I suppose it is a heavy work. Any way, I don't found any reference with libpng14 in the libgb's Makefile , but I found the following lines that I think it would be not setup for the libpng12. How can I setup this Makefile in order to use the libpng12 library, and so try to compile the gb library? (I'm attaching the libgb's Makefile) LIBPNG12_CONFIG = LIBPNG_CONFIG = /usr/local/bin/libpng-config Please help me, Best regards, Huber ________________________________ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: martes, 06 de julio de 2010 14:30 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber, so sorry you are having so much difficulty. You should see the work I have for the Cygwin build! Look at your gcc line and you will see the path /usr/local/lib/hpux32/libpng14.so Edit the Makefile, search for libpng14, edit that line and replace it with the path to your libpng12 file. John John Huddleston, PhD Cooperative Institute for Research in the Atmosphere From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez Sent: Tuesday, July 06, 2010 1:13 PM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library Hello John, I start to compile all the supplemental libraries; I compiled readline, ncurses, zlib, libpng and jpeg libraries, but I cant compile gd library. Because I have the following error: gcc -g -O2 -o gdparttopng gdparttopng.o -L/usr/local/lib/hpux32 -L/usr/lib/X11R4 -L/home/huber/grads/supplibs/src/jpeg-6b/lib ./.libs/libgd.a -L/usr/contrib/X11R6/lib /usr/local/lib/hpux32/libXpm.so /usr/local/lib/hpux32/libintl.so -lX11 /usr/local/lib/hpux32/libjpeg.so /usr/local/lib/hpux32/libfontconfig.so /usr/local/lib/hpux32/libiconv.so /usr/local/lib/hpux32/libexpat.so /usr/local/lib/hpux32/libfreetype.so /usr/local/lib/hpux32/libpng14.so -lz -lm ld: Unsatisfied symbol "gdImageCreateFromGd2Part" in file gdparttopng.o ld: Unsatisfied symbol "png_check_sig" in file ./.libs/libgd.a[gd_png.o] 2 errors. collect2: ld returned 1 exit status make[2]: *** [gdparttopng] Error 1 make[2]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34' make: *** [all] Error 2 Who can I setup the correct path for the libpng1.2 library, because I follow the instructions in the PDF, and I executed the following commands: cd gd-2.0.34 ./configure --disable-shared \ --with-png=$HOME/supplibs/src/libpng-1.2.18 \ --with-jpeg=$HOME/supplibs/src/jpeg-6b \ --prefix=$HOME/supplibs/src/gd-2.0.34 make Please help me, Best regards, Huber ________________________________ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: viernes, 02 de julio de 2010 12:20 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber, Did you remove the libpng directory, untar libpng again, configure again with the options specified in Building_GrADS.pdf, and make the system? Ditto for the GD build. You must follow the order of the build as shown in the PDF file. John Huddleston, PhD, PE ________________________________ From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez [huber.gilt at igp.gob.pe] Sent: Friday, July 02, 2010 11:06 AM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library Hello John, I've done your instructions and also I compiled the zlib-1.2.3 library and I have the library libz.a, in supplibs/lib. And I have the same problem in libpng-1.2-18 compilation. What is going on with libpng library if I have the libz.a library in the folder supplibs/lib? (In the end I list the compiled libraries) Please help me, Best regards. Huber Paul Gilt L?pez # pwd /home/huber/grads/supplibs/lib # ls libcurl.a libhdf5_hl.a libncurses.a libreadline.a libxdr.a libdf.a libjpeg.a libnetcdf.a libsz.a libz.a libhdf5.a libmfhdf.a libpng12.a libudunits.a ________________________________ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: viernes, 02 de julio de 2010 9:30 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber, On June 15th I sent you a PDF on how to build GrADS, please look it over, libpng doesn't build because you do not have the zlib. Get zlib from ftp://grads.iges.org/grads/Supplibs/2.0/src/zlib-1.2.3.tar.gz tar xvfz ./tarfiles/zlib-1.2.3.tar.gz cd zlib-1.2.3/ ./configure --prefix=$HOME/supplibs/src/zlib-1.2.3 make make install cp ./lib/libz.a $HOME/supplibs/lib mkdir $HOME/supplibs/include/zlib cp ./include/zlib.h $HOME/supplibs/include/zlib John ________________________________ From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez [huber.gilt at igp.gob.pe] Sent: Friday, July 02, 2010 8:17 AM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library John, Because I found this error when I configure PNG library 1.2: #cd /home/huber/grads/supplibs/src/libpng-1.2.18 ./configure --disable-shared --prefix=/home/huber/grads/supplibs/src/libpng-1.2.18 ... checking for pow in -lm... yes checking for zlibVersion in -lz... no configure: error: zlib not installed I've exported this variable CC=gcc by this other CC='gcc -L/home/huber/grads/supplibs/lib -lz', then I've done make, and make install. Provably the libpng12.a library didn't build well, how I can fix the previous error when I tried to configure the libpng12 library? Please help me, Best regards, Huber Paul Gilt Lopez ________________________________ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: jueves, 01 de julio de 2010 18:46 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Huber You need the PNG library1.2 not 1.4. Somehow you've installed a more recent version of PNG into /usr/local Go back to the PNG 1.2 build and do a "make install" to load it into /usr/local Otherwise, manually edit the Makefile and change it to point to your $(SUPPLIBS) PNG area. John Huddleston ________________________________ From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez [huber.gilt at igp.gob.pe] Sent: Thursday, July 01, 2010 4:15 PM To: 'GrADS Users Forum' Subject: [gradsusr] error compiling gd library Hello, I want to compile the gd library, i used this command, but I have an unsatisfied symbol. How can I include these missing symbol? #cd /home/huber/grads/supplibs/src/gd-2.0.34 #./configure --disable-shared\ --with-png=/home/huber/grads/supplibs/src/libpng-1.2.18\ --with-jpeg=/home/huber/grads/supplibs/src/jpeg-6b\ --prefix=/home/huber/grads/supplibs/src/gd-2.0.34 #make ... gcc -g -O2 -o gdparttopng gdparttopng.o -L/home/huber/grads/supplibs/lib -L/usr/local/lib/hpux32 -L/usr/lib/X11R4 -L/home/huber/grads/supplibs/src/jpeg-6b/lib ./.libs/libgd.a -L/usr/contrib/X11R6/lib /usr/local/lib/hpux32/libXpm.so /usr/local/lib/hpux32/libintl.so -lX11 -ljpeg /usr/local/lib/hpux32/libfontconfig.so /usr/local/lib/hpux32/libiconv.so /usr/local/lib/hpux32/libexpat.so /usr/local/lib/hpux32/libfreetype.so /usr/local/lib/hpux32/libpng14.so -lz -lm ld: Unsatisfied symbol "png_check_sig" in file ./.libs/libgd.a[gd_png.o] 1 errors. collect2: ld returned 1 exit status make[2]: *** [gdparttopng] Error 1 make[2]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34' make: *** [all] Error 2 Please help me, Best regards, Huber Paul Gilt Lopez IGP-Peru -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100709/2d2b323d/attachment-0001.html From Huddleston at cira.colostate.edu Fri Jul 9 13:10:27 2010 From: Huddleston at cira.colostate.edu (Huddleston, John) Date: Fri, 9 Jul 2010 10:10:27 -0700 Subject: [gradsusr] error compiling gd library In-Reply-To: <201007091633.o69GX2kn004681@geo.igp.gob.pe> References: <201007091633.o69GX2kn004681@geo.igp.gob.pe> Message-ID: Hi Huber, You just found a bug in the libxml2 library. Go to line 2338 of encoding.c, e.g. vi +2338 encoding And change the word 'xlattable' to 'unicodetable' John John Huddleston, PhD Cooperative Institute for Research in the Atmosphere From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez Sent: Friday, July 09, 2010 10:26 AM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library Hello John, I'm trying to compile xml2 library, but after I applied this commands: #./configure --disable-shared \ --prefix=$HOME/supplibs/src/libxml2-2.6.16 #make I found these 2 errors. I think this variable or function "xlattable" is not defined. How can I fix these two errors? gcc -DHAVE_CONFIG_H -I. -I. -I. -I./include -I./include -D_REENTRANT -g -O2 -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls -MT encoding.lo -MD -MP -MF .deps/encoding.Tpo -c encoding.c -o encoding.o encoding.c: In function 'UTF16LEToUTF8': encoding.c:418: warning: cast increases required alignment of target type encoding.c: In function 'UTF8ToUTF16LE': encoding.c:500: warning: cast increases required alignment of target type encoding.c: In function 'UTF16BEToUTF8': encoding.c:655: warning: cast increases required alignment of target type encoding.c: In function 'UTF8ToUTF16BE': encoding.c:741: warning: cast increases required alignment of target type encoding.c: In function 'ISO8859xToUTF8': encoding.c:2338: error: 'xlattable' undeclared (first use in this function) encoding.c:2338: error: (Each undeclared identifier is reported only once encoding.c:2338: error: for each function it appears in.) encoding.c: At top level: encoding.c:2998: warning: string length '688' is greater than the length '509' ISO C90 compilers are required to support encoding.c:3108: warning: string length '624' is greater than the length '509' ISO C90 compilers are required to support make[2]: *** [encoding.lo] Error 1 make[2]: Leaving directory `/home/huber/grads/supplibs/src/libxml2-2.6.16' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/huber/grads/supplibs/src/libxml2-2.6.16' make: *** [all] Error 2 Please help me, Best regards, Huber ________________________________ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: jueves, 08 de julio de 2010 19:21 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Huber, The archive library libunits.a is not empty. It is fine. Copy it to the ${SUPPLIBS}/lib area and move on. BTW, if you have the gcc compiler on your system, then 'export CC=gcc' and start over. e.g. 'gcc --version' send me the results ... John ________________________________ From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez [huber.gilt at igp.gob.pe] Sent: Thursday, July 08, 2010 3:45 PM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library Hello John, Do a 'ar tv libudunits.a', you should see something like rw-r--r-- 1000/1000 16568 Jul 27 10:02 2009 utlib.o rw-r--r-- 1000/1000 7524 Jul 27 10:02 2009 utparse.o rw-r--r-- 1000/1000 14272 Jul 27 10:02 2009 utscan.o rw-r--r-- 1000/1000 1136 Jul 27 10:02 2009 udalloc.o Yes, I do. And I see: # ar -tv libudunits.a rw-r--r-- 0/ 3 74480 Jul 8 15:47 2010 utlib.o rw-r--r-- 0/ 3 18232 Jul 8 15:47 2010 utparse.o rw-r--r-- 0/ 3 45144 Jul 8 15:47 2010 utscan.o rw-r--r-- 0/ 3 5328 Jul 8 15:47 2010 udalloc.o If you have all four then you're good to go. Yes, I have but I think all four is empty. Copy it to ${SUPPLIBS}/lib, copy etc/udunits.dat to ${SUPPLIBS}/etc I think this is not match. You are getting an error on creating udunits executable. I think this is match. If the four objects are not in the libudunits.a file, cd into the lib directory, and try compiling by hand: cc -c -O -I../port/misc -I../port/cfortran -DUT_DEFAULT_PATH='"${SUPPLIBS}/etc/udunits.dat"' *.c I tried, but I think this is not complete well. #cc -c -O -I../port/misc -I../port/cfortran -DUT_DEFAULT_PATH='"${SUPPLIBS}/etc/udunits.dat"' *.c (Bundled) cc: warning 922: "-O" is unsupported in the bundled compiler, ignored. udalloc.c: utlib-1.11.7.nof77intfc.c: "utlib-1.11.7.nof77intfc.c", line 1488: warning #2177-D: function "CopyCtorNode" was declared but never referenced CopyCtorNode(node) ^ "utlib-1.11.7.nof77intfc.c", line 1520: warning #2177-D: function "AssignNode" was declared but never referenced AssignNode(to, from) ^ utlib.c: "utlib.c", line 1488: warning #2177-D: function "CopyCtorNode" was declared but never referenced CopyCtorNode(node) ^ "utlib.c", line 1520: warning #2177-D: function "AssignNode" was declared but never referenced AssignNode(to, from) ^ utparse.c: "utparse.y", line 386: warning #2175-D: subscript out of range yypv = &yyv[-1]; ^ "utparse.y", line 387: warning #2175-D: subscript out of range yyps = &yys[-1]; ^ "utparse.y", line 405: warning #2177-D: label "yynewstate" was declared but never referenced yynewstate: ^ utscan.c: then type 'make' and it should update the libudunits.a file. I done, but I think libudunits.a library is still too small. # make ar rcuv libudunits.a utlib.o utparse.o utscan.o udalloc.o r - utlib.o r - utparse.o r - utscan.o r - udalloc.o case "" in \ '') ;; \ *) ar rucv libudunits.a ;; \ esac ranlib libudunits.a # du -sk libudunits.a 144 libudunits.a Go to the ../udunits directory and edit the Makefile to remove the -R option arguments, exit the editor, and type make, or manually cc -o udunits -O udunits.o -L../lib -ludunits -lm -L../port/misc -ludport -lm I did the manually form, then I type these commands but I have the same problem. # cd ../udunits # cc -o udunits -O udunits.o -L../lib -ludunits -lm -L../port/misc -ludport -lm cc -c -O -I../lib -I../port/misc udunits.c (Bundled) cc: warning 922: "-O" is unsupported in the bundled compiler, ignored. cc -o udunits -O udunits.o -R/data/hoop/udunits-1.11.7/src/lib -L/data/hoop/udunits-1.11.7/src/lib -ludunits -R/data/hoop/udunits-1.11.7/src/port/misc -L/data/hoop/udunits-1.11.7/src/port/misc -ludport -ly -lm (Bundled) cc: warning 922: "-O" is unsupported in the bundled compiler, ignored. (Bundled) cc: warning 901: unknown option: `-R/data/hoop/udunits-1.11.7/src/lib': use +help for online documentation. (Bundled) cc: warning 901: unknown option: `-R/data/hoop/udunits-1.11.7/src/port/misc': use +help for online documentation. ld: Can't find library for -ludunits Fatal error. make[1]: *** [udunits] Error 1 make[1]: Leaving directory `/home/huber/grads/supplibs/src/udunits-1.11.7/src/udunits' make: *** [program] Error 2 And also I remove -R option arguments. Then make output were: make[1]: Entering directory `/home/huber/grads/supplibs/src/udunits-1.11.7/src/udunits' cc -o udunits -O udunits.o -ly -lm (Bundled) cc: warning 922: "-O" is unsupported in the bundled compiler, ignored. ld: Unsatisfied symbol "utIsTime" in file udunits.o ld: Unsatisfied symbol "utInit" in file udunits.o ld: Unsatisfied symbol "utCalendar" in file udunits.o ld: Unsatisfied symbol "utScan" in file udunits.o ld: Unsatisfied symbol "utTerm" in file udunits.o ld: Unsatisfied symbol "utConvert" in file udunits.o ld: (Warning) Unsatisfied symbol "yyparse" in file /usr/lib/hpux32/liby.so ld: Unsatisfied symbol "utPrint" in file udunits.o 1 warnings. 7 errors. make[1]: *** [udunits] Error 1 make[1]: Leaving directory `/home/huber/grads/supplibs/src/udunits-1.11.7/src/udunits' make: *** [program] Error 2 If it possible to have the equivalent commands with gcc compiler, the libudunits.a is still too small I don't know what is going on with compilation with libudunits library, do you have extra information or tips about the process of compilation in gcc o cc? Thanks you, Very much Huber ________________________________ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: jueves, 08 de julio de 2010 14:55 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber, it is a small file, Do a 'ar tv libudunits.a', you should see something like rw-r--r-- 1000/1000 16568 Jul 27 10:02 2009 utlib.o rw-r--r-- 1000/1000 7524 Jul 27 10:02 2009 utparse.o rw-r--r-- 1000/1000 14272 Jul 27 10:02 2009 utscan.o rw-r--r-- 1000/1000 1136 Jul 27 10:02 2009 udalloc.o If you have all four then you're good to go. Copy it to ${SUPPLIBS}/lib, copy etc/udunits.dat to ${SUPPLIBS}/etc You are getting an error on creating udunits executable. If the four objects are not in the libudunits.a file, cd into the lib directory, and try compiling by hand: cc -c -O -I../port/misc -I../port/cfortran -DUT_DEFAULT_PATH='"${SUPPLIBS}/etc/udunits.dat"' *.c then type 'make' and it should update the libudunits.a file. Go to the ../udunits directory and edit the Makefile to remove the -R option arguments, exit the editor, and type make, or manually cc -o udunits -O udunits.o -L ../lib -ludunits -lm -L ../port/misc -ludport -lm John John Huddleston, PhD Cooperative Institute for Research in the Atmosphere From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez Sent: Thursday, July 08, 2010 1:19 PM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library Hello John, Thanks you for your help, I've compiled libgb.a library and also jasper, g2clib, and szip, but I can't compiled udunits library. I get the following error: cc -o udunits -O udunits.o -R/data/hoop/udunits-1.11.7/src/lib -L/data/hoop/udunits-1.11.7/src/lib -ludunits -R/data/hoop/udunits-1.11.7/src/port/misc -L/data/hoop/udunits-1.11.7/src/port/misc -ludport -ly -lm (Bundled) cc: warning 922: "-O" is unsupported in the bundled compiler, ignored. (Bundled) cc: warning 901: unknown option: `-R/data/hoop/udunits-1.11.7/src/lib': use +help for online documentation. (Bundled) cc: warning 901: unknown option: `-R/data/hoop/udunits-1.11.7/src/port/misc': use +help for online documentation. ld: Can't find library for -ludunits Fatal error. make[2]: *** [udunits] Error 1 make[2]: Leaving directory `/home/huber/grads/supplibs/src/udunits-1.11.7/src/udunits' make[1]: *** [program] Error 2 make[1]: Leaving directory `/home/huber/grads/supplibs/src/udunits-1.11.7/src/udunits' make: *** [udunits/all] Error 1 But I saw that I have the libunits.a library, but I think it isn't complete because it's so small. How can I resolve this error? # ls lib/libudunits.a lib/libudunits.a # du -sk lib/libudunits.a 144 lib/libudunits.a Please help me, Best regards, Huber ________________________________ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: jueves, 08 de julio de 2010 9:54 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber, The /usr/local/lib/libpng.la controls which PNG library is used. It seems as if someone else built and installed version 14 under /usr/local. Unless you have sudo privlileges you are going to have to work around that implementation. This is going to sound funny..but; if you have already built the GD library file that's all you need to continue building. In my case, the path is /home/dasilva/src/supplibs-2.1.0/i686-pc-linux/lib/libgd.a In your case copy the libgd.a to your $(SUPPLIBS)/lib directory and copy the include files gd.h gdfx.h gd_io.h gdcache.h gdfontg.h gdfontl.h gdfontmb.h gdfonts.h gdfontt.h entities.h to your ${SUPPLIBS}/include directory. Next, go on to build jasper, g2clib, szlib, etc. John John Huddleston, PhD Cooperative Institute for Research in the Atmosphere From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez Sent: Wednesday, July 07, 2010 9:42 AM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library Hi John, Don't worry about the difficulty that I'm having, I can't figure how you build in or with Cygwin, I suppose it is a heavy work. Any way, I don't found any reference with libpng14 in the libgb's Makefile , but I found the following lines that I think it would be not setup for the libpng12. How can I setup this Makefile in order to use the libpng12 library, and so try to compile the gb library? (I'm attaching the libgb's Makefile) LIBPNG12_CONFIG = LIBPNG_CONFIG = /usr/local/bin/libpng-config Please help me, Best regards, Huber ________________________________ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: martes, 06 de julio de 2010 14:30 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber, so sorry you are having so much difficulty. You should see the work I have for the Cygwin build! Look at your gcc line and you will see the path /usr/local/lib/hpux32/libpng14.so Edit the Makefile, search for libpng14, edit that line and replace it with the path to your libpng12 file. John John Huddleston, PhD Cooperative Institute for Research in the Atmosphere From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez Sent: Tuesday, July 06, 2010 1:13 PM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library Hello John, I start to compile all the supplemental libraries; I compiled readline, ncurses, zlib, libpng and jpeg libraries, but I cant compile gd library. Because I have the following error: gcc -g -O2 -o gdparttopng gdparttopng.o -L/usr/local/lib/hpux32 -L/usr/lib/X11R4 -L/home/huber/grads/supplibs/src/jpeg-6b/lib ./.libs/libgd.a -L/usr/contrib/X11R6/lib /usr/local/lib/hpux32/libXpm.so /usr/local/lib/hpux32/libintl.so -lX11 /usr/local/lib/hpux32/libjpeg.so /usr/local/lib/hpux32/libfontconfig.so /usr/local/lib/hpux32/libiconv.so /usr/local/lib/hpux32/libexpat.so /usr/local/lib/hpux32/libfreetype.so /usr/local/lib/hpux32/libpng14.so -lz -lm ld: Unsatisfied symbol "gdImageCreateFromGd2Part" in file gdparttopng.o ld: Unsatisfied symbol "png_check_sig" in file ./.libs/libgd.a[gd_png.o] 2 errors. collect2: ld returned 1 exit status make[2]: *** [gdparttopng] Error 1 make[2]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34' make: *** [all] Error 2 Who can I setup the correct path for the libpng1.2 library, because I follow the instructions in the PDF, and I executed the following commands: cd gd-2.0.34 ./configure --disable-shared \ --with-png=$HOME/supplibs/src/libpng-1.2.18 \ --with-jpeg=$HOME/supplibs/src/jpeg-6b \ --prefix=$HOME/supplibs/src/gd-2.0.34 make Please help me, Best regards, Huber ________________________________ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: viernes, 02 de julio de 2010 12:20 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber, Did you remove the libpng directory, untar libpng again, configure again with the options specified in Building_GrADS.pdf, and make the system? Ditto for the GD build. You must follow the order of the build as shown in the PDF file. John Huddleston, PhD, PE ________________________________ From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez [huber.gilt at igp.gob.pe] Sent: Friday, July 02, 2010 11:06 AM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library Hello John, I've done your instructions and also I compiled the zlib-1.2.3 library and I have the library libz.a, in supplibs/lib. And I have the same problem in libpng-1.2-18 compilation. What is going on with libpng library if I have the libz.a library in the folder supplibs/lib? (In the end I list the compiled libraries) Please help me, Best regards. Huber Paul Gilt L?pez # pwd /home/huber/grads/supplibs/lib # ls libcurl.a libhdf5_hl.a libncurses.a libreadline.a libxdr.a libdf.a libjpeg.a libnetcdf.a libsz.a libz.a libhdf5.a libmfhdf.a libpng12.a libudunits.a ________________________________ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: viernes, 02 de julio de 2010 9:30 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber, On June 15th I sent you a PDF on how to build GrADS, please look it over, libpng doesn't build because you do not have the zlib. Get zlib from ftp://grads.iges.org/grads/Supplibs/2.0/src/zlib-1.2.3.tar.gz tar xvfz ./tarfiles/zlib-1.2.3.tar.gz cd zlib-1.2.3/ ./configure --prefix=$HOME/supplibs/src/zlib-1.2.3 make make install cp ./lib/libz.a $HOME/supplibs/lib mkdir $HOME/supplibs/include/zlib cp ./include/zlib.h $HOME/supplibs/include/zlib John ________________________________ From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez [huber.gilt at igp.gob.pe] Sent: Friday, July 02, 2010 8:17 AM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library John, Because I found this error when I configure PNG library 1.2: #cd /home/huber/grads/supplibs/src/libpng-1.2.18 ./configure --disable-shared --prefix=/home/huber/grads/supplibs/src/libpng-1.2.18 ... checking for pow in -lm... yes checking for zlibVersion in -lz... no configure: error: zlib not installed I've exported this variable CC=gcc by this other CC='gcc -L/home/huber/grads/supplibs/lib -lz', then I've done make, and make install. Provably the libpng12.a library didn't build well, how I can fix the previous error when I tried to configure the libpng12 library? Please help me, Best regards, Huber Paul Gilt Lopez ________________________________ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: jueves, 01 de julio de 2010 18:46 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Huber You need the PNG library1.2 not 1.4. Somehow you've installed a more recent version of PNG into /usr/local Go back to the PNG 1.2 build and do a "make install" to load it into /usr/local Otherwise, manually edit the Makefile and change it to point to your $(SUPPLIBS) PNG area. John Huddleston ________________________________ From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez [huber.gilt at igp.gob.pe] Sent: Thursday, July 01, 2010 4:15 PM To: 'GrADS Users Forum' Subject: [gradsusr] error compiling gd library Hello, I want to compile the gd library, i used this command, but I have an unsatisfied symbol. How can I include these missing symbol? #cd /home/huber/grads/supplibs/src/gd-2.0.34 #./configure --disable-shared\ --with-png=/home/huber/grads/supplibs/src/libpng-1.2.18\ --with-jpeg=/home/huber/grads/supplibs/src/jpeg-6b\ --prefix=/home/huber/grads/supplibs/src/gd-2.0.34 #make ... gcc -g -O2 -o gdparttopng gdparttopng.o -L/home/huber/grads/supplibs/lib -L/usr/local/lib/hpux32 -L/usr/lib/X11R4 -L/home/huber/grads/supplibs/src/jpeg-6b/lib ./.libs/libgd.a -L/usr/contrib/X11R6/lib /usr/local/lib/hpux32/libXpm.so /usr/local/lib/hpux32/libintl.so -lX11 -ljpeg /usr/local/lib/hpux32/libfontconfig.so /usr/local/lib/hpux32/libiconv.so /usr/local/lib/hpux32/libexpat.so /usr/local/lib/hpux32/libfreetype.so /usr/local/lib/hpux32/libpng14.so -lz -lm ld: Unsatisfied symbol "png_check_sig" in file ./.libs/libgd.a[gd_png.o] 1 errors. collect2: ld returned 1 exit status make[2]: *** [gdparttopng] Error 1 make[2]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34' make: *** [all] Error 2 Please help me, Best regards, Huber Paul Gilt Lopez IGP-Peru -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100709/8663d6c8/attachment-0001.html From shawn.milrad at gmail.com Fri Jul 9 14:52:14 2010 From: shawn.milrad at gmail.com (Shawn Milrad) Date: Fri, 9 Jul 2010 14:52:14 -0400 Subject: [gradsusr] Creating a Station Data File from ASCII: stnmap error Message-ID: Hi, I am trying to convert an ASCII file into a format GrADS can read. My ASCII file has 12 variables (it's sounding data) and looks like this: 0 46 144 849.1 22.0 25 4.860 36.23 2.6 11 40.630 ////// 0 48 151 848.4 22.0 25 4.860 36.30 2.6 11 40.630 ////// 0 50 157 847.8 21.9 25 4.840 36.26 2.7 10 40.630 ////// 0 52 161 847.4 21.9 25 4.840 36.30 2.7 10 40.630 ////// 0 54 165 847.0 21.9 25 4.840 36.34 2.7 10 40.630 ////// 0 56 172 846.4 21.8 26 5.010 36.30 2.7 10 40.630 ////// My Fortran 90 program is below. It compiles and creates the binary file successfully but when I run the stnmap utility I get the following error. *stnmap -i test.ctl Name of binary data set: testbin.dat Number of times in the data set: 1 Number of surface variables: 0 Number of level dependent variables: 12 Starting scan of station data binary file. Binary data file open: testbin.dat Processing time step 1 Sequential Read Error: Record size greater than one station report: 32 :: 28 *Has anyone seen this before/know how to fix it? Thanks, Shawn Milrad program fortrantest character*8 STID, RLON OPEN (8,FILE='10030000.txt') OPEN (10,FILE='testbin.dat',FORM='UNFORMATTED', & ACCESS='SEQUENTIAL') IFLAG = 0 STID = 'WHEELER' ! Read and Write 10 READ (8,9000,END=90) IMIN,ISEC,IHGHT,PRES,TMPC, & IRELH,RMIX,THETAC,SPED,IDIR,RLAT,RLON 9000 FORMAT (2x,I2,2X,I2,5X,I4,3X,F5.1,3X,F4.1,2X,I2,2X, & F5.3,3x,F5.2,1x,F4.1,1x,I3,2x,F6.3,2x,A6) IF (IFLAG.EQ.0) THEN IFLAG = 1 IMINOLD = IMIN ISECOLD = ISEC ENDIF ! If new time group, write time group terminator. ! Assuming no empty time groups. IF (IMINOLD.NE.IMIN.OR.ISECOLD.NE.ISEC) THEN NLEV = 0 WRITE (10) STID,RLAT,RLON,TIM,NLEV,NFLAG ENDIF IMINOLD = IMIN ISECOLD = ISEC ! Write this report TIM = 0.0 NLEV = 1 NFLAG = 1 WRITE (10) STID,RLAT,RLON,TIM,NLEV,NFLAG WRITE (10) IHGHT,PRES,TMPC,IRELH,RMIX,THETAC, & SPED,IDIR GO TO 10 ! On end of file write last time group terminator. 90 CONTINUE NLEV = 0 WRITE (10) STID, RLAT, RLON, TIM,NLEV,NFLAG STOP END -- Shawn Milrad, Ph. D. Staff Scientist AER, Inc. -- Shawn Milrad Cell: 732-261-3594 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100709/9f2ea045/attachment.html From huber.gilt at igp.gob.pe Fri Jul 9 15:35:32 2010 From: huber.gilt at igp.gob.pe (=?iso-8859-1?Q?Huber_Pa=FAl_Gilt_L=F3pez?=) Date: Fri, 9 Jul 2010 14:35:32 -0500 Subject: [gradsusr] error compiling gd library In-Reply-To: Message-ID: <201007091942.o69JgXPu008991@geo.igp.gob.pe> Hello John, I trying to compile libdap-3.7.8 library, according to the grads instructions, I changed the line this 136 in the configure.ac: 136 libdap_pkgconfig_libcurl=yes By this other: 136 libdap_pkgconfig_libcurl=no And then run this command: # autoreconf configure.ac:73: error: AC_REQUIRE: circular dependency of AC_GNU_SOURCE gl/m4/extensions.m4:19: AC_USE_SYSTEM_EXTENSIONS is expanded from... ../../lib/autoconf/specific.m4:310: AC_GNU_SOURCE is expanded from... gl/m4/gnulib-comp.m4:21: gl_EARLY is expanded from... configure.ac:73: the top level autom4te: /usr/local/bin/m4 failed with exit status: 1 aclocal: /usr/local/bin/autom4te failed with exit status: 1 autoreconf: aclocal failed with exit status: 1 I think these messages aren?t good. How can I fix that? Please help, Best regards, Huber Paul Gilt Lopez _____ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: viernes, 09 de julio de 2010 12:10 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber, You just found a bug in the libxml2 library. Go to line 2338 of encoding.c, e.g. vi +2338 encoding And change the word ?xlattable? to ?unicodetable? John John Huddleston, PhD Cooperative Institute for Research in the Atmosphere From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez Sent: Friday, July 09, 2010 10:26 AM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library Hello John, I?m trying to compile xml2 library, but after I applied this commands: #./configure --disable-shared \ --prefix=$HOME/supplibs/src/libxml2-2.6.16 #make I found these 2 errors. I think this variable or function ?xlattable? is not defined. How can I fix these two errors? gcc -DHAVE_CONFIG_H -I. -I. -I. -I./include -I./include -D_REENTRANT -g -O2 -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls -MT encoding.lo -MD -MP -MF .deps/encoding.Tpo -c encoding.c -o encoding.o encoding.c: In function 'UTF16LEToUTF8': encoding.c:418: warning: cast increases required alignment of target type encoding.c: In function 'UTF8ToUTF16LE': encoding.c:500: warning: cast increases required alignment of target type encoding.c: In function 'UTF16BEToUTF8': encoding.c:655: warning: cast increases required alignment of target type encoding.c: In function 'UTF8ToUTF16BE': encoding.c:741: warning: cast increases required alignment of target type encoding.c: In function 'ISO8859xToUTF8': encoding.c:2338: error: 'xlattable' undeclared (first use in this function) encoding.c:2338: error: (Each undeclared identifier is reported only once encoding.c:2338: error: for each function it appears in.) encoding.c: At top level: encoding.c:2998: warning: string length '688' is greater than the length '509' ISO C90 compilers are required to support encoding.c:3108: warning: string length '624' is greater than the length '509' ISO C90 compilers are required to support make[2]: *** [encoding.lo] Error 1 make[2]: Leaving directory `/home/huber/grads/supplibs/src/libxml2-2.6.16' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/huber/grads/supplibs/src/libxml2-2.6.16' make: *** [all] Error 2 Please help me, Best regards, Huber _____ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: jueves, 08 de julio de 2010 19:21 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Huber, The archive library libunits.a is not empty. It is fine. Copy it to the ${SUPPLIBS}/lib area and move on. BTW, if you have the gcc compiler on your system, then 'export CC=gcc' and start over. e.g. 'gcc --version' send me the results ... John _____ From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez [huber.gilt at igp.gob.pe] Sent: Thursday, July 08, 2010 3:45 PM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library Hello John, Do a ?ar tv libudunits.a?, you should see something like rw-r--r-- 1000/1000 16568 Jul 27 10:02 2009 utlib.o rw-r--r-- 1000/1000 7524 Jul 27 10:02 2009 utparse.o rw-r--r-- 1000/1000 14272 Jul 27 10:02 2009 utscan.o rw-r--r-- 1000/1000 1136 Jul 27 10:02 2009 udalloc.o Yes, I do. And I see: # ar -tv libudunits.a rw-r--r-- 0/ 3 74480 Jul 8 15:47 2010 utlib.o rw-r--r-- 0/ 3 18232 Jul 8 15:47 2010 utparse.o rw-r--r-- 0/ 3 45144 Jul 8 15:47 2010 utscan.o rw-r--r-- 0/ 3 5328 Jul 8 15:47 2010 udalloc.o If you have all four then you?re good to go. Yes, I have but I think all four is empty. Copy it to ${SUPPLIBS}/lib, copy etc/udunits.dat to ${SUPPLIBS}/etc I think this is not match. You are getting an error on creating udunits executable. I think this is match. If the four objects are not in the libudunits.a file, cd into the lib directory, and try compiling by hand: cc -c -O -I../port/misc -I../port/cfortran -DUT_DEFAULT_PATH='"${SUPPLIBS}/etc/udunits.dat"' *.c I tried, but I think this is not complete well. #cc -c -O -I../port/misc -I../port/cfortran -DUT_DEFAULT_PATH='"${SUPPLIBS}/etc/udunits.dat"' *.c (Bundled) cc: warning 922: "-O" is unsupported in the bundled compiler, ignored. udalloc.c: utlib-1.11.7.nof77intfc.c: "utlib-1.11.7.nof77intfc.c", line 1488: warning #2177-D: function "CopyCtorNode" was declared but never referenced CopyCtorNode(node) ^ "utlib-1.11.7.nof77intfc.c", line 1520: warning #2177-D: function "AssignNode" was declared but never referenced AssignNode(to, from) ^ utlib.c: "utlib.c", line 1488: warning #2177-D: function "CopyCtorNode" was declared but never referenced CopyCtorNode(node) ^ "utlib.c", line 1520: warning #2177-D: function "AssignNode" was declared but never referenced AssignNode(to, from) ^ utparse.c: "utparse.y", line 386: warning #2175-D: subscript out of range yypv = &yyv[-1]; ^ "utparse.y", line 387: warning #2175-D: subscript out of range yyps = &yys[-1]; ^ "utparse.y", line 405: warning #2177-D: label "yynewstate" was declared but never referenced yynewstate: ^ utscan.c: then type ?make? and it should update the libudunits.a file. I done, but I think libudunits.a library is still too small. # make ar rcuv libudunits.a utlib.o utparse.o utscan.o udalloc.o r - utlib.o r - utparse.o r - utscan.o r - udalloc.o case "" in \ '') ;; \ *) ar rucv libudunits.a ;; \ esac ranlib libudunits.a # du -sk libudunits.a 144 libudunits.a Go to the ../udunits directory and edit the Makefile to remove the ?R option arguments, exit the editor, and type make, or manually cc -o udunits -O udunits.o ?L../lib -ludunits -lm ?L../port/misc -ludport -lm I did the manually form, then I type these commands but I have the same problem. # cd ../udunits # cc -o udunits -O udunits.o ?L../lib -ludunits -lm ?L../port/misc -ludport -lm cc -c -O -I../lib -I../port/misc udunits.c (Bundled) cc: warning 922: "-O" is unsupported in the bundled compiler, ignored. cc -o udunits -O udunits.o -R/data/hoop/udunits-1.11.7/src/lib -L/data/hoop/udunits-1.11.7/src/lib -ludunits -R/data/hoop/udunits-1.11.7/src/port/misc -L/data/hoop/udunits-1.11.7/src/port/misc -ludport -ly -lm (Bundled) cc: warning 922: "-O" is unsupported in the bundled compiler, ignored. (Bundled) cc: warning 901: unknown option: `-R/data/hoop/udunits-1.11.7/src/lib': use +help for online documentation. (Bundled) cc: warning 901: unknown option: `-R/data/hoop/udunits-1.11.7/src/port/misc': use +help for online documentation. ld: Can't find library for -ludunits Fatal error. make[1]: *** [udunits] Error 1 make[1]: Leaving directory `/home/huber/grads/supplibs/src/udunits-1.11.7/src/udunits' make: *** [program] Error 2 And also I remove ?R option arguments. Then make output were: make[1]: Entering directory `/home/huber/grads/supplibs/src/udunits-1.11.7/src/udunits' cc -o udunits -O udunits.o -ly -lm (Bundled) cc: warning 922: "-O" is unsupported in the bundled compiler, ignored. ld: Unsatisfied symbol "utIsTime" in file udunits.o ld: Unsatisfied symbol "utInit" in file udunits.o ld: Unsatisfied symbol "utCalendar" in file udunits.o ld: Unsatisfied symbol "utScan" in file udunits.o ld: Unsatisfied symbol "utTerm" in file udunits.o ld: Unsatisfied symbol "utConvert" in file udunits.o ld: (Warning) Unsatisfied symbol "yyparse" in file /usr/lib/hpux32/liby.so ld: Unsatisfied symbol "utPrint" in file udunits.o 1 warnings. 7 errors. make[1]: *** [udunits] Error 1 make[1]: Leaving directory `/home/huber/grads/supplibs/src/udunits-1.11.7/src/udunits' make: *** [program] Error 2 If it possible to have the equivalent commands with gcc compiler, the libudunits.a is still too small I don?t know what is going on with compilation with libudunits library, do you have extra information or tips about the process of compilation in gcc o cc? Thanks you, Very much Huber _____ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: jueves, 08 de julio de 2010 14:55 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber, it is a small file, Do a ?ar tv libudunits.a?, you should see something like rw-r--r-- 1000/1000 16568 Jul 27 10:02 2009 utlib.o rw-r--r-- 1000/1000 7524 Jul 27 10:02 2009 utparse.o rw-r--r-- 1000/1000 14272 Jul 27 10:02 2009 utscan.o rw-r--r-- 1000/1000 1136 Jul 27 10:02 2009 udalloc.o If you have all four then you?re good to go. Copy it to ${SUPPLIBS}/lib, copy etc/udunits.dat to ${SUPPLIBS}/etc You are getting an error on creating udunits executable. If the four objects are not in the libudunits.a file, cd into the lib directory, and try compiling by hand: cc -c -O -I../port/misc -I../port/cfortran -DUT_DEFAULT_PATH='"${SUPPLIBS}/etc/udunits.dat"' *.c then type ?make? and it should update the libudunits.a file. Go to the ../udunits directory and edit the Makefile to remove the ?R option arguments, exit the editor, and type make, or manually cc -o udunits -O udunits.o ?L ../lib -ludunits -lm ?L ../port/misc -ludport -lm John John Huddleston, PhD Cooperative Institute for Research in the Atmosphere From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez Sent: Thursday, July 08, 2010 1:19 PM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library Hello John, Thanks you for your help, I?ve compiled libgb.a library and also jasper, g2clib, and szip, but I can?t compiled udunits library. I get the following error: cc -o udunits -O udunits.o -R/data/hoop/udunits-1.11.7/src/lib -L/data/hoop/udunits-1.11.7/src/lib -ludunits -R/data/hoop/udunits-1.11.7/src/port/misc -L/data/hoop/udunits-1.11.7/src/port/misc -ludport -ly -lm (Bundled) cc: warning 922: "-O" is unsupported in the bundled compiler, ignored. (Bundled) cc: warning 901: unknown option: `-R/data/hoop/udunits-1.11.7/src/lib': use +help for online documentation. (Bundled) cc: warning 901: unknown option: `-R/data/hoop/udunits-1.11.7/src/port/misc': use +help for online documentation. ld: Can't find library for -ludunits Fatal error. make[2]: *** [udunits] Error 1 make[2]: Leaving directory `/home/huber/grads/supplibs/src/udunits-1.11.7/src/udunits' make[1]: *** [program] Error 2 make[1]: Leaving directory `/home/huber/grads/supplibs/src/udunits-1.11.7/src/udunits' make: *** [udunits/all] Error 1 But I saw that I have the libunits.a library, but I think it isn?t complete because it?s so small. How can I resolve this error? # ls lib/libudunits.a lib/libudunits.a # du -sk lib/libudunits.a 144 lib/libudunits.a Please help me, Best regards, Huber _____ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: jueves, 08 de julio de 2010 9:54 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber, The /usr/local/lib/libpng.la controls which PNG library is used. It seems as if someone else built and installed version 14 under /usr/local. Unless you have sudo privlileges you are going to have to work around that implementation. This is going to sound funny..but; if you have already built the GD library file that?s all you need to continue building. In my case, the path is /home/dasilva/src/supplibs-2.1.0/i686-pc-linux/lib/libgd.a In your case copy the libgd.a to your $(SUPPLIBS)/lib directory and copy the include files gd.h gdfx.h gd_io.h gdcache.h gdfontg.h gdfontl.h gdfontmb.h gdfonts.h gdfontt.h entities.h to your ${SUPPLIBS}/include directory. Next, go on to build jasper, g2clib, szlib, etc. John John Huddleston, PhD Cooperative Institute for Research in the Atmosphere From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez Sent: Wednesday, July 07, 2010 9:42 AM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library Hi John, Don?t worry about the difficulty that I?m having, I can?t figure how you build in or with Cygwin, I suppose it is a heavy work. Any way, I don?t found any reference with libpng14 in the libgb?s Makefile , but I found the following lines that I think it would be not setup for the libpng12. How can I setup this Makefile in order to use the libpng12 library, and so try to compile the gb library? (I?m attaching the libgb?s Makefile) LIBPNG12_CONFIG = LIBPNG_CONFIG = /usr/local/bin/libpng-config Please help me, Best regards, Huber _____ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: martes, 06 de julio de 2010 14:30 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber, so sorry you are having so much difficulty. You should see the work I have for the Cygwin build! Look at your gcc line and you will see the path /usr/local/lib/hpux32/libpng14.so Edit the Makefile, search for libpng14, edit that line and replace it with the path to your libpng12 file. John John Huddleston, PhD Cooperative Institute for Research in the Atmosphere From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez Sent: Tuesday, July 06, 2010 1:13 PM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library Hello John, I start to compile all the supplemental libraries; I compiled readline, ncurses, zlib, libpng and jpeg libraries, but I cant compile gd library. Because I have the following error: gcc -g -O2 -o gdparttopng gdparttopng.o -L/usr/local/lib/hpux32 -L/usr/lib/X11R4 -L/home/huber/grads/supplibs/src/jpeg-6b/lib ./.libs/libgd.a -L/usr/contrib/X11R6/lib /usr/local/lib/hpux32/libXpm.so /usr/local/lib/hpux32/libintl.so -lX11 /usr/local/lib/hpux32/libjpeg.so /usr/local/lib/hpux32/libfontconfig.so /usr/local/lib/hpux32/libiconv.so /usr/local/lib/hpux32/libexpat.so /usr/local/lib/hpux32/libfreetype.so /usr/local/lib/hpux32/libpng14.so -lz -lm ld: Unsatisfied symbol "gdImageCreateFromGd2Part" in file gdparttopng.o ld: Unsatisfied symbol "png_check_sig" in file ./.libs/libgd.a[gd_png.o] 2 errors. collect2: ld returned 1 exit status make[2]: *** [gdparttopng] Error 1 make[2]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34' make: *** [all] Error 2 Who can I setup the correct path for the libpng1.2 library, because I follow the instructions in the PDF, and I executed the following commands: cd gd-2.0.34 ./configure --disable-shared \ --with-png=$HOME/supplibs/src/libpng-1.2.18 \ --with-jpeg=$HOME/supplibs/src/jpeg-6b \ --prefix=$HOME/supplibs/src/gd-2.0.34 make Please help me, Best regards, Huber _____ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: viernes, 02 de julio de 2010 12:20 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber, Did you remove the libpng directory, untar libpng again, configure again with the options specified in Building_GrADS.pdf, and make the system? Ditto for the GD build. You must follow the order of the build as shown in the PDF file. John Huddleston, PhD, PE _____ From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez [huber.gilt at igp.gob.pe] Sent: Friday, July 02, 2010 11:06 AM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library Hello John, I?ve done your instructions and also I compiled the zlib-1.2.3 library and I have the library libz.a, in supplibs/lib. And I have the same problem in libpng-1.2-18 compilation. What is going on with libpng library if I have the libz.a library in the folder supplibs/lib? (In the end I list the compiled libraries) Please help me, Best regards. Huber Paul Gilt L?pez # pwd /home/huber/grads/supplibs/lib # ls libcurl.a libhdf5_hl.a libncurses.a libreadline.a libxdr.a libdf.a libjpeg.a libnetcdf.a libsz.a libz.a libhdf5.a libmfhdf.a libpng12.a libudunits.a _____ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: viernes, 02 de julio de 2010 9:30 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber, On June 15th I sent you a PDF on how to build GrADS, please look it over, libpng doesn't build because you do not have the zlib. Get zlib from ftp://grads.iges.org/grads/Supplibs/2.0/src/zlib-1.2.3.tar.gz tar xvfz ./tarfiles/zlib-1.2.3.tar.gz cd zlib-1.2.3/ ./configure --prefix=$HOME/supplibs/src/zlib-1.2.3 make make install cp ./lib/libz.a $HOME/supplibs/lib mkdir $HOME/supplibs/include/zlib cp ./include/zlib.h $HOME/supplibs/include/zlib John _____ From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez [huber.gilt at igp.gob.pe] Sent: Friday, July 02, 2010 8:17 AM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library John, Because I found this error when I configure PNG library 1.2: #cd /home/huber/grads/supplibs/src/libpng-1.2.18 ./configure --disable-shared --prefix=/home/huber/grads/supplibs/src/libpng-1.2.18 checking for pow in -lm... yes checking for zlibVersion in -lz... no configure: error: zlib not installed I?ve exported this variable CC=gcc by this other CC='gcc -L/home/huber/grads/supplibs/lib -lz', then I?ve done make, and make install. Provably the libpng12.a library didn?t build well, how I can fix the previous error when I tried to configure the libpng12 library? Please help me, Best regards, Huber Paul Gilt Lopez _____ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: jueves, 01 de julio de 2010 18:46 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Huber You need the PNG library1.2 not 1.4. Somehow you've installed a more recent version of PNG into /usr/local Go back to the PNG 1.2 build and do a "make install" to load it into /usr/local Otherwise, manually edit the Makefile and change it to point to your $(SUPPLIBS) PNG area. John Huddleston _____ From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez [huber.gilt at igp.gob.pe] Sent: Thursday, July 01, 2010 4:15 PM To: 'GrADS Users Forum' Subject: [gradsusr] error compiling gd library Hello, I want to compile the gd library, i used this command, but I have an unsatisfied symbol. How can I include these missing symbol? #cd /home/huber/grads/supplibs/src/gd-2.0.34 #./configure --disable-shared\ --with-png=/home/huber/grads/supplibs/src/libpng-1.2.18\ --with-jpeg=/home/huber/grads/supplibs/src/jpeg-6b\ --prefix=/home/huber/grads/supplibs/src/gd-2.0.34 #make gcc -g -O2 -o gdparttopng gdparttopng.o -L/home/huber/grads/supplibs/lib -L/usr/local/lib/hpux32 -L/usr/lib/X11R4 -L/home/huber/grads/supplibs/src/jpeg-6b/lib ./.libs/libgd.a -L/usr/contrib/X11R6/lib /usr/local/lib/hpux32/libXpm.so /usr/local/lib/hpux32/libintl.so -lX11 -ljpeg /usr/local/lib/hpux32/libfontconfig.so /usr/local/lib/hpux32/libiconv.so /usr/local/lib/hpux32/libexpat.so /usr/local/lib/hpux32/libfreetype.so /usr/local/lib/hpux32/libpng14.so -lz -lm ld: Unsatisfied symbol "png_check_sig" in file ./.libs/libgd.a[gd_png.o] 1 errors. collect2: ld returned 1 exit status make[2]: *** [gdparttopng] Error 1 make[2]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34' make: *** [all] Error 2 Please help me, Best regards, Huber Paul Gilt Lopez IGP-Peru -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100709/642c8200/attachment-0001.html From Huddleston at cira.colostate.edu Fri Jul 9 15:47:06 2010 From: Huddleston at cira.colostate.edu (Huddleston, John) Date: Fri, 9 Jul 2010 12:47:06 -0700 Subject: [gradsusr] error compiling gd library In-Reply-To: <201007091942.o69JgXPu008991@geo.igp.gob.pe> References: <201007091942.o69JgXPu008991@geo.igp.gob.pe> Message-ID: Hi Huber If you built curl and installed it under ${SUPPLIBS}/lib then you do not need to make the configure.ac change. I'd say remove the directory, untar the libdap and simply do the configure with the options as shown in the documents. BTW, I noticed you are using gcc now. Under HP/UX systems you cannot combine cc and gcc binaries so make sure all your binaries are consistent one way or the other. John John Huddleston, PhD Cooperative Institute for Research in the Atmosphere From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez Sent: Friday, July 09, 2010 1:36 PM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library Hello John, I trying to compile libdap-3.7.8 library, according to the grads instructions, I changed the line this 136 in the configure.ac: 136 libdap_pkgconfig_libcurl=yes By this other: 136 libdap_pkgconfig_libcurl=no And then run this command: # autoreconf configure.ac:73: error: AC_REQUIRE: circular dependency of AC_GNU_SOURCE gl/m4/extensions.m4:19: AC_USE_SYSTEM_EXTENSIONS is expanded from... ../../lib/autoconf/specific.m4:310: AC_GNU_SOURCE is expanded from... gl/m4/gnulib-comp.m4:21: gl_EARLY is expanded from... configure.ac:73: the top level autom4te: /usr/local/bin/m4 failed with exit status: 1 aclocal: /usr/local/bin/autom4te failed with exit status: 1 autoreconf: aclocal failed with exit status: 1 I think these messages aren't good. How can I fix that? Please help, Best regards, Huber Paul Gilt Lopez ________________________________ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: viernes, 09 de julio de 2010 12:10 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber, You just found a bug in the libxml2 library. Go to line 2338 of encoding.c, e.g. vi +2338 encoding And change the word 'xlattable' to 'unicodetable' John John Huddleston, PhD Cooperative Institute for Research in the Atmosphere From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez Sent: Friday, July 09, 2010 10:26 AM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library Hello John, I'm trying to compile xml2 library, but after I applied this commands: #./configure --disable-shared \ --prefix=$HOME/supplibs/src/libxml2-2.6.16 #make I found these 2 errors. I think this variable or function "xlattable" is not defined. How can I fix these two errors? gcc -DHAVE_CONFIG_H -I. -I. -I. -I./include -I./include -D_REENTRANT -g -O2 -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls -MT encoding.lo -MD -MP -MF .deps/encoding.Tpo -c encoding.c -o encoding.o encoding.c: In function 'UTF16LEToUTF8': encoding.c:418: warning: cast increases required alignment of target type encoding.c: In function 'UTF8ToUTF16LE': encoding.c:500: warning: cast increases required alignment of target type encoding.c: In function 'UTF16BEToUTF8': encoding.c:655: warning: cast increases required alignment of target type encoding.c: In function 'UTF8ToUTF16BE': encoding.c:741: warning: cast increases required alignment of target type encoding.c: In function 'ISO8859xToUTF8': encoding.c:2338: error: 'xlattable' undeclared (first use in this function) encoding.c:2338: error: (Each undeclared identifier is reported only once encoding.c:2338: error: for each function it appears in.) encoding.c: At top level: encoding.c:2998: warning: string length '688' is greater than the length '509' ISO C90 compilers are required to support encoding.c:3108: warning: string length '624' is greater than the length '509' ISO C90 compilers are required to support make[2]: *** [encoding.lo] Error 1 make[2]: Leaving directory `/home/huber/grads/supplibs/src/libxml2-2.6.16' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/huber/grads/supplibs/src/libxml2-2.6.16' make: *** [all] Error 2 Please help me, Best regards, Huber ________________________________ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: jueves, 08 de julio de 2010 19:21 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Huber, The archive library libunits.a is not empty. It is fine. Copy it to the ${SUPPLIBS}/lib area and move on. BTW, if you have the gcc compiler on your system, then 'export CC=gcc' and start over. e.g. 'gcc --version' send me the results ... John ________________________________ From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez [huber.gilt at igp.gob.pe] Sent: Thursday, July 08, 2010 3:45 PM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library Hello John, Do a 'ar tv libudunits.a', you should see something like rw-r--r-- 1000/1000 16568 Jul 27 10:02 2009 utlib.o rw-r--r-- 1000/1000 7524 Jul 27 10:02 2009 utparse.o rw-r--r-- 1000/1000 14272 Jul 27 10:02 2009 utscan.o rw-r--r-- 1000/1000 1136 Jul 27 10:02 2009 udalloc.o Yes, I do. And I see: # ar -tv libudunits.a rw-r--r-- 0/ 3 74480 Jul 8 15:47 2010 utlib.o rw-r--r-- 0/ 3 18232 Jul 8 15:47 2010 utparse.o rw-r--r-- 0/ 3 45144 Jul 8 15:47 2010 utscan.o rw-r--r-- 0/ 3 5328 Jul 8 15:47 2010 udalloc.o If you have all four then you're good to go. Yes, I have but I think all four is empty. Copy it to ${SUPPLIBS}/lib, copy etc/udunits.dat to ${SUPPLIBS}/etc I think this is not match. You are getting an error on creating udunits executable. I think this is match. If the four objects are not in the libudunits.a file, cd into the lib directory, and try compiling by hand: cc -c -O -I../port/misc -I../port/cfortran -DUT_DEFAULT_PATH='"${SUPPLIBS}/etc/udunits.dat"' *.c I tried, but I think this is not complete well. #cc -c -O -I../port/misc -I../port/cfortran -DUT_DEFAULT_PATH='"${SUPPLIBS}/etc/udunits.dat"' *.c (Bundled) cc: warning 922: "-O" is unsupported in the bundled compiler, ignored. udalloc.c: utlib-1.11.7.nof77intfc.c: "utlib-1.11.7.nof77intfc.c", line 1488: warning #2177-D: function "CopyCtorNode" was declared but never referenced CopyCtorNode(node) ^ "utlib-1.11.7.nof77intfc.c", line 1520: warning #2177-D: function "AssignNode" was declared but never referenced AssignNode(to, from) ^ utlib.c: "utlib.c", line 1488: warning #2177-D: function "CopyCtorNode" was declared but never referenced CopyCtorNode(node) ^ "utlib.c", line 1520: warning #2177-D: function "AssignNode" was declared but never referenced AssignNode(to, from) ^ utparse.c: "utparse.y", line 386: warning #2175-D: subscript out of range yypv = &yyv[-1]; ^ "utparse.y", line 387: warning #2175-D: subscript out of range yyps = &yys[-1]; ^ "utparse.y", line 405: warning #2177-D: label "yynewstate" was declared but never referenced yynewstate: ^ utscan.c: then type 'make' and it should update the libudunits.a file. I done, but I think libudunits.a library is still too small. # make ar rcuv libudunits.a utlib.o utparse.o utscan.o udalloc.o r - utlib.o r - utparse.o r - utscan.o r - udalloc.o case "" in \ '') ;; \ *) ar rucv libudunits.a ;; \ esac ranlib libudunits.a # du -sk libudunits.a 144 libudunits.a Go to the ../udunits directory and edit the Makefile to remove the -R option arguments, exit the editor, and type make, or manually cc -o udunits -O udunits.o -L../lib -ludunits -lm -L../port/misc -ludport -lm I did the manually form, then I type these commands but I have the same problem. # cd ../udunits # cc -o udunits -O udunits.o -L../lib -ludunits -lm -L../port/misc -ludport -lm cc -c -O -I../lib -I../port/misc udunits.c (Bundled) cc: warning 922: "-O" is unsupported in the bundled compiler, ignored. cc -o udunits -O udunits.o -R/data/hoop/udunits-1.11.7/src/lib -L/data/hoop/udunits-1.11.7/src/lib -ludunits -R/data/hoop/udunits-1.11.7/src/port/misc -L/data/hoop/udunits-1.11.7/src/port/misc -ludport -ly -lm (Bundled) cc: warning 922: "-O" is unsupported in the bundled compiler, ignored. (Bundled) cc: warning 901: unknown option: `-R/data/hoop/udunits-1.11.7/src/lib': use +help for online documentation. (Bundled) cc: warning 901: unknown option: `-R/data/hoop/udunits-1.11.7/src/port/misc': use +help for online documentation. ld: Can't find library for -ludunits Fatal error. make[1]: *** [udunits] Error 1 make[1]: Leaving directory `/home/huber/grads/supplibs/src/udunits-1.11.7/src/udunits' make: *** [program] Error 2 And also I remove -R option arguments. Then make output were: make[1]: Entering directory `/home/huber/grads/supplibs/src/udunits-1.11.7/src/udunits' cc -o udunits -O udunits.o -ly -lm (Bundled) cc: warning 922: "-O" is unsupported in the bundled compiler, ignored. ld: Unsatisfied symbol "utIsTime" in file udunits.o ld: Unsatisfied symbol "utInit" in file udunits.o ld: Unsatisfied symbol "utCalendar" in file udunits.o ld: Unsatisfied symbol "utScan" in file udunits.o ld: Unsatisfied symbol "utTerm" in file udunits.o ld: Unsatisfied symbol "utConvert" in file udunits.o ld: (Warning) Unsatisfied symbol "yyparse" in file /usr/lib/hpux32/liby.so ld: Unsatisfied symbol "utPrint" in file udunits.o 1 warnings. 7 errors. make[1]: *** [udunits] Error 1 make[1]: Leaving directory `/home/huber/grads/supplibs/src/udunits-1.11.7/src/udunits' make: *** [program] Error 2 If it possible to have the equivalent commands with gcc compiler, the libudunits.a is still too small I don't know what is going on with compilation with libudunits library, do you have extra information or tips about the process of compilation in gcc o cc? Thanks you, Very much Huber ________________________________ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: jueves, 08 de julio de 2010 14:55 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber, it is a small file, Do a 'ar tv libudunits.a', you should see something like rw-r--r-- 1000/1000 16568 Jul 27 10:02 2009 utlib.o rw-r--r-- 1000/1000 7524 Jul 27 10:02 2009 utparse.o rw-r--r-- 1000/1000 14272 Jul 27 10:02 2009 utscan.o rw-r--r-- 1000/1000 1136 Jul 27 10:02 2009 udalloc.o If you have all four then you're good to go. Copy it to ${SUPPLIBS}/lib, copy etc/udunits.dat to ${SUPPLIBS}/etc You are getting an error on creating udunits executable. If the four objects are not in the libudunits.a file, cd into the lib directory, and try compiling by hand: cc -c -O -I../port/misc -I../port/cfortran -DUT_DEFAULT_PATH='"${SUPPLIBS}/etc/udunits.dat"' *.c then type 'make' and it should update the libudunits.a file. Go to the ../udunits directory and edit the Makefile to remove the -R option arguments, exit the editor, and type make, or manually cc -o udunits -O udunits.o -L ../lib -ludunits -lm -L ../port/misc -ludport -lm John John Huddleston, PhD Cooperative Institute for Research in the Atmosphere From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez Sent: Thursday, July 08, 2010 1:19 PM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library Hello John, Thanks you for your help, I've compiled libgb.a library and also jasper, g2clib, and szip, but I can't compiled udunits library. I get the following error: cc -o udunits -O udunits.o -R/data/hoop/udunits-1.11.7/src/lib -L/data/hoop/udunits-1.11.7/src/lib -ludunits -R/data/hoop/udunits-1.11.7/src/port/misc -L/data/hoop/udunits-1.11.7/src/port/misc -ludport -ly -lm (Bundled) cc: warning 922: "-O" is unsupported in the bundled compiler, ignored. (Bundled) cc: warning 901: unknown option: `-R/data/hoop/udunits-1.11.7/src/lib': use +help for online documentation. (Bundled) cc: warning 901: unknown option: `-R/data/hoop/udunits-1.11.7/src/port/misc': use +help for online documentation. ld: Can't find library for -ludunits Fatal error. make[2]: *** [udunits] Error 1 make[2]: Leaving directory `/home/huber/grads/supplibs/src/udunits-1.11.7/src/udunits' make[1]: *** [program] Error 2 make[1]: Leaving directory `/home/huber/grads/supplibs/src/udunits-1.11.7/src/udunits' make: *** [udunits/all] Error 1 But I saw that I have the libunits.a library, but I think it isn't complete because it's so small. How can I resolve this error? # ls lib/libudunits.a lib/libudunits.a # du -sk lib/libudunits.a 144 lib/libudunits.a Please help me, Best regards, Huber ________________________________ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: jueves, 08 de julio de 2010 9:54 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber, The /usr/local/lib/libpng.la controls which PNG library is used. It seems as if someone else built and installed version 14 under /usr/local. Unless you have sudo privlileges you are going to have to work around that implementation. This is going to sound funny..but; if you have already built the GD library file that's all you need to continue building. In my case, the path is /home/dasilva/src/supplibs-2.1.0/i686-pc-linux/lib/libgd.a In your case copy the libgd.a to your $(SUPPLIBS)/lib directory and copy the include files gd.h gdfx.h gd_io.h gdcache.h gdfontg.h gdfontl.h gdfontmb.h gdfonts.h gdfontt.h entities.h to your ${SUPPLIBS}/include directory. Next, go on to build jasper, g2clib, szlib, etc. John John Huddleston, PhD Cooperative Institute for Research in the Atmosphere From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez Sent: Wednesday, July 07, 2010 9:42 AM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library Hi John, Don't worry about the difficulty that I'm having, I can't figure how you build in or with Cygwin, I suppose it is a heavy work. Any way, I don't found any reference with libpng14 in the libgb's Makefile , but I found the following lines that I think it would be not setup for the libpng12. How can I setup this Makefile in order to use the libpng12 library, and so try to compile the gb library? (I'm attaching the libgb's Makefile) LIBPNG12_CONFIG = LIBPNG_CONFIG = /usr/local/bin/libpng-config Please help me, Best regards, Huber ________________________________ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: martes, 06 de julio de 2010 14:30 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber, so sorry you are having so much difficulty. You should see the work I have for the Cygwin build! Look at your gcc line and you will see the path /usr/local/lib/hpux32/libpng14.so Edit the Makefile, search for libpng14, edit that line and replace it with the path to your libpng12 file. John John Huddleston, PhD Cooperative Institute for Research in the Atmosphere From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez Sent: Tuesday, July 06, 2010 1:13 PM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library Hello John, I start to compile all the supplemental libraries; I compiled readline, ncurses, zlib, libpng and jpeg libraries, but I cant compile gd library. Because I have the following error: gcc -g -O2 -o gdparttopng gdparttopng.o -L/usr/local/lib/hpux32 -L/usr/lib/X11R4 -L/home/huber/grads/supplibs/src/jpeg-6b/lib ./.libs/libgd.a -L/usr/contrib/X11R6/lib /usr/local/lib/hpux32/libXpm.so /usr/local/lib/hpux32/libintl.so -lX11 /usr/local/lib/hpux32/libjpeg.so /usr/local/lib/hpux32/libfontconfig.so /usr/local/lib/hpux32/libiconv.so /usr/local/lib/hpux32/libexpat.so /usr/local/lib/hpux32/libfreetype.so /usr/local/lib/hpux32/libpng14.so -lz -lm ld: Unsatisfied symbol "gdImageCreateFromGd2Part" in file gdparttopng.o ld: Unsatisfied symbol "png_check_sig" in file ./.libs/libgd.a[gd_png.o] 2 errors. collect2: ld returned 1 exit status make[2]: *** [gdparttopng] Error 1 make[2]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34' make: *** [all] Error 2 Who can I setup the correct path for the libpng1.2 library, because I follow the instructions in the PDF, and I executed the following commands: cd gd-2.0.34 ./configure --disable-shared \ --with-png=$HOME/supplibs/src/libpng-1.2.18 \ --with-jpeg=$HOME/supplibs/src/jpeg-6b \ --prefix=$HOME/supplibs/src/gd-2.0.34 make Please help me, Best regards, Huber ________________________________ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: viernes, 02 de julio de 2010 12:20 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber, Did you remove the libpng directory, untar libpng again, configure again with the options specified in Building_GrADS.pdf, and make the system? Ditto for the GD build. You must follow the order of the build as shown in the PDF file. John Huddleston, PhD, PE ________________________________ From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez [huber.gilt at igp.gob.pe] Sent: Friday, July 02, 2010 11:06 AM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library Hello John, I've done your instructions and also I compiled the zlib-1.2.3 library and I have the library libz.a, in supplibs/lib. And I have the same problem in libpng-1.2-18 compilation. What is going on with libpng library if I have the libz.a library in the folder supplibs/lib? (In the end I list the compiled libraries) Please help me, Best regards. Huber Paul Gilt L?pez # pwd /home/huber/grads/supplibs/lib # ls libcurl.a libhdf5_hl.a libncurses.a libreadline.a libxdr.a libdf.a libjpeg.a libnetcdf.a libsz.a libz.a libhdf5.a libmfhdf.a libpng12.a libudunits.a ________________________________ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: viernes, 02 de julio de 2010 9:30 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber, On June 15th I sent you a PDF on how to build GrADS, please look it over, libpng doesn't build because you do not have the zlib. Get zlib from ftp://grads.iges.org/grads/Supplibs/2.0/src/zlib-1.2.3.tar.gz tar xvfz ./tarfiles/zlib-1.2.3.tar.gz cd zlib-1.2.3/ ./configure --prefix=$HOME/supplibs/src/zlib-1.2.3 make make install cp ./lib/libz.a $HOME/supplibs/lib mkdir $HOME/supplibs/include/zlib cp ./include/zlib.h $HOME/supplibs/include/zlib John ________________________________ From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez [huber.gilt at igp.gob.pe] Sent: Friday, July 02, 2010 8:17 AM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library John, Because I found this error when I configure PNG library 1.2: #cd /home/huber/grads/supplibs/src/libpng-1.2.18 ./configure --disable-shared --prefix=/home/huber/grads/supplibs/src/libpng-1.2.18 ... checking for pow in -lm... yes checking for zlibVersion in -lz... no configure: error: zlib not installed I've exported this variable CC=gcc by this other CC='gcc -L/home/huber/grads/supplibs/lib -lz', then I've done make, and make install. Provably the libpng12.a library didn't build well, how I can fix the previous error when I tried to configure the libpng12 library? Please help me, Best regards, Huber Paul Gilt Lopez ________________________________ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: jueves, 01 de julio de 2010 18:46 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Huber You need the PNG library1.2 not 1.4. Somehow you've installed a more recent version of PNG into /usr/local Go back to the PNG 1.2 build and do a "make install" to load it into /usr/local Otherwise, manually edit the Makefile and change it to point to your $(SUPPLIBS) PNG area. John Huddleston ________________________________ From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez [huber.gilt at igp.gob.pe] Sent: Thursday, July 01, 2010 4:15 PM To: 'GrADS Users Forum' Subject: [gradsusr] error compiling gd library Hello, I want to compile the gd library, i used this command, but I have an unsatisfied symbol. How can I include these missing symbol? #cd /home/huber/grads/supplibs/src/gd-2.0.34 #./configure --disable-shared\ --with-png=/home/huber/grads/supplibs/src/libpng-1.2.18\ --with-jpeg=/home/huber/grads/supplibs/src/jpeg-6b\ --prefix=/home/huber/grads/supplibs/src/gd-2.0.34 #make ... gcc -g -O2 -o gdparttopng gdparttopng.o -L/home/huber/grads/supplibs/lib -L/usr/local/lib/hpux32 -L/usr/lib/X11R4 -L/home/huber/grads/supplibs/src/jpeg-6b/lib ./.libs/libgd.a -L/usr/contrib/X11R6/lib /usr/local/lib/hpux32/libXpm.so /usr/local/lib/hpux32/libintl.so -lX11 -ljpeg /usr/local/lib/hpux32/libfontconfig.so /usr/local/lib/hpux32/libiconv.so /usr/local/lib/hpux32/libexpat.so /usr/local/lib/hpux32/libfreetype.so /usr/local/lib/hpux32/libpng14.so -lz -lm ld: Unsatisfied symbol "png_check_sig" in file ./.libs/libgd.a[gd_png.o] 1 errors. collect2: ld returned 1 exit status make[2]: *** [gdparttopng] Error 1 make[2]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34' make: *** [all] Error 2 Please help me, Best regards, Huber Paul Gilt Lopez IGP-Peru -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100709/98b0a357/attachment-0001.html From huber.gilt at igp.gob.pe Fri Jul 9 16:53:04 2010 From: huber.gilt at igp.gob.pe (=?iso-8859-1?Q?Huber_Pa=FAl_Gilt_L=F3pez?=) Date: Fri, 9 Jul 2010 15:53:04 -0500 Subject: [gradsusr] error compiling gd library In-Reply-To: Message-ID: <201007092100.o69L05dA010536@geo.igp.gob.pe> Hi John, Yes, I did. I built curl and install it under ${SUPPLIBS}/lib # ls ${SUPPLIBS}/lib libcurl.a libhdf5.a libmfhdf.a libreadline.a libz.a libdf.a libhdf5_hl.a libncurses.a libsz.a libgd.a libjasper.a libnetcdf.a libudunits.a libgrib2c.a libjpeg.a libpng12.a libxml2.a But after I executed this command I found these messages: ./configure --disable-shared \ --with-xml2=$HOME/supplibs/src/libxml2-2.6.16 \ --with-zlib=$HOME/supplibs/src/zlib-1.2.3 \ --with-curl=$HOME/supplibs/src/curl-7.19.6 \ --prefix=$HOME/supplibs/src/libdap-3.7.8 checking whether wchar_t is signed... no checking whether wint_t is signed... no checking for ptrdiff_t integer literal suffix... l checking for sig_atomic_t integer literal suffix... u checking for size_t integer literal suffix... ul checking for wchar_t integer literal suffix... u checking for wint_t integer literal suffix... u checking whether is standalone... yes checking for pkg-config... no checking for CURL... checking for libcurl... configure: error: I could not find libcurl How can I fix or setup the path for the libcurl library? BTW, I only compiled with cc the libudunits.a, but I will to re-compile this library. Please help me, Best regards, Huber _____ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: viernes, 09 de julio de 2010 14:47 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber If you built curl and installed it under ${SUPPLIBS}/lib then you do not need to make the configure.ac change. I?d say remove the directory, untar the libdap and simply do the configure with the options as shown in the documents. BTW, I noticed you are using gcc now. Under HP/UX systems you cannot combine cc and gcc binaries so make sure all your binaries are consistent one way or the other. John John Huddleston, PhD Cooperative Institute for Research in the Atmosphere From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez Sent: Friday, July 09, 2010 1:36 PM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library Hello John, I trying to compile libdap-3.7.8 library, according to the grads instructions, I changed the line this 136 in the configure.ac: 136 libdap_pkgconfig_libcurl=yes By this other: 136 libdap_pkgconfig_libcurl=no And then run this command: # autoreconf configure.ac:73: error: AC_REQUIRE: circular dependency of AC_GNU_SOURCE gl/m4/extensions.m4:19: AC_USE_SYSTEM_EXTENSIONS is expanded from... ../../lib/autoconf/specific.m4:310: AC_GNU_SOURCE is expanded from... gl/m4/gnulib-comp.m4:21: gl_EARLY is expanded from... configure.ac:73: the top level autom4te: /usr/local/bin/m4 failed with exit status: 1 aclocal: /usr/local/bin/autom4te failed with exit status: 1 autoreconf: aclocal failed with exit status: 1 I think these messages aren?t good. How can I fix that? Please help, Best regards, Huber Paul Gilt Lopez _____ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: viernes, 09 de julio de 2010 12:10 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber, You just found a bug in the libxml2 library. Go to line 2338 of encoding.c, e.g. vi +2338 encoding And change the word ?xlattable? to ?unicodetable? John John Huddleston, PhD Cooperative Institute for Research in the Atmosphere From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez Sent: Friday, July 09, 2010 10:26 AM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library Hello John, I?m trying to compile xml2 library, but after I applied this commands: #./configure --disable-shared \ --prefix=$HOME/supplibs/src/libxml2-2.6.16 #make I found these 2 errors. I think this variable or function ?xlattable? is not defined. How can I fix these two errors? gcc -DHAVE_CONFIG_H -I. -I. -I. -I./include -I./include -D_REENTRANT -g -O2 -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls -MT encoding.lo -MD -MP -MF .deps/encoding.Tpo -c encoding.c -o encoding.o encoding.c: In function 'UTF16LEToUTF8': encoding.c:418: warning: cast increases required alignment of target type encoding.c: In function 'UTF8ToUTF16LE': encoding.c:500: warning: cast increases required alignment of target type encoding.c: In function 'UTF16BEToUTF8': encoding.c:655: warning: cast increases required alignment of target type encoding.c: In function 'UTF8ToUTF16BE': encoding.c:741: warning: cast increases required alignment of target type encoding.c: In function 'ISO8859xToUTF8': encoding.c:2338: error: 'xlattable' undeclared (first use in this function) encoding.c:2338: error: (Each undeclared identifier is reported only once encoding.c:2338: error: for each function it appears in.) encoding.c: At top level: encoding.c:2998: warning: string length '688' is greater than the length '509' ISO C90 compilers are required to support encoding.c:3108: warning: string length '624' is greater than the length '509' ISO C90 compilers are required to support make[2]: *** [encoding.lo] Error 1 make[2]: Leaving directory `/home/huber/grads/supplibs/src/libxml2-2.6.16' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/huber/grads/supplibs/src/libxml2-2.6.16' make: *** [all] Error 2 Please help me, Best regards, Huber _____ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: jueves, 08 de julio de 2010 19:21 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Huber, The archive library libunits.a is not empty. It is fine. Copy it to the ${SUPPLIBS}/lib area and move on. BTW, if you have the gcc compiler on your system, then 'export CC=gcc' and start over. e.g. 'gcc --version' send me the results ... John _____ From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez [huber.gilt at igp.gob.pe] Sent: Thursday, July 08, 2010 3:45 PM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library Hello John, Do a ?ar tv libudunits.a?, you should see something like rw-r--r-- 1000/1000 16568 Jul 27 10:02 2009 utlib.o rw-r--r-- 1000/1000 7524 Jul 27 10:02 2009 utparse.o rw-r--r-- 1000/1000 14272 Jul 27 10:02 2009 utscan.o rw-r--r-- 1000/1000 1136 Jul 27 10:02 2009 udalloc.o Yes, I do. And I see: # ar -tv libudunits.a rw-r--r-- 0/ 3 74480 Jul 8 15:47 2010 utlib.o rw-r--r-- 0/ 3 18232 Jul 8 15:47 2010 utparse.o rw-r--r-- 0/ 3 45144 Jul 8 15:47 2010 utscan.o rw-r--r-- 0/ 3 5328 Jul 8 15:47 2010 udalloc.o If you have all four then you?re good to go. Yes, I have but I think all four is empty. Copy it to ${SUPPLIBS}/lib, copy etc/udunits.dat to ${SUPPLIBS}/etc I think this is not match. You are getting an error on creating udunits executable. I think this is match. If the four objects are not in the libudunits.a file, cd into the lib directory, and try compiling by hand: cc -c -O -I../port/misc -I../port/cfortran -DUT_DEFAULT_PATH='"${SUPPLIBS}/etc/udunits.dat"' *.c I tried, but I think this is not complete well. #cc -c -O -I../port/misc -I../port/cfortran -DUT_DEFAULT_PATH='"${SUPPLIBS}/etc/udunits.dat"' *.c (Bundled) cc: warning 922: "-O" is unsupported in the bundled compiler, ignored. udalloc.c: utlib-1.11.7.nof77intfc.c: "utlib-1.11.7.nof77intfc.c", line 1488: warning #2177-D: function "CopyCtorNode" was declared but never referenced CopyCtorNode(node) ^ "utlib-1.11.7.nof77intfc.c", line 1520: warning #2177-D: function "AssignNode" was declared but never referenced AssignNode(to, from) ^ utlib.c: "utlib.c", line 1488: warning #2177-D: function "CopyCtorNode" was declared but never referenced CopyCtorNode(node) ^ "utlib.c", line 1520: warning #2177-D: function "AssignNode" was declared but never referenced AssignNode(to, from) ^ utparse.c: "utparse.y", line 386: warning #2175-D: subscript out of range yypv = &yyv[-1]; ^ "utparse.y", line 387: warning #2175-D: subscript out of range yyps = &yys[-1]; ^ "utparse.y", line 405: warning #2177-D: label "yynewstate" was declared but never referenced yynewstate: ^ utscan.c: then type ?make? and it should update the libudunits.a file. I done, but I think libudunits.a library is still too small. # make ar rcuv libudunits.a utlib.o utparse.o utscan.o udalloc.o r - utlib.o r - utparse.o r - utscan.o r - udalloc.o case "" in \ '') ;; \ *) ar rucv libudunits.a ;; \ esac ranlib libudunits.a # du -sk libudunits.a 144 libudunits.a Go to the ../udunits directory and edit the Makefile to remove the ?R option arguments, exit the editor, and type make, or manually cc -o udunits -O udunits.o ?L../lib -ludunits -lm ?L../port/misc -ludport -lm I did the manually form, then I type these commands but I have the same problem. # cd ../udunits # cc -o udunits -O udunits.o ?L../lib -ludunits -lm ?L../port/misc -ludport -lm cc -c -O -I../lib -I../port/misc udunits.c (Bundled) cc: warning 922: "-O" is unsupported in the bundled compiler, ignored. cc -o udunits -O udunits.o -R/data/hoop/udunits-1.11.7/src/lib -L/data/hoop/udunits-1.11.7/src/lib -ludunits -R/data/hoop/udunits-1.11.7/src/port/misc -L/data/hoop/udunits-1.11.7/src/port/misc -ludport -ly -lm (Bundled) cc: warning 922: "-O" is unsupported in the bundled compiler, ignored. (Bundled) cc: warning 901: unknown option: `-R/data/hoop/udunits-1.11.7/src/lib': use +help for online documentation. (Bundled) cc: warning 901: unknown option: `-R/data/hoop/udunits-1.11.7/src/port/misc': use +help for online documentation. ld: Can't find library for -ludunits Fatal error. make[1]: *** [udunits] Error 1 make[1]: Leaving directory `/home/huber/grads/supplibs/src/udunits-1.11.7/src/udunits' make: *** [program] Error 2 And also I remove ?R option arguments. Then make output were: make[1]: Entering directory `/home/huber/grads/supplibs/src/udunits-1.11.7/src/udunits' cc -o udunits -O udunits.o -ly -lm (Bundled) cc: warning 922: "-O" is unsupported in the bundled compiler, ignored. ld: Unsatisfied symbol "utIsTime" in file udunits.o ld: Unsatisfied symbol "utInit" in file udunits.o ld: Unsatisfied symbol "utCalendar" in file udunits.o ld: Unsatisfied symbol "utScan" in file udunits.o ld: Unsatisfied symbol "utTerm" in file udunits.o ld: Unsatisfied symbol "utConvert" in file udunits.o ld: (Warning) Unsatisfied symbol "yyparse" in file /usr/lib/hpux32/liby.so ld: Unsatisfied symbol "utPrint" in file udunits.o 1 warnings. 7 errors. make[1]: *** [udunits] Error 1 make[1]: Leaving directory `/home/huber/grads/supplibs/src/udunits-1.11.7/src/udunits' make: *** [program] Error 2 If it possible to have the equivalent commands with gcc compiler, the libudunits.a is still too small I don?t know what is going on with compilation with libudunits library, do you have extra information or tips about the process of compilation in gcc o cc? Thanks you, Very much Huber _____ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: jueves, 08 de julio de 2010 14:55 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber, it is a small file, Do a ?ar tv libudunits.a?, you should see something like rw-r--r-- 1000/1000 16568 Jul 27 10:02 2009 utlib.o rw-r--r-- 1000/1000 7524 Jul 27 10:02 2009 utparse.o rw-r--r-- 1000/1000 14272 Jul 27 10:02 2009 utscan.o rw-r--r-- 1000/1000 1136 Jul 27 10:02 2009 udalloc.o If you have all four then you?re good to go. Copy it to ${SUPPLIBS}/lib, copy etc/udunits.dat to ${SUPPLIBS}/etc You are getting an error on creating udunits executable. If the four objects are not in the libudunits.a file, cd into the lib directory, and try compiling by hand: cc -c -O -I../port/misc -I../port/cfortran -DUT_DEFAULT_PATH='"${SUPPLIBS}/etc/udunits.dat"' *.c then type ?make? and it should update the libudunits.a file. Go to the ../udunits directory and edit the Makefile to remove the ?R option arguments, exit the editor, and type make, or manually cc -o udunits -O udunits.o ?L ../lib -ludunits -lm ?L ../port/misc -ludport -lm John John Huddleston, PhD Cooperative Institute for Research in the Atmosphere From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez Sent: Thursday, July 08, 2010 1:19 PM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library Hello John, Thanks you for your help, I?ve compiled libgb.a library and also jasper, g2clib, and szip, but I can?t compiled udunits library. I get the following error: cc -o udunits -O udunits.o -R/data/hoop/udunits-1.11.7/src/lib -L/data/hoop/udunits-1.11.7/src/lib -ludunits -R/data/hoop/udunits-1.11.7/src/port/misc -L/data/hoop/udunits-1.11.7/src/port/misc -ludport -ly -lm (Bundled) cc: warning 922: "-O" is unsupported in the bundled compiler, ignored. (Bundled) cc: warning 901: unknown option: `-R/data/hoop/udunits-1.11.7/src/lib': use +help for online documentation. (Bundled) cc: warning 901: unknown option: `-R/data/hoop/udunits-1.11.7/src/port/misc': use +help for online documentation. ld: Can't find library for -ludunits Fatal error. make[2]: *** [udunits] Error 1 make[2]: Leaving directory `/home/huber/grads/supplibs/src/udunits-1.11.7/src/udunits' make[1]: *** [program] Error 2 make[1]: Leaving directory `/home/huber/grads/supplibs/src/udunits-1.11.7/src/udunits' make: *** [udunits/all] Error 1 But I saw that I have the libunits.a library, but I think it isn?t complete because it?s so small. How can I resolve this error? # ls lib/libudunits.a lib/libudunits.a # du -sk lib/libudunits.a 144 lib/libudunits.a Please help me, Best regards, Huber _____ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: jueves, 08 de julio de 2010 9:54 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber, The /usr/local/lib/libpng.la controls which PNG library is used. It seems as if someone else built and installed version 14 under /usr/local. Unless you have sudo privlileges you are going to have to work around that implementation. This is going to sound funny..but; if you have already built the GD library file that?s all you need to continue building. In my case, the path is /home/dasilva/src/supplibs-2.1.0/i686-pc-linux/lib/libgd.a In your case copy the libgd.a to your $(SUPPLIBS)/lib directory and copy the include files gd.h gdfx.h gd_io.h gdcache.h gdfontg.h gdfontl.h gdfontmb.h gdfonts.h gdfontt.h entities.h to your ${SUPPLIBS}/include directory. Next, go on to build jasper, g2clib, szlib, etc. John John Huddleston, PhD Cooperative Institute for Research in the Atmosphere From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez Sent: Wednesday, July 07, 2010 9:42 AM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library Hi John, Don?t worry about the difficulty that I?m having, I can?t figure how you build in or with Cygwin, I suppose it is a heavy work. Any way, I don?t found any reference with libpng14 in the libgb?s Makefile , but I found the following lines that I think it would be not setup for the libpng12. How can I setup this Makefile in order to use the libpng12 library, and so try to compile the gb library? (I?m attaching the libgb?s Makefile) LIBPNG12_CONFIG = LIBPNG_CONFIG = /usr/local/bin/libpng-config Please help me, Best regards, Huber _____ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: martes, 06 de julio de 2010 14:30 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber, so sorry you are having so much difficulty. You should see the work I have for the Cygwin build! Look at your gcc line and you will see the path /usr/local/lib/hpux32/libpng14.so Edit the Makefile, search for libpng14, edit that line and replace it with the path to your libpng12 file. John John Huddleston, PhD Cooperative Institute for Research in the Atmosphere From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez Sent: Tuesday, July 06, 2010 1:13 PM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library Hello John, I start to compile all the supplemental libraries; I compiled readline, ncurses, zlib, libpng and jpeg libraries, but I cant compile gd library. Because I have the following error: gcc -g -O2 -o gdparttopng gdparttopng.o -L/usr/local/lib/hpux32 -L/usr/lib/X11R4 -L/home/huber/grads/supplibs/src/jpeg-6b/lib ./.libs/libgd.a -L/usr/contrib/X11R6/lib /usr/local/lib/hpux32/libXpm.so /usr/local/lib/hpux32/libintl.so -lX11 /usr/local/lib/hpux32/libjpeg.so /usr/local/lib/hpux32/libfontconfig.so /usr/local/lib/hpux32/libiconv.so /usr/local/lib/hpux32/libexpat.so /usr/local/lib/hpux32/libfreetype.so /usr/local/lib/hpux32/libpng14.so -lz -lm ld: Unsatisfied symbol "gdImageCreateFromGd2Part" in file gdparttopng.o ld: Unsatisfied symbol "png_check_sig" in file ./.libs/libgd.a[gd_png.o] 2 errors. collect2: ld returned 1 exit status make[2]: *** [gdparttopng] Error 1 make[2]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34' make: *** [all] Error 2 Who can I setup the correct path for the libpng1.2 library, because I follow the instructions in the PDF, and I executed the following commands: cd gd-2.0.34 ./configure --disable-shared \ --with-png=$HOME/supplibs/src/libpng-1.2.18 \ --with-jpeg=$HOME/supplibs/src/jpeg-6b \ --prefix=$HOME/supplibs/src/gd-2.0.34 make Please help me, Best regards, Huber _____ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: viernes, 02 de julio de 2010 12:20 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber, Did you remove the libpng directory, untar libpng again, configure again with the options specified in Building_GrADS.pdf, and make the system? Ditto for the GD build. You must follow the order of the build as shown in the PDF file. John Huddleston, PhD, PE _____ From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez [huber.gilt at igp.gob.pe] Sent: Friday, July 02, 2010 11:06 AM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library Hello John, I?ve done your instructions and also I compiled the zlib-1.2.3 library and I have the library libz.a, in supplibs/lib. And I have the same problem in libpng-1.2-18 compilation. What is going on with libpng library if I have the libz.a library in the folder supplibs/lib? (In the end I list the compiled libraries) Please help me, Best regards. Huber Paul Gilt L?pez # pwd /home/huber/grads/supplibs/lib # ls libcurl.a libhdf5_hl.a libncurses.a libreadline.a libxdr.a libdf.a libjpeg.a libnetcdf.a libsz.a libz.a libhdf5.a libmfhdf.a libpng12.a libudunits.a _____ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: viernes, 02 de julio de 2010 9:30 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber, On June 15th I sent you a PDF on how to build GrADS, please look it over, libpng doesn't build because you do not have the zlib. Get zlib from ftp://grads.iges.org/grads/Supplibs/2.0/src/zlib-1.2.3.tar.gz tar xvfz ./tarfiles/zlib-1.2.3.tar.gz cd zlib-1.2.3/ ./configure --prefix=$HOME/supplibs/src/zlib-1.2.3 make make install cp ./lib/libz.a $HOME/supplibs/lib mkdir $HOME/supplibs/include/zlib cp ./include/zlib.h $HOME/supplibs/include/zlib John _____ From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez [huber.gilt at igp.gob.pe] Sent: Friday, July 02, 2010 8:17 AM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library John, Because I found this error when I configure PNG library 1.2: #cd /home/huber/grads/supplibs/src/libpng-1.2.18 ./configure --disable-shared --prefix=/home/huber/grads/supplibs/src/libpng-1.2.18 checking for pow in -lm... yes checking for zlibVersion in -lz... no configure: error: zlib not installed I?ve exported this variable CC=gcc by this other CC='gcc -L/home/huber/grads/supplibs/lib -lz', then I?ve done make, and make install. Provably the libpng12.a library didn?t build well, how I can fix the previous error when I tried to configure the libpng12 library? Please help me, Best regards, Huber Paul Gilt Lopez _____ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: jueves, 01 de julio de 2010 18:46 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Huber You need the PNG library1.2 not 1.4. Somehow you've installed a more recent version of PNG into /usr/local Go back to the PNG 1.2 build and do a "make install" to load it into /usr/local Otherwise, manually edit the Makefile and change it to point to your $(SUPPLIBS) PNG area. John Huddleston _____ From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez [huber.gilt at igp.gob.pe] Sent: Thursday, July 01, 2010 4:15 PM To: 'GrADS Users Forum' Subject: [gradsusr] error compiling gd library Hello, I want to compile the gd library, i used this command, but I have an unsatisfied symbol. How can I include these missing symbol? #cd /home/huber/grads/supplibs/src/gd-2.0.34 #./configure --disable-shared\ --with-png=/home/huber/grads/supplibs/src/libpng-1.2.18\ --with-jpeg=/home/huber/grads/supplibs/src/jpeg-6b\ --prefix=/home/huber/grads/supplibs/src/gd-2.0.34 #make gcc -g -O2 -o gdparttopng gdparttopng.o -L/home/huber/grads/supplibs/lib -L/usr/local/lib/hpux32 -L/usr/lib/X11R4 -L/home/huber/grads/supplibs/src/jpeg-6b/lib ./.libs/libgd.a -L/usr/contrib/X11R6/lib /usr/local/lib/hpux32/libXpm.so /usr/local/lib/hpux32/libintl.so -lX11 -ljpeg /usr/local/lib/hpux32/libfontconfig.so /usr/local/lib/hpux32/libiconv.so /usr/local/lib/hpux32/libexpat.so /usr/local/lib/hpux32/libfreetype.so /usr/local/lib/hpux32/libpng14.so -lz -lm ld: Unsatisfied symbol "png_check_sig" in file ./.libs/libgd.a[gd_png.o] 1 errors. collect2: ld returned 1 exit status make[2]: *** [gdparttopng] Error 1 make[2]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34' make: *** [all] Error 2 Please help me, Best regards, Huber Paul Gilt Lopez IGP-Peru -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100709/7d5687de/attachment-0001.html From Huddleston at cira.colostate.edu Fri Jul 9 17:13:40 2010 From: Huddleston at cira.colostate.edu (Huddleston, John) Date: Fri, 9 Jul 2010 14:13:40 -0700 Subject: [gradsusr] error compiling gd library In-Reply-To: <201007092100.o69L05dA010536@geo.igp.gob.pe> References: <201007092100.o69L05dA010536@geo.igp.gob.pe> Message-ID: Hi Huber, Did you do a 'make install' in the libcurl directory? It will then install the lib, include, and any other files. If yes, cat the $HOME/supplibs/src/curl-7.19.6/lib/libcurl.la file and verify that you satisfy all the dependencies. Since you are copying all libraries and include files into ${SUPPLIBS} you may also add a line --with-curl=${SUPPLIBS} John John Huddleston, PhD Cooperative Institute for Research in the Atmosphere From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez Sent: Friday, July 09, 2010 2:53 PM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library Hi John, Yes, I did. I built curl and install it under ${SUPPLIBS}/lib # ls ${SUPPLIBS}/lib libcurl.a libhdf5.a libmfhdf.a libreadline.a libz.a libdf.a libhdf5_hl.a libncurses.a libsz.a libgd.a libjasper.a libnetcdf.a libudunits.a libgrib2c.a libjpeg.a libpng12.a libxml2.a But after I executed this command I found these messages: ./configure --disable-shared \ --with-xml2=$HOME/supplibs/src/libxml2-2.6.16 \ --with-zlib=$HOME/supplibs/src/zlib-1.2.3 \ --with-curl=$HOME/supplibs/src/curl-7.19.6 \ --prefix=$HOME/supplibs/src/libdap-3.7.8 checking whether wchar_t is signed... no checking whether wint_t is signed... no checking for ptrdiff_t integer literal suffix... l checking for sig_atomic_t integer literal suffix... u checking for size_t integer literal suffix... ul checking for wchar_t integer literal suffix... u checking for wint_t integer literal suffix... u checking whether is standalone... yes checking for pkg-config... no checking for CURL... checking for libcurl... configure: error: I could not find libcurl How can I fix or setup the path for the libcurl library? BTW, I only compiled with cc the libudunits.a, but I will to re-compile this library. Please help me, Best regards, Huber ________________________________ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: viernes, 09 de julio de 2010 14:47 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber If you built curl and installed it under ${SUPPLIBS}/lib then you do not need to make the configure.ac change. I'd say remove the directory, untar the libdap and simply do the configure with the options as shown in the documents. BTW, I noticed you are using gcc now. Under HP/UX systems you cannot combine cc and gcc binaries so make sure all your binaries are consistent one way or the other. John John Huddleston, PhD Cooperative Institute for Research in the Atmosphere From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez Sent: Friday, July 09, 2010 1:36 PM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library Hello John, I trying to compile libdap-3.7.8 library, according to the grads instructions, I changed the line this 136 in the configure.ac: 136 libdap_pkgconfig_libcurl=yes By this other: 136 libdap_pkgconfig_libcurl=no And then run this command: # autoreconf configure.ac:73: error: AC_REQUIRE: circular dependency of AC_GNU_SOURCE gl/m4/extensions.m4:19: AC_USE_SYSTEM_EXTENSIONS is expanded from... ../../lib/autoconf/specific.m4:310: AC_GNU_SOURCE is expanded from... gl/m4/gnulib-comp.m4:21: gl_EARLY is expanded from... configure.ac:73: the top level autom4te: /usr/local/bin/m4 failed with exit status: 1 aclocal: /usr/local/bin/autom4te failed with exit status: 1 autoreconf: aclocal failed with exit status: 1 I think these messages aren't good. How can I fix that? Please help, Best regards, Huber Paul Gilt Lopez ________________________________ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: viernes, 09 de julio de 2010 12:10 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber, You just found a bug in the libxml2 library. Go to line 2338 of encoding.c, e.g. vi +2338 encoding And change the word 'xlattable' to 'unicodetable' John John Huddleston, PhD Cooperative Institute for Research in the Atmosphere From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez Sent: Friday, July 09, 2010 10:26 AM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library Hello John, I'm trying to compile xml2 library, but after I applied this commands: #./configure --disable-shared \ --prefix=$HOME/supplibs/src/libxml2-2.6.16 #make I found these 2 errors. I think this variable or function "xlattable" is not defined. How can I fix these two errors? gcc -DHAVE_CONFIG_H -I. -I. -I. -I./include -I./include -D_REENTRANT -g -O2 -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls -MT encoding.lo -MD -MP -MF .deps/encoding.Tpo -c encoding.c -o encoding.o encoding.c: In function 'UTF16LEToUTF8': encoding.c:418: warning: cast increases required alignment of target type encoding.c: In function 'UTF8ToUTF16LE': encoding.c:500: warning: cast increases required alignment of target type encoding.c: In function 'UTF16BEToUTF8': encoding.c:655: warning: cast increases required alignment of target type encoding.c: In function 'UTF8ToUTF16BE': encoding.c:741: warning: cast increases required alignment of target type encoding.c: In function 'ISO8859xToUTF8': encoding.c:2338: error: 'xlattable' undeclared (first use in this function) encoding.c:2338: error: (Each undeclared identifier is reported only once encoding.c:2338: error: for each function it appears in.) encoding.c: At top level: encoding.c:2998: warning: string length '688' is greater than the length '509' ISO C90 compilers are required to support encoding.c:3108: warning: string length '624' is greater than the length '509' ISO C90 compilers are required to support make[2]: *** [encoding.lo] Error 1 make[2]: Leaving directory `/home/huber/grads/supplibs/src/libxml2-2.6.16' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/huber/grads/supplibs/src/libxml2-2.6.16' make: *** [all] Error 2 Please help me, Best regards, Huber ________________________________ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: jueves, 08 de julio de 2010 19:21 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Huber, The archive library libunits.a is not empty. It is fine. Copy it to the ${SUPPLIBS}/lib area and move on. BTW, if you have the gcc compiler on your system, then 'export CC=gcc' and start over. e.g. 'gcc --version' send me the results ... John ________________________________ From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez [huber.gilt at igp.gob.pe] Sent: Thursday, July 08, 2010 3:45 PM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library Hello John, Do a 'ar tv libudunits.a', you should see something like rw-r--r-- 1000/1000 16568 Jul 27 10:02 2009 utlib.o rw-r--r-- 1000/1000 7524 Jul 27 10:02 2009 utparse.o rw-r--r-- 1000/1000 14272 Jul 27 10:02 2009 utscan.o rw-r--r-- 1000/1000 1136 Jul 27 10:02 2009 udalloc.o Yes, I do. And I see: # ar -tv libudunits.a rw-r--r-- 0/ 3 74480 Jul 8 15:47 2010 utlib.o rw-r--r-- 0/ 3 18232 Jul 8 15:47 2010 utparse.o rw-r--r-- 0/ 3 45144 Jul 8 15:47 2010 utscan.o rw-r--r-- 0/ 3 5328 Jul 8 15:47 2010 udalloc.o If you have all four then you're good to go. Yes, I have but I think all four is empty. Copy it to ${SUPPLIBS}/lib, copy etc/udunits.dat to ${SUPPLIBS}/etc I think this is not match. You are getting an error on creating udunits executable. I think this is match. If the four objects are not in the libudunits.a file, cd into the lib directory, and try compiling by hand: cc -c -O -I../port/misc -I../port/cfortran -DUT_DEFAULT_PATH='"${SUPPLIBS}/etc/udunits.dat"' *.c I tried, but I think this is not complete well. #cc -c -O -I../port/misc -I../port/cfortran -DUT_DEFAULT_PATH='"${SUPPLIBS}/etc/udunits.dat"' *.c (Bundled) cc: warning 922: "-O" is unsupported in the bundled compiler, ignored. udalloc.c: utlib-1.11.7.nof77intfc.c: "utlib-1.11.7.nof77intfc.c", line 1488: warning #2177-D: function "CopyCtorNode" was declared but never referenced CopyCtorNode(node) ^ "utlib-1.11.7.nof77intfc.c", line 1520: warning #2177-D: function "AssignNode" was declared but never referenced AssignNode(to, from) ^ utlib.c: "utlib.c", line 1488: warning #2177-D: function "CopyCtorNode" was declared but never referenced CopyCtorNode(node) ^ "utlib.c", line 1520: warning #2177-D: function "AssignNode" was declared but never referenced AssignNode(to, from) ^ utparse.c: "utparse.y", line 386: warning #2175-D: subscript out of range yypv = &yyv[-1]; ^ "utparse.y", line 387: warning #2175-D: subscript out of range yyps = &yys[-1]; ^ "utparse.y", line 405: warning #2177-D: label "yynewstate" was declared but never referenced yynewstate: ^ utscan.c: then type 'make' and it should update the libudunits.a file. I done, but I think libudunits.a library is still too small. # make ar rcuv libudunits.a utlib.o utparse.o utscan.o udalloc.o r - utlib.o r - utparse.o r - utscan.o r - udalloc.o case "" in \ '') ;; \ *) ar rucv libudunits.a ;; \ esac ranlib libudunits.a # du -sk libudunits.a 144 libudunits.a Go to the ../udunits directory and edit the Makefile to remove the -R option arguments, exit the editor, and type make, or manually cc -o udunits -O udunits.o -L../lib -ludunits -lm -L../port/misc -ludport -lm I did the manually form, then I type these commands but I have the same problem. # cd ../udunits # cc -o udunits -O udunits.o -L../lib -ludunits -lm -L../port/misc -ludport -lm cc -c -O -I../lib -I../port/misc udunits.c (Bundled) cc: warning 922: "-O" is unsupported in the bundled compiler, ignored. cc -o udunits -O udunits.o -R/data/hoop/udunits-1.11.7/src/lib -L/data/hoop/udunits-1.11.7/src/lib -ludunits -R/data/hoop/udunits-1.11.7/src/port/misc -L/data/hoop/udunits-1.11.7/src/port/misc -ludport -ly -lm (Bundled) cc: warning 922: "-O" is unsupported in the bundled compiler, ignored. (Bundled) cc: warning 901: unknown option: `-R/data/hoop/udunits-1.11.7/src/lib': use +help for online documentation. (Bundled) cc: warning 901: unknown option: `-R/data/hoop/udunits-1.11.7/src/port/misc': use +help for online documentation. ld: Can't find library for -ludunits Fatal error. make[1]: *** [udunits] Error 1 make[1]: Leaving directory `/home/huber/grads/supplibs/src/udunits-1.11.7/src/udunits' make: *** [program] Error 2 And also I remove -R option arguments. Then make output were: make[1]: Entering directory `/home/huber/grads/supplibs/src/udunits-1.11.7/src/udunits' cc -o udunits -O udunits.o -ly -lm (Bundled) cc: warning 922: "-O" is unsupported in the bundled compiler, ignored. ld: Unsatisfied symbol "utIsTime" in file udunits.o ld: Unsatisfied symbol "utInit" in file udunits.o ld: Unsatisfied symbol "utCalendar" in file udunits.o ld: Unsatisfied symbol "utScan" in file udunits.o ld: Unsatisfied symbol "utTerm" in file udunits.o ld: Unsatisfied symbol "utConvert" in file udunits.o ld: (Warning) Unsatisfied symbol "yyparse" in file /usr/lib/hpux32/liby.so ld: Unsatisfied symbol "utPrint" in file udunits.o 1 warnings. 7 errors. make[1]: *** [udunits] Error 1 make[1]: Leaving directory `/home/huber/grads/supplibs/src/udunits-1.11.7/src/udunits' make: *** [program] Error 2 If it possible to have the equivalent commands with gcc compiler, the libudunits.a is still too small I don't know what is going on with compilation with libudunits library, do you have extra information or tips about the process of compilation in gcc o cc? Thanks you, Very much Huber ________________________________ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: jueves, 08 de julio de 2010 14:55 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber, it is a small file, Do a 'ar tv libudunits.a', you should see something like rw-r--r-- 1000/1000 16568 Jul 27 10:02 2009 utlib.o rw-r--r-- 1000/1000 7524 Jul 27 10:02 2009 utparse.o rw-r--r-- 1000/1000 14272 Jul 27 10:02 2009 utscan.o rw-r--r-- 1000/1000 1136 Jul 27 10:02 2009 udalloc.o If you have all four then you're good to go. Copy it to ${SUPPLIBS}/lib, copy etc/udunits.dat to ${SUPPLIBS}/etc You are getting an error on creating udunits executable. If the four objects are not in the libudunits.a file, cd into the lib directory, and try compiling by hand: cc -c -O -I../port/misc -I../port/cfortran -DUT_DEFAULT_PATH='"${SUPPLIBS}/etc/udunits.dat"' *.c then type 'make' and it should update the libudunits.a file. Go to the ../udunits directory and edit the Makefile to remove the -R option arguments, exit the editor, and type make, or manually cc -o udunits -O udunits.o -L ../lib -ludunits -lm -L ../port/misc -ludport -lm John John Huddleston, PhD Cooperative Institute for Research in the Atmosphere From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez Sent: Thursday, July 08, 2010 1:19 PM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library Hello John, Thanks you for your help, I've compiled libgb.a library and also jasper, g2clib, and szip, but I can't compiled udunits library. I get the following error: cc -o udunits -O udunits.o -R/data/hoop/udunits-1.11.7/src/lib -L/data/hoop/udunits-1.11.7/src/lib -ludunits -R/data/hoop/udunits-1.11.7/src/port/misc -L/data/hoop/udunits-1.11.7/src/port/misc -ludport -ly -lm (Bundled) cc: warning 922: "-O" is unsupported in the bundled compiler, ignored. (Bundled) cc: warning 901: unknown option: `-R/data/hoop/udunits-1.11.7/src/lib': use +help for online documentation. (Bundled) cc: warning 901: unknown option: `-R/data/hoop/udunits-1.11.7/src/port/misc': use +help for online documentation. ld: Can't find library for -ludunits Fatal error. make[2]: *** [udunits] Error 1 make[2]: Leaving directory `/home/huber/grads/supplibs/src/udunits-1.11.7/src/udunits' make[1]: *** [program] Error 2 make[1]: Leaving directory `/home/huber/grads/supplibs/src/udunits-1.11.7/src/udunits' make: *** [udunits/all] Error 1 But I saw that I have the libunits.a library, but I think it isn't complete because it's so small. How can I resolve this error? # ls lib/libudunits.a lib/libudunits.a # du -sk lib/libudunits.a 144 lib/libudunits.a Please help me, Best regards, Huber ________________________________ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: jueves, 08 de julio de 2010 9:54 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber, The /usr/local/lib/libpng.la controls which PNG library is used. It seems as if someone else built and installed version 14 under /usr/local. Unless you have sudo privlileges you are going to have to work around that implementation. This is going to sound funny..but; if you have already built the GD library file that's all you need to continue building. In my case, the path is /home/dasilva/src/supplibs-2.1.0/i686-pc-linux/lib/libgd.a In your case copy the libgd.a to your $(SUPPLIBS)/lib directory and copy the include files gd.h gdfx.h gd_io.h gdcache.h gdfontg.h gdfontl.h gdfontmb.h gdfonts.h gdfontt.h entities.h to your ${SUPPLIBS}/include directory. Next, go on to build jasper, g2clib, szlib, etc. John John Huddleston, PhD Cooperative Institute for Research in the Atmosphere From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez Sent: Wednesday, July 07, 2010 9:42 AM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library Hi John, Don't worry about the difficulty that I'm having, I can't figure how you build in or with Cygwin, I suppose it is a heavy work. Any way, I don't found any reference with libpng14 in the libgb's Makefile , but I found the following lines that I think it would be not setup for the libpng12. How can I setup this Makefile in order to use the libpng12 library, and so try to compile the gb library? (I'm attaching the libgb's Makefile) LIBPNG12_CONFIG = LIBPNG_CONFIG = /usr/local/bin/libpng-config Please help me, Best regards, Huber ________________________________ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: martes, 06 de julio de 2010 14:30 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber, so sorry you are having so much difficulty. You should see the work I have for the Cygwin build! Look at your gcc line and you will see the path /usr/local/lib/hpux32/libpng14.so Edit the Makefile, search for libpng14, edit that line and replace it with the path to your libpng12 file. John John Huddleston, PhD Cooperative Institute for Research in the Atmosphere From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez Sent: Tuesday, July 06, 2010 1:13 PM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library Hello John, I start to compile all the supplemental libraries; I compiled readline, ncurses, zlib, libpng and jpeg libraries, but I cant compile gd library. Because I have the following error: gcc -g -O2 -o gdparttopng gdparttopng.o -L/usr/local/lib/hpux32 -L/usr/lib/X11R4 -L/home/huber/grads/supplibs/src/jpeg-6b/lib ./.libs/libgd.a -L/usr/contrib/X11R6/lib /usr/local/lib/hpux32/libXpm.so /usr/local/lib/hpux32/libintl.so -lX11 /usr/local/lib/hpux32/libjpeg.so /usr/local/lib/hpux32/libfontconfig.so /usr/local/lib/hpux32/libiconv.so /usr/local/lib/hpux32/libexpat.so /usr/local/lib/hpux32/libfreetype.so /usr/local/lib/hpux32/libpng14.so -lz -lm ld: Unsatisfied symbol "gdImageCreateFromGd2Part" in file gdparttopng.o ld: Unsatisfied symbol "png_check_sig" in file ./.libs/libgd.a[gd_png.o] 2 errors. collect2: ld returned 1 exit status make[2]: *** [gdparttopng] Error 1 make[2]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34' make: *** [all] Error 2 Who can I setup the correct path for the libpng1.2 library, because I follow the instructions in the PDF, and I executed the following commands: cd gd-2.0.34 ./configure --disable-shared \ --with-png=$HOME/supplibs/src/libpng-1.2.18 \ --with-jpeg=$HOME/supplibs/src/jpeg-6b \ --prefix=$HOME/supplibs/src/gd-2.0.34 make Please help me, Best regards, Huber ________________________________ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: viernes, 02 de julio de 2010 12:20 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber, Did you remove the libpng directory, untar libpng again, configure again with the options specified in Building_GrADS.pdf, and make the system? Ditto for the GD build. You must follow the order of the build as shown in the PDF file. John Huddleston, PhD, PE ________________________________ From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez [huber.gilt at igp.gob.pe] Sent: Friday, July 02, 2010 11:06 AM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library Hello John, I've done your instructions and also I compiled the zlib-1.2.3 library and I have the library libz.a, in supplibs/lib. And I have the same problem in libpng-1.2-18 compilation. What is going on with libpng library if I have the libz.a library in the folder supplibs/lib? (In the end I list the compiled libraries) Please help me, Best regards. Huber Paul Gilt L?pez # pwd /home/huber/grads/supplibs/lib # ls libcurl.a libhdf5_hl.a libncurses.a libreadline.a libxdr.a libdf.a libjpeg.a libnetcdf.a libsz.a libz.a libhdf5.a libmfhdf.a libpng12.a libudunits.a ________________________________ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: viernes, 02 de julio de 2010 9:30 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber, On June 15th I sent you a PDF on how to build GrADS, please look it over, libpng doesn't build because you do not have the zlib. Get zlib from ftp://grads.iges.org/grads/Supplibs/2.0/src/zlib-1.2.3.tar.gz tar xvfz ./tarfiles/zlib-1.2.3.tar.gz cd zlib-1.2.3/ ./configure --prefix=$HOME/supplibs/src/zlib-1.2.3 make make install cp ./lib/libz.a $HOME/supplibs/lib mkdir $HOME/supplibs/include/zlib cp ./include/zlib.h $HOME/supplibs/include/zlib John ________________________________ From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez [huber.gilt at igp.gob.pe] Sent: Friday, July 02, 2010 8:17 AM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library John, Because I found this error when I configure PNG library 1.2: #cd /home/huber/grads/supplibs/src/libpng-1.2.18 ./configure --disable-shared --prefix=/home/huber/grads/supplibs/src/libpng-1.2.18 ... checking for pow in -lm... yes checking for zlibVersion in -lz... no configure: error: zlib not installed I've exported this variable CC=gcc by this other CC='gcc -L/home/huber/grads/supplibs/lib -lz', then I've done make, and make install. Provably the libpng12.a library didn't build well, how I can fix the previous error when I tried to configure the libpng12 library? Please help me, Best regards, Huber Paul Gilt Lopez ________________________________ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: jueves, 01 de julio de 2010 18:46 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Huber You need the PNG library1.2 not 1.4. Somehow you've installed a more recent version of PNG into /usr/local Go back to the PNG 1.2 build and do a "make install" to load it into /usr/local Otherwise, manually edit the Makefile and change it to point to your $(SUPPLIBS) PNG area. John Huddleston ________________________________ From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez [huber.gilt at igp.gob.pe] Sent: Thursday, July 01, 2010 4:15 PM To: 'GrADS Users Forum' Subject: [gradsusr] error compiling gd library Hello, I want to compile the gd library, i used this command, but I have an unsatisfied symbol. How can I include these missing symbol? #cd /home/huber/grads/supplibs/src/gd-2.0.34 #./configure --disable-shared\ --with-png=/home/huber/grads/supplibs/src/libpng-1.2.18\ --with-jpeg=/home/huber/grads/supplibs/src/jpeg-6b\ --prefix=/home/huber/grads/supplibs/src/gd-2.0.34 #make ... gcc -g -O2 -o gdparttopng gdparttopng.o -L/home/huber/grads/supplibs/lib -L/usr/local/lib/hpux32 -L/usr/lib/X11R4 -L/home/huber/grads/supplibs/src/jpeg-6b/lib ./.libs/libgd.a -L/usr/contrib/X11R6/lib /usr/local/lib/hpux32/libXpm.so /usr/local/lib/hpux32/libintl.so -lX11 -ljpeg /usr/local/lib/hpux32/libfontconfig.so /usr/local/lib/hpux32/libiconv.so /usr/local/lib/hpux32/libexpat.so /usr/local/lib/hpux32/libfreetype.so /usr/local/lib/hpux32/libpng14.so -lz -lm ld: Unsatisfied symbol "png_check_sig" in file ./.libs/libgd.a[gd_png.o] 1 errors. collect2: ld returned 1 exit status make[2]: *** [gdparttopng] Error 1 make[2]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34' make: *** [all] Error 2 Please help me, Best regards, Huber Paul Gilt Lopez IGP-Peru -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100709/11c7e780/attachment-0001.html From huber.gilt at igp.gob.pe Fri Jul 9 18:14:24 2010 From: huber.gilt at igp.gob.pe (=?iso-8859-1?Q?Huber_Pa=FAl_Gilt_L=F3pez?=) Date: Fri, 9 Jul 2010 17:14:24 -0500 Subject: [gradsusr] error compiling gd library In-Reply-To: Message-ID: <201007092221.o69MLOR8012180@geo.igp.gob.pe> Hi John, Did you do a ?make install? in the libcurl directory? It will then install the lib, include, and any other files. Yes, I did. I did ?made install? in the libcurl directory. If yes, cat the $HOME/supplibs/src/curl-7.19.6/lib/libcurl.la file and verify that you satisfy all the dependencies. I executed cat $HOME/supplibs/src/curl-7.19.6/lib/libcurl.la, I think it is good. # Libraries that this one depends upon. dependency_libs=' -L/home/huber/grads/supplibs/lib -lz -lm' Since you are copying all libraries and include files into ${SUPPLIBS} you may also add a line --with-curl=${SUPPLIBS} According with the PDF that you?ve sended me, I only copied the library. Is necessary to copy libcurl?s include files? cp ./lib/libcurl.a $HOME/supplibs/lib Then I executed in the libdap directory these commands: ./configure --disable-shared \ --with-xml2=$HOME/supplibs/src/libxml2-2.6.16 \ --with-zlib=$HOME/supplibs/src/zlib-1.2.3 \ --with-curl=$HOME/supplibs/src/curl-7.19.6 \ --prefix=$HOME/supplibs/src/libdap-3.7.8 checking for sig_atomic_t integer literal suffix... u checking for size_t integer literal suffix... ul checking for wchar_t integer literal suffix... u checking for wint_t integer literal suffix... u checking whether is standalone... yes checking for pkg-config... no checking for CURL... checking for libcurl... configure: error: I could not find libcurl What is going on with this curl library? Why libdap library don?t recognize the curl library? Please help me, Best regards, Huber _____ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: viernes, 09 de julio de 2010 16:14 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber, Did you do a ?make install? in the libcurl directory? It will then install the lib, include, and any other files. If yes, cat the $HOME/supplibs/src/curl-7.19.6/lib/libcurl.la file and verify that you satisfy all the dependencies. Since you are copying all libraries and include files into ${SUPPLIBS} you may also add a line --with-curl=${SUPPLIBS} John John Huddleston, PhD Cooperative Institute for Research in the Atmosphere From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez Sent: Friday, July 09, 2010 2:53 PM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library Hi John, Yes, I did. I built curl and install it under ${SUPPLIBS}/lib # ls ${SUPPLIBS}/lib libcurl.a libhdf5.a libmfhdf.a libreadline.a libz.a libdf.a libhdf5_hl.a libncurses.a libsz.a libgd.a libjasper.a libnetcdf.a libudunits.a libgrib2c.a libjpeg.a libpng12.a libxml2.a But after I executed this command I found these messages: ./configure --disable-shared \ --with-xml2=$HOME/supplibs/src/libxml2-2.6.16 \ --with-zlib=$HOME/supplibs/src/zlib-1.2.3 \ --with-curl=$HOME/supplibs/src/curl-7.19.6 \ --prefix=$HOME/supplibs/src/libdap-3.7.8 checking whether wchar_t is signed... no checking whether wint_t is signed... no checking for ptrdiff_t integer literal suffix... l checking for sig_atomic_t integer literal suffix... u checking for size_t integer literal suffix... ul checking for wchar_t integer literal suffix... u checking for wint_t integer literal suffix... u checking whether is standalone... yes checking for pkg-config... no checking for CURL... checking for libcurl... configure: error: I could not find libcurl How can I fix or setup the path for the libcurl library? BTW, I only compiled with cc the libudunits.a, but I will to re-compile this library. Please help me, Best regards, Huber _____ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: viernes, 09 de julio de 2010 14:47 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber If you built curl and installed it under ${SUPPLIBS}/lib then you do not need to make the configure.ac change. I?d say remove the directory, untar the libdap and simply do the configure with the options as shown in the documents. BTW, I noticed you are using gcc now. Under HP/UX systems you cannot combine cc and gcc binaries so make sure all your binaries are consistent one way or the other. John John Huddleston, PhD Cooperative Institute for Research in the Atmosphere From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez Sent: Friday, July 09, 2010 1:36 PM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library Hello John, I trying to compile libdap-3.7.8 library, according to the grads instructions, I changed the line this 136 in the configure.ac: 136 libdap_pkgconfig_libcurl=yes By this other: 136 libdap_pkgconfig_libcurl=no And then run this command: # autoreconf configure.ac:73: error: AC_REQUIRE: circular dependency of AC_GNU_SOURCE gl/m4/extensions.m4:19: AC_USE_SYSTEM_EXTENSIONS is expanded from... ../../lib/autoconf/specific.m4:310: AC_GNU_SOURCE is expanded from... gl/m4/gnulib-comp.m4:21: gl_EARLY is expanded from... configure.ac:73: the top level autom4te: /usr/local/bin/m4 failed with exit status: 1 aclocal: /usr/local/bin/autom4te failed with exit status: 1 autoreconf: aclocal failed with exit status: 1 I think these messages aren?t good. How can I fix that? Please help, Best regards, Huber Paul Gilt Lopez _____ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: viernes, 09 de julio de 2010 12:10 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber, You just found a bug in the libxml2 library. Go to line 2338 of encoding.c, e.g. vi +2338 encoding And change the word ?xlattable? to ?unicodetable? John John Huddleston, PhD Cooperative Institute for Research in the Atmosphere From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez Sent: Friday, July 09, 2010 10:26 AM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library Hello John, I?m trying to compile xml2 library, but after I applied this commands: #./configure --disable-shared \ --prefix=$HOME/supplibs/src/libxml2-2.6.16 #make I found these 2 errors. I think this variable or function ?xlattable? is not defined. How can I fix these two errors? gcc -DHAVE_CONFIG_H -I. -I. -I. -I./include -I./include -D_REENTRANT -g -O2 -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls -MT encoding.lo -MD -MP -MF .deps/encoding.Tpo -c encoding.c -o encoding.o encoding.c: In function 'UTF16LEToUTF8': encoding.c:418: warning: cast increases required alignment of target type encoding.c: In function 'UTF8ToUTF16LE': encoding.c:500: warning: cast increases required alignment of target type encoding.c: In function 'UTF16BEToUTF8': encoding.c:655: warning: cast increases required alignment of target type encoding.c: In function 'UTF8ToUTF16BE': encoding.c:741: warning: cast increases required alignment of target type encoding.c: In function 'ISO8859xToUTF8': encoding.c:2338: error: 'xlattable' undeclared (first use in this function) encoding.c:2338: error: (Each undeclared identifier is reported only once encoding.c:2338: error: for each function it appears in.) encoding.c: At top level: encoding.c:2998: warning: string length '688' is greater than the length '509' ISO C90 compilers are required to support encoding.c:3108: warning: string length '624' is greater than the length '509' ISO C90 compilers are required to support make[2]: *** [encoding.lo] Error 1 make[2]: Leaving directory `/home/huber/grads/supplibs/src/libxml2-2.6.16' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/huber/grads/supplibs/src/libxml2-2.6.16' make: *** [all] Error 2 Please help me, Best regards, Huber _____ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: jueves, 08 de julio de 2010 19:21 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Huber, The archive library libunits.a is not empty. It is fine. Copy it to the ${SUPPLIBS}/lib area and move on. BTW, if you have the gcc compiler on your system, then 'export CC=gcc' and start over. e.g. 'gcc --version' send me the results ... John _____ From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez [huber.gilt at igp.gob.pe] Sent: Thursday, July 08, 2010 3:45 PM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library Hello John, Do a ?ar tv libudunits.a?, you should see something like rw-r--r-- 1000/1000 16568 Jul 27 10:02 2009 utlib.o rw-r--r-- 1000/1000 7524 Jul 27 10:02 2009 utparse.o rw-r--r-- 1000/1000 14272 Jul 27 10:02 2009 utscan.o rw-r--r-- 1000/1000 1136 Jul 27 10:02 2009 udalloc.o Yes, I do. And I see: # ar -tv libudunits.a rw-r--r-- 0/ 3 74480 Jul 8 15:47 2010 utlib.o rw-r--r-- 0/ 3 18232 Jul 8 15:47 2010 utparse.o rw-r--r-- 0/ 3 45144 Jul 8 15:47 2010 utscan.o rw-r--r-- 0/ 3 5328 Jul 8 15:47 2010 udalloc.o If you have all four then you?re good to go. Yes, I have but I think all four is empty. Copy it to ${SUPPLIBS}/lib, copy etc/udunits.dat to ${SUPPLIBS}/etc I think this is not match. You are getting an error on creating udunits executable. I think this is match. If the four objects are not in the libudunits.a file, cd into the lib directory, and try compiling by hand: cc -c -O -I../port/misc -I../port/cfortran -DUT_DEFAULT_PATH='"${SUPPLIBS}/etc/udunits.dat"' *.c I tried, but I think this is not complete well. #cc -c -O -I../port/misc -I../port/cfortran -DUT_DEFAULT_PATH='"${SUPPLIBS}/etc/udunits.dat"' *.c (Bundled) cc: warning 922: "-O" is unsupported in the bundled compiler, ignored. udalloc.c: utlib-1.11.7.nof77intfc.c: "utlib-1.11.7.nof77intfc.c", line 1488: warning #2177-D: function "CopyCtorNode" was declared but never referenced CopyCtorNode(node) ^ "utlib-1.11.7.nof77intfc.c", line 1520: warning #2177-D: function "AssignNode" was declared but never referenced AssignNode(to, from) ^ utlib.c: "utlib.c", line 1488: warning #2177-D: function "CopyCtorNode" was declared but never referenced CopyCtorNode(node) ^ "utlib.c", line 1520: warning #2177-D: function "AssignNode" was declared but never referenced AssignNode(to, from) ^ utparse.c: "utparse.y", line 386: warning #2175-D: subscript out of range yypv = &yyv[-1]; ^ "utparse.y", line 387: warning #2175-D: subscript out of range yyps = &yys[-1]; ^ "utparse.y", line 405: warning #2177-D: label "yynewstate" was declared but never referenced yynewstate: ^ utscan.c: then type ?make? and it should update the libudunits.a file. I done, but I think libudunits.a library is still too small. # make ar rcuv libudunits.a utlib.o utparse.o utscan.o udalloc.o r - utlib.o r - utparse.o r - utscan.o r - udalloc.o case "" in \ '') ;; \ *) ar rucv libudunits.a ;; \ esac ranlib libudunits.a # du -sk libudunits.a 144 libudunits.a Go to the ../udunits directory and edit the Makefile to remove the ?R option arguments, exit the editor, and type make, or manually cc -o udunits -O udunits.o ?L../lib -ludunits -lm ?L../port/misc -ludport -lm I did the manually form, then I type these commands but I have the same problem. # cd ../udunits # cc -o udunits -O udunits.o ?L../lib -ludunits -lm ?L../port/misc -ludport -lm cc -c -O -I../lib -I../port/misc udunits.c (Bundled) cc: warning 922: "-O" is unsupported in the bundled compiler, ignored. cc -o udunits -O udunits.o -R/data/hoop/udunits-1.11.7/src/lib -L/data/hoop/udunits-1.11.7/src/lib -ludunits -R/data/hoop/udunits-1.11.7/src/port/misc -L/data/hoop/udunits-1.11.7/src/port/misc -ludport -ly -lm (Bundled) cc: warning 922: "-O" is unsupported in the bundled compiler, ignored. (Bundled) cc: warning 901: unknown option: `-R/data/hoop/udunits-1.11.7/src/lib': use +help for online documentation. (Bundled) cc: warning 901: unknown option: `-R/data/hoop/udunits-1.11.7/src/port/misc': use +help for online documentation. ld: Can't find library for -ludunits Fatal error. make[1]: *** [udunits] Error 1 make[1]: Leaving directory `/home/huber/grads/supplibs/src/udunits-1.11.7/src/udunits' make: *** [program] Error 2 And also I remove ?R option arguments. Then make output were: make[1]: Entering directory `/home/huber/grads/supplibs/src/udunits-1.11.7/src/udunits' cc -o udunits -O udunits.o -ly -lm (Bundled) cc: warning 922: "-O" is unsupported in the bundled compiler, ignored. ld: Unsatisfied symbol "utIsTime" in file udunits.o ld: Unsatisfied symbol "utInit" in file udunits.o ld: Unsatisfied symbol "utCalendar" in file udunits.o ld: Unsatisfied symbol "utScan" in file udunits.o ld: Unsatisfied symbol "utTerm" in file udunits.o ld: Unsatisfied symbol "utConvert" in file udunits.o ld: (Warning) Unsatisfied symbol "yyparse" in file /usr/lib/hpux32/liby.so ld: Unsatisfied symbol "utPrint" in file udunits.o 1 warnings. 7 errors. make[1]: *** [udunits] Error 1 make[1]: Leaving directory `/home/huber/grads/supplibs/src/udunits-1.11.7/src/udunits' make: *** [program] Error 2 If it possible to have the equivalent commands with gcc compiler, the libudunits.a is still too small I don?t know what is going on with compilation with libudunits library, do you have extra information or tips about the process of compilation in gcc o cc? Thanks you, Very much Huber _____ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: jueves, 08 de julio de 2010 14:55 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber, it is a small file, Do a ?ar tv libudunits.a?, you should see something like rw-r--r-- 1000/1000 16568 Jul 27 10:02 2009 utlib.o rw-r--r-- 1000/1000 7524 Jul 27 10:02 2009 utparse.o rw-r--r-- 1000/1000 14272 Jul 27 10:02 2009 utscan.o rw-r--r-- 1000/1000 1136 Jul 27 10:02 2009 udalloc.o If you have all four then you?re good to go. Copy it to ${SUPPLIBS}/lib, copy etc/udunits.dat to ${SUPPLIBS}/etc You are getting an error on creating udunits executable. If the four objects are not in the libudunits.a file, cd into the lib directory, and try compiling by hand: cc -c -O -I../port/misc -I../port/cfortran -DUT_DEFAULT_PATH='"${SUPPLIBS}/etc/udunits.dat"' *.c then type ?make? and it should update the libudunits.a file. Go to the ../udunits directory and edit the Makefile to remove the ?R option arguments, exit the editor, and type make, or manually cc -o udunits -O udunits.o ?L ../lib -ludunits -lm ?L ../port/misc -ludport -lm John John Huddleston, PhD Cooperative Institute for Research in the Atmosphere From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez Sent: Thursday, July 08, 2010 1:19 PM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library Hello John, Thanks you for your help, I?ve compiled libgb.a library and also jasper, g2clib, and szip, but I can?t compiled udunits library. I get the following error: cc -o udunits -O udunits.o -R/data/hoop/udunits-1.11.7/src/lib -L/data/hoop/udunits-1.11.7/src/lib -ludunits -R/data/hoop/udunits-1.11.7/src/port/misc -L/data/hoop/udunits-1.11.7/src/port/misc -ludport -ly -lm (Bundled) cc: warning 922: "-O" is unsupported in the bundled compiler, ignored. (Bundled) cc: warning 901: unknown option: `-R/data/hoop/udunits-1.11.7/src/lib': use +help for online documentation. (Bundled) cc: warning 901: unknown option: `-R/data/hoop/udunits-1.11.7/src/port/misc': use +help for online documentation. ld: Can't find library for -ludunits Fatal error. make[2]: *** [udunits] Error 1 make[2]: Leaving directory `/home/huber/grads/supplibs/src/udunits-1.11.7/src/udunits' make[1]: *** [program] Error 2 make[1]: Leaving directory `/home/huber/grads/supplibs/src/udunits-1.11.7/src/udunits' make: *** [udunits/all] Error 1 But I saw that I have the libunits.a library, but I think it isn?t complete because it?s so small. How can I resolve this error? # ls lib/libudunits.a lib/libudunits.a # du -sk lib/libudunits.a 144 lib/libudunits.a Please help me, Best regards, Huber _____ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: jueves, 08 de julio de 2010 9:54 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber, The /usr/local/lib/libpng.la controls which PNG library is used. It seems as if someone else built and installed version 14 under /usr/local. Unless you have sudo privlileges you are going to have to work around that implementation. This is going to sound funny..but; if you have already built the GD library file that?s all you need to continue building. In my case, the path is /home/dasilva/src/supplibs-2.1.0/i686-pc-linux/lib/libgd.a In your case copy the libgd.a to your $(SUPPLIBS)/lib directory and copy the include files gd.h gdfx.h gd_io.h gdcache.h gdfontg.h gdfontl.h gdfontmb.h gdfonts.h gdfontt.h entities.h to your ${SUPPLIBS}/include directory. Next, go on to build jasper, g2clib, szlib, etc. John John Huddleston, PhD Cooperative Institute for Research in the Atmosphere From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez Sent: Wednesday, July 07, 2010 9:42 AM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library Hi John, Don?t worry about the difficulty that I?m having, I can?t figure how you build in or with Cygwin, I suppose it is a heavy work. Any way, I don?t found any reference with libpng14 in the libgb?s Makefile , but I found the following lines that I think it would be not setup for the libpng12. How can I setup this Makefile in order to use the libpng12 library, and so try to compile the gb library? (I?m attaching the libgb?s Makefile) LIBPNG12_CONFIG = LIBPNG_CONFIG = /usr/local/bin/libpng-config Please help me, Best regards, Huber _____ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: martes, 06 de julio de 2010 14:30 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber, so sorry you are having so much difficulty. You should see the work I have for the Cygwin build! Look at your gcc line and you will see the path /usr/local/lib/hpux32/libpng14.so Edit the Makefile, search for libpng14, edit that line and replace it with the path to your libpng12 file. John John Huddleston, PhD Cooperative Institute for Research in the Atmosphere From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez Sent: Tuesday, July 06, 2010 1:13 PM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library Hello John, I start to compile all the supplemental libraries; I compiled readline, ncurses, zlib, libpng and jpeg libraries, but I cant compile gd library. Because I have the following error: gcc -g -O2 -o gdparttopng gdparttopng.o -L/usr/local/lib/hpux32 -L/usr/lib/X11R4 -L/home/huber/grads/supplibs/src/jpeg-6b/lib ./.libs/libgd.a -L/usr/contrib/X11R6/lib /usr/local/lib/hpux32/libXpm.so /usr/local/lib/hpux32/libintl.so -lX11 /usr/local/lib/hpux32/libjpeg.so /usr/local/lib/hpux32/libfontconfig.so /usr/local/lib/hpux32/libiconv.so /usr/local/lib/hpux32/libexpat.so /usr/local/lib/hpux32/libfreetype.so /usr/local/lib/hpux32/libpng14.so -lz -lm ld: Unsatisfied symbol "gdImageCreateFromGd2Part" in file gdparttopng.o ld: Unsatisfied symbol "png_check_sig" in file ./.libs/libgd.a[gd_png.o] 2 errors. collect2: ld returned 1 exit status make[2]: *** [gdparttopng] Error 1 make[2]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34' make: *** [all] Error 2 Who can I setup the correct path for the libpng1.2 library, because I follow the instructions in the PDF, and I executed the following commands: cd gd-2.0.34 ./configure --disable-shared \ --with-png=$HOME/supplibs/src/libpng-1.2.18 \ --with-jpeg=$HOME/supplibs/src/jpeg-6b \ --prefix=$HOME/supplibs/src/gd-2.0.34 make Please help me, Best regards, Huber _____ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: viernes, 02 de julio de 2010 12:20 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber, Did you remove the libpng directory, untar libpng again, configure again with the options specified in Building_GrADS.pdf, and make the system? Ditto for the GD build. You must follow the order of the build as shown in the PDF file. John Huddleston, PhD, PE _____ From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez [huber.gilt at igp.gob.pe] Sent: Friday, July 02, 2010 11:06 AM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library Hello John, I?ve done your instructions and also I compiled the zlib-1.2.3 library and I have the library libz.a, in supplibs/lib. And I have the same problem in libpng-1.2-18 compilation. What is going on with libpng library if I have the libz.a library in the folder supplibs/lib? (In the end I list the compiled libraries) Please help me, Best regards. Huber Paul Gilt L?pez # pwd /home/huber/grads/supplibs/lib # ls libcurl.a libhdf5_hl.a libncurses.a libreadline.a libxdr.a libdf.a libjpeg.a libnetcdf.a libsz.a libz.a libhdf5.a libmfhdf.a libpng12.a libudunits.a _____ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: viernes, 02 de julio de 2010 9:30 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Hi Huber, On June 15th I sent you a PDF on how to build GrADS, please look it over, libpng doesn't build because you do not have the zlib. Get zlib from ftp://grads.iges.org/grads/Supplibs/2.0/src/zlib-1.2.3.tar.gz tar xvfz ./tarfiles/zlib-1.2.3.tar.gz cd zlib-1.2.3/ ./configure --prefix=$HOME/supplibs/src/zlib-1.2.3 make make install cp ./lib/libz.a $HOME/supplibs/lib mkdir $HOME/supplibs/include/zlib cp ./include/zlib.h $HOME/supplibs/include/zlib John _____ From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez [huber.gilt at igp.gob.pe] Sent: Friday, July 02, 2010 8:17 AM To: 'GrADS Users Forum' Subject: Re: [gradsusr] error compiling gd library John, Because I found this error when I configure PNG library 1.2: #cd /home/huber/grads/supplibs/src/libpng-1.2.18 ./configure --disable-shared --prefix=/home/huber/grads/supplibs/src/libpng-1.2.18 checking for pow in -lm... yes checking for zlibVersion in -lz... no configure: error: zlib not installed I?ve exported this variable CC=gcc by this other CC='gcc -L/home/huber/grads/supplibs/lib -lz', then I?ve done make, and make install. Provably the libpng12.a library didn?t build well, how I can fix the previous error when I tried to configure the libpng12 library? Please help me, Best regards, Huber Paul Gilt Lopez _____ De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En nombre de Huddleston, John Enviado el: jueves, 01 de julio de 2010 18:46 Para: GrADS Users Forum Asunto: Re: [gradsusr] error compiling gd library Huber You need the PNG library1.2 not 1.4. Somehow you've installed a more recent version of PNG into /usr/local Go back to the PNG 1.2 build and do a "make install" to load it into /usr/local Otherwise, manually edit the Makefile and change it to point to your $(SUPPLIBS) PNG area. John Huddleston _____ From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] On Behalf Of Huber Pa?l Gilt L?pez [huber.gilt at igp.gob.pe] Sent: Thursday, July 01, 2010 4:15 PM To: 'GrADS Users Forum' Subject: [gradsusr] error compiling gd library Hello, I want to compile the gd library, i used this command, but I have an unsatisfied symbol. How can I include these missing symbol? #cd /home/huber/grads/supplibs/src/gd-2.0.34 #./configure --disable-shared\ --with-png=/home/huber/grads/supplibs/src/libpng-1.2.18\ --with-jpeg=/home/huber/grads/supplibs/src/jpeg-6b\ --prefix=/home/huber/grads/supplibs/src/gd-2.0.34 #make gcc -g -O2 -o gdparttopng gdparttopng.o -L/home/huber/grads/supplibs/lib -L/usr/local/lib/hpux32 -L/usr/lib/X11R4 -L/home/huber/grads/supplibs/src/jpeg-6b/lib ./.libs/libgd.a -L/usr/contrib/X11R6/lib /usr/local/lib/hpux32/libXpm.so /usr/local/lib/hpux32/libintl.so -lX11 -ljpeg /usr/local/lib/hpux32/libfontconfig.so /usr/local/lib/hpux32/libiconv.so /usr/local/lib/hpux32/libexpat.so /usr/local/lib/hpux32/libfreetype.so /usr/local/lib/hpux32/libpng14.so -lz -lm ld: Unsatisfied symbol "png_check_sig" in file ./.libs/libgd.a[gd_png.o] 1 errors. collect2: ld returned 1 exit status make[2]: *** [gdparttopng] Error 1 make[2]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/huber/grads/supplibs/src/gd-2.0.34' make: *** [all] Error 2 Please help me, Best regards, Huber Paul Gilt Lopez IGP-Peru -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100709/424a5f7f/attachment-0001.html From andy at f5data.com Sat Jul 10 02:13:31 2010 From: andy at f5data.com (Andrew Revering) Date: Sat, 10 Jul 2010 01:13:31 -0500 Subject: [gradsusr] Time Stamp Message-ID: <009c01cb1ff7$06568df0$1303a9d0$@com> This may be a stupid question. but I can't seem to figure out how to put the actual model run time stamp on the Grads image. I know you can do the time that the image was made, but how do I pull either the valid time of the forecast, and/or the model run (initialization) time and plot it on the image? Andrew Revering Convective Development, Inc. http://www.convectivedevelopment.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100710/963ca7ef/attachment.html From funnytyphoon at gmail.com Sat Jul 10 02:49:09 2010 From: funnytyphoon at gmail.com (MY) Date: Sat, 10 Jul 2010 14:49:09 +0800 Subject: [gradsusr] Time Stamp In-Reply-To: <009c01cb1ff7$06568df0$1303a9d0$@com> References: <009c01cb1ff7$06568df0$1303a9d0$@com> Message-ID: Hi, Andrew, You'd better draw them by "draw string". The time information can be obtained by -------- 'q time' ;* returns: Time = 00z01jul2010 to 00z01jul2010 Thu to Thu timstr=subwrd(result, 3) -------- you can then draw the string by -------- 'draw string 'x' 'y' 'timestr -------- where the x and y are the location in virtual page. Please note there is a blank between the quotation marks. Good luck! MY 2010/7/10 Andrew Revering : > This may be a stupid question? but I can't seem to figure out how to put the > actual model run time stamp on the Grads image. > > I know you can do the time that the image was made, but how do I pull either > the valid time of the forecast, and/or the model run (initialization) time > and plot it on the image? > > > > > > Andrew Revering > > Convective Development, Inc. > > http://www.convectivedevelopment.com/ > > > > > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > > -- ++++++++++++++++++++++++++++++++++++++++++++++++++++ YING, Ming Shanghai Typhoon Institute of China Meteorological Administration 166 Puxi Road, Xuhui District, Shanghai, 200030 PR China ++++++++++++++++++++++++++++++++++++++++++++++++++++ From gsclarke at emirates.net.ae Sat Jul 10 03:00:32 2010 From: gsclarke at emirates.net.ae (Gregory Clarke) Date: Sat, 10 Jul 2010 11:00:32 +0400 Subject: [gradsusr] Time Stamp In-Reply-To: <009c01cb1ff7$06568df0$1303a9d0$@com> References: <009c01cb1ff7$06568df0$1303a9d0$@com> Message-ID: <024f01cb1ffd$96f051b0$c4d0f510$@net.ae> Andrew, I use "q ctlinfo", sublin and subwrd commands... In the output of "q ctlinfo" you will find the model time and then this out can be parsed through the sublin and subwrd commands and stored in variables. After that it is a simple case of writing it onto the image with "draw string...." command. Cheers Greg From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Andrew Revering Sent: Saturday, 10 July, 2010 10:14 To: 'GrADS Users Forum' Subject: [gradsusr] Time Stamp This may be a stupid question. but I can't seem to figure out how to put the actual model run time stamp on the Grads image. I know you can do the time that the image was made, but how do I pull either the valid time of the forecast, and/or the model run (initialization) time and plot it on the image? Andrew Revering Convective Development, Inc. http://www.convectivedevelopment.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100710/ac038a4c/attachment.html From funnytyphoon at gmail.com Sat Jul 10 03:31:41 2010 From: funnytyphoon at gmail.com (MY) Date: Sat, 10 Jul 2010 15:31:41 +0800 Subject: [gradsusr] Creating a Station Data File from ASCII: stnmap error In-Reply-To: References: Message-ID: Hi, Shawn, I think those keywards used to "open" the station data file are very important for writing the data. Those keywords are compiler-dependent. I'm not familar with your compiler, so, please test them by yourself. Also, the code can be improved. For example (I use F77): ------------ program station_demo parameter (ml=11, ms=160, mt=10) ! ml: levels for upper level data, ms: total stations, mt: total time records integer nlev, nflag parameter (nflag=1, nlev=nflag+ml) character*8 endstn, stid(ms) ! I use endstn in the "tail record", please see below. real lat(ms), lon(ms), lev(ml), dtime(ms,mt) real ps(ms,mt), us(ms,mt), vs(ms,mt) real z(ml,ms,mt), u(ml,ms,mt), v(ml,ms,mt) data endstn/?end_time?/ data lev/1000.,925.,850.,700.,600.,500.,400.,300.,200.,100./ ! open file (CVF 6.5 compiler) open(10,file='station.dat', form='binary') ! for time looping do it=1,mt ! for station looping do is=1,ms ! write the "header record for particular station. please use different "stid" for different stations write(10) stid(is), lat(is), lon(is), dtime(is,it), nlev, nflag ! write the surface data record for particular station, if no surface data, just skip it write(10) ps(is,it), us(is,it), vs(is,it) ! write the upper levels data (total ml levels), if no upper levels data, just skip this "do" loop do il=1,ml write(10) lev(il), z(il,is,it), u(il,is,it), v(il,is,it) enddo enddo ! "tail record" to announce the end of one time record write(10) endstn, 0., 0., 0., 0, 0 enddo close(10) end ----------- Hope these may be helpful. Best wishes, MY 2010/7/10 Shawn Milrad : > Hi, > > I am trying to convert an ASCII file into a format GrADS can read.? My ASCII > file has 12 variables (it's sounding data) and looks like this: > ?? 0 46???? 144??? 849.1?? 22.0? 25? 4.860?? 36.23?? 2.6? 11? 40.630? ////// > ?? 0 48???? 151??? 848.4?? 22.0? 25? 4.860?? 36.30?? 2.6? 11? 40.630? ////// > ?? 0 50???? 157??? 847.8?? 21.9? 25? 4.840?? 36.26?? 2.7? 10? 40.630? ////// > ?? 0 52???? 161??? 847.4?? 21.9? 25? 4.840?? 36.30?? 2.7? 10? 40.630? ////// > ?? 0 54???? 165??? 847.0?? 21.9? 25? 4.840?? 36.34?? 2.7? 10? 40.630? ////// > ?? 0 56???? 172??? 846.4?? 21.8? 26? 5.010?? 36.30?? 2.7? 10? 40.630? ////// > > > My Fortran 90 program is below.? It compiles and creates the binary file > successfully but when I run the stnmap utility I get the following error. > stnmap -i test.ctl > ? Name of binary data set: testbin.dat > ? Number of times in the data set: 1 > ? Number of surface variables: 0 > ? Number of level dependent variables: 12 > > Starting scan of station data binary file. > Binary data file open: testbin.dat > > Processing time step 1 > Sequential Read Error: Record size greater than one station report: 32 :: 28 > > Has anyone seen this before/know how to fix it? > Thanks, > Shawn Milrad > > > > > ????? program fortrantest > ?????? character*8 STID, RLON > ?????? OPEN (8,FILE='10030000.txt') > ?????? OPEN (10,FILE='testbin.dat',FORM='UNFORMATTED', & > ?????? ACCESS='SEQUENTIAL') > ?????? IFLAG = 0 > ?????? STID = 'WHEELER' > !? Read and Write > 10???? READ (8,9000,END=90) IMIN,ISEC,IHGHT,PRES,TMPC, & > ?????? IRELH,RMIX,THETAC,SPED,IDIR,RLAT,RLON > 9000?? FORMAT (2x,I2,2X,I2,5X,I4,3X,F5.1,3X,F4.1,2X,I2,2X, & > ?????? F5.3,3x,F5.2,1x,F4.1,1x,I3,2x,F6.3,2x,A6) > ?????? IF (IFLAG.EQ.0) THEN > ????????? IFLAG = 1 > ????????? IMINOLD = IMIN > ????????? ISECOLD = ISEC > ?????? ENDIF > !? If new time group, write time group terminator. > !? Assuming no empty time groups. > ?????? IF (IMINOLD.NE.IMIN.OR.ISECOLD.NE.ISEC) THEN > ????????? NLEV = 0 > ????????? WRITE (10) STID,RLAT,RLON,TIM,NLEV,NFLAG > ????????? ENDIF > ????????? IMINOLD = IMIN > ????????? ISECOLD = ISEC > !? Write this report > ?????? TIM = 0.0 > ?????? NLEV = 1 > ?????? NFLAG = 1 > ?????? WRITE (10) STID,RLAT,RLON,TIM,NLEV,NFLAG > ?????? WRITE (10) IHGHT,PRES,TMPC,IRELH,RMIX,THETAC, & > ?????? SPED,IDIR > ?????? GO TO 10 > !? On end of file write last time group terminator. > 90???? CONTINUE > ?????? NLEV = 0 > ?????? WRITE (10) STID, RLAT, RLON, TIM,NLEV,NFLAG > ?????? STOP > ?????? END > > -- > Shawn Milrad, Ph. D. > Staff Scientist > AER, Inc. > > > -- > Shawn Milrad > Cell:? 732-261-3594 > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > > -- ++++++++++++++++++++++++++++++++++++++++++++++++++++ YING, Ming Shanghai Typhoon Institute of China Meteorological Administration 166 Puxi Road, Xuhui District, Shanghai, 200030 PR China ++++++++++++++++++++++++++++++++++++++++++++++++++++ From dasilva at alum.mit.edu Sun Jul 11 11:13:07 2010 From: dasilva at alum.mit.edu (Arlindo da Silva) Date: Sun, 11 Jul 2010 11:13:07 -0400 Subject: [gradsusr] Status of OpenGrADS 2.0.a8 Message-ID: *---------- Forwarded message ----------* *From: **Thomas Krueger** **<**tkrueger73 at gmail.com* * >* * Date: Sat, Jul 10, 2010 at 6:23 PM* *Subject: grads 2.0.a8* *To: **ddasilva at umd.edu* * * * * *Hello Daniel,* * * *I?m using your opengrads2.0.a7. Thank you very much for this great software.* * I have seen that there ist a new grads version 2.0.a8 since about 3 month. * * * *Is it foreseen to develop an opengrads version for V2.0.a8 or are you waiting for a further version?* * * *Best regards,* * * *Thomas Krueger* Yes, we are working on an OpenGrADS release of GrADS v2.0.a8. No release date set yet, but it could be soon, a week or so. No promises, though, some of us have been very busy in our day jobs. Arlindo -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100711/2f010528/attachment.html From nztideman at yahoo.co.nz Sun Jul 11 17:06:18 2010 From: nztideman at yahoo.co.nz (Derek Goring) Date: Sun, 11 Jul 2010 14:06:18 -0700 (PDT) Subject: [gradsusr] NOMADS Servers down? In-Reply-To: <914935.24652.qm@web53902.mail.re2.yahoo.com> Message-ID: <659160.5172.qm@web53902.mail.re2.yahoo.com> I thought I should report that this problem was not related to the NOMADS servers at all, but to faulty DNS servers of my ISP.? The problem was intermittent, with access going through sometimes, but not others.? Once I changed the servers (i.e., Static DNS 1 and 2 in my router) to ones that work properly, I got immediate access to all NOAA sites and I haven't had a problem since. AFAIK, the NOAA sites were the only ones affected, which is a bit odd and is something my ISP tells me they are pursuing with NOAA. _______________________________________________ gradsusr mailing list gradsusr at gradsusr.org http://gradsusr.org/mailman/listinfo/gradsusr -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100711/3b5fe11b/attachment-0001.html From dan.zhang at zmaw.de Mon Jul 12 08:57:42 2010 From: dan.zhang at zmaw.de (Dan Zhang) Date: Mon, 12 Jul 2010 14:57:42 +0200 Subject: [gradsusr] volecity integrated water flux in grads Message-ID: <201007121457.42144.dan.zhang@zmaw.de> -- Dear all, did anyone caculate volecity integrated water flux using grads? would you be so kind to share it with me? Thanks a lot. ------------------------------------------------------------------- Dan ZHANG E-mail: dan.zhang at zmaw.de Phone (Office): 040-428385067 PHD at Max Planck Institute for Meteorology Room 407 Grindelberg 5 Hamburg -------------------------------------------------------------------- From devdas.pnr at gmail.com Mon Jul 12 09:02:37 2010 From: devdas.pnr at gmail.com (sudev das M P) Date: Mon, 12 Jul 2010 18:32:37 +0530 Subject: [gradsusr] Subscript and superscript Message-ID: Hai, Can any one please tell me, how to write subscript and superscript in GrADS. eg: Nm-2 , How to write -2 as a superscript. Thanking You, sudev -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100712/a6baf145/attachment.html From jma at cola.iges.org Mon Jul 12 09:06:43 2010 From: jma at cola.iges.org (Jennifer Adams) Date: Mon, 12 Jul 2010 09:06:43 -0400 Subject: [gradsusr] Subscript and superscript In-Reply-To: References: Message-ID: <21F1E521-89AE-4EAB-A5C4-DBB9EC2FD383@cola.iges.org> There's a new doc page on that subject: http://iges.org/grads/gadoc/fontcontrol.html On Jul 12, 2010, at 9:02 AM, sudev das M P wrote: > Hai, > > Can any one please tell me, how to write subscript and superscript > in GrADS. > > eg: Nm-2 , How to write -2 as a superscript. > > Thanking You, > sudev > > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr -- Jennifer M. Adams IGES/COLA 4041 Powder Mill Road, Suite 302 Calverton, MD 20705 jma at cola.iges.org -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100712/ec5249de/attachment.html From jma at cola.iges.org Mon Jul 12 09:47:30 2010 From: jma at cola.iges.org (Jennifer Adams) Date: Mon, 12 Jul 2010 09:47:30 -0400 Subject: [gradsusr] gribmap modification In-Reply-To: <4BB09B14.2090806@dwd.de> References: <4BB09B14.2090806@dwd.de> Message-ID: <20B74CDC-4B4C-4AA9-97FE-BCAFF9868B21@cola.iges.org> Dear All, The original author of this gribmap patch is no longer receiving email as this address (he's also been unsubscribed from the list due to excessive bounces). Can anyone provide me with COSMO data samples that exploit the TU=13 and TU=14 features (for 15min and 30min output) so I can test this patch? --Jennifer On Mar 29, 2010, at 8:20 AM, Gomez Breogan wrote: > Dear GrADS users and developers: > > My name is Breogan Gomez and I am working for the German Weather > Service (DWD) in the data assimilation department. DWD's COSMO model > (also used by other National Weather Services) has a peculiar time > unit specification in their Grib output files. That are TimeUnit=13 > and TimeUnit=14 to represent 15min output and 30min output. This is > not WMO standard but is generally used by the German Weather Service > and all the Centers within the COSMO community (http://www.cosmo-model.org/ > ). > > GrADS is perfectly able to read COSMO model output (using "gribmap") > when the TU is speciffied in any WMO standard unit, but when TU-13 > or TU-14 are used he is not able to find the correct time records in > the grib file. > > I recently I have performed a minor modification to "gribmap" code > (at "gagmap.c") to include the support for this TU-13 and TU-14. > This modification is fully compatible with other TU and does not > introduce any limitation in the application. I was was wondering if > could be possible to introduce this modification in the standard > GrADS release. This would help to expand GrADS use to a bigger set > of scientists that are working with this high frecuency COSMO > simulations. > > Attached I include the modified gagmap.c source file (version: > 2.0.a7.1 has been used for this purpose). Just search for "DWD", > only four lines had been added to the original file. > > I hope you find this useful, > > All the best, > > Breogan Gomez > > Ps: Similar improvements have been performed on "wgrib" and > "grib2ctl.pl" applications and had been sent to Wesley Ebisuzaki, we > are waiting for reply. > > > /* Copyright (C) 1988-2008 by Brian Doty and the > Institute of Global Environment and Society (IGES). > See file COPYRIGHT for more information. */ > > /* Values output into the grib1 map file: > Header: > hipnt info: 0 - version number (1) > 1 - number of times in file > 2 - number of records per time > 3 - Grid type > 255 - user defined grid. descriptor > describes grid exactly; one record > per grid. > 29 - Predefined grid set 29 and 30. > Two records per grid. > hfpnt info: None > Info: > intpnt info (for each mapped grib record) : > 0 - position of start of data in file > 1 - position of start of bit map in file > 2 - number of bits per data element > fltpnt info : > 0 - decimal scale factor for this record > 1 - binary scale factor > 2 - reference value > */ > > #ifdef HAVE_CONFIG_H > #include "config.h" > > #ifdef HAVE_MALLOC_H > #include > #endif > #else /* undef HAVE_CONFIG_H */ > #include > #endif /* HAVE_CONFIG_H */ > > #include > #include > #include > #include > #include > #include > #include > #include > #include > #include "grads.h" > #include "gagmap.h" > #if GRIB2 > #include "grib2.h" > #endif > > > /* global variables */ > extern struct gamfcmn mfcmn; > struct dt rtime; /* time based on input map */ > struct dt ftime; /* time based on dd file */ > static off_t flen; > gaint ng1elems=3; > gaint ng2elems=2; > > /* Routine to scan a grib1 or grib2 file and output an index (map) > file. */ > > gaint gribmap (void) { > > #if GRIB2 > unsigned char *cgrib=NULL; > g2int listsec0[3],listsec1[13],numlocal,numfields,n; > g2int unpack,expand,lskip,lgrib,iseek; > gribfield *gfld; > char *ptr; > size_t lengrib; > struct gag2indx *g2indx; > #endif > char *ch=NULL; > gaint ret,ierr,flag,rcgr,record; > gaint rc,i,e,tmin=0,tmax=0,told,tcur,fnum,didmatch=0; > gaint sp,ioff,eoff,it,write_map; > struct gafile *pfi; > struct dt dtim,dtimi; > struct gaens *ens; > > #if GRIB2 > unpack=0; > expand=0; > #endif > mfile=NULL; > write_map=1; > > /* Get the descriptor file name */ > if (ifile==NULL) { > printf ("\n"); > cnt = nxtcmd (cmd,"Enter name of Data Descriptor file: "); > if (cnt==0) return(1); > getwrd(crec,cmd,250); > ifile = crec; > } > > /* Allocate memory for gafile structure */ > pfi = getpfi(); > if (pfi==NULL) { > printf ("gribmap error: unable to allocate memory for gafile > structure\n"); > return(1); > } > > /* Parse the descriptor file */ > rc = gaddes (ifile, pfi, 0); > if (rc) return(1); > > /* Check index flags */ > if (pfi->idxflg!=1 && pfi->idxflg!=2) { > printf ("gribmap error: data descriptor file is not for GRIB data > \n"); > return(1); > } > > /* * GRIB1 * */ > else if (pfi->idxflg==1) { > > /* Allocate memory for gaindx structure */ > pindx = (struct gaindx *)galloc(sizeof(struct gaindx),"pindxgm"); > if (pindx==NULL) { > printf ("grib1map error: unable to allocate memory for pindx\n"); > return(1); > } > > /* Save the initial time from the descriptor file for the tau0 > option and the map file */ > btimdd.yr = *(pfi->abvals[3]); > btimdd.mo = *(pfi->abvals[3]+1); > btimdd.dy = *(pfi->abvals[3]+2); > btimdd.hr = *(pfi->abvals[3]+3); > btimdd.mn = *(pfi->abvals[3]+4); > if (no_min) btimdd.mn = 0; > > /* Set up for this grid type */ > if (pfi->grbgrd<-900 || pfi->grbgrd==255) { > nrec = 1; > gtype[0] = 255; > } else if (pfi->grbgrd>-1 && pfi->ppflag) { > nrec=1; > gtype[0] = pfi->grbgrd; > } else if (pfi->grbgrd==29) { > nrec = 2; > gtype[0] = 29; > gtype[1] = 30; > if (pfi->dnum[0]!=144 || pfi->dnum[1]!=73 || > pfi->linear[0]!=1 || pfi->linear[1]!=1 || > *(pfi->grvals[0])!= 2.5 || *(pfi->grvals[0]+1) != -2.5 || > *(pfi->grvals[1])!= 2.5 || *(pfi->grvals[1]+1) != -92.5 ) { > printf("grib1map error: grid specification for GRIB grid type > 29/30.\n"); > printf(" grid scaling must indicate a 2.5 x 2.5 > grid\n"); > printf(" grid size must be 144 x 73\n"); > printf(" grid must go from 0 to 357.5 and -90 > to 90\n"); > return(1); > } > } else { > nrec = 1; > gtype[0] = pfi->grbgrd; > } > > /* Set up grib1 index and initialize values */ > pindx->type = g1ver; > pindx->hinum = 4; > pindx->hfnum = 0; > pindx->intnum = nrec * ng1elems * pfi->trecs * pfi->dnum[3] * pfi- > >dnum[4]; > pindx->fltnum = nrec * ng1elems * pfi->trecs * pfi->dnum[3] * pfi- > >dnum[4]; > pindx->hipnt = (gaint *)galloc(sizeof(gaint)*pindx- > >hinum,"hipntgm"); > pindx->intpnt = (gaint *)galloc(sizeof(gaint)*pindx- > >intnum,"intpntgm"); > pindx->fltpnt = (gafloat *)galloc(sizeof(gafloat)*pindx- > >fltnum,"fltpntgm"); > if (pindx->hipnt==NULL || pindx->intpnt==NULL || pindx- > >fltpnt==NULL) { > printf ("grib1map error: unable to allocate memory for index > pointers\n"); > return(1); > } > for (i=0; iintnum; i++) *(pindx->intpnt+i) = -999; > for (i=0; ifltnum; i++) *(pindx->fltpnt+i) = -999; > *(pindx->hipnt+0) = g1ver; > *(pindx->hipnt+1) = pfi->dnum[3]; > *(pindx->hipnt+2) = pfi->trecs; > *(pindx->hipnt+3) = pfi->grbgrd; > if (pfi->grbgrd<-900) *(pindx->hipnt+3) = 255; > > /* Loop over all files in the data set */ > gfile = NULL; > for (e=1,ens=pfi->ens1; e<=pfi->dnum[4]; e++,ens++) { > tcur = 0; > while (1) { /* loop over all times for this ensemble */ > if (pfi->tmplat) { > /* make sure no file is open */ > if (gfile!=NULL) { > fclose(gfile); > gfile=NULL; > } > /* advance to first valid time step for this ensemble */ > if (tcur==0) { > told = 0; > tcur = 1; > while (pfi->fnums[(e-1)*pfi->dnum[3]+tcur-1] == -1) tcur++; > } > else { /* tcur!=0 */ > told = pfi->fnums[(e-1)*pfi->dnum[3]+tcur-1]; > /* increment time step until fnums changes */ > while (told==pfi->fnums[(e-1)*pfi->dnum[3]+tcur-1] && tcur<=pfi- > >dnum[3]) { > tcur++; > } > } > > /* make sure we haven't advanced past end of time axis */ > if (tcur>pfi->dnum[3]) break; > > /* check if we're past all valid time steps for this ensemble */ > if ((told != -1) && (pfi->fnums[(e-1)*pfi->dnum[3]+tcur-1] == -1)) > break; > > /* Find the range of t indexes that have the same fnums value. > These are the times that are contained in this particular file */ > tmin = tcur; > tmax = tcur-1; > fnum = pfi->fnums[(e-1)*pfi->dnum[3]+tcur-1]; > > if (fnum != -1) { > while (fnum == pfi->fnums[(e-1)*pfi->dnum[3]+tmax]) tmax++; > gr2t(pfi->grvals[3], (gadouble)tcur, &dtim); > gr2t(pfi->grvals[3], ens->gt, &dtimi); > ch = gafndt(pfi->name, &dtim, &dtimi, pfi->abvals[3], pfi- > >pchsub1, pfi->ens1,tcur,e,&flag); > if (ch==NULL) { > printf(" grib1map error: couldn't determine data file name for > e=%d t=%d\n",e,tcur); > return(1); > } > } > } > else { > /* Data set is not templated */ > ch = pfi->name; > tmin = 1; > tmax = pfi->dnum[3]; > } > > /* Open this GRIB file and position to start of first record */ > if (!quiet) printf(" grib1map: opening GRIB file: %s \n",ch); > gfile = fopen(ch,"rb"); > if (gfile==NULL) { > if (pfi->tmplat) { > if (!quiet) printf (" grib1map warning: could not open GRIB > file: %s\n",ch); > continue; > } else { > printf (" grib1map error: could not open GRIB file: %s\n",ch); > return(1); > } > } > if (pfi->tmplat) gree(ch,"312"); > > /* Get file size */ > fseeko(gfile,0L,2); > flen = ftello(gfile); > > /* Set up to skip appropriate amount and position */ > if (skip > -1) { > fpos = skip; > } > else { > fseeko (gfile,0,0); > rc = fread (rec,1,100,gfile); > if (rc<100) { > printf (" grib1map error: I/O error reading header\n"); > return(1); > } > len = gagby(rec,88,4); > fpos = len*2 + 100; > } > > /* Main Loop */ > irec=1; > while (1) { > /* read a grib record */ > rc = gribhdr(&ghdr); > if (rc) break; > /* compare to each 2-d variable in the 5-D data volume > defined by the descriptor file for a match */ > rcgr = gribrec(&ghdr,pfi,pindx,tmin,tmax,e); > if (rcgr==0) didmatch=1; > if (rcgr>=100) didmatch=rcgr; > irec++; > } > > /* see how we did */ > if (rc==50) { > printf (" grib1map error: I/O error reading GRIB file\n"); > printf (" possible cause is premature EOF\n"); > break; > } > if (rc>1 && rc!=98) { > printf (" grib1map error: GRIB file format error (rc = %i)\n",rc); > return(rc); > } > > /* break out if not templating */ > if (!pfi->tmplat) break; > > } /* end of while (1) loop */ > } /* end of for (e=1; e<=pfi->dnum[4]; e++) loop */ > > if (!quiet) printf (" grib1map: reached end of files\n"); > > /* check if file closed already for case where template was set, > but it was not templated and the template code above closed it. > */ > if (gfile!=NULL) { > fclose (gfile); > gfile=NULL; > } > > /* open the map file */ > if (write_map) { > mfile = fopen(pfi->mnam,"wb"); > if (mfile==NULL) { > printf (" grib1map error: could not open index file: %s\n",pfi- > >mnam); > return(1); > } > else { > if (!quiet) printf(" grib1map: writing the map...\n\n"); > /* output the map depending on version # */ > if (g1ver==1) { > fwrite (pindx,sizeof(struct gaindx),1,mfile); > if (pindx->hinum>0) fwrite(pindx->hipnt,sizeof(gaint),pindx- > >hinum,mfile); > if (pindx->hfnum>0) fwrite(pindx->hfpnt,sizeof(gafloat),pindx- > >hfnum,mfile); > if (pindx->intnum>0) fwrite(pindx->intpnt,sizeof(gaint),pindx- > >intnum,mfile); > if (pindx->fltnum>0) fwrite(pindx->fltpnt,sizeof(gafloat),pindx- > >fltnum,mfile); > fclose (mfile); > } > else { > rc = wtgmap(); > if (rc == 601) { > printf(" grib1map error: overflow in float -> IBM float > conversion\n"); > fclose (mfile); > return (601); > } > fclose (mfile); > } > } > } > return (didmatch); > } > > #if GRIB2 > else /* GRIB2 */ { > > /* Set up g2index and initialize values */ > g2indx = (struct gag2indx *)malloc(sizeof(struct gag2indx)); > if (g2indx==NULL) { > printf ("grib2map error: unable to allocate memory for g2indx\n"); > return(1); > } > g2indx->version = 1; > g2indx->g2intnum = ng2elems * pfi->trecs * pfi->dnum[3] * pfi- > >dnum[4]; > g2indx->g2intpnt = (gaint *)malloc(sizeof(gaint)*g2indx->g2intnum); > if (g2indx->g2intpnt==NULL) { > printf ("grib2map error: unable to allocate memory for g2indx- > >g2intpnt\n"); > goto err; > } > for (i=0; ig2intnum; i++) g2indx->g2intpnt[i] = -999; > > /* Break out point for case with E>1 but data files are only > templated over T */ > if (pfi->dnum[4]>1 && pfi->tmplat==1) { > /* Loop over all files in the data set */ > gfile=NULL; > e=1; > ens=pfi->ens1; > tcur = 0; > while (1) { /* loop over all times */ > /* make sure no file is open */ > if (gfile!=NULL) { > fclose(gfile); > gfile=NULL; > } > if (tcur==0) { /* first time step */ > told = 0; > tcur = 1; > } > else { /* tcur!=0 */ > told = pfi->fnums[(e-1)*pfi->dnum[3]+tcur-1]; > /* increment time step until fnums changes */ > while (told==pfi->fnums[(e-1)*pfi->dnum[3]+tcur-1] && tcur<=pfi- > >dnum[3]) { > tcur++; > } > } > /* make sure we haven't advanced past end of time axis */ > if (tcur>pfi->dnum[3]) break; > > > /* Find the range of t indexes that have the same fnums value. > These are the times that are contained in this particular file */ > tmin = tcur; > tmax = tcur-1; > fnum = pfi->fnums[(e-1)*pfi->dnum[3]+tcur-1]; > if (fnum != -1) { > while (fnum == pfi->fnums[(e-1)*pfi->dnum[3]+tmax]) tmax++; > gr2t(pfi->grvals[3], (gadouble)tcur, &dtim); > gr2t(pfi->grvals[3], ens->gt, &dtimi); > ch = gafndt(pfi->name, &dtim, &dtimi, pfi->abvals[3], pfi- > >pchsub1, pfi->ens1,tcur,e,&flag); > if (ch==NULL) { > printf("grib2map error: couldn't determine data file name for e= > %d t=%d\n",e,tcur); > goto err; > } > } > /* Open this GRIB file and position to start of first record > (s/b subroutine) */ > if (!quiet) printf("grib2map: scanning GRIB2 file: %s \n",ch); > fflush(stdout); > gfile = fopen(ch,"rb"); > if (gfile==NULL) { > if (!quiet) printf ("grib2map warning: could not open GRIB file: %s > \n",ch); > fflush(stdout); > continue; > } > gree(ch,"f311a"); > /* Loop over fields in the grib file and find matches */ > iseek=0; > record=1; > while (1) { > /* move to next grib message in file */ > seekgb(gfile,iseek,32000,&lskip,&lgrib); > if (lgrib == 0) break; /* end loop at EOF or problem */ > > /* read the message into memory */ > cgrib = (unsigned char *)galloc(lgrib,"cgrib2"); > if (cgrib == NULL) { > printf("grib2map error: unable to allocate memory for record %d > at byte %ld\n",record,iseek); > goto err; > } > ret = fseek(gfile,lskip,SEEK_SET); > lengrib = fread(cgrib,sizeof(unsigned char),lgrib,gfile); > if (lengrib < lgrib) { > printf("grib2map error: unable to read record %d at byte %ld > \n",record,iseek); goto err; > } > > /* Get info about grib2 message */ > ierr = 0; > ierr = g2_info(cgrib,listsec0,listsec1,&numfields,&numlocal); > if (ierr) { > printf("grib2map error: g2_info failed: ierr=%d\n",ierr); goto > err; > } > for (n=0; n ierr = 0; > ierr = g2_getfld(cgrib,n+1,unpack,expand,&gfld); > if (ierr) { > printf("grib2map error: g2_getfld failed: ierr=%d\n",ierr); > goto err; > } > > /* get statistical process type from grib field */ > sp = g2sp(gfld); > > /* print out useful codes from grib2 field */ > if (verb) g2prnt(gfld,record,n+1,sp); > > /* Check grid properties */ > rc = g2grid_check(gfld,pfi,record,n+1); > if (rc) { > if (verb) printf("\n"); > fflush(stdout); > g2_free(gfld); > break; > } > > /* Check time values in grib field */ > it = g2time_check(gfld,listsec1,pfi,record,n+1,tmin,tmax); > if (it==-99) { > if (verb) printf("\n"); > fflush(stdout); > g2_free(gfld); > break; > } > it = (it-1)*pfi->trecs; /* number of records per time */ > > /* Check if the variable is a match */ > ioff = g2var_match(gfld,pfi,sp); > if (ioff==-999) { > if (verb) printf("\n"); > fflush(stdout); > g2_free(gfld); > break; > } > > /* check if ensemble codes match */ > e = g2ens_match(gfld,pfi); > if (e==-999) { > if (verb) printf("\n"); > fflush(stdout); > g2_free(gfld); > break; > } > eoff = (e-1)*pfi->dnum[3]*pfi->trecs; /* number of records per > ensemble */ > > /* fill in the gribmap entry */ > if (verb) printf(" MATCH \n"); > fflush(stdout); > g2fill (eoff,it+ioff,ng2elems,iseek,n+1,g2indx); > g2_free(gfld); > } > /* free memory containing grib record */ > gree(cgrib,"f310"); > cgrib=NULL; > record++; /* increment grib record counter */ > iseek = lskip+lgrib; /* increment byte offset to next grib > msg in file */ > } /* end of while(1) loop over all fields in the grib message*/ > } /* end of while loop over all times */ > > } > else { > /* All data sets except those that have E>1 but are templated only > over T */ > > /* Loop over all files in the data set */ > gfile=NULL; > for (e=1,ens=pfi->ens1; e<=pfi->dnum[4]; e++,ens++) { > tcur = 0; > while (1) { /* loop over all times for this ensemble */ > if (pfi->tmplat) { > /* make sure no file is open */ > if (gfile!=NULL) { > fclose(gfile); > gfile=NULL; > } > /* advance to first valid time step for this ensemble */ > if (tcur==0) { > told = 0; > tcur = 1; > while (pfi->fnums[(e-1)*pfi->dnum[3]+tcur-1] == -1) tcur++; > } > else { /* tcur!=0 */ > told = pfi->fnums[(e-1)*pfi->dnum[3]+tcur-1]; > /* increment time step until fnums changes */ > while (told==pfi->fnums[(e-1)*pfi->dnum[3]+tcur-1] && tcur<=pfi- > >dnum[3]) { > tcur++; > } > } > > /* make sure we haven't advanced past end of time axis */ > if (tcur>pfi->dnum[3]) break; > > /* check if we're past all valid time steps for this ensemble */ > if ((told != -1) && (pfi->fnums[(e-1)*pfi->dnum[3]+tcur-1] == -1)) > break; > > /* Find the range of t indexes that have the same fnums value. > These are the times that are contained in this particular file */ > tmin = tcur; > tmax = tcur-1; > fnum = pfi->fnums[(e-1)*pfi->dnum[3]+tcur-1]; > if (fnum != -1) { > while (fnum == pfi->fnums[(e-1)*pfi->dnum[3]+tmax]) tmax++; > gr2t(pfi->grvals[3], (gadouble)tcur, &dtim); > gr2t(pfi->grvals[3], ens->gt, &dtimi); > ch = gafndt(pfi->name, &dtim, &dtimi, pfi->abvals[3], pfi- > >pchsub1, pfi->ens1,tcur,e,&flag); > if (ch==NULL) { > printf("grib2map error: couldn't determine data file name for > e=%d t=%d\n",e,tcur); > fflush(stdout); > goto err; > } > } > } > else { > /* only one data file to open */ > ch = pfi->name; > tmin = 1; > tmax = pfi->dnum[3]; > } > > /* Open this GRIB file and position to start of first record > (s/b subroutine) */ > if (!quiet) printf("grib2map: scanning GRIB2 file: %s \n",ch); > fflush(stdout); > gfile = fopen(ch,"rb"); > if (gfile==NULL) { > if (pfi->tmplat) { > if (!quiet) printf ("grib2map warning: could not open GRIB file: > %s\n",ch); > fflush(stdout); > continue; > } > else { > printf ("grib2map error: could not open GRIB file: %s\n",ch); > goto err; > } > } > if (pfi->tmplat) gree(ch,"f311"); > > /* Loop over fields in the grib file and find matches */ > iseek=0; > record=1; > while (1) { > /* move to next grib message in file */ > seekgb(gfile,iseek,32000,&lskip,&lgrib); > if (lgrib == 0) break; /* end loop at EOF or problem */ > > /* read the message into memory */ > cgrib = (unsigned char *)galloc(lgrib,"cgrib2"); > if (cgrib == NULL) { > printf("grib2map error: unable to allocate memory for record %d > at byte %ld\n",record,iseek); > goto err; > } > ret = fseek(gfile,lskip,SEEK_SET); > lengrib = fread(cgrib,sizeof(unsigned char),lgrib,gfile); > if (lengrib < lgrib) { > printf("grib2map error: unable to read record %d at byte %ld > \n",record,iseek); goto err; > } > > /* Get info about grib2 message */ > ierr = 0; > ierr = g2_info(cgrib,listsec0,listsec1,&numfields,&numlocal); > if (ierr) { > printf("grib2map error: g2_info failed: ierr=%d\n",ierr); goto > err; > } > for (n=0; n ierr = 0; > ierr = g2_getfld(cgrib,n+1,unpack,expand,&gfld); > if (ierr) { > printf("grib2map error: g2_getfld failed: ierr=%d\n",ierr); > goto err; > } > > /* get statistical process type from grib field */ > sp = g2sp(gfld); > > /* print out useful codes from grib2 field */ > if (verb) g2prnt(gfld,record,n+1,sp); > > /* Check grid properties */ > rc = g2grid_check(gfld,pfi,record,n+1); > if (rc) { > if (verb) printf("\n"); > fflush(stdout); > g2_free(gfld); > break; > } > > /* Check time values in grib field */ > it = g2time_check(gfld,listsec1,pfi,record,n+1,tmin,tmax); > if (it==-99) { > if (verb) printf("\n"); > fflush(stdout); > g2_free(gfld); > break; > } > it = (it-1)*pfi->trecs; /* number of records per time */ > > /* Check if the variable is a match */ > ioff = g2var_match(gfld,pfi,sp); > if (ioff==-999) { > if (verb) printf("\n"); > fflush(stdout); > g2_free(gfld); > break; > } > > if (pfi->tmplat) { > /* make sure grib codes match for this ensemble */ > rc = g2ens_check(ens,gfld); > if (rc==1) { > if (verb) printf("\n"); > fflush(stdout); > g2_free(gfld); > break; > } > } > else { > /* check if ensemble codes match */ > e = g2ens_match(gfld,pfi); > if (e==-999) { > if (verb) printf("\n"); > fflush(stdout); > g2_free(gfld); > break; > } > } > eoff = (e-1)*pfi->dnum[3]*pfi->trecs; /* number of records per > ensemble */ > > /* fill in the gribmap entry */ > if (verb) printf(" MATCH \n"); > fflush(stdout); > g2fill (eoff,it+ioff,ng2elems,iseek,n+1,g2indx); > g2_free(gfld); > > } > /* free memory containing grib record */ > gree(cgrib,"f310"); > cgrib=NULL; > record++; /* increment grib record counter */ > iseek = lskip+lgrib; /* increment byte offset to next grib > msg in file */ > > } /* end of while(1) loop over all fields in the grib message*/ > > /* break out if not templating -- only need to scan one grib > file */ > if (!pfi->tmplat) goto done; > > } /* end of while(1) loop over all grib files for a given > ensemble member*/ > } /* end of loop over ensemble members: for (e=1,ens=pfi->ens1; > e<=pfi->dnum[4]; e++,ens++) */ > } /* end of else statement for if (pfi->dnum[4]>1 && pfi- > >tmplat==1) */ > > if (!quiet) printf ("grib2map: reached end of files\n"); > fflush(stdout); > > > done: > /* check if file not closed */ > if (gfile!=NULL) { > fclose (gfile); > gfile=NULL; > } > > /* Write out the index file */ > if (write_map) { > rc=wtg2map(pfi,g2indx); > if (rc) return (rc); > } > return(0); > > err: > if (g2indx->g2intpnt) gree(g2indx->g2intpnt,"f314"); > if (g2indx) gree(g2indx,"f315"); > if (cgrib) gree(cgrib,"f316"); > return(1); > } > > #endif /* matches #if GRIB2 */ > > } > > > > /* Routine to read a GRIB header and process info */ > > gaint gribhdr (struct grhdr *ghdr) { > struct dt atim; > unsigned char rec[50000],*ch,*gds; > gaint i,len ,rc,sign,mant; > off_t cpos; > > if (fpos+50>=flen) return(1); > > /* look for data between records BY DEFAULT */ > i = 0; > fpos += i; > rc = fseek(gfile,fpos,0); > if (rc) return(50); > ch=&rec[0]; > rc = fread(ch,sizeof(char),4,gfile); > while ((fpos < flen-4) && (i < scanlim) && > !(*(ch+0)=='G' && > *(ch+1)=='R' && > *(ch+2)=='I' && > *(ch+3)=='B')) { > fpos++; > i++; > rc = fseeko(gfile,fpos,0); > if (rc) return(50); > rc = fread(ch,sizeof(char),4,gfile); > if (rc<4) return(50); > } > > if (i == scanlim) { > printf("grib1map error: GRIB header not found in scanning between > records\n"); > printf(" try increasing the value of the -s argument > \n"); > > if (scaneof) return(98); > if (scanEOF) return(0); > return(52); > } > else if (fpos == flen-4) { > if (scaneof) return(98); > if (scanEOF) return(0); > return (53); > } > > /* SUCCESS redo the initial read */ > rc = fseek(gfile,fpos,0); > if (rc) return(50); > rc = fread(rec,1,8,gfile); > if (rc<8) { > if (fpos+8 >= flen) return(61); > else return(62); > } > > cpos = fpos; > ghdr->vers = gagby(rec,7,1); > if (ghdr->vers>1) { > printf ("grib1map error: file is not GRIB version 0 or 1, version > number is %i\n",ghdr->vers); > if (scaneof) return(98); > return (99); > } > > if (ghdr->vers==0) { > cpos += 4; > rc = fseek(gfile,cpos,0); > if (rc) return(50); > } else { > ghdr->len = gagby(rec,4,3); > cpos = cpos + 8; > rc = fseeko(gfile,cpos,0); > if (rc) return(50); > } > > /* Get PDS length, read rest of PDS */ > rc = fread(rec,1,3,gfile); > if (rc<3) return(50); > len = gagby(rec,0,3); > ghdr->pdslen = len; > cpos = cpos + len; > rc = fread(rec+3,1,len-3,gfile); > if (rc > /* Get info from PDS */ > ghdr->id = gagby(rec,6,1); > ghdr->gdsflg = gagbb(rec+7,0,1); > ghdr->bmsflg = gagbb(rec+7,1,1); > ghdr->parm = gagby(rec,8,1); > ghdr->ltyp = gagby(rec,9,1); > ghdr->level = gagby(rec,10,2); > ghdr->l1 = gagby(rec,10,1); > ghdr->l2 = gagby(rec,11,1); > if (mpiflg) { > /* use initial time from the descriptor file instead of base time > from grib header */ > ghdr->btim.yr = *(pfi->abvals[3]); > ghdr->btim.mo = *(pfi->abvals[3]+1); > ghdr->btim.dy = *(pfi->abvals[3]+2); > ghdr->btim.hr = *(pfi->abvals[3]+3); > ghdr->btim.mn = *(pfi->abvals[3]+4); > if (no_min) ghdr->btim.mn = 0; > } else { > ghdr->btim.yr = gagby(rec,12,1); > ghdr->btim.mo = gagby(rec,13,1); > ghdr->btim.dy = gagby(rec,14,1); > ghdr->btim.hr = gagby(rec,15,1); > ghdr->btim.mn = gagby(rec,16,1); > if (no_min) ghdr->btim.mn = 0; > } > if (ghdr->btim.hr>23) ghdr->btim.hr = 0; /* Special for NCAR */ > if (len>24) { > ghdr->cent = gagby(rec,24,1); > ghdr->btim.yr = ghdr->btim.yr + (ghdr->cent-1)*100; > } else { > ghdr->cent = -999; > if (!(mpiflg) || !(mfcmn.fullyear)) { > if (ghdr->btim.yr>49) ghdr->btim.yr += 1900; > if (ghdr->btim.yr<50) ghdr->btim.yr += 2000; > } > } > ghdr->ftu = gagby(rec,17,1); > ghdr->tri = gagby(rec,20,1); > if (ghdr->tri==10) { > ghdr->p1 = gagby(rec,18,2); > ghdr->p2 = 0; > } else { > ghdr->p1 = gagby(rec,18,1); > ghdr->p2 = gagby(rec,19,1); > } > > ghdr->fcstt = ghdr->p1; > if (ghdr->tri>1 && ghdr->tri<6) > ghdr->fcstt=ghdr->p2; > if ((tauave) && ghdr->tri==3) > ghdr->fcstt=ghdr->p1; > atim.yr=0; atim.mo=0; atim.dy=0; atim.hr=0; atim.mn=0; > if (ghdr->ftu== 0) atim.mn = ghdr->fcstt; > else if (ghdr->ftu==13) atim.mn = ghdr->fcstt*15; /*DWD*/ > else if (ghdr->ftu==14) atim.mn = ghdr->fcstt*30; /*DWD*/ > else if (ghdr->ftu== 1) atim.hr = ghdr->fcstt; > else if (ghdr->ftu==10) atim.hr = ghdr->fcstt*3; /* added 3Hr incr > */ > else if (ghdr->ftu==11) atim.hr = ghdr->fcstt*6; /* added 6Hr incr > */ > else if (ghdr->ftu==12) atim.hr = ghdr->fcstt*12; /* added 12Hr > incr */ > else if (ghdr->ftu== 2) atim.dy = ghdr->fcstt; > else if (ghdr->ftu== 3) atim.mo = ghdr->fcstt; > else if (ghdr->ftu== 4) atim.yr = ghdr->fcstt; > else ghdr->fcstt = -999; > > /* if notau != 0 then FORCE the valid DTG to be the base DTG */ > if (notau) ghdr->fcstt = -999 ; > > /* add the forecast time to the time of this grib field */ > if (ghdr->fcstt>-900) { > timadd(&(ghdr->btim),&atim); > ghdr->dtim.yr = atim.yr; > ghdr->dtim.mo = atim.mo; > ghdr->dtim.dy = atim.dy; > ghdr->dtim.hr = atim.hr; > ghdr->dtim.mn = atim.mn; > } else { > ghdr->dtim.yr = ghdr->btim.yr; > ghdr->dtim.mo = ghdr->btim.mo; > ghdr->dtim.dy = ghdr->btim.dy; > ghdr->dtim.hr = ghdr->btim.hr; > ghdr->dtim.mn = ghdr->btim.mn; > } > if (len>25) { > ghdr->dsf = (gafloat)gagbb(rec+26,1,15); > i = gagbb(rec+26,0,1); > if (i) ghdr->dsf = -1.0*ghdr->dsf; > ghdr->dsf = pow(10.0,ghdr->dsf); > } else ghdr->dsf = 1.0; > > /* If it is there, get info from GDS */ > if (ghdr->gdsflg) { > rc = fread(rec,1,3,gfile); > if (rc<3) return(50); > len = gagby(rec,0,3); > ghdr->gdslen = len; > cpos = cpos + len; > > /* handle generic grid where the lon/lats are coded from the GDS */ > gds = (unsigned char *)malloc(len+3); > if (gds==NULL) return(51); > rc = fread(gds+3,1,len-3,gfile); > if (rc ghdr->gtyp = gagby(gds,4,1); > ghdr->gicnt = gagby(gds,6,2); > ghdr->gjcnt = gagby(gds,8,2); > ghdr->gsf1 = gagbb(gds+27,0,1); > ghdr->gsf2 = gagbb(gds+27,1,1); > ghdr->gsf3 = gagbb(gds+27,2,1); > free(gds); > } > else ghdr->gdslen = 0; > > /* Get necessary info about BMS if it is there */ > if (ghdr->bmsflg) { > rc = fread(rec,1,6,gfile); > if (rc<6) return(50); > len = gagby(rec,0,3); > ghdr->bmsflg = len; > ghdr->bnumr = gagby(rec,4,2); > ghdr->bpos = cpos+6; > cpos = cpos + len; > rc = fseeko(gfile,cpos,0); > } > else ghdr->bmslen = 0; > > /* Get necessary info from data header */ > rc = fread(rec,1,11,gfile); > if (rc<11) return(50); > len = gagby(rec,0,3); > ghdr->bdslen = len; > ghdr->iflg = gagbb(rec+3,0,2); > i = gagby(rec,4,2); > if (i>32767) i = 32768-i; > ghdr->bsf = pow(2.0,(gafloat)i); > > i = gagby(rec,6,1); > sign = 0; > if (i>127) { > sign = 1; > i = i - 128; > } > mant = gagby(rec,7,3); > if (sign) mant = -mant; > ghdr->ref = (gafloat)mant * pow(16.0,(gafloat)(i-70)); > > ghdr->bnum = gagby(rec,10,1); > ghdr->dpos = cpos+11; > > if (ghdr->vers==0) { > fpos = fpos + 8 + ghdr->pdslen + ghdr->gdslen + > ghdr->bmslen + ghdr->bdslen; > } > else fpos = fpos + ghdr->len; > > return(0); > > } > > /* Routine to determine the location of the GRIB record in terms of > the GrADS data set > and fill in the proper values at the proper slot location. */ > > gaint gribrec (struct grhdr *ghdr, struct gafile *pfi, struct gaindx > *pindx, > gaint tmin, gaint tmax, gaint e) { > gadouble (*conv) (gadouble *, gadouble); > gadouble z,t; > struct gavar *pvar; > gaint i,ioff,iz,it,joff,nsiz,flag,eoff; > > /* Verify that we are looking at the proper grid type */ > joff =0; > nsiz = nrec * ng1elems ; > if (ghdr->iflg) { > if (verb) { > printf ("GRIB record contains harmonic or complex packing\n"); > printf (" Record is skipped.\n"); > printf (" Variable is %i\n",ghdr->parm); > } > return(10); > } > if (pfi->grbgrd==255 || pfi->grbgrd<-900) { > if (!ghdr->gdsflg) { > if (verb) { > printf ("GRIB record contains pre-defined grid type: "); > printf ("GrADS descriptor specifies type 255\n"); > gribpr(ghdr); > } > return(20); > } > if ( pfi->ppflag) { > if ( ghdr->gicnt != 65535 && > ((ghdr->gicnt != pfi->ppisiz) || (ghdr->gjcnt != pfi->ppjsiz)) ) { > if (verb) { > printf ("GRIB grid size does not match descriptor: "); > gribpr(ghdr); > } > return(300); > } > } else { > if (ghdr->gicnt != 65535 && > ((ghdr->gicnt != pfi->dnum[0]) || (ghdr->gjcnt != pfi->dnum[1]))) { > if (verb) { > printf ("GRIB grid size does not match descriptor:"); > gribpr(ghdr); > } > return(301); > } > } > } > else { > /* special case for GRIB grid number (dtype grib NNN) == 29 */ > if (pfi->grbgrd==29) { > if (ghdr->id!=29 && ghdr->id!=30) { > if (verb) { > printf("Record has wrong GRIB grid type: ") ; > gribpr(ghdr); > } > return(400); > } > if (ghdr->id==29) joff = ng1elems; > nsiz = 2 * ng1elems ; > } else { > if (ghdr->id != pfi->grbgrd) { > if (verb) { > printf("%s","Record has wrong GRIB grid type: "); > gribpr(ghdr); > } > return(401); > } > } > } > > /* Calculate the grid time for this record. > If it is non-integer or if it is out of bounds, just return. */ > > /* Check for given forecast time, tauoff (the -fhr switch) */ > if (tauflg && (ghdr->ftu==1 && ghdr->fcstt!=tauoff)) { > if (verb) { > printf("%s %d","--f-- Forecast Time does not match : ",tauoff); > gribpr(ghdr); > } > return(32); > } > > /* Check if base time in grib record matches initial time in > descriptor file (the -t0 switch) */ > if (tau0 && > ((ghdr->btim.yr != btimdd.yr) || > (ghdr->btim.mo != btimdd.mo) || > (ghdr->btim.dy != btimdd.dy) || > (ghdr->btim.hr != btimdd.hr) || > (ghdr->btim.mn != btimdd.mn))) { > if (verb) { > printf("%s","--b-- Base Time does not match Initial Time in DD: > "); > gribpr(ghdr); > } > return(34); > } > > /* Check if valid time is within grid time limits */ > t = t2gr(pfi->abvals[3],&(ghdr->dtim)); > if (t<0.99 || t>((gafloat)(pfi->dnum[3])+0.01)) { > if (verb) { > printf("%s","----- Time out of bounds: "); > gribpr(ghdr); > } > return(36); > } > > /* Check if valid time is an integer */ > it = (gaint)(t+0.01); > if (fabs((gafloat)it - t)>0.01) { > if (verb) { > printf("----- Time non-integral. %g %g: ",(gafloat)it,t); > gribpr(ghdr); > } > return(38); > } > > /* Check if valid time matches range of times for this file */ > if (ittmax) { > if (verb) { > printf("----- Time out of file limits: "); > gribpr(ghdr); > } > return(39); > } > it = (it-1)*pfi->trecs; > eoff = (e-1)*pfi->dnum[3]*pfi->trecs; /* number of records per > ensemble */ > > /* See if we can match up this grid with a variable in the data > descriptor file */ > pvar = pfi->pvar1; > i = 0; > flag=0; > while (ivnum) { > if (pvar->levels>0) { /* multi level data */ > if (dequal(pvar->units[0],ghdr->parm,1e-8)==0 && > dequal(pvar->units[8],ghdr->ltyp,1e-8)==0) { > /* look for time range indicator match */ > if (pvar->units[10] < -900 || dequal(pvar->units[10],ghdr->tri, > 1e-8)==0) { > conv = pfi->ab2gr[2]; > z = conv(pfi->abvals[2],ghdr->level); > if (z>0.99 && z<((gafloat)(pvar->levels)+0.01)) { > iz = (gaint)(z+0.5); > /* check if levels match */ > if (fabs(z-(gafloat)iz) < 0.01) { > iz = (gaint)(z+0.5); > ioff = pvar->recoff + iz - 1; > gribfill (eoff,it+ioff,joff,nsiz,ghdr,pindx); > flag=1; > i = pfi->vnum + 1; /* Force loop to stop */ > } > } > } > } > } > else { /* sfc data */ > if (dequal(pvar->units[0],ghdr->parm,1e-8)==0 && dequal(pvar- > >units[8],ghdr->ltyp,1e-8)==0) { > if ((pvar->units[10] < -900 && > dequal(pvar->units[9],ghdr->level,1e-8)==0) || > (pvar->units[10] > -900 && > dequal(pvar->units[9],ghdr->l1,1e-8)==0 && dequal(pvar- > >units[10],ghdr->l2,1e-8)==0) || > (dequal(pvar->units[10],ghdr->tri,1e-8)==0 && dequal(pvar- > >units[9],ghdr->level,1e-8)==0)) { > ioff = pvar->recoff; > gribfill (eoff,it+ioff,joff,nsiz,ghdr,pindx); > i = pfi->vnum+1; /* Force loop to stop */ > flag=1; > } > } > } > pvar++; i++; > } > > if (flag && verb) printf("!!!!! MATCH: "); > if (!flag && verb) printf("..... NOOOO: "); > if (verb) gribpr(ghdr); > > return (flag ? 0 : 1); > > } > > > /* Routine to fill in values for this record, now that we have found > how it matches. > We are not handling the time aspect as yet */ > > void gribfill (gaint eoff, gaint ioff, gaint joff, gaint nsiz, > struct grhdr *ghdr, struct gaindx *pindx) { > ioff = nsiz*(eoff+ioff) + joff; > *(pindx->intpnt+ioff) = ghdr->dpos; > if (ghdr->bmsflg) *(pindx->intpnt+ioff+1) = ghdr->bpos; > *(pindx->intpnt+ioff+2) = ghdr->bnum; > *(pindx->fltpnt+ioff) = ghdr->dsf; > *(pindx->fltpnt+ioff+1) = ghdr->bsf; > *(pindx->fltpnt+ioff+2) = ghdr->ref; > } > > > /* Routine to print out fields from the grib header */ > > void gribpr(struct grhdr *ghdr) { > printf ("% 5i % 10ld % 3i % 1i % 5i % 4i % 4i %-5i % 10i % 10i % 3i > ", > irec,fpos,ghdr->id,ghdr->gdsflg,ghdr->bmsflg,ghdr->parm,ghdr->ltyp, > ghdr->level,ghdr->dpos,ghdr->bpos,ghdr->bnum); > printf ("btim: %04i%02i%02i%02i:%02i ",ghdr->btim.yr, > ghdr->btim.mo,ghdr->btim.dy,ghdr->btim.hr,ghdr->btim.mn); > printf ("tau: % 6i ",ghdr->fcstt); > printf ("dtim: %04i%02i%02i%02i:%02i ",ghdr->dtim.yr, > ghdr->dtim.mo,ghdr->dtim.dy,ghdr->dtim.hr,ghdr->dtim.mn); > printf("\n"); > } > > > /* Routine to write out machine independent grib1 map file */ > > gaint wtgmap(void) { > gaint i,nb,bcnt,idum; > gafloat fdum; > unsigned char *map; > unsigned char ibmfloat[4]; > > /* calculate the size of the version==1 index file */ > nb = 2 + (4*4) + /* version in byte 2, then 4 ints with > number of each data type */ > pindx->hinum*sizeof(gaint) + > pindx->hfnum*sizeof(gaint) + > pindx->intnum*sizeof(gaint) + > pindx->fltnum*sizeof(gafloat) ; > > /* add additional info */ > if (g1ver==2) { > nb=nb+7; /* base time (+ sec) for compatibility with earlier > version 2 maps */ > nb=nb+8*4; /* grvals for time <-> grid conversion */ > } > > /* allocate space for the map */ > map = (unsigned char *)malloc(nb); > if (map == NULL) { > fprintf(stderr,"grib1map error: memory allocation error creating > the map\n"); > return(60); > } > > /* write out the version number and the sizes of the header and > index arrays */ > bcnt=0; > gapby(0,map,bcnt,1); bcnt++ ; /* set the first byte to 0 */ > gapby(g1ver,map,bcnt,1); bcnt++ ; /* set the second byte to the > version number */ > putint(pindx->hinum,map,&bcnt); /* # ints in header */ > putint(pindx->hfnum,map,&bcnt); /* # floats in header > */ > putint(pindx->intnum,map,&bcnt); /* # index ints */ > putint(pindx->fltnum,map,&bcnt); /* # index floats */ > > if (g1ver==2) { > /* write out base time for consistency with earlier version 2 maps > */ > /* base time not needed for version 3 */ > gapby(btimdd.yr,map,bcnt,2); bcnt+=2 ; /* initial year */ > gapby(btimdd.mo,map,bcnt,1); bcnt++ ; /* initial month */ > gapby(btimdd.dy,map,bcnt,1); bcnt++ ; /* initial day */ > gapby(btimdd.hr,map,bcnt,1); bcnt++ ; /* initial hour */ > gapby(btimdd.mn,map,bcnt,1); bcnt++ ; /* initial minute */ > gapby(0,map,bcnt,1); bcnt++ ; /* initial second */ > } > > /* write the header */ > if (pindx->hinum) { > for (i=0;ihinum;i++) { > idum=*(pindx->hipnt+i); > putint(idum,map,&bcnt); > } > } > > /* write the indices */ > for (i=0;iintnum;i++) { > idum=*(pindx->intpnt+i); > putint(idum,map,&bcnt); > } > for (i=0;ifltnum;i++) { > fdum=*(pindx->fltpnt+i); > rc=flt2ibm(fdum, ibmfloat); > if (rc<0) return(601); > memcpy(&map[bcnt],ibmfloat,4); bcnt+=4; > } > > if (g1ver==2) { > /* write out the factors for converting from grid to absolute time > */ > /* the conversion vals are not needed for version 3 */ > for (i=0;i<8;i++) { > fdum=*(pfi->grvals[3]+i); > rc=flt2ibm(fdum, ibmfloat); > if (rc<0) return(601); > memcpy(&map[bcnt],ibmfloat,4); bcnt+=4; > } > } > > /* write to the map file */ > fwrite(map,1,bcnt,mfile); > free(map); > return(0); > > } > > /* Routine to dump a 4 byte int into a character stream */ > > void putint(gaint dum, unsigned char *buf, gaint *off) { > gaint offset; > > offset=*off; > if (dum < 0) { > dum=-dum; > gapby(dum,buf,offset,4); > gapbb(1,buf+offset,0,1); > } else { > gapby(dum,buf,offset,4); > } > offset+=4; > *off=offset; > > } > > > #if GRIB2 > > /* Routine to fill in values for grib2 record, now that we know it > matches. */ > void g2fill (gaint eoff, gaint ioff, gaint ng2elems, g2int iseek, > g2int fldnum, > struct gag2indx *g2indx) { > ioff = ng2elems*(eoff+ioff); > *(g2indx->g2intpnt+ioff+0) = iseek; > *(g2indx->g2intpnt+ioff+1) = fldnum; > } > > /* Routine to write out grib2 index file > > g2ver=1 : machine dependent. contains the version number, > followed by > the array size N, followed by the array of N numbers. > All are 4-byte integers (type gaint). > > A test to see if byte-swapping is required to read the index > file is done > in gaddes.c, when the data descriptor file is opened. > */ > > > gaint wtg2map(struct gafile *pfi, struct gag2indx *g2indx) { > FILE *mfile; > gaint rc; > > /* open the index file */ > mfile = fopen(pfi->mnam,"wb"); > if (mfile==NULL) { > printf ("error: Unable to open index file: %s\n",pfi->mnam); > return(1); > } > > printf("grib2map: Writing out the index file \n"); > /* write the version number */ > rc = fwrite(&g2indx->version, sizeof(gaint),1,mfile); > if (rc!=1) { > printf("error: Unable to write version number to index file, rc= > %d \n",rc); > return(1); > } > /* write the array size */ > rc = fwrite(&g2indx->g2intnum,sizeof(gaint),1,mfile); > if (rc!=1) { > printf("error: Unable to write g2intnum to index file, rc=%d > \n",rc); > return(1); > } > /* writhe the array of index values */ > rc = fwrite(g2indx->g2intpnt,sizeof(gaint),g2indx->g2intnum,mfile); > if (rc!=g2indx->g2intnum) { > printf("error: Unable to write g2intpnt to index file, rc=%d > \n",rc); > return(1); > } > fclose(mfile); > return(0); > > } > > /* Checks grid properties for a grib2 field. > Returns 0 if ok, 1 if doesn't match descriptor */ > > gaint g2grid_check (gribfield *gfld, struct gafile *pfi, gaint r, > gaint f) { > gaint xsize=0,ysize=0; > > /* Check total number of grid points */ > if (pfi->grbgrd==255 || pfi->grbgrd<-900) { > if (((pfi->ppflag) && (gfld->ngrdpts != pfi->ppisiz * pfi- > >ppjsiz)) || > ((pfi->ppflag==0) && (gfld->ngrdpts != pfi->dnum[0] * pfi- > >dnum[1]))) { > if (verb) printf ("number of grid points does not match > descriptor "); > return(1); > } > } > /* Check nx and ny for Lat/Lon, Polar Stereographic, and Lambert > Conformal grids */ > if (pfi->ppflag) { > xsize = pfi->ppisiz; > ysize = pfi->ppjsiz; > } else { > xsize = pfi->dnum[0]; > ysize = pfi->dnum[1]; > } > if (gfld->igdtmpl[7] != -1) { > if (gfld->igdtnum==0 || gfld->igdtnum==40 || gfld->igdtnum==20 || > gfld->igdtnum==30) { > if (gfld->igdtmpl[7] != xsize) { > if (verb) printf ("x dimensions are not equal: nx=%d xsize=%d",gfld- > >igdtmpl[7],xsize); > return(1); > } > if (gfld->igdtmpl[8] != ysize) { > if (verb) printf ("y dimensions are not equal: nx=%d xsize=%d",gfld- > >igdtmpl[8],ysize); > return(1); > } > } > } > return(0); > } > > /* Checks time metadata in grib2 message. > Returns integer value of time axis index if ok, -99 if not */ > gaint g2time_check (gribfield *gfld, g2int *listsec1, struct gafile > *pfi, > gaint r, gaint f, gaint tmin, gaint tmax) { > struct dt tref,tfld,tvalid; > gaint it,tfield; > gafloat t; > > /* Get reference time from Section 1 of GRIB message */ > tref.yr = listsec1[5]; > tref.mo = listsec1[6]; > tref.dy = listsec1[7]; > tref.hr = listsec1[8]; > tref.mn = listsec1[9]; > tfield = tfld.yr = tfld.mo = tfld.dy = tfld.hr = tfld.mn = 0; /* > initialize */ > > if (notau) { > /* use reference time as valid time */ > tvalid.yr = tref.yr; > tvalid.mo = tref.mo; > tvalid.dy = tref.dy; > tvalid.hr = tref.hr; > tvalid.mn = tref.mn; > } > else { > /* For fields at a point in time (PDT<8) */ > if (gfld->ipdtnum < 8) { > if (gfld->ipdtmpl[7]== 0) tfld.mn = gfld->ipdtmpl[8]; > else if (gfld->ipdtmpl[7]== 13)tfld.mn = gfld- > >ipdtmpl[8]*15; /*DWD*/ > else if (gfld->ipdtmpl[7]== 14)tfld.mn = gfld- > >ipdtmpl[8]*30; /*DWD*/ > else if (gfld->ipdtmpl[7]== 1) tfld.hr = gfld->ipdtmpl[8]; > else if (gfld->ipdtmpl[7]== 2) tfld.dy = gfld->ipdtmpl[8]; > else if (gfld->ipdtmpl[7]== 3) tfld.mo = gfld->ipdtmpl[8]; > else if (gfld->ipdtmpl[7]== 4) tfld.yr = gfld->ipdtmpl[8]; > else if (gfld->ipdtmpl[7]==10) tfld.hr = gfld->ipdtmpl[8]*3; / > * 3Hr incr */ > else if (gfld->ipdtmpl[7]==11) tfld.hr = gfld->ipdtmpl[8]*6; / > * 6Hr incr */ > else if (gfld->ipdtmpl[7]==12) tfld.hr = gfld->ipdtmpl[8]*12; / > * 2Hr incr */ > else tfield=-99; > if (tfield==-99) { > /* use reference time as valid time */ > tvalid.yr = tref.yr; > tvalid.mo = tref.mo; > tvalid.dy = tref.dy; > tvalid.hr = tref.hr; > tvalid.mn = tref.mn; > } > else { > /* add forecast time to reference time to get valid time */ > timadd(&tref,&tfld); > tvalid.yr = tfld.yr; > tvalid.mo = tfld.mo; > tvalid.dy = tfld.dy; > tvalid.hr = tfld.hr; > tvalid.mn = tfld.mn; > } > } > /* For fields that are statistically processed over a time interval > e.g. averages, accumulations, extremes, et al. (8<=PDT<15) > valid time is the end of the overall time interval */ > else if (gfld->ipdtnum == 8) { > tvalid.yr = gfld->ipdtmpl[15]; > tvalid.mo = gfld->ipdtmpl[16]; > tvalid.dy = gfld->ipdtmpl[17]; > tvalid.hr = gfld->ipdtmpl[18]; > tvalid.mn = gfld->ipdtmpl[19]; > } > /* else if (gfld->ipdtnum == 9) { */ > /* tvalid.yr = gfld->ipdtmpl[22]; */ > /* tvalid.mo = gfld->ipdtmpl[23]; */ > /* tvalid.dy = gfld->ipdtmpl[24]; */ > /* tvalid.hr = gfld->ipdtmpl[25]; */ > /* tvalid.mn = gfld->ipdtmpl[26]; */ > /* } */ > /* else if (gfld->ipdtnum == 10) { */ > /* tvalid.yr = gfld->ipdtmpl[16]; */ > /* tvalid.mo = gfld->ipdtmpl[17]; */ > /* tvalid.dy = gfld->ipdtmpl[18]; */ > /* tvalid.hr = gfld->ipdtmpl[19]; */ > /* tvalid.mn = gfld->ipdtmpl[20]; */ > /* } */ > else if (gfld->ipdtnum == 11) { > tvalid.yr = gfld->ipdtmpl[18]; > tvalid.mo = gfld->ipdtmpl[19]; > tvalid.dy = gfld->ipdtmpl[20]; > tvalid.hr = gfld->ipdtmpl[21]; > tvalid.mn = gfld->ipdtmpl[22]; > } > else if (gfld->ipdtnum == 12) { > tvalid.yr = gfld->ipdtmpl[17]; > tvalid.mo = gfld->ipdtmpl[18]; > tvalid.dy = gfld->ipdtmpl[19]; > tvalid.hr = gfld->ipdtmpl[20]; > tvalid.mn = gfld->ipdtmpl[21]; > } > /* else if (gfld->ipdtnum == 13) { */ > /* tvalid.yr = gfld->ipdtmpl[31]; */ > /* tvalid.mo = gfld->ipdtmpl[32]; */ > /* tvalid.dy = gfld->ipdtmpl[33]; */ > /* tvalid.hr = gfld->ipdtmpl[34]; */ > /* tvalid.mn = gfld->ipdtmpl[35]; */ > /* } */ > /* else if (gfld->ipdtnum == 14) { */ > /* tvalid.yr = gfld->ipdtmpl[30]; */ > /* tvalid.mo = gfld->ipdtmpl[31]; */ > /* tvalid.dy = gfld->ipdtmpl[32]; */ > /* tvalid.hr = gfld->ipdtmpl[33]; */ > /* tvalid.mn = gfld->ipdtmpl[34]; */ > /* } */ > else { > printf("Product Definition Template %ld not handled \n",gfld- > >ipdtnum); > return(-99); > } > } > /* Check if valid time is within grid limits */ > t = t2gr(pfi->abvals[3],&tvalid); > if (t<0.99 || t>((gafloat)(pfi->dnum[3])+0.01)) { > if (verb) printf("valid time %4d%02d%02d%02d:%02d (t=%g) is > outside grid limits", > tvalid.yr,tvalid.mo,tvalid.dy,tvalid.hr,tvalid.mn,t); > return(-99); > } > /* Check if valid time is an integer */ > it = (gaint)(t+0.01); > if (fabs((gafloat)it - t)>0.01) { > if (verb) printf("valid time %4d%02d%02d%02d:%02d (t=%g) has non- > integer grid index", > tvalid.yr,tvalid.mo,tvalid.dy,tvalid.hr,tvalid.mn,t); > return(-99); > } > /* Check if valid time matches range of times for this file */ > if (ittmax) { > if (verb) printf("valid time %4d%02d%02d%02d:%02d (it=%d) is > outside file limits (%d-%d)", > tvalid.yr,tvalid.mo,tvalid.dy,tvalid.hr,tvalid.mn,it,tmin,tmax); > return(-99); > } > return (it); > } > > /* Loops over variables in descriptor file, looking for match to > current grib2 field. > If variables match, returns offset, if not, returns -999 */ > > gaint g2var_match (gribfield *gfld, struct gafile *pfi, gaint sp) { > struct gavar *pvar; > gadouble lev1,lev2,z; > gadouble (*conv) (gadouble *, gadouble); > gaint rc1,rc2,rc3,rc4,rc5; > gaint i,ioff,iz; > > /* Get level values from grib field */ > lev1 = scaled2dbl(gfld->ipdtmpl[10],gfld->ipdtmpl[11]); > /* Check if we've got info on 2nd level */ > if (gfld->ipdtmpl[12] != 255) > lev2 = scaled2dbl(gfld->ipdtmpl[13],gfld->ipdtmpl[14]); > else > lev2 = -999; > > /* See if we match any variables in the descriptor file */ > pvar = pfi->pvar1; > ioff = -999; > i = 0; > while (ivnum) { > if (pvar->levels>0) { > /* Z-varying data */ > rc1 = dequal(pvar->units[0],(gadouble)gfld->discipline,1e-8); / > * discipline */ > rc2 = dequal(pvar->units[1],(gadouble)gfld->ipdtmpl[0],1e-8); / > * category */ > rc3 = dequal(pvar->units[2],(gadouble)gfld->ipdtmpl[1],1e-8); / > * number */ > rc4 = dequal(pvar->units[3],(gadouble)sp,1e-8); /* > SP */ > rc5 = dequal(pvar->units[8],(gadouble)gfld->ipdtmpl[9],1e-8); / > * LTYPE1 */ > if (rc1==0 && rc2==0 && rc3==0 && rc4==0 && rc5==0) { /* all > the above match */ > > /* get a Z value for level 1 */ > conv = pfi->ab2gr[2]; > z = conv(pfi->abvals[2],lev1); > if (z>0.99 && z<((gadouble)(pvar->levels)+0.01)) { > iz = (gaint)(z+0.5); > /* make sure Z value for level 1 is an integer */ > if (fabs(z-(gadouble)iz) < 0.01) { > ioff = pvar->recoff + iz - 1; > return(ioff); > } > } > } > } > else { > /* non-Z-varying data */ > rc1 = dequal(pvar->units[0],(gadouble)gfld->discipline,1e-8); / > * discipline */ > rc2 = dequal(pvar->units[1],(gadouble)gfld->ipdtmpl[0],1e-8); / > * category */ > rc3 = dequal(pvar->units[2],(gadouble)gfld->ipdtmpl[1],1e-8); / > * number */ > rc4 = dequal(pvar->units[3],(gadouble)sp,1e-8); / > * SP */ > rc5 = dequal(pvar->units[8],(gadouble)gfld->ipdtmpl[9],1e-8); / > * LTYPE1 */ > if (rc1==0 && rc2==0 && rc3==0 && rc4==0 && rc5==0) { /* all > the above match */ > > /* check if level value(s) match those given in descriptor file */ > if ( > (pvar->units[9] < -900) /* LVAL not given */ > || > (pvar->units[10] < -900 && /* LVAL2 not given */ > dequal(pvar->units[9],lev1,1e-8)==0) /* and > LVAL1 matches */ > || > (pvar->units[10] > -900 && /* LVAL2 is given */ > dequal(pvar->units[9],lev1,1e-8)==0 && /* and > LVAL1 matches */ > dequal(pvar->units[10],lev2,1e-8)==0) /* and > LVAL2 matches */ > || > (pvar->units[10] > -900 && /* LVAL2 is given */ > pvar->units[11] > -900 && /* LTYPE2 is given */ > dequal(pvar->units[9],lev1,1e-8)==0 && /* and > LVAL1 matches */ > dequal(pvar->units[10],lev2,1e-8)==0 && /* and > LVAL2 matches */ > dequal(pvar->units[11],gfld->ipdtmpl[12],1e-8)==0) /* and > LTYPE2 matches */ > ) { > ioff = pvar->recoff; > return(ioff); > } > } > } > pvar++; i++; > } /* end of loop over variables in descriptor file */ > return(ioff); > } > > /* Loops over ensembles to see if ensemble codes match current grib2 > field > If size of ensemble dimension is 1, no checks are done, returns e=1. > Returns ensemble index e if codes are present and match, -999 > otherwise */ > gaint g2ens_match (gribfield *gfld, struct gafile *pfi) { > struct gaens *ens; > gaint e; > e=1; > if (pfi->dnum[4]==1) { > e=1; > return(e); > } > else { > for (e=1,ens=pfi->ens1; e<=pfi->dnum[4]; e++,ens++) { > /* PDT 0 or 8 and no grib codes */ > if (ens->grbcode[0]==-999 && ens->grbcode[1]==-999 && > (gfld->ipdtnum==0 || gfld->ipdtnum==8)) { > if (verb) printf("pdt=%d ",gfld->ipdtnum); > return(e); > } > if (ens->grbcode[0]>-900) { > if (ens->grbcode[1]>-900) { > /* PDT 1 or 11 */ > if ((gfld->ipdtnum==1 || gfld->ipdtnum==11) && > ((ens->grbcode[0] == gfld->ipdtmpl[15]) && > (ens->grbcode[1] == gfld->ipdtmpl[16]))) { > if (verb) printf("pdt=%d ens=%d,%d ",gfld->ipdtnum,ens- > >grbcode[0],ens->grbcode[1]); > return(e); > } > } > else { > /* PDT 2 or 12 */ > if ((gfld->ipdtnum==2 || gfld->ipdtnum==12) && > (ens->grbcode[0] == gfld->ipdtmpl[15])) { > if (verb) printf("pdt=%d ens=%d ",gfld->ipdtnum,ens->grbcode[0]); > return(e); > } > } > } > } > if (verb) { > printf("pdt=%d ",gfld->ipdtnum); > if (gfld->ipdtnum==1 || gfld->ipdtnum==11) > printf("ens=%d,%d ",gfld->ipdtmpl[15],gfld->ipdtmpl[16]); > if (gfld->ipdtnum==2 || gfld->ipdtnum==12) > printf("ens=%d ",gfld->ipdtmpl[15]); > } > return(-999); > } > } > > /* Checks ensemble codes, if provided in descriptor file. > Returns 0 if ok or not provided, 1 if codes don't match. */ > gaint g2ens_check (struct gaens *ens, gribfield *gfld) { > /* print out ensemble info */ > if (verb) { > printf("pdt=%d ",gfld->ipdtnum); > if (gfld->ipdtnum==1 || gfld->ipdtnum==11) > printf("ens=%d,%d ",gfld->ipdtmpl[15],gfld->ipdtmpl[16]); > if (gfld->ipdtnum==2 || gfld->ipdtnum==12) > printf("ens=%d ",gfld->ipdtmpl[15]); > } > if (ens->grbcode[0]>-900) { > if (ens->grbcode[1]>-900) { > /* PDT 1 or 11 */ > if ((gfld->ipdtnum==1 || gfld->ipdtnum==11) && > ((ens->grbcode[0] == gfld->ipdtmpl[15]) && > (ens->grbcode[1] == gfld->ipdtmpl[16]))) return(0); > else return(1); > } > else { > /* PDT 2 or 12 */ > if ((gfld->ipdtnum==2 || gfld->ipdtnum==12) && > (ens->grbcode[0] == gfld->ipdtmpl[15])) return(0); > else return(1); > } > } > /* PDT 0 or 8 and no grib codes */ > if (ens->grbcode[0]==-999 && ens->grbcode[1]==-999 && > (gfld->ipdtnum==0 || gfld->ipdtnum==8)) return(0); > else return(1); > } > > /* Gets the statistical process used to derive a variable. > returns -999 for variables "at a point in time" */ > gaint g2sp (gribfield *gfld) { > gaint sp; > sp = -999; > if (gfld->ipdtnum == 8) sp = gfld->ipdtmpl[23]; > if (gfld->ipdtnum == 9) sp = gfld->ipdtmpl[30]; > if (gfld->ipdtnum == 10) sp = gfld->ipdtmpl[24]; > if (gfld->ipdtnum == 11) sp = gfld->ipdtmpl[26]; > if (gfld->ipdtnum == 12) sp = gfld->ipdtmpl[25]; > if (sp==255) sp = -999; > return(sp); > } > > /* prints out relevant info from a grib2 record */ > void g2prnt (gribfield *gfld, gaint r, g2int f, gaint sp) { > /* print record/field number */ > printf("%d.%ld: ",r,f); > /* print level info */ > if (gfld->ipdtmpl[10]==-127) > printf("lev1=%ld ",gfld->ipdtmpl[9]); /* just print the level1 > type */ > else > printf("lev1=%ld,%g ",gfld->ipdtmpl[9],scaled2dbl(gfld- > >ipdtmpl[10],gfld->ipdtmpl[11])); > > if (gfld->ipdtmpl[12]<255) { > if (gfld->ipdtmpl[13]==-127) > printf("lev1=%ld ",gfld->ipdtmpl[12]); /* just print the level2 > type */ > else > printf("lev2=%ld,%g ",gfld->ipdtmpl[12],scaled2dbl(gfld- > >ipdtmpl[13],gfld->ipdtmpl[14])); > } > /* print variable info */ > if (sp==-999) > printf("var=%ld,%ld,%ld ",gfld->discipline,gfld->ipdtmpl[0],gfld- > >ipdtmpl[1]); > else > printf("var=%ld,%ld,%ld,%d ",gfld->discipline,gfld->ipdtmpl[0], > gfld->ipdtmpl[1],sp); > } > > > #endif /* matches #if GRIB2 */ > > > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr -- Jennifer M. Adams IGES/COLA 4041 Powder Mill Road, Suite 302 Calverton, MD 20705 jma at cola.iges.org -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100712/46298894/attachment-0001.html From funnytyphoon at gmail.com Mon Jul 12 10:33:42 2010 From: funnytyphoon at gmail.com (MY) Date: Mon, 12 Jul 2010 22:33:42 +0800 Subject: [gradsusr] Subscript and superscript In-Reply-To: References: Message-ID: Hi, Sudev, 'draw string Nm`a-2`n' ;* superscript 'draw string N`bm`n' ;* subscript Please test them. Good luck! MY -- ++++++++++++++++++++++++++++++++++++++++++++++++++++ YING, Ming Shanghai Typhoon Institute of China Meteorological Administration 166 Puxi Road, Xuhui District, Shanghai, 200030 PR China ++++++++++++++++++++++++++++++++++++++++++++++++++++ From funnytyphoon at gmail.com Mon Jul 12 10:36:06 2010 From: funnytyphoon at gmail.com (MY) Date: Mon, 12 Jul 2010 22:36:06 +0800 Subject: [gradsusr] Subscript and superscript In-Reply-To: References: Message-ID: sorry, please use "title" instead of "string" ^_^ 2010/7/12 MY : > Hi, Sudev, > > 'draw string Nm`a-2`n' ? ;* superscript > > 'draw string N`bm`n' ? ? ?;* subscript > > Please test them. > Good luck! > > MY > > -- > ++++++++++++++++++++++++++++++++++++++++++++++++++++ > YING, Ming > Shanghai Typhoon Institute of China Meteorological Administration > 166 Puxi Road, Xuhui District, Shanghai, 200030 > PR China > ++++++++++++++++++++++++++++++++++++++++++++++++++++ > From mubashardogar at gmail.com Mon Jul 12 10:42:29 2010 From: mubashardogar at gmail.com (Mubashar Dogar) Date: Mon, 12 Jul 2010 17:42:29 +0300 Subject: [gradsusr] How to convert 6hourly data to monthly data in ECMWF data file Message-ID: Dear GrADs users, I have to compute seasonal means from the ECMWF data set. The data set available is in 6 hourly format. I want to convert it into monthly format so that I can compute the seasonal and annual means and then anomalies from that data set. Could you please guide/provide me with a script to convert hourly data to monthly format. Your suggestion will be helpful for me. Regards, Mubashar -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100712/ab952c7c/attachment.html From mubashardogar at gmail.com Mon Jul 12 10:52:17 2010 From: mubashardogar at gmail.com (Mubashar Dogar) Date: Mon, 12 Jul 2010 17:52:17 +0300 Subject: [gradsusr] How to convert 6hourly data to monthly data in ECMWF data file Message-ID: Dear GrADs users, I have to compute seasonal means from the ECMWF data set. The data set available is in 6 hourly format. I want to convert it into monthly format so that I can compute the seasonal and annual means and then anomalies from that data set. Could you please guide/provide me with a script to convert hourly data to monthly format. Your suggestion will be helpful for me. Regards, Mubashar -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100712/ee0f4c28/attachment.html From funnytyphoon at gmail.com Mon Jul 12 11:07:31 2010 From: funnytyphoon at gmail.com (MY) Date: Mon, 12 Jul 2010 23:07:31 +0800 Subject: [gradsusr] How to convert 6hourly data to monthly data in ECMWF data file In-Reply-To: References: Message-ID: Dear Mubashar, I don't have a script. May be "tmave()" can help you, or, you can just use ave() in while loops such as: mon.1='Jan' mon.2='Feb' ..... mon.12='Dec' mdy.1=31 mdy.2=28 ..... mdy.12=31 'set gxout fwrite' 'set fwrite test.dat' iy=1958 while( iy<=2001) im=1 while(im<=12) if( math_mod(iy,4)=0) mdy.2=29 else mdy.2=28 endif id=1 while(id<=mdy.im) 'd ave(slp, time=00z1' % mon.im % iy % ',time=18z' % mdy.im % mon.im % iy % ')' id=id+1 endwhile im=im+1 endwhile iy=iy+1 endwhile 'disable fwrite' Please try. Good luck! MY 2010/7/12 Mubashar Dogar : > Dear GrADs users, > > I have to compute seasonal means from the ECMWF data set. The data set > available is in 6 hourly format. I want to convert it into monthly format so > that I can compute the seasonal and annual means and then anomalies from > that data set. Could you please guide/provide me with a script to convert > hourly data to monthly format. Your suggestion will be helpful for me. > > > Regards, > > Mubashar > > > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > > -- ++++++++++++++++++++++++++++++++++++++++++++++++++++ YING, Ming Shanghai Typhoon Institute of China Meteorological Administration 166 Puxi Road, Xuhui District, Shanghai, 200030 PR China ++++++++++++++++++++++++++++++++++++++++++++++++++++ From dasilva at alum.mit.edu Mon Jul 12 15:34:12 2010 From: dasilva at alum.mit.edu (Arlindo da Silva) Date: Mon, 12 Jul 2010 15:34:12 -0400 Subject: [gradsusr] problem building mflib from CVS In-Reply-To: References: Message-ID: On Fri, Jun 25, 2010 at 5:57 PM, P. R.M. wrote: > Im trying to build the user-defined extensions from source/CVS. > I cant get the mf library functions to build; I keep getting the following > error(s). > > Error: Parameter 'igakind' at (1) has not been declared or is a variable, > which does not reduce to a constant expression > > it looks like a fortran error, but I dont know how to fix. > What should I do to correct this? > > Any luck with that? Which fortran compiler are you using? Arlindo > please help, > thanks, > P.Romero > > ------------------------------ > Hotmail is redefining busy with tools for the New Busy. Get more from your > inbox. See how. > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > > -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100712/7ec99827/attachment.html From peter.r.colarco at nasa.gov Mon Jul 12 16:42:34 2010 From: peter.r.colarco at nasa.gov (Colarco, Peter R. (GSFC-6133)) Date: Mon, 12 Jul 2010 15:42:34 -0500 Subject: [gradsusr] Performance hit with data descriptor files? Message-ID: <858FB416-83BF-44C9-A63A-9B1ED9E258B6@nasa.gov> Hi- I am running opengrads 2.0.a7.oga.3/x86_64. I have a very simple data descriptor file (below) to template a set of large-ish files (gridded 1152 x 721 x 7 points). When I simply "sdfopen" the first file and plot the first variable/first time/first level, I get my result essentially immediately. When I instead "xdfopen" the data descriptor file and try to plot the same, it takes some time (~10 sec) to plot. When I repeat the same sort of thing but operate on several times the difference in performance between the two methods is of course very noticeable. The issue seems to be in the "options template" line below; taking that out and explicitly putting the first file in I can "xdfopen" the data descriptor file and plot the first variable essentially instantly. Additional metadata in the data descriptor file (e.g., from make_ctl.sh) does not help or matter as far as I can tell. Can anyone suggest a solution to this problem? Am I doing something weird or wrong here? Data Descriptor File: dset /path/to/my/data/Y2003/M01/MYD04_L2_ocn.aero_tc8_051.qawt.%y4%m2%d2.nc4 options template tdef time 248 linear 0z01jan2003 3hr Thank you, Pete Colarco -------------------------------------------------------------------- Peter Colarco NASA GSFC Code 613.3 NASA Goddard Space Flight Center Greenbelt, MD 20771 301.614.6382 (ph) 301.614.5903 (fax) peter.r.colarco at nasa.gov http://hyperion.gsfc.nasa.gov/People/Colarco -------------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100712/b709612a/attachment.html From jma at cola.iges.org Mon Jul 12 16:51:06 2010 From: jma at cola.iges.org (Jennifer Adams) Date: Mon, 12 Jul 2010 16:51:06 -0400 Subject: [gradsusr] Performance hit with data descriptor files? In-Reply-To: <858FB416-83BF-44C9-A63A-9B1ED9E258B6@nasa.gov> References: <858FB416-83BF-44C9-A63A-9B1ED9E258B6@nasa.gov> Message-ID: Could you please send the output from ncdump -hs (the s is for compression info, since you have netcdf-4 files). Also send the output from 'q config' and the specs of the OS you are running on. These things are important for solving every problem. --Jennifer On Jul 12, 2010, at 4:42 PM, Colarco, Peter R. (GSFC-6133) wrote: > Hi- > > I am running opengrads 2.0.a7.oga.3/x86_64. > > I have a very simple data descriptor file (below) to template a set > of large-ish files (gridded 1152 x 721 x 7 points). When I simply > "sdfopen" the first file and plot the first variable/first time/ > first level, I get my result essentially immediately. When I > instead "xdfopen" the data descriptor file and try to plot the same, > it takes some time (~10 sec) to plot. When I repeat the same sort > of thing but operate on several times the difference in performance > between the two methods is of course very noticeable. > > The issue seems to be in the "options template" line below; taking > that out and explicitly putting the first file in I can "xdfopen" > the data descriptor file and plot the first variable essentially > instantly. Additional metadata in the data descriptor file (e.g., > from make_ctl.sh) does not help or matter as far as I can tell. > > Can anyone suggest a solution to this problem? Am I doing something > weird or wrong here? > > Data Descriptor File: > > dset /path/to/my/data/Y2003/M01/MYD04_L2_ocn.aero_tc8_051.qawt. > %y4%m2%d2.nc4 > options template > tdef time 248 linear 0z01jan2003 3hr > > Thank you, > Pete Colarco > > > > -------------------------------------------------------------------- > Peter Colarco > NASA GSFC > Code 613.3 > NASA Goddard Space Flight Center > Greenbelt, MD 20771 > 301.614.6382 (ph) > 301.614.5903 (fax) > > peter.r.colarco at nasa.gov > http://hyperion.gsfc.nasa.gov/People/Colarco > -------------------------------------------------------------------- > > > > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr -- Jennifer M. Adams IGES/COLA 4041 Powder Mill Road, Suite 302 Calverton, MD 20705 jma at cola.iges.org -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100712/9a26c27b/attachment-0001.html From peter.r.colarco at nasa.gov Mon Jul 12 21:26:30 2010 From: peter.r.colarco at nasa.gov (Colarco, Peter R. (GSFC-6133)) Date: Mon, 12 Jul 2010 20:26:30 -0500 Subject: [gradsusr] Performance hit with data descriptor files? In-Reply-To: References: <858FB416-83BF-44C9-A63A-9B1ED9E258B6@nasa.gov> Message-ID: Hi- Apologies, here is the requested information. Thanks, Pete OS: % uname -a Linux redacted.gsfc.nasa.gov 2.6.32-gentoo-r7 #2 SMP Thu Jul 8 11:39:03 EDT 2010 x86_64 Intel(R) Xeon(R) CPU X5460 @ 3.16GHz GenuineIntel GNU/Linux File Information: % ncdump -hs /path/to/file/Y2003/M01/MYD04_L2_ocn.aero_tc8_051.qawt.20030101.nc4 netcdf MYD04_L2_ocn.aero_tc8_051.qawt.20030101 { dimensions: time = UNLIMITED ; // (8 currently) levels = 7 ; longitude = 1152 ; latitude = 721 ; variables: double time(time) ; time:units = "hours since 2003-1-1 1" ; time:_Storage = "chunked" ; time:_ChunkSizes = 1 ; double levels(levels) ; levels:units = "hPa" ; levels:description = "Pressure level" ; levels:type = "plev" ; levels:long_name = "Level" ; levels:positive = "down" ; levels:_Storage = "contiguous" ; double longitude(longitude) ; longitude:units = "degrees_east" ; longitude:long_name = "Longitude" ; longitude:_Storage = "contiguous" ; double latitude(latitude) ; latitude:units = "degrees_north" ; latitude:long_name = "Latitude" ; latitude:_Storage = "contiguous" ; float aodtau(time, levels, latitude, longitude) ; aodtau:comments = "Unknown1 variable comment" ; aodtau:long_name = "aodtau" ; aodtau:units = "" ; aodtau:grid_name = "grid01" ; aodtau:grid_type = "linear" ; aodtau:time_statistic = "instantaneous" ; aodtau:missing_value = 1.e+15f ; aodtau:_Storage = "chunked" ; aodtau:_ChunkSizes = 1, 1, 721, 1152 ; aodtau:_DeflateLevel = 2 ; // global attributes: :Conventions = "COARDS" ; :calendar = "standard" ; :comments = "File" ; :model = "geos/das" ; :center = "gsfc" ; :_Format = "netCDF-4" ; } ga-> q config Config: v2.0.a7.oga.3 little-endian readline printim grib2 netcdf hdf4-sds hdf5 opendap-grids,stn athena geotiff Grid Analysis and Display System (GrADS) Version 2.0.a7.oga.3 Copyright (c) 1988-2009 by Brian Doty and the Institute for Global Environment and Society (IGES) This program is distributed WITHOUT ANY WARRANTY See file COPYRIGHT for more information. Built Thu Oct 29 17:57:08 EDT 2009 for x86_64-unknown-linux-gnu This version of GrADS has been configured with the following options: o Built on a LITTLE ENDIAN machine o Command line editing ENABLED http://tiswww.case.edu/php/chet/readline/rltop.html o printim command for image output ENABLED http://www.zlib.net http://www.libpng.org/pub/png/libpng.html http://www.libgd.org/Main_Page o GRIB2 interface ENABLED http://www.ijg.org http://www.ece.uvic.ca/~mdadams/jasper http://www.nco.ncep.noaa.gov/pmb/codes/GRIB2 g2clib-1.0.5 o NetCDF interface ENABLED http://www.opendap.org libnc-dap 4.0.1-beta3-snapshot2009021712 of Mar 3 2009 14:13:33 $ o HDF interface ENABLED http://hdfgroup.org HDF 4.2r3 HDF5 1.8.2 o Athena Widget GUI ENABLED o OPeNDAP gridded data interface ENABLED http://www.opendap.org libdap 3.7.10 o OPeNDAP station data interface ENABLED http://iges.org/grads/gadoc/supplibs.html libgadap 2.0.oga.1 o GeoTIFF and KML output ENABLED http://www.libtiff.org http://geotiff.osgeo.org For additional information please consult http://iges.org/grads On Jul 12, 2010, at 4:51 PM, Jennifer Adams wrote: Could you please send the output from ncdump -hs (the s is for compression info, since you have netcdf-4 files). Also send the output from 'q config' and the specs of the OS you are running on. These things are important for solving every problem. --Jennifer On Jul 12, 2010, at 4:42 PM, Colarco, Peter R. (GSFC-6133) wrote: Hi- I am running opengrads 2.0.a7.oga.3/x86_64. I have a very simple data descriptor file (below) to template a set of large-ish files (gridded 1152 x 721 x 7 points). When I simply "sdfopen" the first file and plot the first variable/first time/first level, I get my result essentially immediately. When I instead "xdfopen" the data descriptor file and try to plot the same, it takes some time (~10 sec) to plot. When I repeat the same sort of thing but operate on several times the difference in performance between the two methods is of course very noticeable. The issue seems to be in the "options template" line below; taking that out and explicitly putting the first file in I can "xdfopen" the data descriptor file and plot the first variable essentially instantly. Additional metadata in the data descriptor file (e.g., from make_ctl.sh) does not help or matter as far as I can tell. Can anyone suggest a solution to this problem? Am I doing something weird or wrong here? Data Descriptor File: dset /path/to/my/data/Y2003/M01/MYD04_L2_ocn.aero_tc8_051.qawt.%y4%m2%d2.nc4 options template tdef time 248 linear 0z01jan2003 3hr Thank you, Pete Colarco -------------------------------------------------------------------- Peter Colarco NASA GSFC Code 613.3 NASA Goddard Space Flight Center Greenbelt, MD 20771 301.614.6382 (ph) 301.614.5903 (fax) peter.r.colarco at nasa.gov http://hyperion.gsfc.nasa.gov/People/Colarco -------------------------------------------------------------------- _______________________________________________ gradsusr mailing list gradsusr at gradsusr.org http://gradsusr.org/mailman/listinfo/gradsusr -- Jennifer M. Adams IGES/COLA 4041 Powder Mill Road, Suite 302 Calverton, MD 20705 jma at cola.iges.org -------------------------------------------------------------------- Peter Colarco NASA GSFC Code 613.3 NASA Goddard Space Flight Center Greenbelt, MD 20771 301.614.6382 (ph) 301.614.5903 (fax) peter.r.colarco at nasa.gov http://hyperion.gsfc.nasa.gov/People/Colarco -------------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100712/29c4a173/attachment.html From devdas.pnr at gmail.com Tue Jul 13 00:56:22 2010 From: devdas.pnr at gmail.com (sudev das M P) Date: Tue, 13 Jul 2010 10:26:22 +0530 Subject: [gradsusr] Subscript and superscript In-Reply-To: References: Message-ID: Hai, Thanks sudev On Mon, Jul 12, 2010 at 8:06 PM, MY wrote: > sorry, please use "title" instead of "string" ^_^ > > 2010/7/12 MY : > > Hi, Sudev, > > > > 'draw string Nm`a-2`n' ;* superscript > > > > 'draw string N`bm`n' ;* subscript > > > > Please test them. > > Good luck! > > > > MY > > > > -- > > ++++++++++++++++++++++++++++++++++++++++++++++++++++ > > YING, Ming > > Shanghai Typhoon Institute of China Meteorological Administration > > 166 Puxi Road, Xuhui District, Shanghai, 200030 > > PR China > > ++++++++++++++++++++++++++++++++++++++++++++++++++++ > > > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100713/770d50db/attachment-0001.html From xhweiq at gmail.com Tue Jul 13 04:32:38 2010 From: xhweiq at gmail.com (Edward) Date: Tue, 13 Jul 2010 10:32:38 +0200 Subject: [gradsusr] Can I use 'set fwrite' to output station data? Message-ID: hi, Gradsusr, I have a problem when I want to output the station data, which is produced by gr2stn(salt, lon,lat) from grid data. For example, 'open model.ctl'; ;* 1X1 grid data 'set z 1 13'; 'set gxout fwrite';'set fwrite aa.dat'; 'd gr2stn(salt, 336,25)'; 'disable fwrite'; What I expect is a data file (aa.dat) which contains one series generated by gr2stn(salt,336,25) from zlevs 1-13. However, it doesn't work. I tried to get hints from userguide, but no results about that "set gxout fwrite" doens't work for station data. Anybody has ideas? thanks. Edward -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100713/9d966eea/attachment.html From xhweiq at gmail.com Tue Jul 13 05:55:36 2010 From: xhweiq at gmail.com (Edward) Date: Tue, 13 Jul 2010 11:55:36 +0200 Subject: [gradsusr] arbitrary section calculation with 'gr2stn' and 'collect' in grads 2.0.a7. oga.3 Message-ID: hi, Gradsusr, There are two questions in this email. The first, Following the instructions about plotting variable along arbitary section using gr2stn and collect, I found a bug(?) in grads new versions. The same scripts I used before and worked well with the old version (grads 1.9), gave wrong figure under grads2.0.a3 and a7. ( didn't test for the lastest version since I only have windows and Sun machine). It's no problem to directly display gr2stn results, but it's wrong to display 'collect 1 gr2stn(temp, lon,lat)' which is the collection of many single points. It seems the error is on the undefine value, which is set to zero and used to perform the interpolation with normal values. Second, The results of 'collect 1 gr2stn(temp, lon,lat)' (for a arbitrary section) only has X and Z dimensions in Grads, which means the figure is for Lon-Depth. How can I do if I want to get LAT-Depth figure? Thanks Edward -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100713/c2b51e63/attachment.html From jma at cola.iges.org Tue Jul 13 08:11:54 2010 From: jma at cola.iges.org (Jennifer Adams) Date: Tue, 13 Jul 2010 08:11:54 -0400 Subject: [gradsusr] Performance hit with data descriptor files? In-Reply-To: References: <858FB416-83BF-44C9-A63A-9B1ED9E258B6@nasa.gov> Message-ID: Pete, The short answer is that you should upgrade to 2.0.a8. A whole lot of critical changes were implemented in the newer versions (of GrADS and the netCDF library) to improve performance when handling compressed netcdf files. Please read the doc page on compression (http://iges.org/grads/gadoc/compression.html ) for a full explanation of the factors at play. When the cache settings are appropriate (which they are almost certainly not in your build), you will find that the I/O for compressed netcdf can be a whole lot faster than classic netcdf and flat binary data sets. --Jennifer On Jul 12, 2010, at 9:26 PM, Colarco, Peter R. (GSFC-6133) wrote: > Hi- > > Apologies, here is the requested information. > > Thanks, > Pete > > > OS: > % uname -a > Linux redacted.gsfc.nasa.gov 2.6.32-gentoo-r7 #2 SMP Thu Jul 8 > 11:39:03 EDT 2010 x86_64 Intel(R) Xeon(R) CPU X5460 @ 3.16GHz > GenuineIntel GNU/Linux > > File Information: > % ncdump -hs /path/to/file/Y2003/M01/MYD04_L2_ocn.aero_tc8_051.qawt. > 20030101.nc4 > netcdf MYD04_L2_ocn.aero_tc8_051.qawt.20030101 { > dimensions: > time = UNLIMITED ; // (8 currently) > levels = 7 ; > longitude = 1152 ; > latitude = 721 ; > variables: > double time(time) ; > time:units = "hours since 2003-1-1 1" ; > time:_Storage = "chunked" ; > time:_ChunkSizes = 1 ; > double levels(levels) ; > levels:units = "hPa" ; > levels:description = "Pressure level" ; > levels:type = "plev" ; > levels:long_name = "Level" ; > levels:positive = "down" ; > levels:_Storage = "contiguous" ; > double longitude(longitude) ; > longitude:units = "degrees_east" ; > longitude:long_name = "Longitude" ; > longitude:_Storage = "contiguous" ; > double latitude(latitude) ; > latitude:units = "degrees_north" ; > latitude:long_name = "Latitude" ; > latitude:_Storage = "contiguous" ; > float aodtau(time, levels, latitude, longitude) ; > aodtau:comments = "Unknown1 variable comment" ; > aodtau:long_name = "aodtau" ; > aodtau:units = "" ; > aodtau:grid_name = "grid01" ; > aodtau:grid_type = "linear" ; > aodtau:time_statistic = "instantaneous" ; > aodtau:missing_value = 1.e+15f ; > aodtau:_Storage = "chunked" ; > aodtau:_ChunkSizes = 1, 1, 721, 1152 ; > aodtau:_DeflateLevel = 2 ; > > // global attributes: > :Conventions = "COARDS" ; > :calendar = "standard" ; > :comments = "File" ; > :model = "geos/das" ; > :center = "gsfc" ; > :_Format = "netCDF-4" ; > } > > > > ga-> q config > Config: v2.0.a7.oga.3 little-endian readline printim grib2 netcdf > hdf4-sds hdf5 opendap-grids,stn athena geotiff > Grid Analysis and Display System (GrADS) Version 2.0.a7.oga.3 > Copyright (c) 1988-2009 by Brian Doty and the > Institute for Global Environment and Society (IGES) > This program is distributed WITHOUT ANY WARRANTY > See file COPYRIGHT for more information. > > Built Thu Oct 29 17:57:08 EDT 2009 for x86_64-unknown-linux-gnu > > This version of GrADS has been configured with the following options: > o Built on a LITTLE ENDIAN machine > o Command line editing ENABLED > http://tiswww.case.edu/php/chet/readline/rltop.html > o printim command for image output ENABLED > http://www.zlib.net > http://www.libpng.org/pub/png/libpng.html > http://www.libgd.org/Main_Page > o GRIB2 interface ENABLED > http://www.ijg.org > http://www.ece.uvic.ca/~mdadams/jasper > http://www.nco.ncep.noaa.gov/pmb/codes/GRIB2 > g2clib-1.0.5 > o NetCDF interface ENABLED > http://www.opendap.org > libnc-dap 4.0.1-beta3-snapshot2009021712 of Mar 3 2009 > 14:13:33 $ > o HDF interface ENABLED > http://hdfgroup.org > HDF 4.2r3 > HDF5 1.8.2 > o Athena Widget GUI ENABLED > o OPeNDAP gridded data interface ENABLED > http://www.opendap.org > libdap 3.7.10 > o OPeNDAP station data interface ENABLED > http://iges.org/grads/gadoc/supplibs.html > libgadap 2.0.oga.1 > o GeoTIFF and KML output ENABLED > http://www.libtiff.org > http://geotiff.osgeo.org > > For additional information please consult http://iges.org/grads > > On Jul 12, 2010, at 4:51 PM, Jennifer Adams wrote: > >> Could you please send the output from ncdump -hs (the s is for >> compression info, since you have netcdf-4 files). Also send the >> output from 'q config' and the specs of the OS you are running on. >> These things are important for solving every problem. >> >> --Jennifer >> >> >> On Jul 12, 2010, at 4:42 PM, Colarco, Peter R. (GSFC-6133) wrote: >> >>> Hi- >>> >>> I am running opengrads 2.0.a7.oga.3/x86_64. >>> >>> I have a very simple data descriptor file (below) to template a >>> set of large-ish files (gridded 1152 x 721 x 7 points). When I >>> simply "sdfopen" the first file and plot the first variable/first >>> time/first level, I get my result essentially immediately. When I >>> instead "xdfopen" the data descriptor file and try to plot the >>> same, it takes some time (~10 sec) to plot. When I repeat the >>> same sort of thing but operate on several times the difference in >>> performance between the two methods is of course very noticeable. >>> >>> The issue seems to be in the "options template" line below; taking >>> that out and explicitly putting the first file in I can "xdfopen" >>> the data descriptor file and plot the first variable essentially >>> instantly. Additional metadata in the data descriptor file (e.g., >>> from make_ctl.sh) does not help or matter as far as I can tell. >>> >>> Can anyone suggest a solution to this problem? Am I doing >>> something weird or wrong here? >>> >>> Data Descriptor File: >>> >>> dset /path/to/my/data/Y2003/M01/MYD04_L2_ocn.aero_tc8_051.qawt. >>> %y4%m2%d2.nc4 >>> options template >>> tdef time 248 linear 0z01jan2003 3hr >>> >>> Thank you, >>> Pete Colarco >>> >>> >>> >>> -------------------------------------------------------------------- >>> Peter Colarco >>> NASA GSFC >>> Code 613.3 >>> NASA Goddard Space Flight Center >>> Greenbelt, MD 20771 >>> 301.614.6382 (ph) >>> 301.614.5903 (fax) >>> >>> peter.r.colarco at nasa.gov >>> http://hyperion.gsfc.nasa.gov/People/Colarco >>> -------------------------------------------------------------------- >>> >>> >>> >>> >>> _______________________________________________ >>> gradsusr mailing list >>> gradsusr at gradsusr.org >>> http://gradsusr.org/mailman/listinfo/gradsusr >> >> -- >> Jennifer M. Adams >> IGES/COLA >> 4041 Powder Mill Road, Suite 302 >> Calverton, MD 20705 >> jma at cola.iges.org >> >> >> >> > > -------------------------------------------------------------------- > Peter Colarco > NASA GSFC > Code 613.3 > NASA Goddard Space Flight Center > Greenbelt, MD 20771 > 301.614.6382 (ph) > 301.614.5903 (fax) > > peter.r.colarco at nasa.gov > http://hyperion.gsfc.nasa.gov/People/Colarco > -------------------------------------------------------------------- > > > > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr -- Jennifer M. Adams IGES/COLA 4041 Powder Mill Road, Suite 302 Calverton, MD 20705 jma at cola.iges.org -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100713/dc3e2b21/attachment-0001.html From mubashardogar at gmail.com Tue Jul 13 16:52:25 2010 From: mubashardogar at gmail.com (Mubashar Dogar) Date: Tue, 13 Jul 2010 23:52:25 +0300 Subject: [gradsusr] gradsusr Digest, Vol 5, Issue 31 In-Reply-To: References: Message-ID: Hi GrADS users, I have monly data file and want to extract seasonal means to check the trend in my data say surface temperature. Is there any script that or function in GrADS that can be used to compute seasonal means or monthly means of the data? Regards, Mubashar On Tue, Jul 13, 2010 at 3:11 PM, wrote: > Send gradsusr mailing list submissions to > gradsusr at gradsusr.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://gradsusr.org/mailman/listinfo/gradsusr > or, via email, send a message with subject or body 'help' to > gradsusr-request at gradsusr.org > > You can reach the person managing the list at > gradsusr-owner at gradsusr.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of gradsusr digest..." > > > Today's Topics: > > 1. Can I use 'set fwrite' to output station data? (Edward) > 2. arbitrary section calculation with 'gr2stn' and 'collect' in > grads 2.0.a7. oga.3 (Edward) > 3. Re: Performance hit with data descriptor files? (Jennifer Adams) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Tue, 13 Jul 2010 10:32:38 +0200 > From: Edward > Subject: [gradsusr] Can I use 'set fwrite' to output station data? > To: gradsusr at gradsusr.org > Message-ID: > > Content-Type: text/plain; charset="iso-8859-1" > > hi, Gradsusr, > > I have a problem when I want to output the station data, which is produced > by gr2stn(salt, lon,lat) from grid data. > > For example, > > 'open model.ctl'; ;* 1X1 grid data > 'set z 1 13'; > 'set gxout fwrite';'set fwrite aa.dat'; > 'd gr2stn(salt, 336,25)'; > 'disable fwrite'; > > What I expect is a data file (aa.dat) which contains one series generated > by > gr2stn(salt,336,25) from zlevs 1-13. However, it doesn't work. > > I tried to get hints from userguide, but no results about that "set gxout > fwrite" doens't work for station data. > > Anybody has ideas? thanks. > > > Edward > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > http://gradsusr.org/pipermail/gradsusr/attachments/20100713/9d966eea/attachment-0001.html > > ------------------------------ > > Message: 2 > Date: Tue, 13 Jul 2010 11:55:36 +0200 > From: Edward > Subject: [gradsusr] arbitrary section calculation with 'gr2stn' and > 'collect' in grads 2.0.a7. oga.3 > To: gradsusr at gradsusr.org > Message-ID: > > Content-Type: text/plain; charset="iso-8859-1" > > hi, Gradsusr, > > There are two questions in this email. > > The first, > > Following the instructions about plotting variable along arbitary section > using gr2stn and collect, I found a bug(?) in grads new versions. The same > scripts I used before and worked well with the old version (grads 1.9), > gave wrong figure under grads2.0.a3 and a7. ( didn't test for the lastest > version since I only have windows and Sun machine). > > It's no problem to directly display gr2stn results, but it's wrong to > display 'collect 1 gr2stn(temp, lon,lat)' which is the collection of many > single points. It seems the error is on the undefine value, which is set to > zero and used to perform the interpolation with normal values. > > > Second, > > The results of 'collect 1 gr2stn(temp, lon,lat)' (for a arbitrary section) > only has X and Z dimensions in Grads, which means the figure is for > Lon-Depth. How can I do if I want to get LAT-Depth figure? > > > Thanks > > > Edward > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > http://gradsusr.org/pipermail/gradsusr/attachments/20100713/c2b51e63/attachment-0001.html > > ------------------------------ > > Message: 3 > Date: Tue, 13 Jul 2010 08:11:54 -0400 > From: Jennifer Adams > Subject: Re: [gradsusr] Performance hit with data descriptor files? > To: GrADS Users Forum > Message-ID: > Content-Type: text/plain; charset="us-ascii" > > Pete, > The short answer is that you should upgrade to 2.0.a8. A whole lot of > critical changes were implemented in the newer versions (of GrADS and > the netCDF library) to improve performance when handling compressed > netcdf files. Please read the doc page on compression ( > http://iges.org/grads/gadoc/compression.html > ) for a full explanation of the factors at play. When the cache > settings are appropriate (which they are almost certainly not in your > build), you will find that the I/O for compressed netcdf can be a > whole lot faster than classic netcdf and flat binary data sets. > --Jennifer > > > On Jul 12, 2010, at 9:26 PM, Colarco, Peter R. (GSFC-6133) wrote: > > > Hi- > > > > Apologies, here is the requested information. > > > > Thanks, > > Pete > > > > > > OS: > > % uname -a > > Linux redacted.gsfc.nasa.gov 2.6.32-gentoo-r7 #2 SMP Thu Jul 8 > > 11:39:03 EDT 2010 x86_64 Intel(R) Xeon(R) CPU X5460 @ 3.16GHz > > GenuineIntel GNU/Linux > > > > File Information: > > % ncdump -hs /path/to/file/Y2003/M01/MYD04_L2_ocn.aero_tc8_051.qawt. > > 20030101.nc4 > > netcdf MYD04_L2_ocn.aero_tc8_051.qawt.20030101 { > > dimensions: > > time = UNLIMITED ; // (8 currently) > > levels = 7 ; > > longitude = 1152 ; > > latitude = 721 ; > > variables: > > double time(time) ; > > time:units = "hours since 2003-1-1 1" ; > > time:_Storage = "chunked" ; > > time:_ChunkSizes = 1 ; > > double levels(levels) ; > > levels:units = "hPa" ; > > levels:description = "Pressure level" ; > > levels:type = "plev" ; > > levels:long_name = "Level" ; > > levels:positive = "down" ; > > levels:_Storage = "contiguous" ; > > double longitude(longitude) ; > > longitude:units = "degrees_east" ; > > longitude:long_name = "Longitude" ; > > longitude:_Storage = "contiguous" ; > > double latitude(latitude) ; > > latitude:units = "degrees_north" ; > > latitude:long_name = "Latitude" ; > > latitude:_Storage = "contiguous" ; > > float aodtau(time, levels, latitude, longitude) ; > > aodtau:comments = "Unknown1 variable comment" ; > > aodtau:long_name = "aodtau" ; > > aodtau:units = "" ; > > aodtau:grid_name = "grid01" ; > > aodtau:grid_type = "linear" ; > > aodtau:time_statistic = "instantaneous" ; > > aodtau:missing_value = 1.e+15f ; > > aodtau:_Storage = "chunked" ; > > aodtau:_ChunkSizes = 1, 1, 721, 1152 ; > > aodtau:_DeflateLevel = 2 ; > > > > // global attributes: > > :Conventions = "COARDS" ; > > :calendar = "standard" ; > > :comments = "File" ; > > :model = "geos/das" ; > > :center = "gsfc" ; > > :_Format = "netCDF-4" ; > > } > > > > > > > > ga-> q config > > Config: v2.0.a7.oga.3 little-endian readline printim grib2 netcdf > > hdf4-sds hdf5 opendap-grids,stn athena geotiff > > Grid Analysis and Display System (GrADS) Version 2.0.a7.oga.3 > > Copyright (c) 1988-2009 by Brian Doty and the > > Institute for Global Environment and Society (IGES) > > This program is distributed WITHOUT ANY WARRANTY > > See file COPYRIGHT for more information. > > > > Built Thu Oct 29 17:57:08 EDT 2009 for x86_64-unknown-linux-gnu > > > > This version of GrADS has been configured with the following options: > > o Built on a LITTLE ENDIAN machine > > o Command line editing ENABLED > > http://tiswww.case.edu/php/chet/readline/rltop.html > > o printim command for image output ENABLED > > http://www.zlib.net > > http://www.libpng.org/pub/png/libpng.html > > http://www.libgd.org/Main_Page > > o GRIB2 interface ENABLED > > http://www.ijg.org > > http://www.ece.uvic.ca/~mdadams/jasper > > http://www.nco.ncep.noaa.gov/pmb/codes/GRIB2 > > g2clib-1.0.5 > > o NetCDF interface ENABLED > > http://www.opendap.org > > libnc-dap 4.0.1-beta3-snapshot2009021712 of Mar 3 2009 > > 14:13:33 $ > > o HDF interface ENABLED > > http://hdfgroup.org > > HDF 4.2r3 > > HDF5 1.8.2 > > o Athena Widget GUI ENABLED > > o OPeNDAP gridded data interface ENABLED > > http://www.opendap.org > > libdap 3.7.10 > > o OPeNDAP station data interface ENABLED > > http://iges.org/grads/gadoc/supplibs.html > > libgadap 2.0.oga.1 > > o GeoTIFF and KML output ENABLED > > http://www.libtiff.org > > http://geotiff.osgeo.org > > > > For additional information please consult http://iges.org/grads > > > > On Jul 12, 2010, at 4:51 PM, Jennifer Adams wrote: > > > >> Could you please send the output from ncdump -hs (the s is for > >> compression info, since you have netcdf-4 files). Also send the > >> output from 'q config' and the specs of the OS you are running on. > >> These things are important for solving every problem. > >> > >> --Jennifer > >> > >> > >> On Jul 12, 2010, at 4:42 PM, Colarco, Peter R. (GSFC-6133) wrote: > >> > >>> Hi- > >>> > >>> I am running opengrads 2.0.a7.oga.3/x86_64. > >>> > >>> I have a very simple data descriptor file (below) to template a > >>> set of large-ish files (gridded 1152 x 721 x 7 points). When I > >>> simply "sdfopen" the first file and plot the first variable/first > >>> time/first level, I get my result essentially immediately. When I > >>> instead "xdfopen" the data descriptor file and try to plot the > >>> same, it takes some time (~10 sec) to plot. When I repeat the > >>> same sort of thing but operate on several times the difference in > >>> performance between the two methods is of course very noticeable. > >>> > >>> The issue seems to be in the "options template" line below; taking > >>> that out and explicitly putting the first file in I can "xdfopen" > >>> the data descriptor file and plot the first variable essentially > >>> instantly. Additional metadata in the data descriptor file (e.g., > >>> from make_ctl.sh) does not help or matter as far as I can tell. > >>> > >>> Can anyone suggest a solution to this problem? Am I doing > >>> something weird or wrong here? > >>> > >>> Data Descriptor File: > >>> > >>> dset /path/to/my/data/Y2003/M01/MYD04_L2_ocn.aero_tc8_051.qawt. > >>> %y4%m2%d2.nc4 > >>> options template > >>> tdef time 248 linear 0z01jan2003 3hr > >>> > >>> Thank you, > >>> Pete Colarco > >>> > >>> > >>> > >>> -------------------------------------------------------------------- > >>> Peter Colarco > >>> NASA GSFC > >>> Code 613.3 > >>> NASA Goddard Space Flight Center > >>> Greenbelt, MD 20771 > >>> 301.614.6382 (ph) > >>> 301.614.5903 (fax) > >>> > >>> peter.r.colarco at nasa.gov > >>> http://hyperion.gsfc.nasa.gov/People/Colarco > >>> -------------------------------------------------------------------- > >>> > >>> > >>> > >>> > >>> _______________________________________________ > >>> gradsusr mailing list > >>> gradsusr at gradsusr.org > >>> http://gradsusr.org/mailman/listinfo/gradsusr > >> > >> -- > >> Jennifer M. Adams > >> IGES/COLA > >> 4041 Powder Mill Road, Suite 302 > >> Calverton, MD 20705 > >> jma at cola.iges.org > >> > >> > >> > >> > > > > -------------------------------------------------------------------- > > Peter Colarco > > NASA GSFC > > Code 613.3 > > NASA Goddard Space Flight Center > > Greenbelt, MD 20771 > > 301.614.6382 (ph) > > 301.614.5903 (fax) > > > > peter.r.colarco at nasa.gov > > http://hyperion.gsfc.nasa.gov/People/Colarco > > -------------------------------------------------------------------- > > > > > > > > > > _______________________________________________ > > gradsusr mailing list > > gradsusr at gradsusr.org > > http://gradsusr.org/mailman/listinfo/gradsusr > > -- > Jennifer M. Adams > IGES/COLA > 4041 Powder Mill Road, Suite 302 > Calverton, MD 20705 > jma at cola.iges.org > > > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > http://gradsusr.org/pipermail/gradsusr/attachments/20100713/dc3e2b21/attachment.html > > ------------------------------ > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > > > End of gradsusr Digest, Vol 5, Issue 31 > *************************************** > -- Muhammad Mubashar Ahmad Dogar Scientific Officer (Climatology Section), Global Change Impact Studies Centre (GCISC), NCP complex, Quaid-e-Azam University Campus, Shahdra road, Islamabad, Pakistan. Tel: +92519230226 Mob:+923315144169 email: mubashardogar at yahoo.com mubashar.ahmad at gcisc.org.pk -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100713/f6f705f3/attachment-0001.html From Charles.Seman at noaa.gov Tue Jul 13 20:10:10 2010 From: Charles.Seman at noaa.gov (Charles Seman) Date: Tue, 13 Jul 2010 20:10:10 -0400 Subject: [gradsusr] gradsusr Digest, Vol 5, Issue 31 In-Reply-To: References: Message-ID: <4C3D0062.3090509@noaa.gov> Mubashar, Maybe http://grads.iges.org/grads/gadoc/gradcomdmodify.html could be of some help? Chuck Mubashar Dogar wrote: > Hi GrADS users, > > I have monly data file and want to extract seasonal means to check > the trend in my data say surface temperature. Is there any script that > or function in GrADS that can be used to compute seasonal means or > monthly means of the data? > > Regards, > > Mubashar > > On Tue, Jul 13, 2010 at 3:11 PM, > wrote: > > Send gradsusr mailing list submissions to > gradsusr at gradsusr.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://gradsusr.org/mailman/listinfo/gradsusr > or, via email, send a message with subject or body 'help' to > gradsusr-request at gradsusr.org > > > You can reach the person managing the list at > gradsusr-owner at gradsusr.org > > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of gradsusr digest..." > > > Today's Topics: > > 1. Can I use 'set fwrite' to output station data? (Edward) > 2. arbitrary section calculation with 'gr2stn' and 'collect' in > grads 2.0.a7. oga.3 (Edward) > 3. Re: Performance hit with data descriptor files? (Jennifer Adams) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Tue, 13 Jul 2010 10:32:38 +0200 > From: Edward > > Subject: [gradsusr] Can I use 'set fwrite' to output station data? > To: gradsusr at gradsusr.org > Message-ID: > > > > Content-Type: text/plain; charset="iso-8859-1" > > hi, Gradsusr, > > I have a problem when I want to output the station data, which is > produced > by gr2stn(salt, lon,lat) from grid data. > > For example, > > 'open model.ctl'; ;* 1X1 grid data > 'set z 1 13'; > 'set gxout fwrite';'set fwrite aa.dat'; > 'd gr2stn(salt, 336,25)'; > 'disable fwrite'; > > What I expect is a data file (aa.dat) which contains one series > generated by > gr2stn(salt,336,25) from zlevs 1-13. However, it doesn't work. > > I tried to get hints from userguide, but no results about that > "set gxout > fwrite" doens't work for station data. > > Anybody has ideas? thanks. > > > Edward > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > http://gradsusr.org/pipermail/gradsusr/attachments/20100713/9d966eea/attachment-0001.html > > ------------------------------ > > Message: 2 > Date: Tue, 13 Jul 2010 11:55:36 +0200 > From: Edward > > Subject: [gradsusr] arbitrary section calculation with 'gr2stn' and > 'collect' in grads 2.0.a7. oga.3 > To: gradsusr at gradsusr.org > Message-ID: > > > > Content-Type: text/plain; charset="iso-8859-1" > > hi, Gradsusr, > > There are two questions in this email. > > The first, > > Following the instructions about plotting variable along arbitary > section > using gr2stn and collect, I found a bug(?) in grads new versions. > The same > scripts I used before and worked well with the old version (grads > 1.9), > gave wrong figure under grads2.0.a3 and a7. ( didn't test for the > lastest > version since I only have windows and Sun machine). > > It's no problem to directly display gr2stn results, but it's wrong to > display 'collect 1 gr2stn(temp, lon,lat)' which is the collection > of many > single points. It seems the error is on the undefine value, which > is set to > zero and used to perform the interpolation with normal values. > > > Second, > > The results of 'collect 1 gr2stn(temp, lon,lat)' (for a arbitrary > section) > only has X and Z dimensions in Grads, which means the figure is for > Lon-Depth. How can I do if I want to get LAT-Depth figure? > > > Thanks > > > Edward > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > http://gradsusr.org/pipermail/gradsusr/attachments/20100713/c2b51e63/attachment-0001.html > > ------------------------------ > > Message: 3 > Date: Tue, 13 Jul 2010 08:11:54 -0400 > From: Jennifer Adams > > Subject: Re: [gradsusr] Performance hit with data descriptor files? > To: GrADS Users Forum > > Message-ID: > > Content-Type: text/plain; charset="us-ascii" > > Pete, > The short answer is that you should upgrade to 2.0.a8. A whole lot of > critical changes were implemented in the newer versions (of GrADS and > the netCDF library) to improve performance when handling compressed > netcdf files. Please read the doc page on compression > (http://iges.org/grads/gadoc/compression.html > ) for a full explanation of the factors at play. When the cache > settings are appropriate (which they are almost certainly not in your > build), you will find that the I/O for compressed netcdf can be a > whole lot faster than classic netcdf and flat binary data sets. > --Jennifer > > > On Jul 12, 2010, at 9:26 PM, Colarco, Peter R. (GSFC-6133) wrote: > > > Hi- > > > > Apologies, here is the requested information. > > > > Thanks, > > Pete > > > > > > OS: > > % uname -a > > Linux redacted.gsfc.nasa.gov > 2.6.32-gentoo-r7 #2 SMP Thu Jul 8 > > 11:39:03 EDT 2010 x86_64 Intel(R) Xeon(R) CPU X5460 @ 3.16GHz > > GenuineIntel GNU/Linux > > > > File Information: > > % ncdump -hs /path/to/file/Y2003/M01/MYD04_L2_ocn.aero_tc8_051.qawt. > > 20030101.nc4 > > netcdf MYD04_L2_ocn.aero_tc8_051.qawt.20030101 { > > dimensions: > > time = UNLIMITED ; // (8 currently) > > levels = 7 ; > > longitude = 1152 ; > > latitude = 721 ; > > variables: > > double time(time) ; > > time:units = "hours since 2003-1-1 1" ; > > time:_Storage = "chunked" ; > > time:_ChunkSizes = 1 ; > > double levels(levels) ; > > levels:units = "hPa" ; > > levels:description = "Pressure level" ; > > levels:type = "plev" ; > > levels:long_name = "Level" ; > > levels:positive = "down" ; > > levels:_Storage = "contiguous" ; > > double longitude(longitude) ; > > longitude:units = "degrees_east" ; > > longitude:long_name = "Longitude" ; > > longitude:_Storage = "contiguous" ; > > double latitude(latitude) ; > > latitude:units = "degrees_north" ; > > latitude:long_name = "Latitude" ; > > latitude:_Storage = "contiguous" ; > > float aodtau(time, levels, latitude, longitude) ; > > aodtau:comments = "Unknown1 variable comment" ; > > aodtau:long_name = "aodtau" ; > > aodtau:units = "" ; > > aodtau:grid_name = "grid01" ; > > aodtau:grid_type = "linear" ; > > aodtau:time_statistic = "instantaneous" ; > > aodtau:missing_value = 1.e+15f ; > > aodtau:_Storage = "chunked" ; > > aodtau:_ChunkSizes = 1, 1, 721, 1152 ; > > aodtau:_DeflateLevel = 2 ; > > > > // global attributes: > > :Conventions = "COARDS" ; > > :calendar = "standard" ; > > :comments = "File" ; > > :model = "geos/das" ; > > :center = "gsfc" ; > > :_Format = "netCDF-4" ; > > } > > > > > > > > ga-> q config > > Config: v2.0.a7.oga.3 little-endian readline printim grib2 netcdf > > hdf4-sds hdf5 opendap-grids,stn athena geotiff > > Grid Analysis and Display System (GrADS) Version 2.0.a7.oga.3 > > Copyright (c) 1988-2009 by Brian Doty and the > > Institute for Global Environment and Society (IGES) > > This program is distributed WITHOUT ANY WARRANTY > > See file COPYRIGHT for more information. > > > > Built Thu Oct 29 17:57:08 EDT 2009 for x86_64-unknown-linux-gnu > > > > This version of GrADS has been configured with the following > options: > > o Built on a LITTLE ENDIAN machine > > o Command line editing ENABLED > > http://tiswww.case.edu/php/chet/readline/rltop.html > > o printim command for image output ENABLED > > http://www.zlib.net > > http://www.libpng.org/pub/png/libpng.html > > http://www.libgd.org/Main_Page > > o GRIB2 interface ENABLED > > http://www.ijg.org > > http://www.ece.uvic.ca/~mdadams/jasper > > > http://www.nco.ncep.noaa.gov/pmb/codes/GRIB2 > > g2clib-1.0.5 > > o NetCDF interface ENABLED > > http://www.opendap.org > > libnc-dap 4.0.1-beta3-snapshot2009021712 of Mar 3 2009 > > 14:13:33 $ > > o HDF interface ENABLED > > http://hdfgroup.org > > HDF 4.2r3 > > HDF5 1.8.2 > > o Athena Widget GUI ENABLED > > o OPeNDAP gridded data interface ENABLED > > http://www.opendap.org > > libdap 3.7.10 > > o OPeNDAP station data interface ENABLED > > http://iges.org/grads/gadoc/supplibs.html > > libgadap 2.0.oga.1 > > o GeoTIFF and KML output ENABLED > > http://www.libtiff.org > > http://geotiff.osgeo.org > > > > For additional information please consult http://iges.org/grads > > > > On Jul 12, 2010, at 4:51 PM, Jennifer Adams wrote: > > > >> Could you please send the output from ncdump -hs (the s is for > >> compression info, since you have netcdf-4 files). Also send the > >> output from 'q config' and the specs of the OS you are running on. > >> These things are important for solving every problem. > >> > >> --Jennifer > >> > >> > >> On Jul 12, 2010, at 4:42 PM, Colarco, Peter R. (GSFC-6133) wrote: > >> > >>> Hi- > >>> > >>> I am running opengrads 2.0.a7.oga.3/x86_64. > >>> > >>> I have a very simple data descriptor file (below) to template a > >>> set of large-ish files (gridded 1152 x 721 x 7 points). When I > >>> simply "sdfopen" the first file and plot the first variable/first > >>> time/first level, I get my result essentially immediately. When I > >>> instead "xdfopen" the data descriptor file and try to plot the > >>> same, it takes some time (~10 sec) to plot. When I repeat the > >>> same sort of thing but operate on several times the difference in > >>> performance between the two methods is of course very noticeable. > >>> > >>> The issue seems to be in the "options template" line below; taking > >>> that out and explicitly putting the first file in I can "xdfopen" > >>> the data descriptor file and plot the first variable essentially > >>> instantly. Additional metadata in the data descriptor file (e.g., > >>> from make_ctl.sh) does not help or matter as far as I can tell. > >>> > >>> Can anyone suggest a solution to this problem? Am I doing > >>> something weird or wrong here? > >>> > >>> Data Descriptor File: > >>> > >>> dset /path/to/my/data/Y2003/M01/MYD04_L2_ocn.aero_tc8_051.qawt. > >>> %y4%m2%d2.nc4 > >>> options template > >>> tdef time 248 linear 0z01jan2003 3hr > >>> > >>> Thank you, > >>> Pete Colarco > >>> > >>> > >>> > >>> > -------------------------------------------------------------------- > >>> Peter Colarco > >>> NASA GSFC > >>> Code 613.3 > >>> NASA Goddard Space Flight Center > >>> Greenbelt, MD 20771 > >>> 301.614.6382 (ph) > >>> 301.614.5903 (fax) > >>> > >>> peter.r.colarco at nasa.gov > >>> http://hyperion.gsfc.nasa.gov/People/Colarco > >>> > -------------------------------------------------------------------- > >>> > >>> > >>> > >>> > >>> _______________________________________________ > >>> gradsusr mailing list > >>> gradsusr at gradsusr.org > >>> http://gradsusr.org/mailman/listinfo/gradsusr > >> > >> -- > >> Jennifer M. Adams > >> IGES/COLA > >> 4041 Powder Mill Road, Suite 302 > >> Calverton, MD 20705 > >> jma at cola.iges.org > >> > >> > >> > >> > > > > -------------------------------------------------------------------- > > Peter Colarco > > NASA GSFC > > Code 613.3 > > NASA Goddard Space Flight Center > > Greenbelt, MD 20771 > > 301.614.6382 (ph) > > 301.614.5903 (fax) > > > > peter.r.colarco at nasa.gov > > http://hyperion.gsfc.nasa.gov/People/Colarco > > -------------------------------------------------------------------- > > > > > > > > > > _______________________________________________ > > gradsusr mailing list > > gradsusr at gradsusr.org > > http://gradsusr.org/mailman/listinfo/gradsusr > > -- > Jennifer M. Adams > IGES/COLA > 4041 Powder Mill Road, Suite 302 > Calverton, MD 20705 > jma at cola.iges.org > > > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > http://gradsusr.org/pipermail/gradsusr/attachments/20100713/dc3e2b21/attachment.html > > ------------------------------ > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > > > End of gradsusr Digest, Vol 5, Issue 31 > *************************************** > > > > > -- > Muhammad Mubashar Ahmad Dogar > Scientific Officer (Climatology Section), > Global Change Impact Studies Centre (GCISC), > NCP complex, Quaid-e-Azam University Campus, > Shahdra road, Islamabad, Pakistan. > Tel: +92519230226 > Mob:+923315144169 > email: mubashardogar at yahoo.com > mubashar.ahmad at gcisc.org.pk > ------------------------------------------------------------------------ > > _______________________________________________ > gradsusr mailing list > gradsusr at gradsusr.org > http://gradsusr.org/mailman/listinfo/gradsusr > -- Please note that Charles.Seman at noaa.gov should be considered my NOAA email address, not cjs at gfdl.noaa.gov. ******************************************************************** Charles Seman Charles.Seman at noaa.gov U.S. Department of Commerce / NOAA / OAR Geophysical Fluid Dynamics Laboratory voice: (609) 452-6547 201 Forrestal Road fax: (609) 987-5063 Princeton, NJ 08540-6649 http://www.gfdl.noaa.gov/~cjs/ ******************************************************************** "The contents of this message are mine personally and do not reflect any official or unofficial position of the United States Federal Government, the United States Department of Commerce, or NOAA." From dasilva at alum.mit.edu Tue Jul 13 21:39:29 2010 From: dasilva at alum.mit.edu (Arlindo da Silva) Date: Tue, 13 Jul 2010 21:39:29 -0400 Subject: [gradsusr] OpenGrADS Bundle 2.0.a8 Released! Message-ID: Dear GrADS Users, We have started uploading to sf.net sources and binaries for the OpenGrADS Bundle based on COLA's *2.0.a8* release: https://sourceforge.net/projects/opengrads/files/ Look under *grads2/2.0.a8.oga.1* The OpenGrADS Bundle is a new way of packaging GrADS builds that is somewhat inspired by my experience with the Win32 Superpacks. The idea is to have a single package that require no (minimum?) configuration and that is easily relocatable (say to a USB memory stick). The structure of an OpenGrADS Bundle is described here: http://opengrads.org/wiki/index.php?title=The_OpenGrADS_Bundle Once you download the tarball take a look at the INSTALL file. You can install it as a Bundle (highly recommended) or simply install the binaries the same way you did in the past. If you would like to build it from sources notice that the OpenGrADS Bundle 2.0.a8 requires *Supplibs v2.2.0* available from: https://sourceforge.net/downloads/opengrads/supplibs/2.2.0/ The Windows build will be available soon, for now only Mac OS X, Linux, FreeBSD and AIX. *Note for Mac OS X users: * ** Unless I hear from you, I am not intending to post a PowerPC build. Let me know if you would need a PPC build of the OpenGrADS Bundle. This OpenGrADS release has improvements in the LATS interface and in several of Mike Fiorino's extensions. We are also deprecating the SHAPEFILE extension as this functionality is now built in GrADS. See the included "Documentation.html" for an in-depth description of the OpenGrADS extensions. See below for additional information on this release. * * Cheers! Arlindo da SIlva On behalf of the OpenGrADS Development team The OpenGrADS Bundle Distribution --------------------------------- http://opengrads.org GrADS Version 2.0.a8 Released 10 July 2010 This OpenGrADS version is based on COLA's 2.0.a8 release which has many new features, including several that were required to support COLA's work with extremely high resolution data sets. COLA's GrADS version 2.0.a8 is now linked with netCDF-4, which supports compressed netCDF files and also has a new OPeNDAP interface for gridded data sets. (This feature had already been included in all OpenGrADS releases since 2.0.a2.) The netCDF-4 support by COLA includes new commands (q cache, q cachesf, set cachesf, set chunksize), new options to 'set sdfwrite' (-nc3/-nc4, -chunk, -zip, -flt/-dbl), and a new descriptor file entry: CACHESIZE. Please begin by reading the User's Guide page entitled "Reading and Writing Compressed Data Sets" at http://iges.org/grads/gadoc/compression.html. A side benefit to the netCDF-4 development was that it led to an improvement in the HDF5 interface, which is now significantly faster than in the previous release. GrADS version 2.0.a8 also supports reading and drawing shapefiles, and the OpenGrADS SHAPE extension is being discontinued. The shapefile interface is adapted from an original design by Graziano Giuliani, the same code used for developing the OpenGrADS SHAPE extension. There are several new commands: 'draw shp', 'q shp', 'q dbf', and 'set shpopts', and a User's Guide page entitled "Drawing and Querying the Contents of a Shapefile" at http://iges.org/grads/gadoc/shapefiles.html . COLA's work with extremely high resolution data sets led to a bunch of changes to the GRIB interface. We added support for GRIB1 and GRIB2 files that are greater than 2Gb. This is handled with a "-big" option to gribmap. A simple change to the user interface, but a fairly significant change to code "under the hood." The gribmap utility now also supports the "-b" option for GRIB2 data sets, a option that is required for the new CFS Reanalysis. Both gribmap and wgrib have been modified to support ECMWF grib files that have record lengths bigger than 8MB. There is a new graphics output option that is useful for the interactive display of high-resolution data: 'set gxout imap'. This quickly draws shaded grid boxes just like 'gxout grfill', but the metafile is not updated so printim and print will not work. But it saves a lot of time when browsing through data and 'fishing' for something interesting to look at. Two final miscellaneous items in the new release: * Added template substitution strings %t4, %t5, %t6, %tm4, %tm5, %tm6 * New command 'q contours' returns contour colors and levels This OpenGrADS release has improvements in the LATS interface and in several of Mike Fiorino's extensions. See the included "Documentation.html" for an in-depth description of these new extensions. Several other important OpenGrADS additions are available with this version: - grads is now built with NetCDF v4.1.1 which includes support for NetCDF-4/HDF-5 (similar to gradsnc4 in v1.9.0-rc1) and has built in OPeNDAP support. - this is an OpenGrADS Bundle release, a relocatable, minimum configuration package that has all that you need to run GrADS. See INSTALL for additonal information. - we have introduced option -C to enable colorized text - preview release of the OpenGrADS Extensions; the same extensions available in GrADS v1.9.0-rc1 are now available with GrADS v2.0. Caveat: as COLA is yet to publish the official API for User Defined functions in GrADS v2.0 we have adopted here an API that is based on our work vith v1.9.0-rc1. This is a very low-level API that is *not* endorsed by COLA. As such, it is *not* advisable that users adopt this API to write their own extensions. - These extensions are still being fully tested. Please report any problems you encounter. Use them at your own risk. - The following extensions are included: see below. Documentation and Additional Information ---------------------------------------- Consult OpenGrADS Website: http://opengrads.org GrADS Website: http://grads.iges.org/grads --------------------- User Defined Commands --------------------- Command Environment Variables Function at Library ----------- --------------------------------------- -------------------------- printenv Expand environment variables c_xenv@^env.gex runenv Expand env vars and run command c_env@^env.gex @ Expand env vars and run command c_env@^env.gex getenv Get value of environment variable c_getenv@^env.gex setenv Set value of environment variable c_setenv@^env.gex Command GxYAT: Image Generation Function at Library ----------- --------------------------------------- -------------------------- gxyat Save images in PNG/SVG/PDF/PS c_gxyat@^gxyat.gex set_rgba Set color red/green/blue/alpha c_rgba@^gxyat.gex Command Simple Extension Example Function at Library ----------- --------------------------------------- -------------------------- hello Hello, World! sample command c_hello@^libhello.gex Command Interprocess Communication Function at Library ----------- --------------------------------------- -------------------------- ipc_verb IPC verbose toggle c_Verb@^libipc.gex ipc_open Open stream for save/load c_Open@^libipc.gex ipc_close Close stream c_Close@^libipc.gex ipc_save Save expression to stream c_Save@^libipc.gex ipc_define Define variable (obsolete) c_Define@^libipc.gex ipc_error Print IPC error message c_Error@^libipc.gex Command LATS: File Reformatting and Subsetting Function at Library ----------- --------------------------------------- -------------------------- set_lats Set LATS parameters c_lats_set@ ^liblats.gex query_lats Query LATS parameters c_lats_query@ ^liblats.gex lats_grid Define LATS grid c_lats_grid@ ^liblats.gex lats_data Write data to LATS file c_lats_data@ ^liblats.gex reinit_lats Re-init LATS parameters c_lats_reinit@ ^liblats.gex Command Mike Fiorino's Extensions Function at Library ----------- --------------------------------------- -------------------------- mfhilo Find max/min or H/L in 2D field c_mfhilo@^libmf.gex tcprop Properties radinf from central lon/lat c_tcprop@^libmf.gex grhist histogram of expr c_grhist@^libmf.gex Command Satellite Orbit Extensions Function at Library ----------- --------------------------------------- -------------------------- set_orb Set ORB parameters c_set@^orb.gex orb_track Satellite ground tracks c_track@^orb.gex ---------------------- User Defined Functions ---------------------- Function Ben-Jei Tsuang's Extensions Function at Library ----------- --------------------------------------- -------------------------- lt Local time f_bjt@^libbjt.gex jd Julian day f_bjt@^libbjt.gex cosz Cosine solar zenith angle f_bjt@^libbjt.gex dayratio Daylight ratio f_bjt@^libbjt.gex if Conditional function f_bjt@^libbjt.gex maxv Maximum value f_bjt@^libbjt.gex minv Minimum value f_bjt@^libbjt.gex which Label gridpoints f_bjt@^libbjt.gex ftest F-test f_bjt@^libbjt.gex ttest T-test f_bjt@^libbjt.gex tfit Point linear regression f_bjt@^libbjt.gex fit Global linear regression f_bjt@^libbjt.gex tcorr2 Time correlation f_bjt@^libbjt.gex tregr2 Point linear regression f_bjt@^libbjt.gex tmave2 Time averaging w/masking f_bjt@^libbjt.gex madvu Calculates -d(u*EXPR)/dx f_bjt@^libbjt.gex madvv Calculates -d(V*EXPR)/dy f_bjt@^libbjt.gex madvw Calculates -d(W*EXPR)/dp f_bjt@^libbjt.gex muadv Zonal advection f_bjt@^libbjt.gex mvadv Meridional advection f_bjt@^libbjt.gex mwadv Vertical advection f_bjt@^libbjt.gex satvap Saturated vapor pressure f_bjt@^libbjt.gex dew Dew point temperature f_bjt@^libbjt.gex lw Thermal infrared fluxes f_bjt@^libbjt.gex lw2 Thermal infrared fluxes v2 f_bjt@^libbjt.gex pinterp Pressure interpolation f_bjt@^libbjt.gex zinterp Height interpolation f_bjt@^libbjt.gex line Draws a line f_bjt@^libbjt.gex vint2 Mass-weighted vertical integral f_bjt@^libbjt.gex Function Streamfunction & Velocity Potential Function at Library ----------- --------------------------------------- -------------------------- fish Poisson solver f_fish@^fish.gex fish_psi Compute streamfunction f_psichi@^fish.gex fish_chi Compute velocity potential f_psichi@^fish.gex fish_vor Compute vorticity f_psichi@^fish.gex fish_div Compute divergence f_psichi@^fish.gex Function Saakeskus Wx Function Collection Function at Library ----------- --------------------------------------- -------------------------- dewpt Dew-point temperature f_gsudf@^gsudf.gex ept Equivalent potential temperature f_gsudf@^gsudf.gex epi Potential Instability f_gsudf@^gsudf.gex plcl Pressure at LCL f_gsudf@^gsudf.gex shear Wind Shear f_gsudf@^gsudf.gex srh1km Storm-relative Helicity 0-1km' f_gsudf@^gsudf.gex srh3km Storm-relative Helicity 0-3km' f_gsudf@^gsudf.gex tlcl Temperature at LCL f_gsudf@^gsudf.gex tsindex Chance of T-storm Initiation f_gsudf@^gsudf.gex ttindex Total Totals Index f_gsudf@^gsudf.gex wchill Wind Chill Index (New) f_gsudf@^gsudf.gex Function Simple Extension Example Function at Library ----------- --------------------------------------- -------------------------- hello Hello, World! sample function f_hello@^libhello.gex Function Interprocess Communication Function at Library ----------- --------------------------------------- -------------------------- ipc_save Save expression to stream f_Save@^libipc.gex ipc_load Load variable from file f_Load@^libipc.gex Function Mike Fiorino's Extensions Function at Library ----------- --------------------------------------- -------------------------- smth2d Shuman smoother/de-smoother f_smth2d@^libmf.gex uv2trw Find radial/tangential velocity f_uv2trw@^libmf.gex re2 General interpolator (regrid2) f_re2@^libmf.gex esmrf Saturation vapor pressure (old MRF) f_esmrf@^libmf.gex linreg Linear regression: mx + b f_linreg@^libmf.gex Function Satellite Orbit Extensions Function at Library ----------- --------------------------------------- -------------------------- orb_mask Satellite orbit masking f_mask@^orb.gex Function Regridding Functions Function at Library ----------- --------------------------------------- -------------------------- re General interpolator ffre@^re.gex re_ General interpolator (verbose) ffre_dbg@^re.gex regrid2 regrid2-like wrapper for re() f_gsudf@^gsudf.gex geos Interpolation to GEOS-5 Grids f_gsudf@^gsudf.gex reimg Interpolation for Image Generation' f_gsudf@^gsudf.gex Function Spherical Harmonic Analysis Function at Library ----------- --------------------------------------- -------------------------- sh_filt Spherical harmonic filter f_shfilt@^shfilt.gex sh_power Spherical harmonic spectra f_shpowr@^shfilt.gex I M P O R T A N T ----------------- The following extension is being discontinued as shapefile support is now built into GrADS. If for some reason you must use these extensions pelase contact dasilva at opengrads.org for a way of activating it in this version.. Command Shapefile Extensions Function at Library ----------- --------------------------------------- -------------------------- shp_lines Draw lines from shapefile c_lines@^shape.gex shp_polyf Draw polygons from shapefile c_polyf@^shape.gex -- Arlindo da Silva dasilva at alum.mit.edu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100713/3bffb50c/attachment-0001.html From nieves at VOLKRON.NET Tue Jul 13 23:50:57 2010 From: nieves at VOLKRON.NET (Jose F Nieves) Date: Tue, 13 Jul 2010 23:50:57 -0400 Subject: [gradsusr] OpenGrADS Bundle 2.0.a8 Released! In-Reply-To: References: Message-ID: <201007140350.o6E3ovM9023359@ltp.uprrp.edu> > Dear GrADS Users, > > We have started uploading to sf.net sources and binaries for the OpenGrADS > Bundle based on COLA's *2.0.a8* release: > > https://sourceforge.net/projects/opengrads/files/ > > Look under *grads2/2.0.a8.oga.1* > > The OpenGrADS Bundle is a new way of packaging GrADS builds that is somewhat Following up Arlindo's message - I have uploaded the FreeBSD-8.0 bundle builds for i386 and amd64. I will appreciate reports of any problems. Jose From cassar at pilotbook.eu Wed Jul 14 02:43:18 2010 From: cassar at pilotbook.eu (Pierre Cassar) Date: Wed, 14 Jul 2010 08:43:18 +0200 Subject: [gradsusr] OpenGrADS Bundle 2.0.a8 Released! Message-ID: Jose F Nieves wrote: > Following up Arlindo's message - I have uploaded the FreeBSD-8.0 bundle > builds for i386 and amd64 Do you plan to build the Freebsd 7 versions as usual? Thank you and best regards From poupkou at auth.gr Wed Jul 14 03:17:07 2010 From: poupkou at auth.gr (Anastasia Poupkou) Date: Wed, 14 Jul 2010 10:17:07 +0300 Subject: [gradsusr] temporal correlation Message-ID: <001DFE7515B8440BBBB23AB577870CA6@elassa2> Dear Grads users, I would like to plot the temporal correlation of two expressions that both vary in time and space (X and Y). I checked in the tutorial of Grads that the function tcorr exists which calculates the temporal correlation between two expressions, however one of the expressions should vary only in time and not in space. Is there an existing function/script that could help me with the above? Thank you very much. Best regards, Anastasia ********************************************* Dr. Anastasia Poupkou Laboratory of Atmospheric Physics Aristotle University of Thessaloniki PO Box 149, 54 124 Thessaloniki,Greece Tel. +30 2310 99 80 09 Fax. +30 2310 99 80 90 http://lap.physics.auth.gr ********************************************* -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100714/2ea1ef4b/attachment.html From meteo at sport123.it Wed Jul 14 05:32:57 2010 From: meteo at sport123.it (Valerio Guerra) Date: Wed, 14 Jul 2010 11:32:57 +0200 Subject: [gradsusr] OpenGrADS Bundle 2.0.a8 Released! Message-ID: <20100714113257.AA6E5A80.meteo@sport123.it> Pierre Cassar wrote: > Do you plan to build the Freebsd 7 versions as usual? I'm also interested in FreeBSD-7 binaries. Thank you very much! Valerio Guerra From nieves at VOLKRON.NET Wed Jul 14 08:19:44 2010 From: nieves at VOLKRON.NET (Jose F Nieves) Date: Wed, 14 Jul 2010 08:19:44 -0400 Subject: [gradsusr] OpenGrADS Bundle 2.0.a8 Released! In-Reply-To: <20100714113257.AA6E5A80.meteo@sport123.it> References: <20100714113257.AA6E5A80.meteo@sport123.it> Message-ID: <201007141219.o6ECJiD7028247@ltp.uprrp.edu> > Pierre Cassar wrote: > > Do you plan to build the Freebsd 7 versions as usual? > > I'm also interested in FreeBSD-7 binaries. > Thank you very much! > > Valerio Guerra Hi Pierre, Valerio The problem is that sometime ago I upgraded all my machines to 8.0 (and soon to 8.1), so I was not planing to do it. But I will look around to see if someone is still has 7.x and try. Are you using the i386 or amd64 version? Jose From cassar at pilotbook.eu Wed Jul 14 08:46:29 2010 From: cassar at pilotbook.eu (Pierre Cassar) Date: Wed, 14 Jul 2010 14:46:29 +0200 Subject: [gradsusr] OpenGrADS Bundle 2.0.a8 Released! Message-ID: Jose F Nieves wrote: > Are you using the i386 or amd64 version? I use a 64bit machine with FreeBSD-7.0-STABLE-200807 amd64. Thank you very much for what you can do. Pierre From meteo at sport123.it Wed Jul 14 08:57:51 2010 From: meteo at sport123.it (Valerio Guerra) Date: Wed, 14 Jul 2010 14:57:51 +0200 Subject: [gradsusr] OpenGrADS Bundle 2.0.a8 Released! Message-ID: <20100714145751.93710A88.meteo@sport123.it> Jose F Nieves wrote: > Are you using the i386 or amd64 version? Hi Jose, I use Grads on 3 machines, two amd64 and one i386. Anyway I'm going to dismiss the i386 machine in the next few weeks so I'm interested in the Freebsd-7 amd64 binaries only. Thank you very much! Valerio Guerra From peter.r.colarco at nasa.gov Wed Jul 14 10:21:15 2010 From: peter.r.colarco at nasa.gov (Colarco, Peter R. (GSFC-6133)) Date: Wed, 14 Jul 2010 09:21:15 -0500 Subject: [gradsusr] Performance hit with data descriptor files? In-Reply-To: References: <858FB416-83BF-44C9-A63A-9B1ED9E258B6@nasa.gov> Message-ID: Hi Jennifer- I updated to opengrads 2.0.a8.oga.1. The problem I reported seems to have been solved here. I don't understand why: whether I sdfopen open a file directly or xdfopen a templated DDF the same data file must be open and uncompressed. Presumably xdfopen-ing the DDF is doing something a little more than just that. Thank you, Pete On Jul 13, 2010, at 8:11 AM, Jennifer Adams wrote: Pete, The short answer is that you should upgrade to 2.0.a8. A whole lot of critical changes were implemented in the newer versions (of GrADS and the netCDF library) to improve performance when handling compressed netcdf files. Please read the doc page on compression (http://iges.org/grads/gadoc/compression.html) for a full explanation of the factors at play. When the cache settings are appropriate (which they are almost certainly not in your build), you will find that the I/O for compressed netcdf can be a whole lot faster than classic netcdf and flat binary data sets. --Jennifer On Jul 12, 2010, at 9:26 PM, Colarco, Peter R. (GSFC-6133) wrote: Hi- Apologies, here is the requested information. Thanks, Pete OS: % uname -a Linux redacted.gsfc.nasa.gov 2.6.32-gentoo-r7 #2 SMP Thu Jul 8 11:39:03 EDT 2010 x86_64 Intel(R) Xeon(R) CPU X5460 @ 3.16GHz GenuineIntel GNU/Linux File Information: % ncdump -hs /path/to/file/Y2003/M01/MYD04_L2_ocn.aero_tc8_051.qawt.20030101.nc4 netcdf MYD04_L2_ocn.aero_tc8_051.qawt.20030101 { dimensions: time = UNLIMITED ; // (8 currently) levels = 7 ; longitude = 1152 ; latitude = 721 ; variables: double time(time) ; time:units = "hours since 2003-1-1 1" ; time:_Storage = "chunked" ; time:_ChunkSizes = 1 ; double levels(levels) ; levels:units = "hPa" ; levels:description = "Pressure level" ; levels:type = "plev" ; levels:long_name = "Level" ; levels:positive = "down" ; levels:_Storage = "contiguous" ; double longitude(longitude) ; longitude:units = "degrees_east" ; longitude:long_name = "Longitude" ; longitude:_Storage = "contiguous" ; double latitude(latitude) ; latitude:units = "degrees_north" ; latitude:long_name = "Latitude" ; latitude:_Storage = "contiguous" ; float aodtau(time, levels, latitude, longitude) ; aodtau:comments = "Unknown1 variable comment" ; aodtau:long_name = "aodtau" ; aodtau:units = "" ; aodtau:grid_name = "grid01"