[Mapserver-users] MapServer 4 Compile Error on RedHat 7.3

Dirk Geschwandtner dg@mapmedia.de
Tue, 11 Nov 2003 13:26:24 +0100


Hello List,
we have a problem with compiling MapServer 4.0.1 on RedHat 7.3

We compiled all packages which worked fine, but when we try to compile
MapServer with gdal enabled we get errors. Without gdal everything works.

This is the configure we use:

./configure --with-gd=/usr/local --with-gdal=/usr/local/bin/gdal-config 
--with-tiff=/usr/local
--with-jpeg=/usr/local --with-proj=/usr/local --with-wmsclient
--with-curl-config=/usr/local/bin/curl-config 
--with-postgis=/usr/local/pgsql/bin/pg_config
--with-freetype=/usr/local --without-eppl

And this is the error message we get:

gcc -O2  -Wall -DIGNORE_MISSING_DATA   -DUSE_PROJ -DUSE_PROJ_API_H 
-DUSE_WMS_SVR -DUSE_WMS_LYR     -
DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP 
-DUSE_GD_FT    -DUSE_GDAL -DUSE_POSTGI
S    -I/usr/local/include  -I/usr/local/include 
-I/usr/local/include       -I/usr/local/include 
-I/usr/local/pgsql/include  -I/usr/local/include   shp2img.o  -L. -lmap 
-L/usr/local/lib -lgd -ljpeg -lfreetype -lpng -lz    -L/usr/local/lib 
-ltiff -ljpeg -lfreetype -lpng -lz   -L/usr/local/lib -lproj 
-ljpeg   -L/usr/local/lib -lgdal.1.1  -L/usr/local/pgsql/lib 
-lpq  -L/usr/local/lib -lcurl -lz -lssl -lcrypto -ldl -lz    -lm 
-lstdc++   -o shp2img
./libmap.a(mapogr.o): In function 
`msOGRSpatialRef2ProjectionObj(OGRSpatialReference *, projectionOb
j *, int)':
mapogr.o(.text+0x4e): undefined reference to 
`OGRSpatialReference::IsLocal(void) const'
mapogr.o(.text+0x6d): undefined reference to 
`OGRSpatialReference::exportToProj4(char **) const'
./libmap.a(mapogr.o): In function `msOGCWKT2ProjectionObj':
mapogr.o(.text+0x10e): undefined reference to 
`OGRSpatialReference::OGRSpatialReference(char const *
)'
mapogr.o(.text+0x11d): undefined reference to 
`OGRSpatialReference::importFromWkt(char **)'
mapogr.o(.text+0x141): undefined reference to 
`OGRSpatialReference::~OGRSpatialReference(void)'
mapogr.o(.text+0x166): undefined reference to 
`OGRSpatialReference::~OGRSpatialReference(void)'
mapogr.o(.text+0x17e): undefined reference to 
`OGRSpatialReference::~OGRSpatialReference(void)'
mapogr.o(.text+0x18b): undefined reference to `__rethrow'
mapogr.o(.text+0x199): undefined reference to `__rethrow'
mapogr.o(.text+0x1a9): undefined reference to `__rethrow'
mapogr.o(.text+0x1b1): undefined reference to `terminate(void)'
collect2: ld returned 1 exit status
make: *** [shp2img] Error 1

Has anybody any ideas?

TIA,
Dirk 

_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users