Bug 246459 - audio/murmur fails to build with libressl
Summary: audio/murmur fails to build with libressl
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Mark Felder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-14 03:18 UTC by dave
Modified: 2021-03-07 20:40 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (feld)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dave 2020-05-14 03:18:06 UTC
Failed trying to build the version of this in 2020Q2. I'm using LibreSSL and this port has always had issues for me with that. It appears audio/mumble has the exact same issue

Here's the failure:

c++ -Wl,-rpath,/usr/local/lib -fstack-protector-strong -pie -Wl,--no-add-needed -Wl,-z,relro -Wl,-z,now -fstack-protector -pthread -Wl,-rpath,/usr/local/lib/qt5 -o ../../debug/murmurd ../../debug/.obj/murmur/ACL.o  ../../debug/.obj/murmur/Group.o  ../../debug/.obj/murmur/Channel.o  ../../debug/.obj/murmur/Connection.o  ../../debug/.obj/murmur/HTMLFilter.o  ../../debug/.obj/murmur/User.o  ../../debug/.obj/murmur/Timer.o  ../../debug/.obj/murmur/CryptState.o  ../../debug/.obj/murmur/OSInfo.o  ../../debug/.obj/murmur/SSL.o  ../../debug/.obj/murmur/Version.o  ../../debug/.obj/murmur/SSLCipherInfo.o  ../../debug/.obj/murmur/License.o  ../../debug/.obj/murmur/LogEmitter.o  ../../debug/.obj/murmur/CryptographicHash.o  ../../debug/.obj/murmur/CryptographicRandom.o  ../../debug/.obj/murmur/PasswordGenerator.o  ../../debug/.obj/murmur/HostAddress.o  ../../debug/.obj/murmur/Ban.o  ../../debug/.obj/murmur/EnvUtils.o  ../../debug/.obj/murmur/UnresolvedServerAddress.o  ../../debug/.obj/murmur/ServerAddress.o  ../../debug/.obj/murmur/ServerResolver_qt5.o  ../../debug/.obj/murmur/ServerResolverRecord.o  ../../debug/.obj/murmur/SelfSignedCertificate.o  ../../debug/.obj/murmur/SSLLocks.o  ../../debug/.obj/murmur/FFDHE.o  ../../debug/.obj/murmur/arc4random_uniform.o  ../../debug/.obj/murmur/main.o  ../../debug/.obj/murmur/Server.o  ../../debug/.obj/murmur/ServerUser.o  ../../debug/.obj/murmur/ServerDB.o  ../../debug/.obj/murmur/Register.o  ../../debug/.obj/murmur/Cert.o  ../../debug/.obj/murmur/Messages.o  ../../debug/.obj/murmur/Meta.o  ../../debug/.obj/murmur/RPC.o  ../../debug/.obj/murmur/PBKDF2.o  ../../debug/.obj/murmur/UnixMurmur.o  ../../debug/.obj/murmur/BonjourServiceRegister.o  ../../debug/.obj/murmur/BonjourServer.o  ../../debug/.obj/murmur/moc_ACL.o  ../../debug/.obj/murmur/moc_Channel.o  ../../debug/.obj/murmur/moc_Connection.o  ../../debug/.obj/murmur/moc_LogEmitter.o  ../../debug/.obj/murmur/moc_ServerResolver.o  ../../debug/.obj/murmur/moc_Server.o  ../../debug/.obj/murmur/moc_ServerUser.o  ../../debug/.obj/murmur/moc_Meta.o  ../../debug/.obj/murmur/moc_UnixMurmur.o  ../../debug/.obj/murmur/moc_BonjourServiceRegister.o  ../../debug/.obj/murmur/moc_BonjourServer.o   -L/wrkdirs/usr/ports/audio/murmur/work/mumble-1.3.0/debug -L/usr/lib -L/usr/local/lib -lmumble_proto -lcrypto -lssl -ldns_sd -lprotobuf -pthread /usr/local/lib/qt5/libQt5Network.so /usr/local/lib/qt5/libQt5Sql.so /usr/local/lib/qt5/libQt5Xml.so /usr/local/lib/qt5/libQt5Core.so
--- release-all ---
../../release/.obj/murmur/SelfSignedCertificate.o: In function `SelfSignedCertificate::generate(CertificateType, QString, QString, QSslCertificate&, QSslKey&)':
SelfSignedCertificate.cpp:(.text+0x14b): undefined reference to `X509_getm_notBefore'
SelfSignedCertificate.cpp:(.text+0x173): undefined reference to `X509_getm_notAfter'
c++: error: linker command failed with exit code 1 (use -v to see invocation)
*** [../../release/murmurd] Error code 1
Comment 1 Mark Felder freebsd_committer 2020-08-21 15:12:00 UTC
(In reply to dave from comment #0)

I'd expect to see patches for this in OpenBSD's ports tree for Mumble but they don't have anything for this. I'll try to reproduce the failure.
Comment 2 dave 2021-03-07 20:40:52 UTC
This is still a problem as of 2021Q1 (retrieved on 02/24/21):

--- ../../debug/.obj/murmur/ServerResolver_qt5.o ---
c++ -c -Xclang -include-pch -Xclang debug/murmurd.pch/c++.pch -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -std=c++11 -fvisibility=hidden -Wall -Wextra -Wno-deprecated -I/usr/local/include -isystem /usr/local/include -fstack-protector -fPIE -U_FORTIFY_SOURCE -I../mumble_proto -isystem ../mumble_proto -std=gnu++1z -pthread -Wall -Wextra -pthread -fPIC -DRESTRICT=__restrict__ -DSNAPSHOT_BUILD -DMUMBLE_VERSION_STRING=1.3.3 -DMURMUR -DUSE_BONJOUR -DUSE_QSSLDIFFIEHELLMANPARAMETERS -DQT_NETWORK_LIB -DQT_SQL_LIB -DQT_XML_LIB -DQT_CORE_LIB -I. -I../../src -I. -I../mumble_proto -I../../3rdparty/arc4random-src -I../../3rdparty/qqbonjour-src -I/usr/local/include -I/usr/local/include/qt5 -I/usr/local/include/qt5/QtNetwork -I/usr/local/include/qt5/QtSql -I/usr/local/include/qt5/QtXml -I/usr/local/include/qt5/QtCore -I../../debug/.moc/murmur -I/usr/local/include -I/usr/local/lib/qt5/mkspecs/freebsd-clang -o ../../debug/.obj/murmur/ServerResolver_qt5.o ../ServerResolver_qt5.cpp
--- release-all ---
ld: error: undefined symbol: SSL_library_init
>>> referenced by SSL.cpp
>>>               ../../release/.obj/murmur/SSL.o:(MumbleSSL::initialize())
>>> referenced by main.cpp
>>>               ../../release/.obj/murmur/main.o:(main)
 
ld: error: undefined symbol: SSL_load_error_strings

I'm presuming this is an issue with Qt network, but I am no expert.