undefined reference to `CPLSearchXMLNode' - compiling mapserver-4.8.1

Frank Warmerdam warmerdam at POBOX.COM
Thu Mar 16 11:52:37 EST 2006


Alessandro Pasotti wrote:
> Hello,
> 
> it's not the first time I compile this release, but on an "old" mandrake linux 
> 10.0 it fails with this message:
> 
> gcc -O2 -fPIC -Wall   -DIGNORE_MISSING_DATA  -DHAVE_VSNPRINTF -DNEED_STRLCAT  
> -DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR         -DUSE_GD_GIF -DUSE_GD_PNG 
> -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR 
> -DGD_HAS_GETBITMAPFONTS -DUSE_PDF   -DUSE_OGR -DUSE_GDAL  -DUSE_ICONV 
> -DUSE_FASTCGI   -DUSE_POSTGIS -DUSE_MYGIS   -DUSE_ZLIB -I/usr/include  
> -I/usr/lib      -I/usr/local/include -I/usr/local/pgsql/include 
> -I/usr/include/mysql -mcpu=i486 -fno-strength-reduce      -I/usr/include  
> shp2img.o  -L. -lmap -lgd -L/usr/lib -lgd -ljpeg -lfreetype -lpng -lz   -lpdf 
> -ljpeg -lfreetype -lpng -lz   -L/usr/lib -lproj -ljpeg  -L/usr/local/lib 
> -lgdal  -L/usr/local/pgsql/lib -lpq -L/usr/lib/mysql -lmysqlclient -lz 
> -lcrypt -lnsl -lm -lc -lnss_files -lnss_dns -lresolv -lc -lnss_files 
> -lnss_dns -lresolv -lmysqlclient      -lc -L/usr/lib -lfcgi -lz -lm -lstdc++  
> -o shp2img
> ./libmap.a(mapogcfilter.o)(.text+0x25fe): In function 
> `FLTInsertElementInNode':
> : undefined reference to `CPLSearchXMLNode'
> 
> -----------------------------------------------
> $ /usr/local/bin/gdal-config --version
> 1.2.6b3
> 
> -----------------------------------------------
> /configure  --prefix=/usr --with-proj=/usr/lib --includedir=/usr/include 
> --with-gdal=/usr/local/bin/gdal-config --with-ogr=/usr/local/bin/gdal-config 
> --with-php=/usr/local/include/php --with-mygis=yes  --with-postgis 
> --with-fastcgi=/usr  
> 
> 
> Any hint?

Alessandro,

I'm afraid you will need to upgrade to GDAL 1.3.1, or hack this part to work
a bit differently.  Sometimes dependencies on new GDAL features sneak into
MapServer.

Best regards,


-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGF, http://osgeo.org



More information about the mapserver-users mailing list