unixODBC bottle is broken #31090

Closed
neanton opened this Issue Jul 24, 2014 · 10 comments

Projects

None yet

6 participants

@neanton
neanton commented Jul 24, 2014

In short:
Bottled unixodbc version contains a bug in a library that causes php to crash when connecting to odbc data source using PDO.

The problem is inside ./configure script that detects proper shared library extension suffix.

Please see this bug report for detailed issue description: https://sourceforge.net/p/unixodbc/bugs/40/

@MikeMcQuaid
Member

Does it work when building from source?

@neanton
neanton commented Jul 24, 2014

Nope, because of ./configure script issue. The workaround for me was to replace
shrext_cmds='test .$module = .yes && echo .so || echo .dylib'
to
shrext_cmds=test .$module = .yes && echo .so || echo .dylib
inside ./configure, so maybe patch would be a solution?

@mistydemeo
Collaborator

Has this been reported to the developers?

@neanton
neanton commented Jul 24, 2014

Yes, here is the original bug report https://sourceforge.net/p/unixodbc/bugs/40/

@jacknagel

I don't think this is the correct fix. The code in question comes straight from libtool.m4. It seems it is supposed to be passed to eval first (this is what libtool itself does with it, grep for "shrext_cmds" in ltmain.sh in the root directory of the unixodbc source).

@neanton
neanton commented Jul 28, 2014

I'm not familiar with libtool and unixodbc build system, so I can't say what is the root cause of this problem. So there may be another better solution for this.

@tdsmith
Member
tdsmith commented Apr 8, 2015

Emailed upstream to ask about applying Jack's fix.

@tdsmith
Member
tdsmith commented Aug 8, 2015

I think this commit was intended to apply the fix outlined here but did not succeed.

@MikeMcQuaid
Member

Is this still an issue?

@tdsmith
Member
tdsmith commented Apr 5, 2016

It looks like this is fixed in the 2.3.4 release.

@tdsmith tdsmith added a commit to tdsmith/homebrew-core that referenced this issue Apr 5, 2016
@tdsmith tdsmith unixodbc 2.3.4 3d12dd1
@tdsmith tdsmith referenced this issue in Homebrew/homebrew-core Apr 5, 2016
Closed

unixodbc 2.3.4 #68

@BrewTestBot BrewTestBot added a commit to BrewTestBot/homebrew-core that closed this issue Apr 5, 2016
@tdsmith tdsmith unixodbc 2.3.4 33157a8
@BrewTestBot BrewTestBot added a commit to BrewTestBot/homebrew-core that referenced this issue Apr 5, 2016
@tdsmith tdsmith unixodbc 2.3.4 d2dcd42
@tdsmith tdsmith added a commit to Homebrew/homebrew-core that referenced this issue Apr 5, 2016
@tdsmith tdsmith unixodbc 2.3.4 d140e37
@dsXLII dsXLII added a commit to dsXLII/homebrew-core that referenced this issue Apr 15, 2016
@tdsmith tdsmith unixodbc 2.3.4 2f9ea20
@MikeMcQuaid MikeMcQuaid locked and limited conversation to collaborators Jul 11, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.