[mapserver-users] mapserver compilation problem

Kurt Gerber kgerber at gmx.ch
Thu Jun 20 16:47:46 EDT 2002


Hi,
I tried to compile mapserver 3.6 on linux (mandrake 8.1) but it fails. 
I use GDAL 1.1.7 with OGR. The problem seems to be there some where.
I used the following configure options:

./configure --cache-file=cacheconfig.txt  \
	--with-proj \
	--with-wmsclient \
	--with-php=/usr/include/php \
	--with-apxs=/usr/sbin/apxs \
	--with-gdal=/usr/local/bin/gdal-config \
	--with-ogr \
	--with-postgis=yes \
	--with-tiff

I have compiled and/or installed all the missing libraries so the configure 
script works without errors.

When I start 'make' it first compiles fine but then stops with the following 
error message: 

gcc -O2  -Wall -DIGNORE_MISSING_DATA  -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H 
-DUSE_WMS -DUSE_WMS_LYR  -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG 
-DUSE_GD_WBMP -DUSE_GD_FT   -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS   
-I/usr/include         -I/usr/local/include -I/usr/local/include 
-I/usr/include/pgsql -I/usr/include -I/usr/include/w3c-libwww -DHAVE_CONFIG_H 
 shp2img.o  -L. -lmap -lgd -L/usr/lib -lgd -ljpeg -lfreetype -lpng -lz  
-ltiff -ljpeg -lfreetype -lpng -lz -lproj -ljpeg   -L/usr/local/lib 
-lgdal.1.1  -L/usr/lib -lpq -L/usr/lib -lwwwxml -lxmltok -lxmlparse -lwwwzip 
-lwwwinit -lwwwapp -lwwwhtml -lwwwtelnet -lwwwnews -lwwwhttp -lwwwmime 
-lwwwgopher -lwwwftp -lwwwfile -lwwwdir -lwwwcache -lwwwstream -lwwwmux 
-lwwwtrans -lwwwcore -lwwwutils -lmd5 -ldl -lz -L/usr/lib -lssl -lcrypto    
-lm   -o shp2img
./libmap.a(mapogr.o): In function `msLoadWKTProjectionString':
mapogr.o(.text+0xb7e): undefined reference to 
`OGRSpatialReference::IsLocal(void)'
mapogr.o(.text+0xba7): undefined reference to 
`OGRSpatialReference::exportToProj4(char **)'
./libmap.a(mapogr.o): In function 
`msOGRSpatialRef2ProjectionObj(OGRSpatialReference *, projectionObj *)':
mapogr.o(.text+0xd1e): undefined reference to 
`OGRSpatialReference::IsLocal(void)'
mapogr.o(.text+0xd3c): undefined reference to 
`OGRSpatialReference::exportToProj4(char **)'
collect2: ld returned 1 exit status
make: *** [shp2img] Fehler 1

I tried to check the source file 'mapogr.cpp' but I'm really not a 
developer... so, does anybody know what's wrong?
Thanks for help!
I attached the whole 'make' output.

Kurt Gerber
-------------- next part --------------
gcc -c -O2  -Wall -DIGNORE_MISSING_DATA  -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR  -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT   -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS   -I/usr/include         -I/usr/local/include -I/usr/local/include -I/usr/include/pgsql -I/usr/include -I/usr/include/w3c-libwww -DHAVE_CONFIG_H  maptemplate.c -o maptemplate.o
gcc -c -O2  -Wall -DIGNORE_MISSING_DATA  -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR  -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT   -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS   -I/usr/include         -I/usr/local/include -I/usr/local/include -I/usr/include/pgsql -I/usr/include -I/usr/include/w3c-libwww -DHAVE_CONFIG_H  mapbits.c -o mapbits.o
gcc -c -O2  -Wall -DIGNORE_MISSING_DATA  -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR  -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT   -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS   -I/usr/include         -I/usr/local/include -I/usr/local/include -I/usr/include/pgsql -I/usr/include -I/usr/include/w3c-libwww -DHAVE_CONFIG_H  maphash.c -o maphash.o
gcc -c -O2  -Wall -DIGNORE_MISSING_DATA  -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR  -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT   -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS   -I/usr/include         -I/usr/local/include -I/usr/local/include -I/usr/include/pgsql -I/usr/include -I/usr/include/w3c-libwww -DHAVE_CONFIG_H  mapshape.c -o mapshape.o
gcc -c -O2  -Wall -DIGNORE_MISSING_DATA  -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR  -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT   -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS   -I/usr/include         -I/usr/local/include -I/usr/local/include -I/usr/include/pgsql -I/usr/include -I/usr/include/w3c-libwww -DHAVE_CONFIG_H  mapxbase.c -o mapxbase.o
gcc -c -O2  -Wall -DIGNORE_MISSING_DATA  -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR  -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT   -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS   -I/usr/include         -I/usr/local/include -I/usr/local/include -I/usr/include/pgsql -I/usr/include -I/usr/include/w3c-libwww -DHAVE_CONFIG_H  mapparser.c -o mapparser.o
gcc -c -O2  -Wall -DIGNORE_MISSING_DATA  -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR  -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT   -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS   -I/usr/include         -I/usr/local/include -I/usr/local/include -I/usr/include/pgsql -I/usr/include -I/usr/include/w3c-libwww -DHAVE_CONFIG_H  maplexer.c -o maplexer.o
maplexer.c:3273: warning: `yyunput' defined but not used
gcc -c -O2  -Wall -DIGNORE_MISSING_DATA  -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR  -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT   -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS   -I/usr/include         -I/usr/local/include -I/usr/local/include -I/usr/include/pgsql -I/usr/include -I/usr/include/w3c-libwww -DHAVE_CONFIG_H  maptree.c -o maptree.o
gcc -c -O2  -Wall -DIGNORE_MISSING_DATA  -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR  -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT   -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS   -I/usr/include         -I/usr/local/include -I/usr/local/include -I/usr/include/pgsql -I/usr/include -I/usr/include/w3c-libwww -DHAVE_CONFIG_H  mapsearch.c -o mapsearch.o
gcc -c -O2  -Wall -DIGNORE_MISSING_DATA  -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR  -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT   -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS   -I/usr/include         -I/usr/local/include -I/usr/local/include -I/usr/include/pgsql -I/usr/include -I/usr/include/w3c-libwww -DHAVE_CONFIG_H  mapstring.c -o mapstring.o
gcc -c -O2  -Wall -DIGNORE_MISSING_DATA  -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR  -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT   -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS   -I/usr/include         -I/usr/local/include -I/usr/local/include -I/usr/include/pgsql -I/usr/include -I/usr/include/w3c-libwww -DHAVE_CONFIG_H  mapsymbol.c -o mapsymbol.o
gcc -c -O2  -Wall -DIGNORE_MISSING_DATA  -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR  -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT   -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS   -I/usr/include         -I/usr/local/include -I/usr/local/include -I/usr/include/pgsql -I/usr/include -I/usr/include/w3c-libwww -DHAVE_CONFIG_H  mapfile.c -o mapfile.o
gcc -c -O2  -Wall -DIGNORE_MISSING_DATA  -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR  -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT   -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS   -I/usr/include         -I/usr/local/include -I/usr/local/include -I/usr/include/pgsql -I/usr/include -I/usr/include/w3c-libwww -DHAVE_CONFIG_H  maplegend.c -o maplegend.o
gcc -c -O2  -Wall -DIGNORE_MISSING_DATA  -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR  -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT   -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS   -I/usr/include         -I/usr/local/include -I/usr/local/include -I/usr/include/pgsql -I/usr/include -I/usr/include/w3c-libwww -DHAVE_CONFIG_H  maputil.c -o maputil.o
gcc -c -O2  -Wall -DIGNORE_MISSING_DATA  -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR  -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT   -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS   -I/usr/include         -I/usr/local/include -I/usr/local/include -I/usr/include/pgsql -I/usr/include -I/usr/include/w3c-libwww -DHAVE_CONFIG_H  mapscale.c -o mapscale.o
gcc -c -O2  -Wall -DIGNORE_MISSING_DATA  -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR  -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT   -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS   -I/usr/include         -I/usr/local/include -I/usr/local/include -I/usr/include/pgsql -I/usr/include -I/usr/include/w3c-libwww -DHAVE_CONFIG_H  mapquery.c -o mapquery.o
gcc -c -O2  -Wall -DIGNORE_MISSING_DATA  -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR  -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT   -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS   -I/usr/include         -I/usr/local/include -I/usr/local/include -I/usr/include/pgsql -I/usr/include -I/usr/include/w3c-libwww -DHAVE_CONFIG_H  maplabel.c -o maplabel.o
gcc -c -O2  -Wall -DIGNORE_MISSING_DATA  -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR  -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT   -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS   -I/usr/include         -I/usr/local/include -I/usr/local/include -I/usr/include/pgsql -I/usr/include -I/usr/include/w3c-libwww -DHAVE_CONFIG_H  maperror.c -o maperror.o
gcc -c -O2  -Wall -DIGNORE_MISSING_DATA  -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR  -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT   -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS   -I/usr/include         -I/usr/local/include -I/usr/local/include -I/usr/include/pgsql -I/usr/include -I/usr/include/w3c-libwww -DHAVE_CONFIG_H  mapprimitive.c -o mapprimitive.o
mapprimitive.c: In function `msImageCartographicPolyline':
mapprimitive.c:1102: warning: unused variable `intersect_points'
mapprimitive.c:1099: warning: `last_angle' might be used uninitialized in this function
mapprimitive.c: At top level:
mapprimitive.c:771: warning: `get_centroid' defined but not used
gcc -c -O2  -Wall -DIGNORE_MISSING_DATA  -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR  -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT   -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS   -I/usr/include         -I/usr/local/include -I/usr/local/include -I/usr/include/pgsql -I/usr/include -I/usr/include/w3c-libwww -DHAVE_CONFIG_H  mapproject.c -o mapproject.o
gcc -c -O2  -Wall -DIGNORE_MISSING_DATA  -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR  -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT   -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS   -I/usr/include         -I/usr/local/include -I/usr/local/include -I/usr/include/pgsql -I/usr/include -I/usr/include/w3c-libwww -DHAVE_CONFIG_H  mapraster.c -o mapraster.o
gcc -c -O2  -Wall -DIGNORE_MISSING_DATA  -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR  -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT   -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS   -I/usr/include         -I/usr/local/include -I/usr/local/include -I/usr/include/pgsql -I/usr/include -I/usr/include/w3c-libwww -DHAVE_CONFIG_H  mapsde.c -o mapsde.o
c++ -c -O2  -Wall -DIGNORE_MISSING_DATA  -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR  -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT   -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS   -I/usr/include         -I/usr/local/include -I/usr/local/include -I/usr/include/pgsql -I/usr/include -I/usr/include/w3c-libwww -DHAVE_CONFIG_H  mapogr.cpp -o mapogr.o
gcc -c -O2  -Wall -DIGNORE_MISSING_DATA  -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR  -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT   -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS   -I/usr/include         -I/usr/local/include -I/usr/local/include -I/usr/include/pgsql -I/usr/include -I/usr/include/w3c-libwww -DHAVE_CONFIG_H  mappostgis.c -o mappostgis.o
mappostgis.c: In function `msPOSTGISLayerGetShapeRandom':
mappostgis.c:860: warning: enumeration value `MS_LAYER_RASTER' not handled in switch
mappostgis.c:860: warning: enumeration value `MS_LAYER_CIRCLE' not handled in switch
mappostgis.c: In function `msPOSTGISLayerGetShape':
mappostgis.c:1053: warning: enumeration value `MS_LAYER_RASTER' not handled in switch
mappostgis.c:1053: warning: enumeration value `MS_LAYER_CIRCLE' not handled in switch
gcc -c -O2  -Wall -DIGNORE_MISSING_DATA  -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR  -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT   -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS   -I/usr/include         -I/usr/local/include -I/usr/local/include -I/usr/include/pgsql -I/usr/include -I/usr/include/w3c-libwww -DHAVE_CONFIG_H  maplayer.c -o maplayer.o
gcc -c -O2  -Wall -DIGNORE_MISSING_DATA  -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR  -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT   -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS   -I/usr/include         -I/usr/local/include -I/usr/local/include -I/usr/include/pgsql -I/usr/include -I/usr/include/w3c-libwww -DHAVE_CONFIG_H  mapresample.c -o mapresample.o
gcc -c -O2  -Wall -DIGNORE_MISSING_DATA  -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR  -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT   -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS   -I/usr/include         -I/usr/local/include -I/usr/local/include -I/usr/include/pgsql -I/usr/include -I/usr/include/w3c-libwww -DHAVE_CONFIG_H  mapwms.c -o mapwms.o
gcc -c -O2  -Wall -DIGNORE_MISSING_DATA  -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR  -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT   -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS   -I/usr/include         -I/usr/local/include -I/usr/local/include -I/usr/include/pgsql -I/usr/include -I/usr/include/w3c-libwww -DHAVE_CONFIG_H  mapwmslayer.c -o mapwmslayer.o
In file included from /usr/include/w3c-libwww/WWWXML.h:57,
                 from /usr/include/w3c-libwww/HTInit.h:144,
                 from /usr/include/w3c-libwww/WWWInit.h:51,
                 from mapwmslayer.c:131:
/usr/include/w3c-libwww/HTXML.h:104:3: warning: "/*" within comment
mapwmslayer.c: In function `tracer':
mapwmslayer.c:139: warning: control reaches end of non-void function
gcc -c -O2  -Wall -DIGNORE_MISSING_DATA  -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR  -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT   -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS   -I/usr/include         -I/usr/local/include -I/usr/local/include -I/usr/include/pgsql -I/usr/include -I/usr/include/w3c-libwww -DHAVE_CONFIG_H  maporaclespatial.c -o maporaclespatial.o
gcc -c -O2  -Wall -DIGNORE_MISSING_DATA  -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR  -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT   -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS   -I/usr/include         -I/usr/local/include -I/usr/local/include -I/usr/include/pgsql -I/usr/include -I/usr/include/w3c-libwww -DHAVE_CONFIG_H  mapgml.c -o mapgml.o
gcc -c -O2  -Wall -DIGNORE_MISSING_DATA  -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR  -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT   -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS   -I/usr/include         -I/usr/local/include -I/usr/local/include -I/usr/include/pgsql -I/usr/include -I/usr/include/w3c-libwww -DHAVE_CONFIG_H  mapprojhack.c -o mapprojhack.o
gcc -c -O2  -Wall -DIGNORE_MISSING_DATA  -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR  -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT   -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS   -I/usr/include         -I/usr/local/include -I/usr/local/include -I/usr/include/pgsql -I/usr/include -I/usr/include/w3c-libwww -DHAVE_CONFIG_H  mapthread.c -o mapthread.o
gcc -c -O2  -Wall -DIGNORE_MISSING_DATA  -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR  -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT   -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS   -I/usr/include         -I/usr/local/include -I/usr/local/include -I/usr/include/pgsql -I/usr/include -I/usr/include/w3c-libwww -DHAVE_CONFIG_H  epplib.c -o epplib.o
ar rc libmap.a maptemplate.o mapbits.o maphash.o mapshape.o mapxbase.o mapparser.o maplexer.o maptree.o mapsearch.o mapstring.o mapsymbol.o mapfile.o maplegend.o maputil.o mapscale.o mapquery.o maplabel.o maperror.o mapprimitive.o mapproject.o mapraster.o mapsde.o mapogr.o mappostgis.o maplayer.o mapresample.o mapwms.o mapwmslayer.o maporaclespatial.o mapgml.o mapprojhack.o mapthread.o epplib.o  
ranlib libmap.a
gcc -c -O2  -Wall -DIGNORE_MISSING_DATA  -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR  -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT   -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS   -I/usr/include         -I/usr/local/include -I/usr/local/include -I/usr/include/pgsql -I/usr/include -I/usr/include/w3c-libwww -DHAVE_CONFIG_H  shp2img.c -o shp2img.o
gcc -O2  -Wall -DIGNORE_MISSING_DATA  -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS -DUSE_WMS_LYR  -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT   -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS   -I/usr/include         -I/usr/local/include -I/usr/local/include -I/usr/include/pgsql -I/usr/include -I/usr/include/w3c-libwww -DHAVE_CONFIG_H  shp2img.o  -L. -lmap -lgd -L/usr/lib -lgd -ljpeg -lfreetype -lpng -lz  -ltiff -ljpeg -lfreetype -lpng -lz -lproj -ljpeg   -L/usr/local/lib -lgdal.1.1  -L/usr/lib -lpq -L/usr/lib -lwwwxml -lxmltok -lxmlparse -lwwwzip -lwwwinit -lwwwapp -lwwwhtml -lwwwtelnet -lwwwnews -lwwwhttp -lwwwmime -lwwwgopher -lwwwftp -lwwwfile -lwwwdir -lwwwcache -lwwwstream -lwwwmux -lwwwtrans -lwwwcore -lwwwutils -lmd5 -ldl -lz -L/usr/lib -lssl -lcrypto    -lm   -o shp2img
./libmap.a(mapogr.o): In function `msLoadWKTProjectionString':
mapogr.o(.text+0xb7e): undefined reference to `OGRSpatialReference::IsLocal(void)'
mapogr.o(.text+0xba7): undefined reference to `OGRSpatialReference::exportToProj4(char **)'
./libmap.a(mapogr.o): In function `msOGRSpatialRef2ProjectionObj(OGRSpatialReference *, projectionObj *)':
mapogr.o(.text+0xd1e): undefined reference to `OGRSpatialReference::IsLocal(void)'
mapogr.o(.text+0xd3c): undefined reference to `OGRSpatialReference::exportToProj4(char **)'
collect2: ld returned 1 exit status
make: *** [shp2img] Fehler 1
-------------- next part --------------
loading cache cacheconfig.txt
checking for gcc... (cached) gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for c++... (cached) c++
checking whether the C++ compiler (c++  ) works... yes
checking whether the C++ compiler (c++  ) is a cross-compiler... no
checking whether we are using GNU C++... (cached) yes
checking whether c++ accepts -g... (cached) yes
checking for ranlib... (cached) ranlib
checking for flex... (cached) flex
checking for yywrap in -lfl... (cached) yes
checking for bison... (cached) bison -y
checking if compiler supports -R... (cached) no
checking if compiler supports -Wl,-rpath,... (cached) yes
checking for exp in -lm... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking for ANSI C header files... (cached) yes
checking for strcasecmp... (cached) yes
checking for strncasecmp... (cached) yes
checking for strdup... (cached) yes
checking whether we should include JPEG support...
checking for jpeg_read_header in -ljpeg... yes
        using libjpeg from system libs.
checking which version of GD to use...
        using libgd from system libs.
checking where FreeType is installed...
checking for FT_Init_FreeType in -lfreetype... yes
        using libfreetype -lfreetype from system libs.
checking where Zlib is installed...
checking for zlibVersion in -lz... yes
        using libz from system libs.
checking where PNG is installed...
checking for png_init_io in -lpng... yes
        using libpng from system libs.
checking for gdImageCreate in -lgd... yes
checking for gdImageGif in -lgd... no
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 gdImageString16 in -lgd... yes
checking for gdImageGifPtr in -lgd... no
        using GD ( -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT) from system libs.
checking whether we should include PDF support...
checking for PDF_setlinewidth in -lpdf... no
checking for PDF_setrgbcolor in -lpdf... no
checking for PDF_moveto in -lpdf... no
checking for PDF_curveto in -lpdf... no
checking for PDF_show_xy in -lpdf... (cached) no
        libpdf not found... PDF support not included.
checking whether we should include TIFF support...
checking for TIFFOpen in -ltiff... yes
        using libtiff from system libs.
checking whether we should include EPPL7 support...
        including EPPL7 support.
checking whether we should include PROJ.4 support...
checking for pj_init in -lproj... yes
checking for pj_transform in -lproj... yes
checking for pj_latlong_from_proj in -lproj... yes
        using PROJ.4 from system libs.
checking whether we should include thread safe support...
        thread safe support disabled.
checking whether we should include ESRI SDE support...
        ESRI SDE support not requested.
checking whether we should compile in MPATROL support...
        MPATROL support not requested.
checking whether we should include OGR support...
checking for gdal-config... (cached) /usr/local/bin/gdal-config
checking for OGRRegisterAll in -lgdal.1.1... (cached) yes
        using OGR from system libs.
checking if GDAL support requested... yes, user supplied gdal-config
checking if PostGIS support requested... yes
checking for pg_config... (cached) /usr//bin/pg_config
yes, user supplied pg_config
checking if OracleSpatial support requested... no
checking whether we should include WMS support...
        OGC WMS compatibility enabled (-DUSE_WMS).
checking whether we should include WMS Client Connections support...
checking for libwww-config... (cached) /usr//bin/libwww-config
        found libwww version 5.3.2
        OGC WMS Client Connections enabled (-DUSE_WMS_LYR).
checking for potential conflict between system regex and rxposix...
checking for regexec in -lrx... (cached) no
Compiling with -DIGNORE_MISSING_DATA.
checking whether we should enable debug features...
checking for PHP/MapScript module options...
checking whether 'perl -V' works... yes
checking for location of config.h or php_config.h... /usr/include/php/main/php_config.h
checking whether we have PHP3 or PHP4... -DPHP4
checking whether we should use PHP's regex... no
        PHP/MapScript module configured.
checking for location of Apache headers using apxs... -I/usr/include/apache
creating ./config.status
creating Makefile
creating mapscript/php3/Makefile


More information about the mapserver-users mailing list