Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
MySQL + ODBC + myODBC: undefined symbol: min
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
zixnub
n00b
n00b


Joined: 27 Dec 2007
Posts: 67
Location: Brasschaat, Belgium

PostPosted: Fri Feb 22, 2008 11:47 am    Post subject: MySQL + ODBC + myODBC: undefined symbol: min Reply with quote

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
View user's profile Send private message
falko
Apprentice
Apprentice


Joined: 03 Dec 2004
Posts: 242
Location: Rovereto (TN) Italy

PostPosted: Wed Apr 02, 2008 12:25 pm    Post subject: Reply with quote

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
View user's profile Send private message
marcelser
Tux's lil' helper
Tux's lil' helper


Joined: 30 Sep 2004
Posts: 102

PostPosted: Wed Aug 20, 2008 6:39 am    Post subject: solution for myodbc Reply with quote

Here's the bug https://bugs.gentoo.org/show_bug.cgi?id=209326

And here's a thread where a posted a solution at the bottom (also described in the bug):
https://forums.gentoo.org/viewtopic-t-696990-highlight-myodbc.html
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum