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

Vincent Schut schut at sarvision.com
Tue Nov 11 08:08:45 EST 2003


On 2003.11.11 14:04, Vincent Schut wrote:
Hi Dirk,

the missing references should be in the OGR lib which in turn should be  
in GDAL. Some things to consider:
- when you compiled gdal, did you disable OGR? If so, recompile GDAL  
without the '--without-ogr' switch.
- after (re)compiling gdal, did you run /sbin/ldconfig (as root) to  
update the linker cache, before compiling mapserver?
- Is your version of GDAL the most recent one? If not, try to update it  
and then recompile mapserver.

Hope it is any of these... Otherwise, post again so i/someone can have  
a closer look at your problem...

Cheers,
Vincent.

On 2003.11.11 13:26, Dirk Geschwandtner wrote:
> 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 at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> 



More information about the mapserver-users mailing list