From owner-freebsd-ports@FreeBSD.ORG Sat May 6 14:16:27 2006 Return-Path: X-Original-To: ports@freebsd.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AFF9616A406 for ; Sat, 6 May 2006 14:16:27 +0000 (UTC) (envelope-from bt@ccgis.de) Received: from sm7.simplethings.de (sm7.simplethings.de [217.160.128.151]) by mx1.FreeBSD.org (Postfix) with ESMTP id 19D0A43D46 for ; Sat, 6 May 2006 14:16:26 +0000 (GMT) (envelope-from bt@ccgis.de) Received: from smm.simplethings.de ([85.88.4.201]) by sm7.simplethings.de with esmtp (Exim 4.50) id 1FcNa1-00040V-FQ; Sat, 06 May 2006 16:16:24 +0200 Received: from [212.79.172.180] (helo=center.shared) by smM.simplethings.de with esmtpsa (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.50) id 1FcNa1-0004ze-6n; Sat, 06 May 2006 16:16:21 +0200 Received: from [192.168.2.66] (helo=[192.168.2.66]) by center.shared with esmtp (Exim 4.50) id 1FcNab-00006N-Rr; Sat, 06 May 2006 16:16:57 +0200 Message-ID: <445CAFDA.3060506@ccgis.de> Date: Sat, 06 May 2006 16:16:58 +0200 From: Benjamin Thelen User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) MIME-Version: 1.0 To: ports@freebsd.org, gdal-dev-bounces@lists.maptools.org Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 0.1 (/) Cc: Subject: FreeBSD-4.11: gdal-1.3.1 stops if latest geos is installed (possible workaround) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 May 2006 14:16:27 -0000 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, __default_alloc_template >)' ../.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