[Gdal-dev] Re: gdal-1.3.1 on FreeBSD 4 fails to build
Sam Lawrance
lawrance at FreeBSD.org
Mon Dec 19 08:32:53 EST 2005
On 19/12/2005, at 11:42 PM, Benjamin Thelen wrote:
> (cc to FreeBSD gdal port maintainer)
>
>
> Hello list,
>
> building gdal 1.3.1 on FreeBSD 4.11 (and higher) fails with the
> following error:
>
> --------------------------------------------------------------------
> .
> .
> .
> g++ -Wall -O2 -I../../port -I../../gcore -I../../alg -I../../ogr -
> I../../ogr/ogrsf_frmts -I../../port -c geotiff.cpp -fPIC -DPIC -
> o ../o/.libs/geotiff.o
> geotiff.cpp:161: tiffio.h: No such file or directory
> geotiff.cpp:162: xtiffio.h: No such file or directory
> geotiff.cpp:163: geotiff.h: No such file or directory
> geotiff.cpp:164: geo_normalize.h: No such file or directory
> geotiff.cpp:165: geovalues.h: No such file or directory
> In file included from geotiff.cpp:166:
> tif_ovrcache.h:38: tiffio.h: No such file or directory
> gmake[2]: *** [../o/geotiff.o] Fehler 1
> gmake[2]: Leaving directory `/data/src/gdal-1.3.1/frmts/gtiff'
> gmake[1]: *** [gtiff-install-obj] Fehler 2
> gmake[1]: Leaving directory `/data/src/gdal-1.3.1/frmts'
> gmake: *** [frmts-target] Fehler 2
> --------------------------------------------------------------------
>
> This could be solved by using "./configure --with-local=/usr/local"
> - a hint I got from Tom Russo and Frank Warmerdam in August. On
> FreeBSD 5.4 and higher, gdal-1.3.1 builds successfully this way,
> but on FreeBSD 4.11 building fails repeatable on two 4.11 boxes
> with the following error:
There was a REINPLACE_CMD to handle the tiffio error in the last
version of the port; you can see the change here: http://
www.freebsd.org/cgi/cvsweb.cgi/ports/graphics/gdal/Makefile.diff?
r1=1.14&r2=1.15&f=h
> --------------------------------------------------------------------
> g++ -Wall -O2 -I../../port -I../../gcore -I../../alg -I../../ogr
> -I../../ogr/ogrsf_frmts -I/usr/local/include -I../../port -
> DUSE_IN_GDAL
> -Ilibcsf -c pcrasterutil.cpp -fPIC -DPIC -o ../o/.libs/pcrasterutil.o
> pcrasterutil.cpp:17: limits: No such file or directory
> gmake[2]: *** [../o/pcrasterutil.o] Error 1
> gmake[2]: Leaving directory `/data/src/gdal-1.3.1/frmts/pcraster'
> gmake[1]: *** [pcraster-install-obj] Error 2
> gmake[1]: Leaving directory `/data/src/gdal-1.3.1/frmts'
> gmake: *** [frmts-target] Error 2
> --------------------------------------------------------------------
>
> The FreeBSD port is officially marked as broken: "Mark broken on
> 4.x due to C++-related build failure." I also saw that geos is
> marked broken, thus I still have geos-1.0 - a possible source of
> errors for gdal building?
>
Shouldn't be a problem, gdal does not depend on geos.
>
> I'd appreciate any sugestions!
I came across the same errors. "limits" is a c++ header that doesn't
exist on stock FreeBSD 4.11 because the system compiler is gcc 2.95
and the C++ library is old and crusty. You can get a little further
by adding USE_GCC=3.4+ to the port makefile, but then there are link
problems further on.
You can see a test run I did with USE_GCC=3.4+ here: http://
people.freebsd.org/~lawrance/gdal-1.3.1.log
I haven't got time to work on fixing the port for 4.x at the moment,
but I'll gladly accept help :-) If you need gdal 1.3.1 it might be
worth giving FreeBSD 6 a try.
Cheers
Sam
More information about the Gdal-dev
mailing list