  | | | Compilation error. | Compilation error. 2006-06-21 - By Xavier
Back Hello, i don't understand why myodbc connector don't want to compile.
Here is my system informations :
Gentoo distribution X86. dev-db/freetds-0 (See http://tds-0.ora-code.com).62.3 +mssql +odbc dev-db/unixODBC-2 (See http://DBC-2.ora-code.com).2.11-r1 -gnome -qt dev-db/libiodbc-3 (See http://dbc-3.ora-code.com).52.4 -gtk
I have installed unixODBC for sybase drivers but i need to use libiodbc. Freetds don't compile with odbc flag because he need unixODBC.
libiodbc with sybase is ok but now i try to compile myodbc with source package.
Here is my configure script : ./configure --prefix=/usr/local \ --sysconfdir=/etc/myodbc \ --with-mysql-path=/usr \ --with-iODBC=/usr \ --with-iodbc-includes=/usr/include/iodbc \ --with-iodbc-libs=/usr/lib \ --with-odbc-ini=/etc/iodbc/odbc.ini \ --disable-gui
And here my problem compilation : 8<-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- In file included from /usr/include/iodbc/sql.h:92, from myodbc3.h:102, from prepare.c:44: /usr/include/iodbc/iodbcunix.h:99:1: warning: "VOID" redefined In file included from myodbc3.h:65, from prepare.c:44: /usr/include/mysql/my_global.h:361:1: warning: this is the location of the previous definition if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/iodbc -O3 -DDBUG_OFF -I/usr/include/mysql -Os -march=pentium4 -pipe -DHAVE_ERRNO_AS_DEFINE=1 -MT results.lo -MD -MP -MF ".deps/results.Tpo" -c -o results.lo results.c; \ then mv -f ".deps/results.Tpo" ".deps/results.Plo"; else rm -f ".deps/results.Tpo"; exit 1; fi gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/iodbc -O3 -DDBUG_OFF -I/usr/include/mysql -Os -march=pentium4 -pipe -DHAVE_ERRNO_AS_DEFINE=1 -MT results.lo -MD -MP -MF .deps/results.Tpo -c results.c -fPIC -DPIC -o .libs/results.o In file included from /usr/include/iodbc/sql.h:92, from myodbc3.h:102, from results.c:49: /usr/include/iodbc/iodbcunix.h:99:1: warning: "VOID" redefined In file included from myodbc3.h:65, from results.c:49: /usr/include/mysql/my_global.h:361:1: warning: this is the location of the previous definition results.c:564: error: conflicting types for `SQLColAttribute' /usr/include/iodbc/sql.h:845: error: previous declaration of `SQLColAttribute' make[2]: *** [results.lo] Error 1 make[2]: Leaving directory `/root/tmp-odbc/mysql-connector-odbc-3 (See http://dbc-3.ora-code.com).51.12/driver' make[1]: *** [all] Error 2 make[1]: Leaving directory `/root/tmp-odbc/mysql-connector-odbc-3 (See http://dbc-3.ora-code.com).51.12/driver' make: *** [all-recursive] Error 1 8<-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ----
Thank you for your help.
-- MySQL ODBC Mailing List For list archives: http://lists.mysql.com/myodbc To unsubscribe: http://lists.mysql.com/myodbc?unsub=mysql@(protected)
|
|
 |