[gradsusr] gd Library

Jennifer Adams jma at cola.iges.org
Mon Mar 4 11:31:21 EST 2013


Did you try using the supplibs tarball I posted ? Untar it and set the environment variable SUPPLIBS to point to its location. See if that changes anything for the GrADS configuration. 

If that fails, here is a much larger tarball:
ftp://cola.gmu.edu/grads/Supplibs/2.0/bin/supplibs-with-src.aix.tar.gz
...with all the source codes and builds for each library under supplibs/src. Look there for config.log files that show how each library was compiled. In the libshape directory, it looks like there is a new Makefile that has some extra switches to gcc ("-maix64") and some other mods. 

This is about as much help as I am going to be able to provide. I have not done the build on AIX, so I am not familiar with all the compiler/linker errors. 
--Jennifer




On Mar 4, 2013, at 10:59 AM, M.Mahakur wrote:

> Respected Jennifer,
> 
> Thank you so much again.
> I donot know about libintl.la. I am yet to get a reply from System team.
> 
> (1)==> Can I proceed without a proper 'gd'? I donot think, but still I tried to compile GrADS. I got:
> 
> 
> GrADS 2.0.2 : Built Mon Mar 4 21:08:08 IST 2013 for powerpc-ibm-aix5.3.0.0
>  +=========================================================================+
> 
>  +-------------------------------+
>  |                               |
>  |  GrADS will be built with:    |
>  |                               |
>  |  - GUI disabled               |
>  |  + readline enabled           |
>  |  + geotiff enabled            |
>  |  - shapefile disabled         |
>  |  - printim disabled           |
>  |  + grib2 enabled              |
>  |  + hdf4 enabled               |
>  |  + hdf5 enabled               |
>  |  + netcdf-4 enabled           |
>  |  + OPeNDAP enabled            |
>  |     for grids only            |
>  |                               |
>  |  gxtran will not be built     |
>  |                               |
>  +-------------------------------+
> configure: creating src/VERSION
> configure: creating src/buildinfo.h
> configure: creating ./config.status
> config.status: creating Makefile
> config.status: creating src/Makefile
> config.status: creating src/config.h
> 
> Run 'make && make install' to build GrADS.
> Executables will be installed to bin/ in current dir, unless prefix was specified.
> 
> ==========================================
> make command error:
> 
> make[2]: Entering directory `/gpfs2/home/mmahakur/Grads/grads-2.0.2/src'
> xlc  -q64 -I/usr/local/vni/imsl/cnl700/aixxl800a64/include  -Wl,-bbigtoc -Wl,-bexpall -Wl,-brtl -o grads  grads.o gxsubs.o gxmeta.o gxchpl.o gxcntr.o gxstrm.o gxwmap.o gxshad.o gxshad2.o gaexpr.o gafunc.o gautil.o gagx.o gscrpt.o gamach.o bufrstn.o gabufr.o gabufrtbl.o gxX.o gxdxwd.o galloc.o   gaddes.o gaio.o gacfg.o gauser.o gasdf.o gatxt.o -L/gpfs2/home/mmahakur/supplibs/lib    -lX11 /gpfs2/home/mmahakur/supplibs/lib/libreadline.a /gpfs2/home/mmahakur/supplibs/lib/libncurses.a   /gpfs2/home/mmahakur/supplibs/lib/libgrib2c.a /gpfs2/home/mmahakur/supplibs/lib/libjasper.a /gpfs2/home/mmahakur/supplibs/lib/libpng12.a /gpfs2/home/mmahakur/supplibs/lib/libz.a /gpfs2/home/mmahakur/supplibs/lib/libmfhdf.a /gpfs2/home/mmahakur/supplibs/lib/libdf.a /gpfs2/home/mmahakur/supplibs/lib/libudunits.a /gpfs2/home/mmahakur/supplibs/lib/libsz.a /gpfs2/home/mmahakur/supplibs/lib/libjpeg.a /gpfs2/home/mmahakur/supplibs/lib/libz.a /gpfs2/home/mmahakur/supplibs/lib/libhdf5.a /gpfs2/home/mmahakur/supplibs/lib/libsz.a /gpfs2/home/mmahakur/supplibs/lib/libz.a /gpfs2/home/mmahakur/supplibs/lib/libudunits.a /gpfs2/home/mmahakur/supplibs/lib/libnetcdf.a /gpfs2/home/mmahakur/supplibs/lib/libhdf5_hl.a /gpfs2/home/mmahakur/supplibs/lib/libhdf5.a /gpfs2/home/mmahakur/supplibs/lib/libz.a /gpfs2/home/mmahakur/supplibs/lib/libsz.a /gpfs2/home/mmahakur/supplibs/lib/libcurl.a  /gpfs2/home/mmahakur/supplibs/lib/libtiff.a /gpfs2/home/mmahakur/supplibs/lib/libgeotiff.a   -lm 
> ld: 0711-317 ERROR: Undefined symbol: .png_set_longjmp_fn
> ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
> make[2]: *** [grads] Error 8
> make[2]: Leaving directory `/gpfs2/home/mmahakur/Grads/grads-2.0.2/src'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/gpfs2/home/mmahakur/Grads/grads-2.0.2/src'
> make: *** [all-recursive] Error 1
> 
> =====================================
> (2)==> I could not build shapelib too. The 'make lib' errors:
> 
> *** Warning: This library needs some functionality provided by -lc.
> *** I have the capability to make that library automatically link in when
> *** you link to this library.  But I can only do this if you have a
> *** shared version of the library, which you do not appear to have.
> *** The inter-library dependencies that have been dropped here will be
> *** automatically added whenever a program is linked with this library
> *** or is declared to -dlopen it.
> xlc -shared  shpopen.lo shptree.lo dbfopen.lo   -Wl,-soname -Wl,libshp.so.1 -o .libs/libshp.so.1.0.1
> xlc: 1501-218 (W) file shpopen.lo contains an incorrect file suffix
> xlc: 1501-218 (W) file shptree.lo contains an incorrect file suffix
> xlc: 1501-218 (W) file dbfopen.lo contains an incorrect file suffix
> ld: 0706-012 The -h flag is not recognized.
> ld: 0706-012 The -a flag is not recognized.
> ld: 0706-005 Cannot find or open file: libshp.so.1
>        ld:open(): No such file or directory
> make: 1254-004 The error code from the last command is 255.
> 
> 
> (3)  While making several of supplibs I use to get errors like:
> Assembler:
> /tmp//ccdu5H7V.s: line 14: 1252-191 Only .llong should be used for relocatable expressions.
> 
> The above was from 'ncurses'. How can I avoid this?
> 
> (4) > If I can get the deatils configure command files and setup from their that will help me.
> I'm not sure what you mean by this. Have you seen http://iges.org/grads/gadoc/supplibs.html ?
> 
> I am taking help of the above link only while trying to build the supplibs. I feel in this link for tiff file the following two commands needs correction like others (the source file path for cp is not correct ?):
> 
> cp lib/libtiff.a $HOME/supplibs/lib/
> cp ./include/*.h $HOME/supplibs/include/tiff 
> 
> I mean: In the last e-mail you had kindly mentioned "> I have a colleague who has built some of the supplibs on AIX, I will ask him if he has any secrets". So, I requested for your help in getting details building the libs and ultimately Grads-2 from him/her. If I can get the final GrADS-2 binaries that will be very good for me (if possible and if that will work here too!!)..
> 
> Sorry for long mails and bothering you.
> 
> With Thanks and Regards,
> Mahakur
> 
> ----- Original Message -----
> From: Jennifer Adams <jma at cola.iges.org>
> To: GrADS Users Forum <gradsusr at gradsusr.org>
> Sent: Mon, 04 Mar 2013 20:40:44 +0530 (IST)
> Subject: Re: [gradsusr] gd Library
> 
> 
> On Mar 4, 2013, at 9:43 AM, M.Mahakur wrote:
> 
>> Respected Jennifer,
>> 
>> Thanks for your suggestions.
>> I copied the gd from the link, the tar svf gives the same message.
> I can't reproduce this error… 
> 
>> I have not build yet from this.
>> But from the earlier gd when I install freetype and fontconfig the earlier error does not came. But, after some time it gives error:
>> 
>> make[2]: Entering directory `/gpfs2/home/mmahakur/supplibs/src/gd-2.0.34'
>> /bin/sh ./libtool --tag=CC --mode=link xlc  -q64 -I/usr/local/vni/imsl/cnl700/aixxl800a64/include  -L/gpfs2/home/mmahakur/supplibs/src/freetype/lib  -L/gp
>> fs2/home/mmahakur/supplibs/src/libpng/lib  -L/usr/X11R6/lib -L/gpfs2/home/mmahakur/supplibs/src/fontconfig/lib -L/gpfs2/home/mmahakur/supplibs/src/jpeg/li
>> b -o libgd.la -rpath /gpfs2/home/mmahakur/supplibs/src/gd/lib -version-info 2:0:0  gd.lo gdfx.lo gd_security.lo gd_gd.lo gd_gd2.lo gd_io.lo gd_io_dp.lo gd
>> _gif_in.lo gd_gif_out.lo gd_io_file.lo gd_io_ss.lo gd_jpeg.lo gd_png.lo gd_ss.lo gd_topal.lo gd_wbmp.lo gdcache.lo gdfontg.lo gdfontl.lo gdfontmb.lo gdfon
>> ts.lo gdfontt.lo gdft.lo gdhelpers.lo gdkanji.lo gdtables.lo gdxpm.lo wbmp.lo -liconv -lXpm -lX11 -ljpeg -lfreetype -lpng12 -lz -lm
>> grep: can't open /opt/freeware/lib/libintl.la
>> sed: Cannot find or open file /opt/freeware/lib/libintl.la.
>> libtool: link: `/opt/freeware/lib/libintl.la' is not a valid libtool archive
>> make[2]: *** [libgd.la] Error 1
>> make[2]: Leaving directory `/gpfs2/home/mmahakur/supplibs/src/gd-2.0.34'
>> make[1]: *** [all-recursive] Error 1
>> make[1]: Leaving directory `/gpfs2/home/mmahakur/supplibs/src/gd-2.0.34'
>> make: *** [all] Error 2
>> 
>> In this system there is no file name:  /opt/freeware/lib/libintl.la ! but there is a file with extension .a (not .la).
> I have no idea what this is about. What is libintl.la? Is it part of the libm.a? Perhaps you can ask the system administrator. 
> 
>> 
>> If dap is not that much essential it will be fine. 
> Building libdap is hard, because the library version is old and not always easy to compile with newer compilers. 
>> 
>> 2. tiff: It did not showed error while make but 'make check' shows many:
> If you got the library, forget about 'make check'. Don't make your life more difficult than it needs to be. It is highly unlikely that any of the stuff that is not working in the 'make check' protocol is used in GrADS. 
> 
>> 
>> <snipped>
>> 
>> If I can get the deatils configure command files and setup from their that will help me.
> I'm not sure what you mean by this. Have you seen http://iges.org/grads/gadoc/supplibs.html ?
> --Jennifer
> 
>> 
>> Thanks again.
>> 
>> With Regards,
>> Mahakur
>> 
>> 
>> 
>> ----- Original Message -----
>> From: Jennifer Adams <jma at cola.iges.org>
>> To: GrADS Users Forum <gradsusr at gradsusr.org>
>> Sent: Mon, 04 Mar 2013 19:34:38 +0530 (IST)
>> Subject: Re: [gradsusr] gd Library
>> 
>> 
>> On Mar 4, 2013, at 5:01 AM, M.Mahakur wrote:
>> 
>>> Respected All,
>>> 
>>> I am trying to build ver-2 GrADS in ibm-aix5.3.0.0, trying to prepare the supp libs. The gd lib. copied from the link :
>>> 
>>> ftp://cola.gmu.edu/grads/Supplibs/2.1/src/gd-2.0.34.tar.gz
>>> 
>>> prompts:
>>> 
>>> 
>>> gd-2.0.34/config/Makefile.am
>>> ...
>>> ...
>>> ...
>>> gd-2.0.34/windows/Makefile
>>> tar: A lone zero block at 7351
>>> 
>>> 1. Is it ok?
>> I don't know! You could try this one: 
>> ftp://cola.gmu.edu/grads/Supplibs/2.0/src/gd-2.0.34.tar.gz
>> 
>>> 
>>> Even if an error I tried to proceed further:
>>> ./configure --disable-shared \
>>> --with-png=$HOME/supplibs/src/libpng \
>>> --with-jpeg=$HOME/supplibs/src/jpeg \
>>> --prefix=$HOME/supplibs/src/gd
>>> 
>>> It showed at the end:
>>> 
>>> ** Configuration summary for gd 2.0.34:
>>> 
>>> Support for PNG library:          
>>> Support for JPEG library:         yes
>>> Support for Freetype 2.x library: no
>>> Support for Fontconfig library:   yes
>>> Support for Xpm library:          yes
>>> Support for pthreads:             yes
>>> 
>>> configure: creating ./config.status
>>> config.status: creating Makefile
>>> config.status: creating config/Makefile
>>> config.status: creating config/gdlib-config
>>> config.status: creating test/Makefile
>>> config.status: creating config.h
>>> config.status: executing depfiles commands
>>> bash-3.2$ 
>>> 
>>> 2. WHETHER I NEED TO INSTALL "freetype" lib FIRST? The make leaves with errors:
>> Even though the config summary says support for Freetype is not configured, it is still looking for freetype include files. So perhaps you need to specify --without-Freetype (or similar syntax) when you invoke configure. I'm not entirely sure whether that will work, it's always a bit of a guessing game and AIX compilers are notoriously fussy and annoying. You do not need the Freetype interface in gd for GrADS. You could also try editing the config.h file after running configure to see if it has some flag in there regarding Freetype that you could change from a 1 to a 0… 
>> 
>> I have a colleague who has built some of the supplibs on AIX, I will ask him if he has any secrets. 
>>> 
>>> 
>>> xlc -DHAVE_CONFIG_H -I. -I. -I. -I/gpfs2/home/mmahakur/supplibs/src/jpeg/include -q64 -I/usr/local/vni/imsl/cnl700/aixxl800a64/include -c gdfontt.c -o gdfontt.o
>>> source='gdft.c' object='gdft.lo' libtool=yes \
>>> DEPDIR=.deps depmode=none /bin/sh ./config/depcomp \
>>> /bin/sh ./libtool --tag=CC --mode=compile xlc -DHAVE_CONFIG_H -I. -I. -I.   -I/gpfs2/home/mmahakur/supplibs/src/jpeg/include  -q64 -I/usr/local/vni/imsl/cnl700/aixxl800a64/include -c -o gdft.lo gdft.c
>>> xlc -DHAVE_CONFIG_H -I. -I. -I. -I/gpfs2/home/mmahakur/supplibs/src/jpeg/include -q64 -I/usr/local/vni/imsl/cnl700/aixxl800a64/include -c gdft.c -o gdft.o
>>> "gdft.c", line 113.10: 1506-296 (S) #include file <freetype/freetype.h> not found.
>>> "gdft.c", line 114.10: 1506-296 (S) #include file <freetype/ftglyph.h> not found.
>>> "gdft.c", line 115.10: 1506-296 (S) #include file <freetype/ftsizes.h> not found.
>>> <snipped>
>>> 
>>> The original source of gd seems to be down: http://www.boutell.com/gd/ !
>>> 
>>> Altough not in sequence I even installed the 'freetype-2.4.4' (obtained from the same URL). I do not know how to overcome this.
>> 
>> 
>>> I have problems with dap also.. I will sent separately…
>> Heh. I don't think you will succeed, BUT you only need the DAP library if you plan to access station data via opendap on your AIX system. Are you sure you need this feature? Opendap access for grids is built into the netcdf library now.
>> --Jennifer
>> 
>>> 
>>> Thanks and Regards,
>>> Mahakur
>>> _______________________________________________
>>> 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
> 
> --
> 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

--
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/20130304/887b1af4/attachment-0003.html 


More information about the gradsusr mailing list