Opened 14 years ago

Closed 14 years ago

#26022 closed defect (fixed)

mysql-connector-odbc doesn't make usable output

Reported by: srl@… Owned by: pixilla (Bradley Giesbrecht)
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 (3)

patch-Portfile.diff (2.1 KB) - added by pixilla (Bradley Giesbrecht) 14 years ago.
patch-configure.diff (1.0 KB) - added by pixilla (Bradley Giesbrecht) 14 years ago.
files/patch-configure.diff
patch-Portfile-tested.diff (1.2 KB) - added by pixilla (Bradley Giesbrecht) 14 years ago.
against svn r73349

Download all attachments as: .zip

Change History (8)

comment:1 Changed 14 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 14 years ago by jmroot (Joshua Root)

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

Please remember to cc the maintainer.

comment:3 Changed 14 years ago by srl@…

Cc: srl@… added

Cc Me!

comment:4 Changed 14 years ago by pixilla (Bradley Giesbrecht)

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 14 years ago by pixilla (Bradley Giesbrecht)

Attachment: patch-Portfile.diff added

Changed 14 years ago by pixilla (Bradley Giesbrecht)

Attachment: patch-configure.diff added

files/patch-configure.diff

Changed 14 years ago by pixilla (Bradley Giesbrecht)

Attachment: patch-Portfile-tested.diff added

against svn r73349

comment:5 Changed 14 years ago by mkae (Marko Käning)

Resolution: fixed
Status: newclosed

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

Note: See TracTickets for help on using tickets.