Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 07 Aug 2014 10:18:54 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 192448] databases/mysql-connector-odbc and DEFAULT_MYSQL_VER
Message-ID:  <bug-192448-13-LbOmfXvH2R@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-192448-13@https.bugs.freebsd.org/bugzilla/>
References:  <bug-192448-13@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=192448

--- Comment #3 from timp87@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-192448-13-LbOmfXvH2R>