Mailing List
Home
Forum Home
MySQL General - General MySQL discussion
MySQL++ - Programming with the C++ API to MySQL
MaxDB - Everything about MaxDB, formerly known as SAP DB
ODBC - ODBC with the MySQL Connector/ODBC driver
MySQL on Win32 - Runing MySQL on Windows 9x/Me/NT/2000/XP
Java Help - Mostly related to the MySQL Connector/J driver
Perl - Perl support for MySQL with DBI and DBD::mysql
GUI - MySQL GUI Tools
Announcement
Subjects
mysql openssl Question
mysql:it 's a db not a dbms how it 's possible?!
Does the binary log enabling affect the MySQL performances?
Strange behavior, Table Level Permission
FULLTEXT query format question
Preventing Duplicate Entries
Comparing and writing out BLOBS
Executing MySQL Commands From Within C Program
Can 't access mysql after kernel upgrade
Mysql 4 0 Oracle Stored Procedure Trigger Conversion
Downgrade Mysql from 4 to 3 23
MySQL Cluster Software
mysql test 4 1 fails with the gis test
ERROR 2002: Can 't connect to local MySQL server through socket
Getting Identity after INSERT
Update one field with more fields from another table
ERROR 1045: Access denied for user: 'root@localhost ' (Using
password: NO)
mysql have same function mthod as Oracle decode()
 
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)