View previous topic :: View next topic |
Author |
Message |
zixnub n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/19553622854ed4e965ba14c.png)
Joined: 27 Dec 2007 Posts: 67 Location: Brasschaat, Belgium
|
Posted: Fri Feb 22, 2008 11:47 am Post subject: MySQL + ODBC + myODBC: undefined symbol: min |
|
|
I need to write a cobol program that has to connect to a db. I want to use odbc with mysql.
So far mysql is running and I've succesfully imported my ddl/sql file. So no problems there.
The problem comes when I try to test odbc with mysql. when I do:
$isql -v testdsn erik test
I get:
isql: symbol lookup error: /usr/lib/libmyodbc3.so: undefined symbol: min
my /etc/unixODBC/odbc.ini
Code: | [ODBC Data Sources]
myodbc3 = MyODBC 3.51 Driver DSN
[Default]
Driver = /usr/local/lib/libmyodbc3.so
Description = Connector/ODBC 3.51 Driver DSN
SERVER = localhost
PORT =
USER = root
Password =
Database = test
OPTION = 3
SOCKET =
[testdsn]
Description = Connector/ODBC 3.51 Driver DSN
Driver = /usr/lib/libmyodbc3.so
Server = localhost
Database = kronos
Port = 3306
Socket =
Option = 3
Stmt =
USER = erik
Password = test
TraceFile = /tmp/odbc.trace
Trace = 1 |
my /etc/unixODBC/odbc.ini
Code: | [MySQL ODBC 3.51 Driver]
DRIVER = /usr/lib/libmyodbc3.so
SETUP = /usr/lib/libodbcmyS.so
UsageCount = 3
[ODBC]
Trace = No
TraceFile = /tmp/sql.log
ForceTrace = No
Pooling = No |
This only happens with the gentoo myODBC package, compiled with the default CFLAGS (compiles just fine). If I use the official precompiled binaires from the mysql site everything works. Older gentoo versions give the same problem and the oldest one in portage doesn't even compile.
Am I doing something wrong or should I file a bug report? _________________ https://github.com/udevbe/greenfield
https://github.com/udevbe/westfield |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
falko Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/10060342648d0acb0637e7.gif)
Joined: 03 Dec 2004 Posts: 242 Location: Rovereto (TN) Italy
|
Posted: Wed Apr 02, 2008 12:25 pm Post subject: |
|
|
I have the same problem, do you know if there is already a open bug?
/usr/lib/libmyodbc3.so: undefined symbol
I have got this message not only isql but also using the API odbc when coll SQLBindCol for fetch a result of a query and also with DataManager program _________________ Io non sarò mai nessuno ma... nessuno sarà mai come me. (Jim Morrison)
A ciacere no se sgonfa done
Gentoo on: Lenovo R500 |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
marcelser Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 30 Sep 2004 Posts: 102
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|