New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #26022 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

mysql-connector-odbc doesn't make usable output

Reported by: srl@… Owned by: brad@…
Priority: Normal Milestone:
Component: ports Version: 1.9.1
Keywords: Cc: srl@…
Port: mysql-connector-odbc

Description

mysql-connector-odbc as-is doesn't really work.. it creates a .la and a .a file

the Portfile specifies disable-shared which doesn't make sense for a dynamically loadable driver

I'm glad to be totally missing something here..

#23181 says this was only tested as far as 'port install'.

changing this to enable-shared gives:

:info:build ld: in ../driver/.libs/libmyodbc5.so, can't link with bundle (MH_BUNDLE) only dylibs (MH_DYLIB)

probably more work needed?

Attachments

patch-Portfile.diff (2.1 KB) - added by brad@… 3 years ago.
patch-configure.diff (1.0 KB) - added by brad@… 3 years ago.
files/patch-configure.diff
patch-Portfile-tested.diff (1.2 KB) - added by brad@… 3 years ago.
against svn r73349

Change History

comment:1 Changed 3 years ago by srl@…

moving away libtool and copying `which glibtool` in its place in the work/ dir gave me a loadable libmyodbc5-5.1.6.so deep in the bowels of the port work dir. Still fails at 'make' but i can probably use it at this point.

comment:2 Changed 3 years ago by jmr@…

  • Owner changed from macports-tickets@… to brad@…

Please remember to cc the maintainer.

comment:3 Changed 3 years ago by srl@…

  • Cc srl@… added

Cc Me!

comment:4 Changed 3 years ago by brad@…

Reading this indicates possible problems building shared: http://dev.mysql.com/doc/refman/5.1/en/connector-odbc-installation-source-unix.html#connector-odbc-installation-source-unix-shared-libraries

As I read the above it's also neccessary to configure mysql with "--without-server --enable-shared" which is not the way MacPorts mysql5 port is configured.

I am now referencing mysql build instructions here for this port: http://dev.mysql.com/doc/refman/5.1/en/connector-odbc-installation-source-unix.html#connector-odbc-installation-source-unix-macosx

One thing I had to change was "-undefined error" to "-undefined dynamic_lookup".

Please try this patch-Portfile.diff along with the patch patch-configure.diff and report success or not. Thanks.

Changed 3 years ago by brad@…

Changed 3 years ago by brad@…

files/patch-configure.diff

Changed 3 years ago by brad@…

against svn r73349

comment:5 Changed 3 years ago by mk@…

  • Status changed from new to closed
  • Resolution set to fixed

Ryan was faster than me. It's fixed already in r73379

Note: See TracTickets for help on using tickets.