Bug #71595 Fedora20 "undefined symbol: test"
Submitted: 5 Feb 2014 16:14 Modified: 6 Feb 2014 10:43
Reporter: Robert Franz Email Updates:
Status: Patch approved Impact on me:
None 
Category:Connector / ODBC Severity:S2 (Serious)
Version:mysql 5.6, odbc 5.2 OS:Linux (only Fedora20)
Assigned to: Bogdan Degtyariov CPU Architecture:Any
Tags: fedora20, ODBC Connector, undefined symbol: test

[5 Feb 2014 16:14] Robert Franz
Description:
as soon as the odbc connector makes an sql request the software stops working while looking for symbol "test"

it's not possible to make any request on the database via odbc-connector.

both library ansi and unicode has the error
the error apear only with fedora20 and the mysql-rpms from the community.

access the mysql database via mysql -u root -p works as expected

How to repeat:
install fedora20 newly.
install mysql-server & co (as i know also with later installation)
install community repository
yum update

[root@localhost server]# isql -v MySQL
SQL> select * from User;
isql: symbol lookup error: /usr/lib64/libmyodbc5a.so: undefined symbol: test

Suggested fix:
look to the code/binary for symbol 'test' in odbc-connector-mysql.
probably its a dynamically loaded symbol. because ldd found all libraries.
probably only rebuild rpm for the community
error in spec file?
[6 Feb 2014 9:18] Bogdan Degtyariov
Hi Robert,

Thank you for your interest in MySQL software.

This bug should have been fixed some time ago. I have just checked our code and the macro test() we had before is not there anymore.
Which exact version of Connector/ODBC 5.2.x you tried?
Thanks.
[6 Feb 2014 10:42] Bogdan Degtyariov
Hi Robert,

Sorry for the mistake. The patch was pushed some time ago, but it has not been released yet.
[6 Feb 2014 10:43] Bogdan Degtyariov
The patch was pushed into 5.2 and 5.3 Connector/ODBC source trees.