In continuation of my earlier mail

Frank Warmerdam warmerdam at POBOX.COM
Tue Feb 14 08:07:47 EST 2006


Aniruddha S. Khadkikar wrote:
> Yes, there was another issue when I tried to compile with ogr support. I
> frankly do not have a clue what the following means:
> mapogr.cpp: undefined reference to `OGRLineString::setPoint(int, double,
> double)'
> ./libmap.a(mapogr.o)(.text+0x4af):mapogr.cpp: undefined reference to
> `OGRLineString::setPoint(int, double, double)'
> ./libmap.a(mapogr.o)(.text+0x4c8):mapogr.cpp: undefined reference to
> `OGRLineString::setPoint(int, double, double)'
> ./libmap.a(mapogr.o)(.text+0x4e1):mapogr.cpp: undefined reference to
> `OGRLineString::setPoint(int, double, double)'
> ./libmap.a(mapogr.o)(.text+0x4f6):mapogr.cpp: undefined reference to
> `OGRLineString::setPoint(int, double, double)'
> ./libmap.a(mapogr.o)(.text+0xae9): In function `msOGRShapeToWKT':
> mapogr.cpp: undefined reference to `OGR_G_AddPoint_2D'
> ./libmap.a(mapogr.o)(.text+0xb39):mapogr.cpp: undefined reference to
> `OGR_G_SetPoint_2D'
> ./libmap.a(mapogr.o)(.text+0xbb7):mapogr.cpp: undefined reference to
> `OGR_G_AddPoint_2D'
> collect2: ld returned 1 exit status
> make: *** [shp2img] Error 1
> 
> ...after this I aborted. The earlier binary I am using is without ogr
> support.

Aniruddha,

The above messages indicate a versioning problem with OGR.  The
OGR_G_SetPoint_2D() function is relatively new.  But as long as you
pull in the right include files at built time, MapServer 4.8.1 should
avoid trying to use it. This was not true of some of the 4.8 pre-releases.

My suggestion is to make sure you have any old GDAL/OGR stuff stripped
off your system and then install GDAL/OGR 1.3.2 from source.  Then build
MapServer 4.8.1.

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