[Mapserver-users] Compile Mapserver 4.0.1 - gdal-1.1.9

Rolando Riley rriley at rolandoriley.com
Tue May 18 06:12:13 PDT 2004


Hello Guys:
   I have been following your directions to compile mapserver with support
to OGR.  Each time I try to do it I get this error.  What is wrong?


-----------
#
./configure --with-httpd=/usr/sbin/httpd --with-gdal=/usr/local/bin/gdal-con
fig --with-proj=/usr/ --with-tiff=/usr --with-ogr=/home/rriley/gdal-1.1.9/og
r/ --with-wfs --with-wfsclient


# make

gcc -O2  -Wall -DIGNORE_MISSING_DATA  -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H
 -DU
SE_WMS_SVR  -DUSE_WFS_SVR -DUSE_WFS_LYR   -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG
 -DU
SE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT   -DUSE_OGR -DUSE_GDAL     -I/usr/inclu
de
-I/usr//include -I/usr/include      -I/home/rriley/gdal-1.1.9/ogr//ogrsf_frm
ts -
I/home/rriley/gdal-1.1.9/ogr/ -I/home/rriley/gdal-1.1.9/ogr//../port -I/usr/
loca
l/include
     shp2img.o  -L. -lmap -lgd -L/usr/lib -lgd -ljpeg -lfreetype -lpng
 -lz    -L/usr/lib -ltiff -ljpeg -lfreetype -lpng -lz   -L/usr//lib -lproj -
ljpe
g   -L/usr/local/lib -lgdal.1.1    -L/usr/lib -lcurl -lssl -lcrypto -ldl -ls
sl -
lcrypto -ldl -lz    -lm
/home/rriley/gdal-1.1.9/ogr//ogrsf_frmts/ogrsf_frmts.a
/home/rriley/gdal-1.1.9/ogr//ogr.a
/home/rriley/gdal-1.1.9/ogr//../port/cpl.a -o
 shp2img
./libmap.a(mapogr.o): In function `ogrGeomPoints(OGRGeometry *, shapeObj
*)':
mapogr.o(.text+0x1b3): undefined reference to
`OGRPolygon::getNumInteriorRings(v
oid) const'
mapogr.o(.text+0x20f): undefined reference to
`OGRGeometryCollection::getNumGeom
etries(void) const'
mapogr.o(.text+0x3fa): undefined reference to
`OGRPolygon::getNumInteriorRings(v
oid) const'
./libmap.a(mapogr.o): In function `ogrGeomLine(OGRGeometry *, shapeObj *,
int)':
mapogr.o(.text+0x52d): undefined reference to
`OGRPolygon::getNumInteriorRings(v
oid) const'
mapogr.o(.text+0x5c3): undefined reference to
`OGRGeometryCollection::getNumGeom
etries(void) const'
collect2: ld returned 1 exit status
make: *** [shp2img] Error 1
--------------------


thanks



R. Riley




More information about the MapServer-users mailing list