mysql57 does not build with ssl error

YuryG

Well-Known Member

Reaction score: 24
Messages: 394

Trying to build databases/mysql57-client gives an error about base ssl.
Code:
[ 65%] Linking C static library libmysqlclient.a
/usr/bin/ld: /usr/lib/libssl.a(ssl_err.o): relocation R_X86_64_32 against `a loc
al symbol' can not be used when making a shared object; recompile with -fPIC
/usr/lib/libssl.a: could not read symbols: Bad value
Is it me or something?
 

abefar

Member

Reaction score: 6
Messages: 25

Not mine, I'm still at 10.3-RELEASE - haven't upgraded to p1 or p2 yet. Just tried the same on bare OS (i.e. not inside a jail), and the same thing happens when trying to build databases/mariadb100-client version 10.0.25.
After upgrading from 10.2 to 10.3 I rebuilt all ports, including mariadb100-client-10.0.23, without any issues.

The only irregularity I can think of is that my world is built without profiled libraries ( WITHOUT_PROFILE is set in src.conf(5)), otherwise it's pretty standard.
 
OP
OP
Y

YuryG

Well-Known Member

Reaction score: 24
Messages: 394

By the way, isn't it contradictory in databases/mysql57-server Makefile:
Code:
WITH_OPENSSL_PORT=yes
...
CMAKE_ARGS+=-DWITH_SSL=${OPENSSLBASE}
And (as with dns/bind910) it's not my favourable solution: to build OpenSSL from ports (and rebuild all dependent ports?)
 

kpa

Beastie's Twin

Reaction score: 1,809
Messages: 6,318

No, that's not an error. OPENSSLBASE can be either /usr or ${LOCALBASE} depending on what has been set with WITH_OPENSSL_BASE or WITH_OPENSSL_PORT.
 

KdeBruin

Member

Reaction score: 7
Messages: 55

Having the same error on various ports on a freshly patched and updated 10.3-p2 system. I have neither WITH_OPENSSL_BASE or WITH_OPENSSL_PORT set.
 

kpa

Beastie's Twin

Reaction score: 1,809
Messages: 6,318

Build just fine under poudriere testport, 10.3-RELEASE amd64 under VirtualBox. Ports tree is at revision @414981. I have WITH_OPENSSL_PORT set globally though.

Please try this:

- Fetch matching sources for your system if you don't already have from https://svn.freebsd.org/base/releng/10.3. Use svnlite co https://svn.freebsd.org/base/releng/10.3 /usr/src if you don't have the sources yet, svnlite up /usr/src if you do.

- Run # make -C /usr/src -D BATCH_DELETE_OLD_FILES delete-old delete-old-libs.

That should clean up any old files from the base system that might interfere with build of the port.
 

KdeBruin

Member

Reaction score: 7
Messages: 55

Tried this but still the same error from building databases/mariadb100-client:

Code:
/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
 

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 7,771
Messages: 30,912

Build just fine under poudriere testport, 10.3-RELEASE amd64 under VirtualBox. Ports tree is at revision @414981. I have WITH_OPENSSL_PORT set globally though.
It fails to build for me. But I don't have WITH_OPENSSL_PORT set.

So it looks like there's an issue with the base OpenSSL. Is there anyone with the same build issues on 10.2, 10.1 or 9.3? It may be specific to 10.3.
 

kpa

Beastie's Twin

Reaction score: 1,809
Messages: 6,318

It fails to build for me. But I don't have WITH_OPENSSL_PORT set.

So it looks like there's an issue with the base OpenSSL. Is there anyone with the same build issues on 10.2, 10.1 or 9.3? It may be specific to 10.3.
Yep, I just created a new poudriere set with WITH_OPENSSL_BASE set and it fails the same way. Someone submit a PR.
 
OP
OP
Y

YuryG

Well-Known Member

Reaction score: 24
Messages: 394

I have done svn up in /usr/src then rebuilt the world and the kernel also make delete-old and make delete-old-libs as instructed in Handsbook. The problem stays. (Although I have WITH_OPEN_SSL_BASE=yes.)
 
Top