Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Apr 2017 22:51:33 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 218645] databases/mysql-connector-odbc Problem with MariaDB 10.1.22
Message-ID:  <bug-218645-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D218645

            Bug ID: 218645
           Summary: databases/mysql-connector-odbc Problem with MariaDB
                    10.1.22
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs@FreeBSD.org
          Reporter: olivierw1+bugzilla-freebsd@hotmail.com

Hello,

For reference, I found out about this bug while trying a patch for asterisk=
13:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D218599
It started as an asterisk13 crash, then I found out it was more an ODBC bug,
with mysql-connector-odbc not compatible with MariaDB 10.1.22.

I'll paste here the important part:
To test, I just have to run: "odbcinst -s -q" to get my ODBC source
("MySQL-asterisk" in my case).
Then: "isql -v MySQL-asterisk".
With MariaDB 10.1.21, I'm getting a successful:
"+---------------------------------------+
| Connected!                            |
|                                       |
| sql-statement                         |
| help [tablename]                      |
| quit                                  |
|                                       |
+---------------------------------------+
SQL>"

With MariaDB 10.1.22, I'm getting an error:
/usr/local/lib/libmyodbc5w.so: Undefined symbol "strmov"


For each of my tests, I've rebuilt and reinstalled unixODBC mariadb101-clie=
nt
mysql-connector-odbc mariadb101-server.




>From what I've found, "strmov" has been removed from MariaDB 10.1.22 (and
MySQL):
https://jira.mariadb.org/browse/MDEV-11752
https://github.com/MariaDB/server/commit/5d40ed864eb91314c894c713cd0d3d03c6=
2ec8c5#diff-a32c08846626002914c1e36dd4ea0694

When I look at the source of mysql-connector-odbc 5.3.4 (the version in Fre=
eBSD
ports), there are a lot of calls to strmov().

In recents versions of mysql-connector-odbc, it seems to have been replaced=
 by
my_stpmov() :
https://github.com/mysql/mysql-connector-odbc/blob/4f6159d8dde269d9f90ccb74=
d239f047ed5ad3a3/driver/catalog.c#L159

Is it possible to upgrade mysql-connector-odbc to a newer version?
Or should I provide a patch to replace strmov() by my_stpmov()?

Best Regards,
Olivier

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-218645-13>