FreeBSD-4.11: gdal-1.3.1 stops if latest geos is installed (possible workaround)

Benjamin Thelen bt at ccgis.de
Sat May 6 14:16:27 UTC 2006


Sorry, for cross-posting!


Hello,

Compiling gdal-1.3.1 on FreeBSD-4.11 breaks, if also geos-2.2.1 is 
installed.  The compiling output can be found at the end of this mail.

I found out that besides compiling "--without-geos" of course, using 
gcc-3.4 instead of gcc-2.95 does the trick, too.

I did change the ports Makefile either like this


.if ${OSVERSION} < 500000
CONFIGURE_ARGS+=--without-pcraster
USE_GCC=        3.4+
.endif


or like this:


.if ${OSVERSION} < 500000
CONFIGURE_ARGS+=--without-pcraster --without-geos
.endif



But, using gcc-3.4 may have concequences I cannot evaluate.
For example, it is then required to build UMN-MapServer 4.8.3 (not from 
ports) with gcc-3.4, too, otherwise compiling UMN-MapServer breaks. But 
doing so leads to this warning:

.
.
.
/usr/libexec/elf/ld: warning: libstdc++.so.3, needed by
/usr/local/lib/libgdal.so, may conflict with libstdc++.so.6


What are the possible consequences if I ignore this warning?

Will there be a chance to build gdal with geos using gcc-2.95 or is it 
just time to move from FreeBSD-4 to 6?



Best Regards,
Ben



== My environment ==

OS: FreeBSD 4.11-RELEASE-p13
geos: 2.2.1 (from ports)
gdal: 1.3.1 (from ports) - tested 1.3.2, too





build error gdal-1.3.1 on FreeBSD-4.11p13 with geos-2.2.1 installed:

.
.
.
/usr/libexec/elf/ld: warning: libstdc++.so.6, needed by
/usr/local/lib/libgeos.so, may conflict with libstdc++.so.3
../.libs/libgdal.so: undefined reference to
`geos::DistanceOp::DistanceOp(geos::Geometry const *, geos::Geometry
const *)'
../.libs/libgdal.so: undefined reference to
`geos::ConvexHull::~ConvexHull(void)'
../.libs/libgdal.so: undefined reference to
`geos::BufferOp::BufferOp(geos::Geometry *)'
../.libs/libgdal.so: undefined reference to
`geos::WKTReader::read(basic_string<char, string_char_traits<char>,
__default_alloc_template<false, 0> >)'
../.libs/libgdal.so: undefined reference to
`geos::DistanceOp::distance(void)'
../.libs/libgdal.so: undefined reference to
`geos::WKTWriter::WKTWriter(void)'
../.libs/libgdal.so: undefined reference to
`geos::WKTReader::WKTReader(geos::GeometryFactory const *)'
../.libs/libgdal.so: undefined reference to `geos::GEOSException
type_info node'
../.libs/libgdal.so: undefined reference to
`geos::ConvexHull::getConvexHull(void)'
../.libs/libgdal.so: undefined reference to `geos::GEOSException
type_info function'
../.libs/libgdal.so: undefined reference to
`geos::WKTWriter::write(geos::Geometry const *)'
../.libs/libgdal.so: undefined reference to
`geos::ConvexHull::ConvexHull(geos::Geometry const *)'
../.libs/libgdal.so: undefined reference to
`geos::WKTReader::~WKTReader(void)'
../.libs/libgdal.so: undefined reference to
`geos::BufferOp::getResultGeometry(double, int)'
../.libs/libgdal.so: undefined reference to
`geos::WKTWriter::~WKTWriter(void)'
../.libs/libgdal.so: undefined reference to
`geos::GeometryFactory::GeometryFactory(void)'
../.libs/libgdal.so: undefined reference to
`geos::DistanceOp::~DistanceOp(void)'
gmake[1]: *** [ogrinfo] Error 1
gmake[1]: Leaving directory `/usr/ports/graphics/gdal/work/gdal-1.3.1/ogr'
gmake: *** [ogr-apps] Error 2
*** Error code 2




More information about the freebsd-ports mailing list