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

paul at warriner.us paul at warriner.us
Mon Dec 19 18:35:44 EST 2005


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. :)

Paul

-----Original Message-----
From: gdal-dev-bounces at lists.maptools.org
[mailto:gdal-dev-bounces at lists.maptools.org] On Behalf Of Frank Warmerdam
Sent: Monday, December 19, 2005 9:38 AM
To: Benjamin Thelen
Cc: gdal-dev at lists.maptools.org; lawrance at freebsd.org
Subject: Re: [Gdal-dev] gdal-1.3.1 on FreeBSD 4 fails to build

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

_______________________________________________
Gdal-dev mailing list
Gdal-dev at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/gdal-dev





More information about the Gdal-dev mailing list