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

Frank Warmerdam warmerdam at pobox.com
Mon Dec 19 09:37:35 EST 2005


On 12/19/05, Benjamin Thelen <bt at ccgis.de> wrote:
>
> 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:
>
> --------------------------------------------------------------------
>   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?

Ben,

My understanding is that FreeBSD 4.x is still using gcc 2.95, is
that right?  If so, I would encourage you to add --without-pcraster
to the configure and things will hopefully work.

In general I think you will find it difficult to build newer versions
with gcc 2.95 as time passes.

Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent




More information about the Gdal-dev mailing list