databases/mariadb100-client fails to compile

Peter Jeremy peter at
Tue May 10 00:03:41 UTC 2016

I'm unable to get databases/mariadb100-client to compile on 10-stable/amd64.
It fails as follows:

Scanning dependencies of target mysqlclient
gmake[4]: Leaving directory '/var/obj/usr/ports/databases/mariadb100-client/work/mariadb-10.0.25'
gmake[4]: Entering directory '/var/obj/usr/ports/databases/mariadb100-client/work/mariadb-10.0.25'
[ 92%] Building C object libmysql/CMakeFiles/mysqlclient.dir/mysqlclient_depends.c.o
[ 92%] Linking CXX shared library
[ 93%] Linking C static library libmysqlclient.a
/usr/bin/ld: /usr/lib/libssl.a(ssl_err.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/lib/libssl.a: could not read symbols: Bad value
c++: error: linker command failed with exit code 1 (use -v to see invocation)
libmysql/CMakeFiles/libmysql.dir/build.make:110: recipe for target 'libmysql/' failed
gmake[4]: *** [libmysql/] Error 1
gmake[4]: Leaving directory '/var/obj/usr/ports/databases/mariadb100-client/work/mariadb-10.0.25'

Looking at the configuration output, it reports:
-- OPENSSL_INCLUDE_DIR = /usr/include
-- OPENSSL_LIBRARIES = /usr/lib/libssl.a
-- CRYPTO_LIBRARY = /usr/lib/libcrypto.a
-- SSL_LIBRARIES = /usr/lib/libssl.a;/usr/lib/libcrypto.a

I'm not sure why it's picking the static versions of those libraries.

Peter Jeremy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: not available
URL: <>

More information about the freebsd-ports mailing list