Compilation error report with LibreSSL #2100

Closed
opened 2026-02-20 21:23:29 -05:00 by deekerman · 1 comment
Owner

Originally created by @gessel on GitHub (Jan 30, 2021).

Describe the bug
/usr/bin/ld: undefined reference to symbol `X509_getm_notAfter' (try adding -lcrypto)

I saw #3643 and expect that the answer is "we do not explicitly support LibreSSL, perhaps open a bug there," that's fine, please feel free to close this and I will do so. Following @davidebeatrici comment, I've attached the compiler error message below.

Steps to Reproduce

portmaster audio/murmur

(with SSL provided by libressl-3.2.3)

Expected behavior
finished install for ports

Desktop (please complete the following information):
FreeBSD 11.3-RELEASE-p8 #0 r360490
libressl-3.2.3
murmur 1.3.3_1

Additional context

--- ../../debug/murmurd ---
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/MurmurIce.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_MurmurIce.o   -L/var/ports/usr/ports/audio/murmur/work/mumble-1.3.3/debug -L/usr/lib -L/usr/local/lib -lmumble_proto -lcrypto -lssl -lIce -lIceUtil -lmurmur_ice -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
/usr/bin/ld: warning: libcrypto.so.46, needed by /usr/local/lib/libIceUtil.so, may conflict with libcrypto.so.8
/usr/bin/ld: undefined reference to symbol `X509_getm_notAfter' (try adding -lcrypto)
/usr/local/lib/libcrypto.so.46: could not read symbols: Bad value
c++: error: linker command failed with exit code 1 (use -v to see invocation)
*** [../../debug/murmurd] Error code 1

make[3]: stopped in /var/ports/usr/ports/audio/murmur/work/mumble-1.3.3/src/murmur
1 error
Originally created by @gessel on GitHub (Jan 30, 2021). **Describe the bug** /usr/bin/ld: undefined reference to symbol `X509_getm_notAfter' (try adding -lcrypto) I saw #3643 and expect that the answer is "we do not explicitly support LibreSSL, perhaps open a bug there," that's fine, please feel free to close this and I will do so. Following @davidebeatrici comment, I've attached the compiler error message below. **Steps to Reproduce** # portmaster audio/murmur (with SSL provided by libressl-3.2.3) **Expected behavior** finished install for ports **Desktop (please complete the following information):** FreeBSD 11.3-RELEASE-p8 #0 r360490 libressl-3.2.3 murmur 1.3.3_1 **Additional context** ``` --- ../../debug/murmurd --- 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/MurmurIce.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_MurmurIce.o -L/var/ports/usr/ports/audio/murmur/work/mumble-1.3.3/debug -L/usr/lib -L/usr/local/lib -lmumble_proto -lcrypto -lssl -lIce -lIceUtil -lmurmur_ice -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 /usr/bin/ld: warning: libcrypto.so.46, needed by /usr/local/lib/libIceUtil.so, may conflict with libcrypto.so.8 /usr/bin/ld: undefined reference to symbol `X509_getm_notAfter' (try adding -lcrypto) /usr/local/lib/libcrypto.so.46: could not read symbols: Bad value c++: error: linker command failed with exit code 1 (use -v to see invocation) *** [../../debug/murmurd] Error code 1 make[3]: stopped in /var/ports/usr/ports/audio/murmur/work/mumble-1.3.3/src/murmur 1 error ```
deekerman 2026-02-20 21:23:29 -05:00
Author
Owner

@Krzmbrzl commented on GitHub (Jan 30, 2021):

We don't support LibreSSL and even if we wanted to, Qt does not.

Furthermore an interesting read regarding this topic seems to be https://www.gentoo.org/support/news-items/2021-01-05-libressl-support-discontinued.html where Gentoo announced that they will drop LibreSSL support since it's a PITA to maintain and also the advantages of LibreSSL over OpenSSL have diminished in the last years (at least that's what the article says).

Given that Qt explicitly does not support LibreSSL, I don't think it makes sense for us to try and do so.

We might re-evaluate the issue once we have moved to a Qt-independent backend but until then I don't think this would lead to anything.
So for the time being, I think you should indeed report it to LibreSSL upstream.

@Krzmbrzl commented on GitHub (Jan 30, 2021): We don't support LibreSSL and even if we wanted to, Qt does not. Furthermore an interesting read regarding this topic seems to be https://www.gentoo.org/support/news-items/2021-01-05-libressl-support-discontinued.html where Gentoo announced that they will drop LibreSSL support since it's a PITA to maintain and also the advantages of LibreSSL over OpenSSL have diminished in the last years (at least that's what the article says). Given that Qt explicitly does not support LibreSSL, I don't think it makes sense for us to try and do so. We might re-evaluate the issue once we have moved to a Qt-independent backend but until then I don't think this would lead to anything. So for the time being, I think you should indeed report it to LibreSSL upstream.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/mumble-mumble-voip#2100
No description provided.