[gradsusr] gd Library

M.Mahakur mmahakur at tropmet.res.in
Mon Mar 4 09:43:11 EST 2013


Respected Jennifer,

Thanks for your suggestions.
I copied the gd from the link, the tar svf gives the same message. 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).

If dap is not that much essential it will be fine. 

2. tiff: It did not showed error while make but 'make check' shows many:

Making check in test
        make  ascii_tag long_tag  short_tag strip_rw
Target "ascii_tag" is up to date.
        source='check_tag.c' object='check_tag.o' libtool=no  DEPDIR=.deps depmode=aix /bin/sh ../config/depcomp  xlc -DHAVE_CONFIG_H -I. -I. -I../libtiff -I../libtiff -I../libtiff     -q64 -I/usr/local/vni/imsl/cnl700/aixxl800a64/include -c check_tag.c
"../libtiff/tiffio.h", line 66.9: 1506-166 (S) Definition of function int32 requires parentheses.
"../libtiff/tiffio.h", line 66.15: 1506-276 (S) Syntax error: possible missing '{'?
"../libtiff/tiffio.h", line 148.3: 1506-273 (E) Missing type in declaration of TIFFDisplay.
"../libtiff/tiffio.h", line 151.9: 1506-046 (S) Syntax error.
"../libtiff/tiffio.h", line 154.9: 1506-046 (S) Syntax error.
"../libtiff/tiffio.h", line 164.9: 1506-046 (S) Syntax error.
"../libtiff/tiffio.h", line 185.63: 1506-046 (S) Syntax error.
"../libtiff/tiffio.h", line 188.63: 1506-046 (S) Syntax error.
"../libtiff/tiffio.h", line 215.9: 1506-046 (S) Syntax error.
"../libtiff/tiffio.h", line 260.48: 1506-276 (S) Syntax error: possible missing identifier?
"../libtiff/tiffio.h", line 260.37: 1506-279 (S) A function declarator cannot have a parameter identifier list if it is not a function definition.
"../libtiff/tiffio.h", line 261.38: 1506-279 (S) A function declarator cannot have a parameter identifier list if it is not a function definition.
"../libtiff/tiffio.h", line 261.9: 1506-033 (S) Function tsize_t is not valid. Function cannot return a function.
"../libtiff/tiffio.h", line 261.9: 1506-282 (S) The type of the parameters must be specified in a prototype.
"../libtiff/tiffio.h", line 262.17: 1506-275 (S) Unexpected text '*' encountered.
"../libtiff/tiffio.h", line 262.51: 1506-276 (S) Syntax error: possible missing identifier?
"../libtiff/tiffio.h", line 262.32: 1506-279 (S) A function declarator cannot have a parameter identifier list if it is not a function definition.
"../libtiff/tiffio.h", line 262.9: 1506-033 (S) Function toff_t is not valid. Function cannot return a function.
"../libtiff/tiffio.h", line 262.9: 1506-282 (S) The type of the parameters must be specified in a prototype.
"../libtiff/tiffio.h", line 263.30: 1506-279 (S) A function declarator cannot have a parameter identifier list if it is not a function definition.
"../libtiff/tiffio.h", line 264.32: 1506-279 (S) A function declarator cannot have a parameter identifier list if it is not a function definition.
"../libtiff/tiffio.h", line 264.16: 1506-033 (S) Function TIFFSizeProc is not valid. Function cannot return a function.
"../libtiff/tiffio.h", line 265.50: 1506-275 (S) Unexpected text '*' encountered.
"../libtiff/tiffio.h", line 265.53: 1506-276 (S) Syntax error: possible missing identifier?
"../libtiff/tiffio.h", line 265.32: 1506-279 (S) A function declarator cannot have a parameter identifier list if it is not a function definition.
"../libtiff/tiffio.h", line 266.55: 1506-276 (S) Syntax error: possible missing identifier?
"../libtiff/tiffio.h", line 266.35: 1506-279 (S) A function declarator cannot have a parameter identifier list if it is not a function definition.
"../libtiff/tiffio.h", line 281.9: 1506-166 (S) Definition of function tdata_t requires parentheses.
"../libtiff/tiffio.h", line 281.17: 1506-276 (S) Syntax error: possible missing '{'?
"../libtiff/tiffio.h", line 310.3: 1506-273 (E) Missing type in declaration of TIFFFieldInfo.
"../libtiff/tiffio.h", line 313.26: 1506-277 (S) Syntax error: possible missing ';' or ','?
"../libtiff/tiffio.h", line 319.15: 1506-166 (S) Definition of function TIFFFieldInfo requires parentheses.
"../libtiff/tiffio.h", line 319.28: 1506-276 (S) Syntax error: possible missing '{'?
"../libtiff/tiffio.h", line 330.5: 1506-045 (S) Undeclared identifier TIFFVSetMethod.
make: 1254-004 The error code from the last command is 1.


Stop.
make: 1254-004 The error code from the last command is 2.


Stop.
make: 1254-004 The error code from the last command is 1.


Stop.
bash-3.2$ 

If I can get the deatils configure command files and setup from their that will help me.

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






More information about the gradsusr mailing list