Bug 246639 - net/qt5-network: 5.14.2 fails to build with LibreSSL 3.1.2
Summary: net/qt5-network: 5.14.2 fails to build with LibreSSL 3.1.2
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-kde (Team)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-21 16:59 UTC by Ashish SHUKLA
Modified: 2020-07-13 15:56 UTC (History)
1 user (show)

See Also:
tcberner: maintainer-feedback+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ashish SHUKLA freebsd_committer 2020-05-21 16:59:56 UTC
While trying to build net/qt5-network 5.14.2 with "ssl=libressl", I get following build error:


--- .obj/moc_qnetworkreply.o ---
c++ -c -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DOPENSSL_API_COMPAT=0x10100000L -std=c++1z -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -Wextra -Wdat
e-time -Winconsistent-missing-override -pthread -fPIC -DQT_NO_LINKED_LIST -DQT_NO_JAVA_STYLE_ITERATORS -DQT_OPENSSL -DQT_SSL -DQT_NO_USING_NAMESPACE -DQT_NO_FOREACH -DQT_USE_SYSTEM_PROXIES -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_NETWORK_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_DEPRECATED_WARNINGS_SINCE=0x060000 -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_CORE_LIB -I. -Ikernel -I../../include -I../../include/QtNetwork -I../../include/QtNetwork/5.14.2 -I../../include/QtNetwork/5.14.2/QtNetwork -isystem /usr/local/include/qt5/QtCore/5.14.2 -isystem /usr/local/include/qt5/QtCore/5.14.2/QtCore -isystem /usr/local/include/qt5 -isystem /usr/local/include/qt5/QtCore -I.moc -isystem /usr/local/include -I/usr/local/lib/qt5/mkspecs/freebsd-clang -o .obj/moc_qnetworkreply.o .moc/moc_qnetworkreply.cpp
--- .obj/qsslsocket_openssl_symbols.o ---
In file included from ssl/qsslsocket_openssl_symbols.cpp:58:
In file included from ssl/qsslsocket_openssl_symbols_p.h:232:
ssl/qsslsocket_openssl11_symbols_p.h:188:29: error: unknown type name 'BIO_ADDR'
int q_DTLSv1_listen(SSL *s, BIO_ADDR *client);
                            ^
ssl/qsslsocket_openssl11_symbols_p.h:189:1: error: unknown type name 'BIO_ADDR'
BIO_ADDR *q_BIO_ADDR_new();
^
ssl/qsslsocket_openssl11_symbols_p.h:190:22: error: unknown type name 'BIO_ADDR'
void q_BIO_ADDR_free(BIO_ADDR *ap);
                     ^
ssl/qsslsocket_openssl_symbols.cpp:201:44: error: unknown type name 'BIO_ADDR'
DEFINEFUNC2(int, DTLSv1_listen, SSL *s, s, BIO_ADDR *c, c, return -1, return)
                                           ^
ssl/qsslsocket_openssl_symbols.cpp:201:44: error: unknown type name 'BIO_ADDR'
ssl/qsslsocket_openssl_symbols.cpp:202:12: error: unknown type name 'BIO_ADDR'
DEFINEFUNC(BIO_ADDR *, BIO_ADDR_new, DUMMYARG, DUMMYARG, return nullptr, return)
           ^
ssl/qsslsocket_openssl_symbols.cpp:202:12: error: unknown type name 'BIO_ADDR'
ssl/qsslsocket_openssl_symbols.cpp:203:33: error: unknown type name 'BIO_ADDR'
DEFINEFUNC(void, BIO_ADDR_free, BIO_ADDR *ap, ap, return, DUMMYARG)
                                ^
ssl/qsslsocket_openssl_symbols.cpp:203:33: error: unknown type name 'BIO_ADDR'
9 errors generated.
*** [.obj/qsslsocket_openssl_symbols.o] Error code 1

make[1]: stopped in /wrkdirs/usr/ports/net/qt5-network/work/qtbase-everywhere-src-5.14.2/src/network
1 error

make[1]: stopped in /wrkdirs/usr/ports/net/qt5-network/work/qtbase-everywhere-src-5.14.2/src/network
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1


It's also mentioned in this comment:

 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=235883#c4

But I don't see any fix for the same.

Thanks in advance
Comment 1 Tobias C. Berner freebsd_committer 2020-07-03 06:24:12 UTC
Moin moin 

Is this still an issue?
With r531857 on 2020-04-16 libressl support was readded.


mfg Tobias
Comment 2 Ashish SHUKLA freebsd_committer 2020-07-12 08:47:58 UTC
(In reply to Tobias C. Berner from comment #1)

When I filed the PR, I was using the latest snapshot of the ports tree, and the PR date is later than the date of mentioned fix, so I believe it was still an issue.

Although, I switched back to OpenSSL few weeks ago, so I won't be able to test any fixes.

Thanks!
Comment 3 Tobias C. Berner freebsd_committer 2020-07-13 15:56:05 UTC
I'll close this as overcome by events then :)

Please, anyone, feel free to reopen if this is still an issue if Qt-5.15

mfg Tobias