[Bug 192448] databases/mysql-connector-odbc and DEFAULT_MYSQL_VER
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Thu Aug 7 10:18:55 UTC 2014
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=192448
--- Comment #3 from timp87 at gmail.com ---
I have poor skills, but I've made a patch. I attached diff and whole ports dir,
just in case.
Only files/patch-CMakeLists.txt and pkg-descr haven't been changed.
It passes stage and other stuff.
But it has one problem that I don't know how to fix. Please, help.
During build ld tries to find odbc libs in wrong place (in /usr/lib/, for
example, which is supposed to be in /usr/local/lib).
Here is output of make:
...
/usr/include/sys/timeb.h:42:2: warning: #warning "this file includes
<sys/timeb.h> which is deprecated"
Linking C shared library ../lib/libmyodbc5w.so
/usr/bin/ld: cannot find -lodbcinst
*** [lib/libmyodbc5w.so] Error code 1
1 error
*** [driver/CMakeFiles/myodbc5w.dir/all] Error code 2
Linking C shared library ../lib/libmyodbc5a.so
/usr/bin/ld: cannot find -lodbcinst
*** [lib/libmyodbc5a.so] Error code 1
....
So as workaround I made sym links
# ln -s /usr/local/lib/libodbcinst.a /usr/lib/libodbcinst.a
# ln -s /usr/local/lib/libodbcinst.so.2 /usr/lib/libodbcinst.so
After that it passes make install and works!
Please, help to fix that.
P.S. I didn't try it with mariadb, but I think it works.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list