qt5 fails to build

John tech-lists at zyxst.net
Sun Feb 19 20:25:41 UTC 2017


Hi,

On Sun, 19 Feb 2017, at 19:46, Marco Beishuizen wrote:
> On Sun, 19 Feb 2017, the wise tech-lists wrote:
> 
> > I'm trying to build qt5 on a fresh freebsd-11-stable image. If it works, 
> > then there's something wrong with ports on my desktop.
> 
> I've just upgraded qt5 on my FreeBSD 11-ST machine with portupgrade. In 
> general it went fine. Only hickup was that "qt5-quick" had a problem with 
> another library of the older qt5-quickcontrols ("install files in the
> same 
> place"). Deleting the older port was enough to finish the portupgrade.
> 
> Regards,
> Marco

On a different brand new 11-stable installation (r313940), with ports
tree at r434399, with no Qt installed at all (just bash, ccache screen),
I tried to install devel/qt5. The build gets dumped in net/qt5-network.
I tried MAKE_JOBS_UNSAFE=YES

output:

--- .obj/qftp.o ---
c++ -c -O2 -pipe -fstack-protector -fno-strict-aliasing -std=c++1z
-fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -W
-Wdate-time -pthread -fPIC -DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_EVDEV
-DQT_NO_TSLIB -DQT_NO_LIBINPUT -DQT_LIBPROXY -DQT_OPENSSL -DQT_SSL
-DQT_NO_USING_NAMESPACE -DQT_NO_FOREACH -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_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.7.1
-I../../include/QtNetwork/5.7.1/QtNetwork -I../../include/QtCore/5.7.1
-I../../include/QtCore/5.7.1/QtCore -I../../include/QtCore -I.moc
-I/usr/local/include -I/usr/local/lib/qt5/mkspecs/freebsd-clang -o
.obj/qftp.o access/qftp.cpp
--- .obj/qsslsocket_openssl.o ---
ssl/qsslsocket_openssl.cpp:1593:13: error: use of undeclared identifier
'SSL_CTRL_GET_SERVER_TMP_KEY'
        if (q_SSL_get_server_tmp_key(ssl, &key))
            ^
ssl/qsslsocket_openssl_symbols_p.h:493:62: note: expanded from macro
'q_SSL_get_server_tmp_key'
#define q_SSL_get_server_tmp_key(ssl, key) q_SSL_ctrl((ssl),
SSL_CTRL_GET_SERVER_TMP_KEY, 0, (char *)key)
                                                             ^
1 error generated.
*** [.obj/qsslsocket_openssl.o] Error code 1

make[4]: stopped in
/usr/ports/net/qt5-network/work/qtbase-opensource-src-5.7.1/src/network
1 error

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

Stop.
make[3]: stopped in /usr/ports/net/qt5-network
*** Error code 1

Stop.
make[2]: stopped in /usr/ports/x11-toolkits/qt5-gui
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/graphics/qt5-3d
*** Error code 1

Stop.
make: stopped in /usr/ports/devel/qt5

I tried to build the troublesome dependency qt5-network, to no avail:

root at dev:/usr/ports/net/qt5-network # make MAKE_JOBS_UNSAFE=yes
===>  Building for qt5-network-5.7.1
c++ -c -O2 -pipe -fstack-protector -fno-strict-aliasing -std=c++1z
-fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -W
-Wdate-time -pthread -fPIC -DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_EVDEV
-DQT_NO_TSLIB -DQT_NO_LIBINPUT -DQT_LIBPROXY -DQT_OPENSSL -DQT_SSL
-DQT_NO_USING_NAMESPACE -DQT_NO_FOREACH -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_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.7.1
-I../../include/QtNetwork/5.7.1/QtNetwork -I../../include/QtCore/5.7.1
-I../../include/QtCore/5.7.1/QtCore -I../../include/QtCore -I.moc
-I/usr/local/include -I/usr/local/lib/qt5/mkspecs/freebsd-clang -o
.obj/qsslsocket_openssl.o ssl/qsslsocket_openssl.cpp
ssl/qsslsocket_openssl.cpp:1593:13: error: use of undeclared identifier
'SSL_CTRL_GET_SERVER_TMP_KEY'
        if (q_SSL_get_server_tmp_key(ssl, &key))
            ^
ssl/qsslsocket_openssl_symbols_p.h:493:62: note: expanded from macro
'q_SSL_get_server_tmp_key'
#define q_SSL_get_server_tmp_key(ssl, key) q_SSL_ctrl((ssl),
SSL_CTRL_GET_SERVER_TMP_KEY, 0, (char *)key)
                                                             ^
1 error generated.
*** Error code 1

Stop.
make[1]: stopped in
/usr/ports/net/qt5-network/work/qtbase-opensource-src-5.7.1/src/network
*** Error code 1

Stop.
make: stopped in /usr/ports/net/qt5-network

my make.conf looks like this:

DEFAULT_VERSIONS+=  ssl=libressl

it doesn't make a difference if it's commented out or not

-- 
J


More information about the freebsd-ports mailing list