[Gdal-dev] building gdal 1.3.X on freeBSD

Eric S. Theise mataro at cyberwerks.com
Tue Apr 25 11:49:31 EDT 2006


Hi... new to the list.

I've been trying to set MapServer up on an older (4.10) freeBSD
system.  I'm installing freshly downloaded components in the order
suggested by Kropla's Apress book, and I've replaced gcc 2.9.5 with
gcc 4.1.0.  I'm running configure --with-pcraster=no and specifying
a few locations (libtiff, mysql).  The compile craps out for both
gdal-1.3.1 and gdal-1.3.2b1 thusly:

g++ -Wall -O2 -I.. -I../.. -I/usr/local/src/gdal-1.3.2b1/port -I/usr/local/src/gdal-1.3.2b1/gcore -I/usr/local/src/gdal-1.3.2b1/alg -I/usr/local/src/gdal-1.3.2b1/ogr -I/usr/local/src/gdal-1.3.2b1/ogr/ogrsf_frmts -I/usr/local/include/mysql-DOGR_ENABLED -I/usr/local/src/gdal-1.3.2b1/port -I/usr/local/include -c ogrmysqllayer.cpp  -fPIC -DPIC -o ../o/.libs/ogrmysqllayer.o
In file included from /usr/include/g++/string:6,
                 from /usr/local/src/gdal-1.3.2b1/port/cpl_string.h:174,
                 from ogrmysqllayer.cpp:89:
/usr/include/g++/std/bastring.h:192: macro `swap' used with just one arg
gmake[3]: *** [../o/ogrmysqllayer.o] Error 1
gmake[3]: Leaving directory
`/usr/local/src/gdal-1.3.2b1/ogr/ogrsf_frmts/mysql'
gmake[2]: *** [mysql-target] Error 2
gmake[2]: Leaving directory
`/usr/local/src/gdal-1.3.2b1/ogr/ogrsf_frmts'
gmake[1]: *** [sublibs] Error 2
gmake[1]: Leaving directory `/usr/local/src/gdal-1.3.2b1/ogr'
gmake: *** [ogr-target] Error 2

I'd appreciate any suggestions for resolving this.

Thanks, Eric 



More information about the Gdal-dev mailing list