[Mapserver-users] mapserver compile problems

Philipp Jacob philipp.jacob at geosysnet.de
Thu Jan 9 06:03:59 EST 2003


Daniel Morissette wrote:

>Philipp Jacob wrote:
>  
>
>>i recompiled the gdal library.
>>configure checked for OGR support and enabled it. well, sounds nice.
>>'make all' 'make install'    done..
>>
>>then i configured the mapserver again.
>>additionally with the option: --with-ogr
>>configure finished successfully and i had a look at the Makefile.
>>OGR support is mentioned there, and the right paths are set.
>>(/usr/local/lib -lgdal.1.1)
>>
>>but 'make' brings even more 'undefined references' than before:
>>
>>------------
>>...
>>./libmap.a(mapogr.o): In function `ogrGeomPoints(OGRGeometry *, shapeObj
>>*)':
>>mapogr.o(.text+0x16c): undefined reference to
>>`OGRPolygon::getExteriorRing(void)'
>>    
>>
>
>
>Looks very much like your libgdal.1.1.so doesn't include OGR support. 
>Did you do a 'make clean' after you reconfigured your GDAL and before
>recompiling and reinstalling it?  Did you also do a 'make clean' in the
>MapServer directory before recompiling it?
>
>I guess you could also check that OGR is really included in your
>libgdal.1.1.so using the following command, you should see about 30
>symbols associated with OGRPolygon:
>
>nm /usr/local/lib/libgdal.1.1.so | grep OGRPolygon
>
>The last thing I can think of would be an issue with the order of the
>libraries on the link command, but I don't think I've ever seen this
>happening on any platform with MapServer.
>
>Daniel
>  
>

"nm /usr/local/lib/libgdal.1.1.so | grep OGRPolygon" brings up the following:

----------
00183bc0 T _Z14OGRGetCentroidP10OGRPolygonP8OGRPoint
00183450 T _Z20OGRPolygonLabelPointP10OGRPolygonP8OGRPoint
001833b0 T _Z24OGRIntersectPointPolygonP8OGRPointP10OGRPolygon
00188610 T _ZN10OGRPolygon11exportToWkbE15OGRwkbByteOrderPh
00188950 T _ZN10OGRPolygon11exportToWktEPPc
00188ae0 T _ZN10OGRPolygon11getEnvelopeEP11OGREnvelope
00188230 T _ZN10OGRPolygon12getDimensionEv
00188420 T _ZN10OGRPolygon13importFromWkbEPhi
001886f0 T _ZN10OGRPolygon13importFromWktEPPc
00188ad0 T _ZN10OGRPolygon14PointOnSurfaceEP8OGRPoint
00188380 T _ZN10OGRPolygon15addRingDirectlyEP13OGRLinearRing
00188270 T _ZN10OGRPolygon15getExteriorRingEv
00188250 T _ZN10OGRPolygon15getGeometryNameEv
00188220 T _ZN10OGRPolygon15getGeometryTypeEv
001882c0 T _ZN10OGRPolygon15getInteriorRingEi
001882a0 T _ZN10OGRPolygon19getNumInteriorRingsEv
00188240 T _ZN10OGRPolygon22getCoordinateDimensionEv
00188bf0 T _ZN10OGRPolygon5EqualEP11OGRGeometry
001880e0 T _ZN10OGRPolygon5cloneEv
00188180 T _ZN10OGRPolygon5emptyEv
001883d0 T _ZN10OGRPolygon7WkbSizeEv
001882f0 T _ZN10OGRPolygon7addRingEP13OGRLinearRing
00188ac0 T _ZN10OGRPolygon8CentroidEP8OGRPoint
00188aa0 T _ZN10OGRPolygon8get_AreaEv
00188cf0 T _ZN10OGRPolygon9transformEP27OGRCoordinateTransformation
00187fb0 T _ZN10OGRPolygonC1Ev
00187f70 T _ZN10OGRPolygonC2Ev
00188090 T _ZN10OGRPolygonD0Ev
00188040 T _ZN10OGRPolygonD1Ev
00187ff0 T _ZN10OGRPolygonD2Ev
00173ff0 T _ZN9TABRegion13AppendSecHdrsEP10OGRPolygonRP19TABMAPCoordSecHdr_tP10TABMAPFileRi
0021c330 V _ZTI10OGRPolygon
001df416 V _ZTS10OGRPolygon
0021c240 V _ZTV10OGRPolygon
----------

then i configured the new mapserver version 3.6.4:
----------
...
checking whether we should include OGR support...
checking for gdal-config... /usr/local/bin/gdal-config
checking for OGRRegisterAll in -lgdal.1.1... yes
        using OGR from system libs.
checking if GDAL support requested... yes
...
-----------

but 'make' doesn't finish anyway.
(again many 'undefined references'...)






More information about the mapserver-users mailing list