Bug 1397869

Summary: odbc plugin has unsatisfied link errors
Product: [Fedora] Fedora Reporter: Petr Menšík <pemensik>
Component: mariadb-connector-odbcAssignee: Michal Schorm <mschorm>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 26CC: mschorm
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: mariadb-connector-odbc-3.0.1-2.fc27 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-09-30 06:20:30 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Petr Menšík 2016-11-23 13:42:06 UTC
Description of problem:
Current odbc plugin uses symbols from headers of mariadb-connector-c-devel. C connector does limit exported symbols however. So it is impossible to use this plugin.

Version-Release number of selected component (if applicable):
2.0.12-1.fc26

How reproducible:
Always

Steps to Reproduce:
1. dnf install mariadb-connector-odbc
2. setup /etc/odbc.ini and /etc/odbcinst.ini to configure use Mariadb
3. try to use isql with configured database

Actual results:
[unixODBC][Driver Manager]Can't open lib '/usr/lib64/libmaodbc.so' : file not found
[ISQL]ERROR: Could not SQLDriverConnect
$ LANG=C ls -l /usr/lib64/libmaodbc.so 
-rwxr-xr-x. 1 root root 314552 Oct 19 16:57 /usr/lib64/libmaodbc.so

Expected results:
connected

Additional info:
Might be useful to add as contrib documentation how to setup unixODBC.

odbcinst.ini:
[mariadb]
Description=ODBC for mariadb
Driver=/usr/lib/libmaodbc.so
Setup=/usr/lib/libodbcmyS.so
Driver64=/usr/lib64/libmaodbc.so
Setup64=/usr/lib64/libodbcmyS.so

odbc.ini:
[mariadb-vhost]
Description=ODBC to mariadb at host
Driver=mariadb
Database=test
Server=localhost

use LD_DEBUG=symbols isql to display what is loading.

See discussion from review.

Comment 1 Fedora End Of Life 2017-02-28 10:39:38 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 26 development cycle.
Changing version to '26'.

Comment 2 Fedora Update System 2017-09-07 13:00:24 UTC
mariadb-connector-odbc-3.0.1-2.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2017-dc20706a67

Comment 3 Fedora Update System 2017-09-07 14:34:16 UTC
mariadb-connector-odbc-3.0.1-2.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-dc20706a67

Comment 4 Fedora Update System 2017-09-30 06:20:30 UTC
mariadb-connector-odbc-3.0.1-2.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.