Trying to use, from PHP (manual build of 5.5) + PDO_odbc driver raises this error.
Studying a little the unixODBC spec.
Upstream use soname .1 which is raised to .2 by the so-version-bump.patch
Problem : this is harcoded in DriverManager/SQLConnect.c
#define CURSOR_LIB "libodbccr"
#define CURSOR_LIB_VER ".1"
sprintf( name, "%s%s%s", CURSOR_LIB, ext, CURSOR_LIB_VER );
if ( !(connection -> cl_handle = odbc_dlopen( name )))
The trivial Fix seems missing.
sed -e '/CURSOR_LIB_VER/s/1/2/' -i DriverManager/SQLConnect.c
Created attachment 859089 [details]
I re-created the so-version-bump.patch, adding the macro increment into it.
Created attachment 859134 [details]
I redid the patch in less intrusive way, this version only adds the macro increment and do not fiddle with other files.
Pushed the updated patch to dist-git.
SanityOnly - I'm unable to reproduce the original problem, php pdo works for me with the old version, however, I can confirm the change in the code
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.