[Gdal-dev] gdal-1.3.1 on FreeBSD 4 fails to build

Benjamin Thelen bt at ccgis.de
Tue Dec 20 08:52:47 EST 2005


Sam Lawrance schrieb:
> 
> On 20/12/2005, at 10:35 AM, paul at warriner.us wrote:
> 
>> All,
>>
>> The following compiles 1.3.1 on FreeBSD 4.11:
>> ./configure --without-pcraster --with-local=/usr/local
>>
>> I haven't tried GEOS, yet.
>>
>> Yes, Frank, it's my fault for all this, but I sure you guessed  that. :)
> 
> 
> Unfortunately the same errors occur:
> http://people.freebsd.org/~lawrance/gdal-1.3.1-without-raster.log
> 

Sam, Frank and Paul,

Having added --without-geos --without-pcraster to the gdal ports 
Makefile (and of course commenting out the "BROKEN" paragraph), I 
acknowledge a successfully built and installed gdal-1.3.1 using FreeBSD 
4 standard gcc-2.95.


-----------------------------------------------------------------------
root at wms1# uname -a
FreeBSD wms1.ccgis.de 4.11-RELEASE-p13 FreeBSD 4.11-RELEASE-p13 #1: Thu 
Nov 24 16:17:09 CET 2005 
root at wms1.ccgis.de:/usr/obj/usr/src/sys/WMS1  i386
-----------------------------------------------------------------------

-----------------------------------------------------------------------
root at wms1# pkg_info |grep gdal
gdal-1.3.1          A translator library for raster geospatial data formats
-----------------------------------------------------------------------


and UMN-MapServer 4.8beta3. Very nice!

-----------------------------------------------------------------------
root at wms1# ./mapserv -v
MapServer version 4.8.0-beta3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG 
OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE 
SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER 
SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=POSTGIS INPUT=OGR 
INPUT=GDAL INPUT=SHAPEFILE
-----------------------------------------------------------------------


But, and this is definitely a major disadvantage, building gdal-1.3.1 
not using "--without-geos" fails (./configure --without-pcraster 
--with-local=/usr/local) - I suppose geos-1.0 is simply too old, but as 
we know, newer (at least, the latest) geos-versions don't build on 
FreeBSD 4.




-----------------------------------------------------------------------
g++ -Wall -O2 -Iogrsf_frmts -I. -I../port -I../gcore -I../alg -I../ogr 
-I../ogr/ogrsf_frmts -DHAVE_GEOS=1 -I-O -pipe -march=pentiumpro 
-I/usr/local/include -I/usr/local/include -I../port -c ogrgeometry.cpp 
-fPIC -DPIC -o .libs/ogrgeometry.o
In file included from /usr/local/include/geos/graphindex.h:46,
                  from /usr/local/include/geos/graph.h:35,
                  from /usr/local/include/geos/operation.h:35,
                  from /usr/local/include/geos/opDistance.h:29,
                  from ogrgeometry.cpp:140:
/usr/local/include/geos/geosAlgorithm.h:214: warning: `class 
geos::RobustCGAlgorithms' has virtual functions but non-virtual destructor
/usr/local/include/geos/geosAlgorithm.h:226: warning: `class 
geos::NonRobustCGAlgorithms' has virtual functions but non-virtual 
destructor
In file included from /usr/local/include/geos/operation.h:35,
                  from /usr/local/include/geos/opDistance.h:29,
                  from ogrgeometry.cpp:140:
/usr/local/include/geos/graph.h:186: warning: `class 
geos::GraphComponent' has virtual functions but non-virtual destructor
ogrgeometry.cpp: In method `class OGRGeometry * 
OGRGeometry::ConvexHull() const':
ogrgeometry.cpp:1465: no matching function for call to 
`geos::ConvexHull::ConvexHull (geos::Geometry *&)'
/usr/local/include/geos/geosAlgorithm.h:458: candidates are: 
geos::ConvexHull::ConvexHull(geos::CGAlgorithms *)
/usr/local/include/geos/geosAlgorithm.h:461: 
geos::ConvexHull::ConvexHull(const geos::ConvexHull &)
ogrgeometry.cpp:1468: no matching function for call to 
`geos::ConvexHull::getConvexHull ()'
/usr/local/include/geos/geosAlgorithm.h:460: candidates are: class 
geos::Geometry * geos::ConvexHull::getConvexHull(const geos::Geometry *)
ogrgeometry.cpp:1466: warning: `class geos::Geometry * poHullGeosGeom' 
might be used uninitialized in this function
gmake[1]: *** [ogrgeometry.o] Fehler 1
gmake[1]: Leaving directory `/data/src/gdal-1.3.1/ogr'
gmake: *** [ogr-target] Fehler 2
-----------------------------------------------------------------------




I acknowledge the same error Sam has been faced with, building 
gdal-1.3.1 using gcc-3.4 (--without-geos!!)


-----------------------------------------------------------------------
.
.
.
collect2: ld returned 1 exit status
gmake[1]: *** [ogrinfo] Error 1
gmake[1]: Leaving directory 
`/work/a/ports/graphics/gdal/work/gdal-1.3.1/ogr'
gmake: *** [ogr-apps] Error 2
*** Error code 2
-----------------------------------------------------------------------


As geos-2 is also broken for FreeBSD 4 and for various other reasons, 
we've decided to move to FreeBSD 6.




Nevertheless I would like to offer my help for testing purposes or 
something like that - I don't have any knowledge regarding c++ coding, 
thus I can't support you as much as I'd like to, I'm afraid.

Thanks,
Ben




More information about the Gdal-dev mailing list