[ODBC-103] ODBC not working on current stable debian Created: 2017-06-27 Updated: 2017-07-31 Resolved: 2017-07-31 |
|
| Status: | Closed |
| Project: | MariaDB Connector/ODBC |
| Component/s: | None |
| Affects Version/s: | 3.0.0, 2.0.15 |
| Fix Version/s: | 3.0.0, 2.0.15 |
| Type: | Bug | Priority: | Major |
| Reporter: | Nikolay Engyozov | Assignee: | Lawrin Novitsky |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Description |
|
I'm trying to use MariaDB ODBC connector in Debian stretch (Debian doesn't provide mariadb odbc driver itself). I downloaded the last stable ODBC connector, version 2.0.15 from mariadb.com, extacted the library libmaodbc.so and configured /etc/odbc.ini: isql fails to connect:
The file /usr/lib/x86_64-linux-gnu/odbc/libmaodbc.so exists and is readable so the problem is somewhere else. Same happens with version 3.0 too. |
| Comments |
| Comment by Lawrin Novitsky [ 2017-06-27 ] |
|
Thank you for your report. What version did you download? "generic" or debian? Probably some dependency is missing. Could you please verify which one? If happens that all dependencies are in place, but could you also verify that the library is really 64bit? |
| Comment by Nikolay Engyozov [ 2017-06-28 ] |
|
The problem occurs with stable 2.0.15 version for debian as well as alpha 3.0.0 version. ldd doesn't report missing library dependencies: version 2.0.15 (debian): varsion 3.0.0: Building version 3.0.0 from source fails with error: In file included from /root/mariadb-connector-odbc-odbc-3.0/odbc_3_api.c:21:0: |
| Comment by Lawrin Novitsky [ 2017-06-28 ] |
|
To build C/ODBC v3.0 from source, one needs MariaDB Connector/C v3.0, and for C/ODBC v2.0 - C/C v2.3 is that possible, that isql is 32bit? If file is in place, is not corrupt, and all dependencies are met - that doesn't make much sense why isql cannot load it. or did you also try it with you application? |
| Comment by Nikolay Engyozov [ 2017-06-28 ] |
|
isql is part of unixodbc installed from official debian repository (64bit version): I'm using ODBC to connect asterisk with mariadb. Asterisk segfaults when loading res_odbc module. Here is the relevant dmesg message: asterisk[19594]: segfault at 8 ip 00007ff4aa1f3d8e sp 00007ffeae7823e0 error 4 in libmariadbclient.so.18.0.0[7ff4aa1ca000+37c000] |
| Comment by Lawrin Novitsky [ 2017-06-28 ] |
|
c/odbc links c/c statically, and libmariadbclient.so.18.0.0 seems to be C client library from MariaDB server distribution. Thus you have 2 sets of mysql C API functions in your system, and that creates some mess. Still not clear what is going on with isql. I am going to install stretch and try it myself. And btw, 3.0 is of alpha quality, and pretty old release, that does not have fixed, that 2.0.15 has. Thus using it is not the best idea. |
| Comment by Lawrin Novitsky [ 2017-06-28 ] |
|
I will appreciate if you share any new findings. |
| Comment by Nikolay Engyozov [ 2017-06-29 ] |
|
A few more details on this: Thank you for your help! |
| Comment by Lawrin Novitsky [ 2017-06-29 ] |
|
I am glad you could overcome your problems. Could that happen because of file permissions, btw? And as for crash - I would appreciate if you uploaded here backtrace or dump for the crash. |
| Comment by Nikolay Engyozov [ 2017-07-18 ] |
|
Sorry for the late reply but I was out of office for 2 weeks. |
| Comment by Lawrin Novitsky [ 2017-07-31 ] |
|
I guess wrong file permissions is most probable cause here. Thus I am closing it as not a bug |