[Mapserver-users] mapserver with gdal: compile error

Frank Warmerdam warmerdam at pobox.com
Tue Feb 17 11:36:44 EST 2004


Schnider Markus wrote:
> Hi all
> 
> I've tried to compile mapserver 4.0.1 with gdal support on debian.
> 
> The configure arguments are:
> 
> ./configure \
> --with-httpd=/usr/sbin/apache  \
> --with-gd  \
> --with-eppl  \
> --with-proj  \
> --with-postgis  \
> --with-sde=<path/to/arcsde>  \
> --with-sde-version=82  \
> --with-ming  \
> --with-php=<path/to/php/sources> \
> --with-gdal
> 
> I've also tried to disable jpeg and tiff, or set the path of gdal.
> 
> Nothing has changed, always the same error:
> ./libmap.a(mapogr.o)(.text+0x50): In function 
> `msOGRSpatialRef2ProjectionObj(OGRSpatialReference*, projectionObj*, int)':
> : undefined reference to `OGRSpatialReference::IsLocal() const'
> ./libmap.a(mapogr.o)(.text+0x6a): In function 
> `msOGRSpatialRef2ProjectionObj(OGRSpatialReference*, projectionObj*, int)':
> : undefined reference to `OGRSpatialReference::exportToProj4(char**) const'
> ./libmap.a(mapogr.o)(.text+0x119): In function `msOGCWKT2ProjectionObj':
> : undefined reference to `OGRSpatialReference::OGRSpatialReference[in-charge]
> (char const*)'
> ./libmap.a(mapogr.o)(.text+0x12e): In function `msOGCWKT2ProjectionObj':
> : undefined reference to `OGRSpatialReference::importFromWkt(char**)'
> ./libmap.a(mapogr.o)(.text+0x158): In function `msOGCWKT2ProjectionObj':
> : undefined reference to `OGRSpatialReference::~OGRSpatialReference 
> [in-charge]()'
> ./libmap.a(mapogr.o)(.text+0x18c): In function `msOGCWKT2ProjectionObj':
> : undefined reference to `OGRSpatialReference::~OGRSpatialReference 
> [in-charge]()'
> ./libmap.a(mapogr.o)(.text+0x19a): In function `msOGCWKT2ProjectionObj':
> : undefined reference to `OGRSpatialReference::~OGRSpatialReference 
> [in-charge]()'
> collect2: ld returned 1 exit status
> make: *** [shp2img] Fehler 1

Markus,

Try adding --with-ogr.  It may be that building with GDAL but without
OGR is currently not working.  I will look into this, though it may have
already been fixed in CVS.

Best regards,

-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent




More information about the mapserver-users mailing list