[Gdal-dev] building gdal 1.3.X on freeBSD
Frank Warmerdam
warmerdam at pobox.com
Tue Apr 25 12:52:30 EDT 2006
Eric S. Theise wrote:
> 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.
Eric,
If you are encountering this only in the mysql driver, I would imagine
the issue is a conflict between mysql include files and c++ stl include
files with regard to the definition of swap. I just searched my client
mysql library and they define swap_variable, but not swap. Perhaps an
older version of the mysql client sdk on your system uses swap() instead?
There is no reason to believe this is a GDAL problem from the report I
see.
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 | President OSGF, http://osgeo.org
More information about the Gdal-dev
mailing list