Re: www/qt5-webengine build failed on FreeBSD-CURRENT

From: Rainer Hurling <rhurlin_at_gwdg.de>
Date: Sat, 11 Jan 2025 19:44:26 UTC
Am 11.01.25 um 16:43 schrieb Graham Perrin:
> The tail of the log:
> 
> cd process/ && ( test -e Makefile || /usr/local/lib/qt5/bin/qmake -o 
> Makefile /wrkdirs/usr/ports/www/qt5-webengine/work/kde- 
> qtwebengine-5.15.18p5/src/process/process.pro -spec /usr/local/lib/qt5/ 
> mkspecs/freebsd-clang 'QMAKE_CC=cc -B/usr/local/bin' 'QMAKE_CXX=c++ -B/ 
> usr/local/bin' 'QMAKE_LINK_C=cc -B/usr/local/bin' 'QMAKE_LINK_C_SHLIB=cc 
> -B/usr/local/bin' 'QMAKE_LINK=c++ -B/usr/local/bin' 'QMAKE_LINK_SHLIB=c+ 
> + -B/usr/local/bin' 'QMAKE_CFLAGS=-O2 -pipe -O3 -pipe -march=native - 
> mtune=native  -fstack-protector-strong -fno-strict-aliasing ' 
> 'QMAKE_CXXFLAGS=-O2 -pipe -O3 -pipe -march=native -mtune=native -fstack- 
> protector-strong -fno-strict-aliasing  ' 'QMAKE_LFLAGS= -Wl,--undefined- 
> version -Wl,--as-needed -fstack-protector-strong ' QMAKE_LIBS= 
> QMAKE_CFLAGS_DEBUG= QMAKE_CFLAGS_RELEASE= QMAKE_CXXFLAGS_DEBUG= 
> QMAKE_CXXFLAGS_RELEASE= PREFIX=/usr/local CONFIG+=release 'CONFIG-=debug 
> separate_debug_info' QT_CONFIG+=release 'QT_CONFIG-=debug 
> separate_debug_info' ) && /usr/bin/make -f Makefile
> c++ -B/usr/local/bin -c -O2 -pipe -O3 -pipe -march=native -mtune=native 
> -fstack-protector-strong -fno-strict-aliasing -std=c++1z -fno-exceptions 
> -Wall -Wextra -Wdate-time -Winconsistent-missing-override -pthread -fPIC 
> -DQT_NO_LINKED_LIST -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT - 
> DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE - 
> DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_WEBENGINECORE_LIB - 
> DQT_QUICK_LIB -DQT_QMLMODELS_LIB -DQT_WEBCHANNEL_LIB -DQT_QML_LIB - 
> DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_POSITIONING_LIB -DQT_CORE_LIB -I/ 
> wrkdirs/usr/ports/www/qt5-webengine/work/kde-qtwebengine-5.15.18p5/src/ 
> process -I. -I/wrkdirs/usr/ports/www/qt5-webengine/work/kde- 
> qtwebengine-5.15.18p5/src/core -I/usr/local/include/qt5 -I/usr/local/ 
> include/qt5/QtGui -I/usr/local/include/qt5/QtCore -I../../include/ 
> QtWebEngineCore/5.15.18 -I../../include/QtWebEngineCore/5.15.18/ 
> QtWebEngineCore -I../../include -I../../include/QtWebEngineCore -I/usr/ 
> local/include/qt5/QtQuick/5.15.16 -I/usr/local/include/qt5/ 
> QtQuick/5.15.16/QtQuick -I/usr/local/include/qt5/QtQmlModels/5.15.16 -I/ 
> usr/local/include/qt5/QtQmlModels/5.15.16/QtQmlModels -I/usr/local/ 
> include/qt5/QtQml/5.15.16 -I/usr/local/include/qt5/QtQml/5.15.16/QtQml - 
> I/usr/local/include/qt5/QtGui/5.15.16 -I/usr/local/include/qt5/ 
> QtGui/5.15.16/QtGui -I/usr/local/include/qt5/QtCore/5.15.16 -I/usr/ 
> local/include/qt5/QtCore/5.15.16/QtCore -I/usr/local/include/qt5/QtQuick 
> -I/usr/local/include/qt5/QtQmlModels -I/usr/local/include/qt5/ 
> QtWebChannel -I/usr/local/include/qt5/QtQml -I/usr/local/include/qt5/ 
> QtNetwork -I/usr/local/include/qt5/QtPositioning -I.moc -I/usr/local/ 
> include -I/usr/local/include -I/usr/local/lib/qt5/mkspecs/freebsd-clang 
> -o .obj/main.o /wrkdirs/usr/ports/www/qt5-webengine/work/kde- 
> qtwebengine-5.15.18p5/src/process/main.cpp
> c++ -B/usr/local/bin -Wl,--undefined-version -Wl,--as-needed -fstack- 
> protector-strong -pthread -Wl,-rpath,/usr/local/lib/qt5 -Wl,-rpath- 
> link,/wrkdirs/usr/ports/www/qt5-webengine/work/.build/lib -o ../../ 
> libexec/QtWebEngineProcess .obj/main.o -L/wrkdirs/usr/ports/www/qt5- 
> webengine/work/.build/lib -L/usr/local/lib /usr/local/lib/qt5/ 
> libQt5Gui.so /usr/local/lib/qt5/libQt5Core.so -lGL /wrkdirs/usr/ports/ 
> www/qt5-webengine/work/.build/lib/libQt5WebEngineCore.so /usr/local/lib/ 
> qt5/libQt5Quick.so /usr/local/lib/qt5/libQt5QmlModels.so /usr/local/lib/ 
> qt5/libQt5WebChannel.so /usr/local/lib/qt5/libQt5Qml.so /usr/local/lib/ 
> qt5/libQt5Network.so /usr/local/lib/qt5/libQt5Gui.so /usr/local/lib/qt5/ 
> libQt5Positioning.so /usr/local/lib/qt5/libQt5Core.so
> /usr/local/bin/ld: warning: libmd.so.7, needed by /usr/local/lib/ 
> libx265.so.209, not found (try using -rpath or -rpath-link)

#pkg which /usr/local/lib/libx265.so.209
/usr/local/lib/libx265.so.209 was installed by package x265-3.6_1

Did you try to rebuild multimedia/x265?

> /usr/local/bin/ld: /usr/local/lib/libSvtAv1Enc.so.2: undefined reference 
> to `__memcpy_chk@FBSD_1.8'
> /usr/local/bin/ld: /usr/local/lib/libx265.so.209: undefined reference to 
> `_libmd_MD5Init@FBSDprivate_1.0'
> /usr/local/bin/ld: /usr/local/lib/libSvtAv1Enc.so.2: undefined reference 
> to `__memset_chk@FBSD_1.8'
> /usr/local/bin/ld: /usr/local/lib/libx265.so.209: undefined reference to 
> `_libmd_MD5Final@FBSDprivate_1.0'
> /usr/local/bin/ld: /usr/local/lib/libx265.so.209: undefined reference to 
> `_libmd_MD5Update@FBSDprivate_1.0'
> c++: error: linker command failed with exit code 1 (use -v to see 
> invocation)
> *** Error code 1
> 
> Stop.
> make[2]: stopped in /wrkdirs/usr/ports/www/qt5-webengine/work/.build/ 
> src/process
> *** Error code 1
> 
> Stop.
> make[1]: stopped in /wrkdirs/usr/ports/www/qt5-webengine/work/.build/src
> *** Error code 1
> 
> Stop.
> make: stopped in /wrkdirs/usr/ports/www/qt5-webengine/work/.build
> *** Error code 1
> 
> Stop.
> make: stopped in /usr/ports/www/qt5-webengine
> =>> Cleaning up wrkdir
> ===>  Cleaning for qt5-webengine-5.15.18p5_1
> build of www/qt5-webengine | qt5-webengine-5.15.18p5_1 ended at 
> 2025-01-11T15:06:42+00:00
> build time: 03:06:16
> !!! build failure encountered !!!
> 
>