Bug 241854

Summary: www/qt5-webengine: update to 5.13.2: linker command fails with undefined references
Product: Ports & Packages Reporter: Marco Beishuizen <mbeis>
Component: Individual Port(s)Assignee: freebsd-kde (group) <kde>
Status: Closed FIXED    
Severity: Affects Only Me CC: rhurlin, tcberner
Priority: --- Flags: tcberner: maintainer-feedback+
Version: Latest   
Hardware: Any   
OS: Any   

Description Marco Beishuizen 2019-11-10 09:17:30 UTC
The update of www/qt5-webengine from 5.13.0 to 5.13.2 fails with:

[...]
/usr/local/bin/ld: .obj/qquickwebengineview.o: in function `QQuickWebEngineViewPrivate::updateAction(QQuickWebEngineView::WebAction) const':
qquickwebengineview.cpp:(.text+0x2f74): undefined reference to `QtWebEngineCore::WebContentsAdapter::hasFocusedFrame() const'
/usr/local/bin/ld: .obj/qquickwebengineview.o: in function `QQuickWebEngineViewPrivate::updateEditActions()':
qquickwebengineview.cpp:(.text+0x30bb): undefined reference to `QtWebEngineCore::WebContentsAdapter::hasFocusedFrame() const'
/usr/local/bin/ld: qquickwebengineview.cpp:(.text+0x30dc): undefined reference to `QtWebEngineCore::WebContentsAdapter::hasFocusedFrame() const'
/usr/local/bin/ld: qquickwebengineview.cpp:(.text+0x30fd): undefined reference to `QtWebEngineCore::WebContentsAdapter::hasFocusedFrame() const'
/usr/local/bin/ld: qquickwebengineview.cpp:(.text+0x311e): undefined reference to `QtWebEngineCore::WebContentsAdapter::hasFocusedFrame() const'
/usr/local/bin/ld: .obj/qquickwebengineview.o:qquickwebengineview.cpp:(.text+0x313f): more undefined references to `QtWebEngineCore::WebContentsAdapter::hasFocusedFrame() const' follow
c++: error: linker command failed with exit code 1 (use -v to see invocation)
*** [../../lib/libQt5WebEngine.so.5.13.2] Error code 1

make[5]: stopped in /usr/ports/www/qt5-webengine/work/.build/src/webengine
1 error
[...]

My uname -a:
FreeBSD yokozuna 12.1-STABLE FreeBSD 12.1-STABLE r354386 YOKOZUNA  amd64
Comment 1 Tobias C. Berner freebsd_committer freebsd_triage 2019-11-10 09:22:22 UTC
Moin moin

How are you upgrading?

mfg Tobias
Comment 2 Marco Beishuizen 2019-11-10 10:42:00 UTC
Used "portmaster -a" to upgrade all of Qt5. Everything went fine except for qt5-webengine.
Comment 3 Tobias C. Berner freebsd_committer freebsd_triage 2019-11-10 10:49:25 UTC
It's not evident from that small log output you posted, but please try to remove the package before building it. It is likely trying to link against the already k stalled version.
Comment 4 Marco Beishuizen 2019-11-10 11:32:36 UTC
Ok will try. Could take a while...
Comment 5 Marco Beishuizen 2019-11-11 07:51:01 UTC
Problem solved by removing the pkg before building. Could have known better if I had read /usr/ports/UPDATING first...
Thanks Tobias for the help though!