Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 05 Jun 2021 09:07:35 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 256426] databases/mysql57-client: fails to build with LibreSSL
Message-ID:  <bug-256426-7788@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 256426
           Summary: databases/mysql57-client: fails to build with LibreSSL
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: joneum@FreeBSD.org
          Reporter: felix@palmen-it.de
          Assignee: joneum@FreeBSD.org
             Flags: maintainer-feedback?(joneum@FreeBSD.org)

Created attachment 225568
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D225568&action=
=3Dedit
Force NDEBUG defined in every compilation unit

Building mysql 5.7.34 fails to build with LibreSSL with the following linker
errors:

---
[ 67%] Linking CXX executable mysqlshow
cd /wrkdirs/usr/ports/databases/mysql57-client/work/.build/client &&
/usr/local/bin/cmake -E cmake_link_script CMakeFiles/mysqlshow.dir/link.txt
--verbose=3D1
/usr/local/bin/clang++90 -fPIC -fno-omit-frame-pointer -fno-strict-aliasing=
 -O2
-pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-alia=
sing
 -DNDEBUG -isystem /usr/local/include -Wall -Wextra -Wformat-security -Wvla
-Woverloaded-virtual -Wno-unused-parameter -Wno-null-conversion
-Wno-unused-private-field -ffunction-sections -fdata-sections -O2 -pipe
-fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing=20
-DNDEBUG -isystem /usr/local/include  -Wl,-rpath,/usr/local/lib
-fstack-protector-strong CMakeFiles/mysqlshow.dir/mysqlshow.c.o -o mysqlsho=
w=20
-Wl,-rpath,/usr/local/lib: -pthread
../archive_output_directory/libmysqlclient.a -pthread -lz -lm -lrt -lexecin=
fo
/usr/local/lib/libssl.so /usr/local/lib/libcrypto.so -lz -lm -lrt -lexecinfo
/usr/local/lib/libssl.so /usr/local/lib/libcrypto.so=20
ld: error: undefined symbol: SSL_COMP_get_id
>>> referenced by viossl.c
>>>               viossl.c.o:(ssl_do) in archive ../archive_output_director=
y/libmysqlclient.a

ld: error: undefined symbol: SSL_COMP_get0_name
>>> referenced by viossl.c
>>>               viossl.c.o:(ssl_do) in archive ../archive_output_director=
y/libmysqlclient.a
--- client/CMakeFiles/mysqlimport.dir/all ---
ld: error: undefined symbol: SSL_COMP_get_id
>>> referenced by viossl.c
>>>               viossl.c.o:(ssl_do) in archive ../archive_output_director=
y/libmysqlclient.a

ld: error: undefined symbol: SSL_COMP_get0_name
>>> referenced by viossl.c
>>>               viossl.c.o:(ssl_do) in archive ../archive_output_director=
y/libmysqlclient.a
--- client/CMakeFiles/mysqlshow.dir/all ---
clang-9: error: linker command failed with exit code 1 (use -v to see
invocation)
*** [client/mysqlshow] Error code 1
---

Attached patch (making sure NDEBUG is defined in every compilation unit) so=
lves
the build problem for me.

As a side note, it still builds when the viosslfactories.c patches are remo=
ved,
but I'm unsure about the consequences.

--=20
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-256426-7788>