[MacPorts] #32501: erlang @R14B04 +odbc Patch for bug in Erlang ODBC configure scripts

MacPorts noreply at macports.org
Tue Sep 9 12:43:21 PDT 2014


#32501: erlang @R14B04 +odbc Patch for bug in Erlang ODBC configure scripts
---------------------+-------------------------
  Reporter:  chad@…  |      Owner:  ciserlohn@…
      Type:  defect  |     Status:  new
  Priority:  Normal  |  Milestone:
 Component:  ports   |    Version:  2.0.3
Resolution:          |   Keywords:
      Port:  erlang  |
---------------------+-------------------------
Changes (by ciserlohn@…):

 * status:  reopened => new
 * owner:  bfulgham@… => ciserlohn@…


Comment:

 Replying to [comment:5 chad@…]:
 > Ok, the R15B1 source code may have had a fix for this issue, but it's
 busted again in 17.1. Posting updated patches in a few seconds...

 I'm not able to reproduce your problem on my 10.9.4 machine using:
 {{{
 erlang @17.1_0+hipe+odbc+ssl+wxwidgets
 unixODBC @2.3.1_0
 mysql-connector-odbc @5.1.8_1
 mysql5-server @5.1.72_0
 }}}

 It works as expected:
 {{{
 10> h().
 1: odbc:start()
 -> ok
 2: {ok,Ref} = odbc:connect("DSN=MySQL-test;Option=3", [])
 -> {ok,<0.40.0>}
 3: Ref
 -> <0.40.0>
 4: odbc:describe_table(Ref, "foo")
 -> {ok,[{"bar",{sql_wvarchar,255}}]}
 5: odbc:select_count(Ref, "SELECT * FROM foo")
 -> {ok,0}
 6: odbc:select_count(Ref, "SELECT * FROM foo")
 -> {ok,1}
 7: {selected,Columns,[{Bar}]} = odbc:next(Ref)
 -> {selected,["bar"],[{<<98,0,97,0,122,0>>}]}
 8: unicode:characters_to_list(Bar, {utf16,little})
 -> "baz"
 9: unicode:characters_to_list(Bar, {utf32,little})
 -> {error,[],<<98,0,97,0,122,0>>}
 }}}

 Erlang links against the MacPorts provided {{{unixODBC}}} without your
 patch:
 {{{
 bash-4.3$ otool -L
 /opt/local/lib/erlang/lib/odbc-2.10.20/priv/bin/odbcserver
 /opt/local/lib/erlang/lib/odbc-2.10.20/priv/bin/odbcserver:
         /opt/local/lib/libodbc.2.dylib (compatibility version 3.0.0,
 current version 3.0.0)
 }}}
 And the README from R15B1 doesn't mention anything the sounds like your
 bug. R15B01 doesn't even have any odbc related bugfixes at all.

-- 
Ticket URL: <https://trac.macports.org/ticket/32501#comment:6>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list