[mapserver-users] Re: Mapserver configure error libgd.so

Eichner, Andreas - SID-NLKM Andreas.Eichner at sid.sachsen.de
Thu May 5 04:30:46 EDT 2011


I guess it's a problem with autoconf/automake. Install them if you haven't already and try to recreate the configure script. On my Debian box I have to version: 2.13 and 2.50 and trying to recreate configure results in that:

mapserver-6.0.0-beta7$ rm configure && autoconf2.13 
autoconf: Undefined macros:
configure.in:773:  dnl AC_CHECK_DECL needs to know the gd include path
configure.in:778:  AC_CHECK_DECL(gdImageGetTrueColorPixel,[GD_HAS_GET_TRUE_COLOR_PIXEL=yes],,[#include <gd.h>])
configure.in:832:  AC_CHECK_DECL(gdImageGetTrueColorPixel,[GD_HAS_GET_TRUE_COLOR_PIXEL=yes],,[#include <gd.h>])
mapserver-6.0.0-beta7$ ./configure --prefix=/usr --with-wmsclient --with-oraclespatial=/opt/instantclient_10_2/ --with-postgis --with-ogr --with-gdal --with-proj --with-cairo --with-geos --with-xml2-config=/usr/bin/xml2-config --with-wfs --with-threads
...
checking for GD 2.0.28 or higher
checking for gdImageCreatePaletteFromTrueColor in -lgd... yes
        using libgd 2.0.28 (or higher) from system libs (-L/usr/lib -lgd -ljpeg  -lpng -lz -lXpm -lX11 ).
./configure: 4297: Syntax error: word unexpected (expecting ")")

and that:

mapserver-6.0.0-beta7$ rm configure && autoconf2.50
mapserver-6.0.0-beta7$ ./configure --prefix=/usr --with-wmsclient --with-oraclespatial=/opt/instantclient_10_2/ --with-postgis --with-ogr --with-gdal --with-proj --with-cairo --with-geos --with-xml2-config=/usr/bin/xml2-config --with-wfs --with-threads
...
checking for GD 2.0.28 or higher...
checking for gdImageCreatePaletteFromTrueColor in -lgd... yes
        using libgd 2.0.28 (or higher) from system libs (-L/usr/lib -lgd -ljpeg -lfreetype -lz -lpng -lz -lXpm -lX11 ).
checking for gdImageCreate in -lgd... yes
checking for gdImageGif in -lgd... yes
checking for gdImagePng in -lgd... yes
checking for gdImageJpeg in -lgd... yes
checking for gdImageWBMP in -lgd... yes
checking for gdImageStringFT in -lgd... yes
checking for gdImageOpenPolygon in -lgd... yes
checking for gdImageGifPtr in -lgd... yes
checking for gdFontGetTiny in -lgd... yes
checking for gdImageSetResolution in -l... no
checking whether gdImageGetTrueColorPixel is declared... yes
checking for gdImageGetTrueColorPixel in -lgd... yes
        using GD ( -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DGD_HAS_GET_TRUE_COLOR_PIXEL) from system libs.

So configure created with autoconf2.50 works where as with 2.13 does not...
HTH
 

> -----Ursprüngliche Nachricht-----
> Von: mapserver-users-bounces at lists.osgeo.org 
> [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag 
> von Sarel Coetzer
> Gesendet: Donnerstag, 5. Mai 2011 09:34
> An: mapserver-users at lists.osgeo.org
> Betreff: [mapserver-users] Re: Mapserver configure error libgd.so
> 
> Hi 
>  
> All my libs are present. I am using LAMPP.
>  
> The specific error I am getting starts from:
> "checking for gdFontCacheSetup in -lgd... no"
> "configure error: Could not find gd.h or libgd.a/libgd.so"
>  
> Any ideas what the issue might be?
> 
> Sarel Coetzer | GIS Developer
> 
> Malaria Research Programme
> Medical Research Council
> 
> 
> 


More information about the mapserver-users mailing list