Problem compiling CVS head

Sean Gillies sgillies at FRII.COM
Fri Nov 18 10:32:12 EST 2005


Hi all,

I did a cvs update this morning to start looking into a reported  
problem with Java mapscript and a shapeObj's new geometry member, but  
am stymied by undefined references to OGR functions. Anybody got an  
idea what is up? API changed? I've got GDAL 1.3.0 on this system.

My configuration is

[sean at lenny mapserver]$ cat runConfigure
./configure \
     --with-gd=/usr/local \
     --with-freetype=/usr/lib \
     --without-tiff \
     --without-eppl \
     --with-proj=/usr/local \
     --with-threads \
     --with-ogr=/usr/local/bin/gdal-config \
     --with-gdal=/usr/local/bin/gdal-config \
     --with-postgis=/usr/local/pgsql/bin/pg_config \
     --with-wfs \
     --with-wmsclient \
     --with-wfsclient \
     --with-curl-config=/usr/bin/curl-config \
     --with-wcs

source compiles with a few warnings, but i get errors when linking:

gcc -O2 -fPIC -Wall   -DIGNORE_MISSING_DATA  -DNEED_STRLCAT   - 
DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR -DUSE_WFS_SVR -DUSE_WFS_LYR - 
DUSE_WCS_SVR     -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG - 
DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR - 
DGD_HAS_GETBITMAPFONTS    -DUSE_OGR -DUSE_GDAL  -DUSE_ICONV    - 
DUSE_POSTGIS   -DUSE_THREAD -DUSE_ZLIB -I/usr/local/include  -I/usr/ 
local/include      -I/usr/local/include -I/usr/local/pgsql/ 
include         shp2img.o  -L. -lmap -L/usr/local/lib -lgd -ljpeg -L/ 
usr/lib -lfreetype -lpng -lz    -ljpeg -L/usr/lib -lfreetype -lpng - 
lz   -L/usr/local/lib -lproj -ljpeg  -L/usr/local/lib -lgdal  -L/usr/ 
local/pgsql/lib -lpq  -L/usr/lib -lcurl -L/usr/kerberos/lib -lssl - 
lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz - 
L/usr/kerberos/lib -lssl -lcrypto -lssl -lcrypto -lgssapi_krb5 -lkrb5  
-lcom_err -lk5crypto -lresolv -ldl -lz -lz    -lpthread -lc  -lz -lm - 
lstdc++  -o shp2img
./libmap.a(mapogr.o)(.text+0x1439): In function `msOGRFileWhichShapes 
(layer_obj*, rectObj, ms_ogr_file_info_t*)':
: undefined reference to `OGRLineString::setPoint(int, double, double)'
./libmap.a(mapogr.o)(.text+0x1450): In function `msOGRFileWhichShapes 
(layer_obj*, rectObj, ms_ogr_file_info_t*)':
: undefined reference to `OGRLineString::setPoint(int, double, double)'
./libmap.a(mapogr.o)(.text+0x1467): In function `msOGRFileWhichShapes 
(layer_obj*, rectObj, ms_ogr_file_info_t*)':
: undefined reference to `OGRLineString::setPoint(int, double, double)'
./libmap.a(mapogr.o)(.text+0x147e): In function `msOGRFileWhichShapes 
(layer_obj*, rectObj, ms_ogr_file_info_t*)':
: undefined reference to `OGRLineString::setPoint(int, double, double)'
./libmap.a(mapogr.o)(.text+0x1495): In function `msOGRFileWhichShapes 
(layer_obj*, rectObj, ms_ogr_file_info_t*)':
: undefined reference to `OGRLineString::setPoint(int, double, double)'
./libmap.a(mapogcfilter.o)(.text+0x27bf): In function  
`FLTInsertElementInNode':
: undefined reference to `CPLSearchXMLNode'
./libmap.a(mapogcfilter.o)(.text+0x27e0): In function  
`FLTInsertElementInNode':
: undefined reference to `CPLSearchXMLNode'
./libmap.a(mapogcfilter.o)(.text+0x296c): In function  
`FLTInsertElementInNode':
: undefined reference to `CPLSearchXMLNode'
./libmap.a(mapogcfilter.o)(.text+0x29a6): In function  
`FLTInsertElementInNode':
: undefined reference to `CPLSearchXMLNode'
./libmap.a(mapogcfilter.o)(.text+0x2a38): In function  
`FLTInsertElementInNode':
: undefined reference to `CPLSearchXMLNode'
./libmap.a(mapogcfilter.o)(.text+0x2aa2): more undefined references  
to `CPLSearchXMLNode' follow
collect2: ld returned 1 exit status
make: *** [shp2img] Error 1


---
Sean Gillies
sgillies at frii dot com
http://zcologia.com/news



More information about the mapserver-dev mailing list