[FGS] fgs build GDAL with mysql

Normand Savard nsavard at mapgears.com
Tue Apr 8 13:01:54 EDT 2008


Hi,

I'm trying to build the GDAL 1.5.0 package with mysql 4.1.22 enabled on 
Debian etc 4, but I got the error below. What is particular is that I 
succeeded to compile PHP 5.2.5 with the same mysql header. I have also 
included my PHP and GDAL configuration settings below.

Any clue?

Norm

-----------------------
Error:
make -C mysql
make[3]: Entering directory 
`/home/fgs/fgs-dev/src/gdal-1.5.0/ogr/ogrsf_frmts/mysql'
g++ -g -O2 -fPIC -Wall -I.. -I../.. 
-I/home/fgs/fgs-dev/src/gdal-1.5.0/port 
-I/home/fgs/fgs-dev/src/gdal-1.5.0/gcore 
-I/home/fgs/fgs-dev/src/gdal-1.5.0/alg 
-I/home/fgs/fgs-dev/src/gdal-1.5.0/ogr 
-I/home/fgs/fgs-dev/src/gdal-1.5.0/ogr/ogrsf_frmts 
-I/home/fgs/fgs-dev/built/mysql-standard-4.1.22-pc-linux-gnu-i686/include 
-DOGR_ENABLED -I/home/fgs/fgs-dev/src/gdal-1.5.0/port 
-I/home/fgs/fgs-dev/built/unixODBC 
-I/home/fgs/fgs-dev/built/unixODBC/include 
-I/home/fgs/fgs-dev/built/jpeg -I/home/fgs/fgs-dev/built/jpeg/include 
-I/home/fgs/fgs-dev/built/libgeotiff/include 
-I/home/fgs/fgs-dev/built/tiff/include -I/home/fgs/fgs-dev/built/libpng 
-I/home/fgs/fgs-dev/built/libpng/include -c -o ../o/ogrmysqldriver.o 
ogrmysqldriver.cpp
/usr/include/asm-i486/bitops.h:244: error: expected initializer before ‘int’


-----------------
GDAL config settings:

configured by ./configure, generated by GNU Autoconf 2.61,
with options \"'--prefix=/home/fgs/fgs-dev/built/gdal' 
'--with-pymoddir=/home/
fgs/fgs-dev/built/gdal/pymod' '--with-jpeg=/home/fgs/fgs-dev/built/jpeg' 
'--with
-libtiff=/home/fgs/fgs-dev/built/tiff' 
'--with-geotiff=/home/fgs/fgs-dev/built/l
ibgeotiff' '--with-png=/home/fgs/fgs-dev/built/libpng' 
'--with-pg=/home/fgs/fgs-
dev/built/postgresql/bin/pg_config' 
'--with-odbc=/home/fgs/fgs-dev/built/unixODB
C' '--with-xerces=/home/fgs/fgs-dev/built/xerces_c' 
'--with-curl=/home/fgs/fgs-d
ev/built/curl/bin/curl-config' '--without-geos' '--without-python' 
'--without-li
btool' 
'--with-mysql=/home/fgs/fgs-dev/built/mysql-standard-4.1.22-pc-linux-gnu-
i686/bin/mysql_config'\"

------------
PHP config settings:

./configure --with-regex=system 
--with-freetype-dir=/home/fgs/fgs-dev/built/f
reetype --with-dbase --enable-dbase --prefix=/home/fgs/fgs-dev/built/php 
--with-
mysql=shared,/home/fgs/fgs-dev/built/mysql-standard-4.1.22-pc-linux-gnu-i686 
--w
ith-pgsql=shared,/home/fgs/fgs-dev/built/postgresql 
--with-pdflib=shared,/home/f
gs/fgs-dev/built/pdflib_lite 
--with-png-dir=/home/fgs/fgs-dev/built/libpng --wit
h-jpeg-dir=/home/fgs/fgs-dev/built/jpeg 
--with-tiff-dir=/home/fgs/fgs-dev/built/
tiff --with-gd=/home/fgs/fgs-dev/built/gd 
--with-zlib-dir=/home/fgs/fgs-dev/buil
t/zlib --with-zlib -enable-track-vars --enable-sockets 
--enable-wddx=shared --wi
th-xmlrpc=shared --enable-calendar 
--with-libxml-dir=/home/fgs/fgs-dev/built/lib
xml2 --with-dom=shared,/home/fgs/fgs-dev/built/libxml2 
--with-expat-dir=/home/fg
s/fgs-dev/built/expat --with-iconv-dir=/home/fgs/fgs-dev/built/libiconv 
--with-c
url=shared,/home/fgs/fgs-dev/built/curl 
--with-iconv=/home/fgs/fgs-dev/built/lib
iconv --enable-cgi --enable-force-cgi-redirect 
--with-apxs2=/home/fgs/fgs-dev/bu
ilt/apache/bin/apxs --enable-ftp 
--with-unixODBC=shared,/home/fgs/fgs-dev/built/
unixODBC --with-mssql=shared,/home/fgs/fgs-dev/built/freetds



More information about the Foss-gis-suite mailing list