Ticket #26022 (closed defect: fixed)
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
Change History
comment:2 Changed 3 years ago by jmr@…
- Owner changed from macports-tickets@… to brad@…
Please remember to cc the maintainer.
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.


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.