mysqlclient15 not compatible with mysql-odbc from RHEL5

Bug #1046974 reported by Yuriy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
IUS Community Project
Fix Released
Undecided
Jeffrey Ness

Bug Description

When running isql -v easyroute
I get the following
error: "isql: relocation error: /usr/lib64/libmyodbc3_r.so: symbol strmov, version libmysqlclient_15 not defined in file libmysqlclient_r.so.15 with link time reference"

rpm -qa \*mysql\* php\* \*odbc\*
mysql55-libs-5.5.27-2.ius.el5
mysqlclient15-5.0.92-2.ius.el5
mysql55-5.5.27-2.ius.el5
mysql55-server-5.5.27-2.ius.el5
mysql55-devel-5.5.27-2.ius.el5
mysql-connector-odbc-3.51.26r1127-2.el

CentOS 5.8

Yuriy (nasida)
description: updated
Revision history for this message
Jeffrey Ness (jeffrey-ness) wrote :

Hello Yuriy,

I'm having a look in to your issue, so far I've not been able to reproduce:

# cat /etc/redhat-release
CentOS release 5.6 (Final)

# rpm -qa | grep mysql
mysql55-libs-5.5.27-2.ius.el5
mysqlclient15-5.0.92-2.ius.el5
mysql-connector-odbc-3.51.26r1127-2.el5
mysql55-5.5.27-2.ius.el5
mysql55-server-5.5.27-2.ius.el5

# isql -v easyroute
[IM002][unixODBC][Driver Manager]Data source name not found, and no default driver specified
[ISQL]ERROR: Could not SQLConnect

Revision history for this message
Jeffrey Ness (jeffrey-ness) wrote :

I've updated to latest 5.8 release, and have still been unable to reproduce:

# cat /etc/redhat-release
CentOS release 5.8 (Final)

# rpm -qa | grep mysql
mysql55-libs-5.5.27-2.ius.el5
mysqlclient15-5.0.92-2.ius.el5
mysql-connector-odbc-3.51.26r1127-2.el5
mysql55-5.5.27-2.ius.el5
mysql55-server-5.5.27-2.ius.el5

[# isql -v easyroute
[IM002][unixODBC][Driver Manager]Data source name not found, and no default driver specified
[ISQL]ERROR: Could not SQLConnect

Revision history for this message
Yuriy (nasida) wrote :

Please configure some odbc-DSN in /etc/odbc.ini

For exmple,

[easyroute]
Driver = MySQL
Description = MyODBC Driver DSN
SERVER = localhost
PORT = 3306
USER = root
Password = XXXX
Database = databasename
OPTION = 4194307

Revision history for this message
Jeffrey Ness (jeffrey-ness) wrote :

If I recall correctly last time I reproduced the issue I had to setup a ODBC connection,
I'll test that now.

Revision history for this message
Yuriy (nasida) wrote :

You have fixed this issue earlier but for mysqlclient16-5.1.61-1.ius under EL6 x86_64 only

https://bugs.launchpad.net/ius/+bug/942524

Revision history for this message
Jeffrey Ness (jeffrey-ness) wrote :

Yuriy,

I've been able to successfully configure my unixODBC to connect:

# cat /etc/odbc.ini
[easyroute]
Driver = MySQL
Description = MyODBC Driver DSN
SERVER = localhost
PORT = 3306
USER = root
Database = temp
OPTION = 4194307

# cat /etc/odbcinst.ini
# Example driver definitinions
#
#

# Driver from the MyODBC package
# Setup from the unixODBC package
[MySQL]
Description = ODBC for MySQL
Driver = /usr/lib64/libmyodbc3.so
Setup = /usr/lib64/libodbcmyS.so
FileUsage = 1

=====

# isql -v easyroute
+---------------------------------------+
| Connected! |
| |
| sql-statement |
| help [tablename] |
| quit |
| |
+---------------------------------------+
SQL>

=====

# rpm -qf /usr/lib64/libmyodbc3.so
mysql-connector-odbc-3.51.26r1127-1.el5.x86_64

# rpm -qf /usr/lib64/libodbcmyS.so
unixODBC-2.2.11-7.1.x86_64

Revision history for this message
Jeffrey Ness (jeffrey-ness) wrote :

It looks like your ODBC connect is set using the *_r shared library,
however above I was using the non *_r and it worked.

Can you try making these changes?

Revision history for this message
Yuriy (nasida) wrote :

cat /etc/odbcinst.ini

[MySQL]
Description = ODBC for MySQL
Driver = /usr/lib64/libmyodbc3.so
Setup = /usr/lib64/libodbcmyS.so
FileUsage = 1

=====

rpm -qf /usr/lib64/libmyodbc3.so
mysql-connector-odbc-3.51.26r1127-2.el5

====

rpm -qf /usr/lib64/libodbcmyS.so
unixODBC-libs-2.2.11-10.el5

===

isql -v easyroute
isql: relocation error: /usr/lib64/libmyodbc3.so: symbol strmov, version libmysqlclient_15 not defined in file libmysqlclient.so.15 with link time reference

Um... Not sure what it can be.

Revision history for this message
Yuriy (nasida) wrote :

You have:
 unixODBC-2.2.11-7.1.x86_64
I have:
unixODBC-libs-2.2.11-10.el5

Revision history for this message
Yuriy (nasida) wrote :

Also the versions of mysql-connector-odbc is a bit different.

You have:
mysql-connector-odbc-3.51.26r1127-1.el5.x86_64

I have:
mysql-connector-odbc-3.51.26r1127-2.el5

Revision history for this message
Jeffrey Ness (jeffrey-ness) wrote :

I've updated to match your rpms:

# rpm -qa | grep mysql
mysql55-libs-5.5.27-2.ius.el5
mysqlclient15-5.0.92-2.ius.el5
mysql-connector-odbc-3.51.26r1127-2.el5
mysql55-5.5.27-2.ius.el5
mysql55-server-5.5.27-2.ius.el5

Using these exact versions I can reproduce it seems:

# isql -v easyroute
isql: relocation error: /usr/lib64/libmyodbc3_r.so: symbol strmov, version libmysqlclient_15 not defined in file libmysqlclient_r.so.15 with link time reference

# isql -v easyroute
isql: relocation error: /usr/lib64/libmyodbc3.so: symbol strmov, version libmysqlclient_15 not defined in file libmysqlclient.so.15 with link time reference

Revision history for this message
Yuriy (nasida) wrote :

Great! Can you please add the patch for mysqlclient15 as well ?

Revision history for this message
Jeffrey Ness (jeffrey-ness) wrote :

Hello Yuriy,

I've built a mysqlclient15 package adding in the strmov patch,
this package appears to resolve the issue you were seeing:

# rpm -qa mysqlclient15
mysqlclient15-5.0.92-3.ius.el5

# isql -v easyroute
+---------------------------------------+
| Connected! |
| |
| sql-statement |
| help [tablename] |
| quit |
| |
+---------------------------------------+
SQL>

---

I've added this package to our testing-candidate tag, you should see this package from the IUS Testing channel here tomorrow.

When you get a chance it would be great if you could test out this package.

Jeffrey-

Revision history for this message
Yuriy (nasida) wrote :

It works! Many thanks Jeffrey!

Revision history for this message
Jeffrey Ness (jeffrey-ness) wrote :

Yuriy,

Thank you very much for validating!

I'll be getting this added to IUS stable soon.

Jeffrey-

Changed in ius:
assignee: nobody → Jeffrey Ness (jeffrey-ness)
status: New → Fix Committed
Changed in ius:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.