From owner-freebsd-ports-bugs@freebsd.org Thu Apr 13 22:51:34 2017 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 15A8AD3D072 for ; Thu, 13 Apr 2017 22:51:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id EC1D0C42 for ; Thu, 13 Apr 2017 22:51:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v3DMpX7i051805 for ; Thu, 13 Apr 2017 22:51:33 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 218645] databases/mysql-connector-odbc Problem with MariaDB 10.1.22 Date: Thu, 13 Apr 2017 22:51:33 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: olivierw1+bugzilla-freebsd@hotmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-ports-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Apr 2017 22:51:34 -0000 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.=