[Gdal-dev] Problems building with mysql under mingw

godofredo contreras frdcn at hotmail.com
Fri Jul 6 23:02:00 EDT 2007


Hi:
 
I´m trying to build gdal with mysql support, I´m using mysql lib and headers from a dev-cpp package  but the compilation fails with several warnings but no one error, also I tested the library and headers with a small program there are also several warnings but it compiles and executes with no problem.
 
What could be wrong? I'm missing something?, any help will be appreciated.
 
This is part the output from make command.  
 
make -C mysqlmake[3]: Entering directory `/src/gdal/ogr/ogrsf_frmts/mysql'/bin/sh.exe /src/gdal/libtool --mode=compile g++ -Wall  -O2   -I.. -I../.. -I/src/gdal/port -I/src/gdal/gcore -I/src/gdal/alg -I/src/gdal/ogr -I/src/gdal/ogr/ogrsf_frmts -I/local/mysql/include/mysql -DOGR_ENABLED -I/src/gdal/port  -c -o ../o/ogrmysqldriver.o ogrmysqldriver.cpp g++ -Wall -O2 -I.. -I../.. -I/src/gdal/port -I/src/gdal/gcore -I/src/gdal/alg -I/src/gdal/ogr -I/src/gdal/ogr/ogrsf_frmts -I/local/mysql/include/mysql -DOGR_ENABLED -I/src/gdal/port -c ogrmysqldriver.cpp  -DDLL_EXPORT -DPIC -o ../o/.libs/ogrmysqldriver.oIn file included from C:/msys/local/mysql/include/mysql/my_global.h:65,                 from ogr_mysql.h:34,                 from ogrmysqldriver.cpp:30:C:/msys/local/mysql/include/mysql/config-win.h:153:1: warning: "isnan" redefinedIn file included from C:/msys/local/mysql/include/mysql/config-win.h:27,                 from C:/msys/local/mysql/include/mysql/my_global.h:65,                 from ogr_mysql.h:34,                 from ogrmysqldriver.cpp:30:c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/math.h:365:1: warning:this is the location of the previous definitionIn file included from C:/msys/local/mysql/include/mysql/my_global.h:65,                 from ogr_mysql.h:34,                 from ogrmysqldriver.cpp:30:C:/msys/local/mysql/include/mysql/config-win.h:197:1: warning: "finite" redefinedC:/msys/local/mysql/include/mysql/config-win.h:154:1: warning: this is the location of the previous definitionIn file included from C:/msys/local/mysql/include/mysql/my_global.h:65,                 from ogr_mysql.h:34,                 from ogrmysqldriver.cpp:30:C:/msys/local/mysql/include/mysql/config-win.h: In function `double rint(double)                                             ':C:/msys/local/mysql/include/mysql/config-win.h:211: error: redefinition of `double rint(double)'c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/math.h:601: error: `double rint(double)' previously defined hereIn file included from C:/msys/local/mysql/include/mysql/my_global.h:259,                 from ogr_mysql.h:34,                 from ogrmysqldriver.cpp:30:c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include/stdio.h:367:54: macro "popen" passed 2 arguments, but takes just 1In file included from ogr_mysql.h:34,                 from ogrmysqldriver.cpp:30:C:/msys/local/mysql/include/mysql/my_global.h:446:1: warning: "my_reinterpret_cast" redefinedIn file included from C:/msys/local/mysql/include/mysql/my_global.h:65,                 from ogr_mysql.h:34,                 from ogrmysqldriver.cpp:30:C:/msys/local/mysql/include/mysql/config-win.h:339:1: warning: this is the location of the previous definitionIn file included from ogr_mysql.h:34,                 from ogrmysqldriver.cpp:30:C:/msys/local/mysql/include/mysql/my_global.h:1021:1: warning: "int3store" redefinedIn file included from C:/msys/local/mysql/include/mysql/my_global.h:65,                 from ogr_mysql.h:34,                 from ogrmysqldriver.cpp:30:C:/msys/local/mysql/include/mysql/config-win.h:271:1: warning: this is the location of the previous definitionIn file included from ogr_mysql.h:34,                 from ogrmysqldriver.cpp:30:C:/msys/local/mysql/include/mysql/my_global.h:1025:1: warning: "int5store" redefinedIn file included from C:/msys/local/mysql/include/mysql/my_global.h:65,                 from ogr_mysql.h:34,                 from ogrmysqldriver.cpp:30:C:/msys/local/mysql/include/mysql/config-win.h:275:1: warning: this is the location of the previous definitionIn file included from ogr_mysql.h:34,                 from ogrmysqldriver.cpp:30:C:/msys/local/mysql/include/mysql/my_global.h:1036:1: warning: "doubleget" redefinedIn file included from C:/msys/local/mysql/include/mysql/my_global.h:65,                 from ogr_mysql.h:34,                 from ogrmysqldriver.cpp:30:C:/msys/local/mysql/include/mysql/config-win.h:282:1: warning: this is the location of the previous definitionIn file included from ogr_mysql.h:34,                 from ogrmysqldriver.cpp:30:C:/msys/local/mysql/include/mysql/my_global.h:1041:1: warning: "doublestore" redefinedIn file included from C:/msys/local/mysql/include/mysql/my_global.h:65,                 from ogr_mysql.h:34,                 from ogrmysqldriver.cpp:30:C:/msys/local/mysql/include/mysql/config-win.h:284:1: warning: this is the location of the previous definitionIn file included from ogr_mysql.h:34,                 from ogrmysqldriver.cpp:30:C:/msys/local/mysql/include/mysql/my_global.h:1044:1: warning: "float4get" redefinedIn file included from C:/msys/local/mysql/include/mysql/my_global.h:65,                 from ogr_mysql.h:34,                 from ogrmysqldriver.cpp:30:C:/msys/local/mysql/include/mysql/config-win.h:286:1: warning: this is the location of the previous definitionIn file included from ogr_mysql.h:34,                 from ogrmysqldriver.cpp:30:C:/msys/local/mysql/include/mysql/my_global.h:1047:1: warning: "floatstore" redefinedIn file included from C:/msys/local/mysql/include/mysql/my_global.h:65,                 from ogr_mysql.h:34,                 from ogrmysqldriver.cpp:30:C:/msys/local/mysql/include/mysql/config-win.h:287:1: warning: this is the location of the previous definitionIn file included from ogr_mysql.h:34,                 from ogrmysqldriver.cpp:30:C:/msys/local/mysql/include/mysql/my_global.h:1048:1: warning: "floatget" redefinedIn file included from C:/msys/local/mysql/include/mysql/my_global.h:65,                 from ogr_mysql.h:34,                 from ogrmysqldriver.cpp:30:C:/msys/local/mysql/include/mysql/config-win.h:288:1: warning: this is the location of the previous definitionIn file included from C:/msys/src/gdal/port/cpl_port.h:86,                 from ../../ogr_core.h:33,                 from ../../ogr_geometry.h:34,                 from ../../ogr_feature.h:33,                 from ../ogrsf_frmts.h:33,                 from ogr_mysql.h:41,                 from ogrmysqldriver.cpp:30:C:/msys/src/gdal/port/cpl_config.h:51:1: warning: "HAVE_FLOAT_H" redefinedIn file included from C:/msys/local/mysql/include/mysql/my_global.h:65,                 from ogr_mysql.h:34,                 from ogrmysqldriver.cpp:30:C:/msys/local/mysql/include/mysql/config-win.h:311:1: warning: this is the location of the previous definitionIn file included from C:/msys/src/gdal/port/cpl_port.h:86,                 from ../../ogr_core.h:33,                 from ../../ogr_geometry.h:34,                 from ../../ogr_feature.h:33,                 from ../ogrsf_frmts.h:33,                 from ogr_mysql.h:41,                 from ogrmysqldriver.cpp:30:C:/msys/src/gdal/port/cpl_config.h:54:1: warning: "HAVE_GETCWD" redefinedIn file included from C:/msys/local/mysql/include/mysql/my_global.h:65,                 from ogr_mysql.h:34,                 from ogrmysqldriver.cpp:30:C:/msys/local/mysql/include/mysql/config-win.h:304:1: warning: this is the location of the previous definitionIn file included from C:/msys/src/gdal/port/cpl_port.h:86,                 from ../../ogr_core.h:33,                 from ../../ogr_geometry.h:34,                 from ../../ogr_feature.h:33,                 from ../ogrsf_frmts.h:33,                 from ogr_mysql.h:41,                 from ogrmysqldriver.cpp:30:C:/msys/src/gdal/port/cpl_config.h:88:1: warning: "HAVE_LIMITS_H" redefinedIn file included from C:/msys/local/mysql/include/mysql/my_global.h:65,                 from ogr_mysql.h:34,                 from ogrmysqldriver.cpp:30:C:/msys/local/mysql/include/mysql/config-win.h:312:1: warning: this is the location of the previous definitionmake[3]: *** [../o/ogrmysqldriver.o] Error 1make[3]: Leaving directory `/src/gdal/ogr/ogrsf_frmts/mysql'make[2]: *** [mysql-target] Error 2make[2]: Leaving directory `/src/gdal/ogr/ogrsf_frmts'make[1]: *** [sublibs] Error 2make[1]: Leaving directory `/src/gdal/ogr'make: *** [ogr-target] Error 2
 
Best regards
Godofredo Contreras Nava
 
_________________________________________________________________
PC Magazine’s 2007 editors’ choice for best web mail—award-winning Windows Live Hotmail.
http://imagine-windowslive.com/hotmail/?locale=en-us&ocid=TXT_TAGHM_migration_HMWL_mini_pcmag_0707
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20070707/34bd4c22/attachment.html


More information about the Gdal-dev mailing list