Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 620444 - [qt overlay] dev-qt/qtwebengine-5.9.0 fails to build - src/core/network_delegate_qt.cpp:86:93: error: ‘ResourceTypeLast’ is not a member of ‘QWebEngineUrlRequestInfo’
Summary: [qt overlay] dev-qt/qtwebengine-5.9.0 fails to build - src/core/network_deleg...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 625258
  Show dependency tree
 
Reported: 2017-06-02 16:15 UTC by Vasco Gervasi
Modified: 2019-02-18 20:54 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.tbz2,271.72 KB, application/x-bzip-compressed-tar)
2017-06-02 20:59 UTC, Vasco Gervasi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vasco Gervasi 2017-06-02 16:15:37 UTC
Hi all,
I am trying to update qtwebengine to 5.9.0 but I get this error:

[17223/17305] CXX obj/QtWebEngineCore/browser_context_qt.o
In file included from /usr/include/qt5/QtNetwork/qtnetworkglobal.h:44:0,
                 from /usr/include/qt5/QtNetwork/qnetworkcookie.h:43,
                 from /var/tmp/portage/dev-qt/qtwebengine-5.9.0/work/qtwebengine-opensource-src-5.9.0/src/core/api/qwebenginecookiestore.h:49,
                 from /var/tmp/portage/dev-qt/qtwebengine-5.9.0/work/qtwebengine-opensource-src-5.9.0/src/core/browser_context_adapter.h:52,
                 from /var/tmp/portage/dev-qt/qtwebengine-5.9.0/work/qtwebengine-opensource-src-5.9.0/src/core/browser_context_qt.cpp:42:
/usr/include/qt5/QtNetwork/qtnetwork-config.h:8:0: warning: "QT_LINKED_OPENSSL" redefined
 #define QT_LINKED_OPENSSL true
 
In file included from /usr/include/qt5/QtCore/qconfig.h:1:0,
                 from /usr/include/qt5/QtCore/qglobal.h:64,
                 from /usr/include/qt5/QtCore/QtGlobal:1,
                 from /var/tmp/portage/dev-qt/qtwebengine-5.9.0/work/qtwebengine-opensource-src-5.9.0/src/core/browser_context_qt.h:48,
                 from /var/tmp/portage/dev-qt/qtwebengine-5.9.0/work/qtwebengine-opensource-src-5.9.0/src/core/browser_context_qt.cpp:40:
/usr/include/qt5/Gentoo/gentoo-qconfig.h:9:0: note: this is the location of the previous definition
 #define QT_LINKED_OPENSSL
 
ninja: build stopped: subcommand failed.
make[3]: *** [Makefile.gn_run:515: run_ninja] Error 1
make[3]: uscita dalla directory "/var/tmp/portage/dev-qt/qtwebengine-5.9.0/work/qtwebengine-opensource-src-5.9.0/src/core"
make[2]: *** [Makefile:81: sub-gn_run-pro-make_first] Error 2
make[2]: uscita dalla directory "/var/tmp/portage/dev-qt/qtwebengine-5.9.0/work/qtwebengine-opensource-src-5.9.0/src/core"
make[1]: *** [Makefile:80: sub-core-make_first] Error 2
make[1]: uscita dalla directory "/var/tmp/portage/dev-qt/qtwebengine-5.9.0/work/qtwebengine-opensource-src-5.9.0/src"
make: *** [Makefile:48: sub-src-make_first] Error 2

Thanks
Comment 1 Arfrever Frehtes Taifersar Arahesis 2017-06-02 18:35:31 UTC
There is no error in this part of build log.
Error might be many lines earlier.
Please attach full build log.
Comment 2 Vasco Gervasi 2017-06-02 20:59:24 UTC
Created attachment 475042 [details]
build.log

I am sorry, I thought to have attached the build.log file.
Comment 3 Michael Palimaka (kensington) gentoo-dev 2017-06-03 10:04:15 UTC
/var/tmp/portage/dev-qt/qtwebengine-5.9.0/work/qtwebengine-opensource-src-5.9.0/src/core/network_delegate_qt.cpp: In function ‘QWebEngineUrlRequestInfo::ResourceType QtWebEngineCore::toQt(content::ResourceType)’:
/var/tmp/portage/dev-qt/qtwebengine-5.9.0/work/qtwebengine-opensource-src-5.9.0/src/core/network_delegate_qt.cpp:86:93: error: ‘ResourceTypeLast’ is not a member of ‘QWebEngineUrlRequestInfo’
     if (resourceType >= 0 && resourceType < content::ResourceType(QWebEngineUrlRequestInfo::ResourceTypeLast))
                                                                                             ^~~~~~~~~~~~~~~~
Comment 4 Arfrever Frehtes Taifersar Arahesis 2017-06-05 07:59:59 UTC
It is probably:
https://bugreports.qt.io/browse/QTBUG-58547

For verification, please uninstall dev-qt/qtwebengine before trying to install dev-qt/qtwebengine.
Comment 5 Vasco Gervasi 2017-06-05 20:21:01 UTC
Deleting and then emerging worked.

Thank you very much.
Comment 6 Davide Pesavento (RETIRED) gentoo-dev 2017-06-06 04:13:29 UTC
True, this is an upstream bug. We've hit this particular (or a similar) qmake shortcoming several times in the past. Unfortunately (for us) we still need to find and implement a workaround in our packages, because AIUI _everyone_ upgrading from 5.7.1 to 5.9.x will hit this failure.
Comment 7 Michael Palimaka (kensington) gentoo-dev 2017-06-11 12:47:16 UTC
There is a hack from one of the upstream bugs:

>sed -i "1s:^:LIBS+= -L$SOURCE_DIRECTORY/lib\n:" \
>    $(find . -name '*.pro') &&

I wonder if we should implement it in the eclass and "resolve" this problem once and for all for us.
Comment 8 Michael Palimaka (kensington) gentoo-dev 2017-08-27 14:53:48 UTC
I had another look at this today and it doesn't make any sense:

[1/2] CXX obj/QtWebEngineCore/network_delegate_qt.o
FAILED: obj/QtWebEngineCore/network_delegate_qt.o 
/usr/bin/x86_64-pc-linux-gnu-g++ -MMD -MF obj/QtWebEngineCore/network_delegate_qt.o.d -DCHROMIUM_VERSION=\"56.0.2924.122\" -DQT_NO_KEYWORDS -DQT_USE_QSTRINGBUILDER -DQ_FORWARD_DECLARE_OBJC_CLASS=QT_FORWARD_DECLARE_CLASS -DQTWEBENGINECORE_VERSION_STR=\"5.9.1\" -DQTWEBENGINEPROCESS_NAME=\"QtWebEngineProcess\" -DBUILDING_CHROMIUM -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_WEBCHANNEL_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_WEBENGINECOREHEADERS_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_LIBDIR_EGL=\"\" -DQT_LIBDIR_GLES2=\"\" -DV8_DEPRECATION_WARNINGS -DENABLE_PLUGINS=1 -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=1 -DUSE_X11=1 -DNO_TCMALLOC -DENABLE_WEBRTC=1 -DDISABLE_NACL -DENABLE_TASK_MANAGER=1 -DENABLE_THEMES=1 -DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD -DSAFE_BROWSING_DB_LOCAL -DCHROMIUM_BUILD -DFIELDTRIAL_TESTING_ENABLED -DTOOLKIT_QT -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DGL_GLEXT_PROTOTYPES -DUSE_GLX -DUSE_EGL -DUSING_SYSTEM_ICU=1 -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC -DSK_IGNORE_DW_GRAY_FIX -DSK_IGNORE_LINEONLY_AA_CONVEX_PATH_OPTS -DSK_SUPPORT_GPU=1 -DGOOGLE_PROTOBUF_NO_RTTI -DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -DHAVE_PTHREAD -DUSING_SYSTEM_ICU=1 -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC -DFEATURE_ENABLE_SSL -DFEATURE_ENABLE_VOICEMAIL -DEXPAT_RELATIVE_PATH -DGTEST_RELATIVE_PATH -DNO_MAIN_THREAD_WRAPPING -DNO_SOUND_SYSTEM -DWEBRTC_CHROMIUM_BUILD -DWEBRTC_POSIX -DWEBRTC_LINUX -DSSL_USE_OPENSSL -DHAVE_OPENSSL_SSL_H -DFEATURE_ENABLE_SSL -DNO_MAIN_THREAD_WRAPPING -I../../3rdparty/chromium/skia/config -I../../3rdparty/chromium/third_party/skia/include/core -I/var/tmp/portage/dev-qt/qtwebengine-5.9.1/work/qtwebengine-opensource-src-5.9.1/src/core -I/var/tmp/portage/dev-qt/qtwebengine-5.9.1/work/qtwebengine-opensource-src-5.9.1/src/core/api -I/usr/include/qt5 -I/usr/include/qt5/QtQuick -I/usr/include/qt5/QtGui -I/usr/include/qt5/QtWebChannel -I/usr/include/qt5/QtQml -I/usr/include/qt5/QtNetwork -I/usr/include/qt5/QtCore -I/var/tmp/portage/dev-qt/qtwebengine-5.9.1/work/qtwebengine-opensource-src-5.9.1/include -I/var/tmp/portage/dev-qt/qtwebengine-5.9.1/work/qtwebengine-opensource-src-5.9.1/include/QtWebEngineCore -I/var/tmp/portage/dev-qt/qtwebengine-5.9.1/work/qtwebengine-opensource-src-5.9.1/include/QtWebEngineCore/5.9.1 -I/var/tmp/portage/dev-qt/qtwebengine-5.9.1/work/qtwebengine-opensource-src-5.9.1/include/QtWebEngineCore/5.9.1/QtWebEngineCore -I/usr/include/qt5/QtQuick/5.9.1 -I/usr/include/qt5/QtQuick/5.9.1/QtQuick -I/usr/include/qt5/QtGui/5.9.1 -I/usr/include/qt5/QtGui/5.9.1/QtGui -I/usr/include/qt5/QtQml/5.9.1 -I/usr/include/qt5/QtQml/5.9.1/QtQml -I/usr/include/qt5/QtCore/5.9.1 -I/usr/include/qt5/QtCore/5.9.1/QtCore -I.moc -I/usr/include/libdrm -Igen/.moc -Igen -I../../3rdparty/chromium -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -Igen -Igen -Igen -Igen -Igen -I../../3rdparty/chromium/third_party/khronos -I../../3rdparty/chromium/gpu -Igen -Igen -Igen -Igen -Igen -Igen -Igen -Igen -Ihost/gen -Ihost/gen -I../../3rdparty/chromium/skia/config -I../../3rdparty/chromium/skia/ext -I../../3rdparty/chromium/third_party/skia/include/c -I../../3rdparty/chromium/third_party/skia/include/config -I../../3rdparty/chromium/third_party/skia/include/core -I../../3rdparty/chromium/third_party/skia/include/effects -I../../3rdparty/chromium/third_party/skia/include/images -I../../3rdparty/chromium/third_party/skia/include/lazy -I../../3rdparty/chromium/third_party/skia/include/pathops -I../../3rdparty/chromium/third_party/skia/include/pdf -I../../3rdparty/chromium/third_party/skia/include/pipe -I../../3rdparty/chromium/third_party/skia/include/ports -I../../3rdparty/chromium/third_party/skia/include/utils -I../../3rdparty/chromium/third_party/skia/include/gpu -I../../3rdparty/chromium/third_party/skia/src/gpu -I../../3rdparty/chromium/third_party/skia/src/sksl -I../../3rdparty/chromium/third_party/libwebm/source -I../../3rdparty/chromium/third_party/protobuf/src -Igen/protoc_out -I../../3rdparty/chromium/third_party/protobuf/src -I../../3rdparty/chromium/third_party/boringssl/src/include -I/usr/include/nss -I/usr/include/nspr -Igen -I../../3rdparty/chromium/third_party/ced/src -I../../3rdparty/chromium/third_party/WebKit -Igen/third_party/WebKit -I../../3rdparty/chromium/v8/include -Igen/v8/include -I../../3rdparty/chromium/third_party/webrtc_overrides -I../../3rdparty/chromium/third_party -I../../3rdparty/chromium/third_party/mesa/src/include -O2 -pipe -fno-exceptions -Wall -W -D_REENTRANT -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -funwind-tables -fPIC -pipe -pthread -m64 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wno-missing-field-initializers -Wno-unused-parameter -O2 -fno-ident -fdata-sections -ffunction-sections -g0 -fvisibility=hidden -O2 -pipe -std=gnu++11 -fno-exceptions -Wall -W -D_REENTRANT -Wno-unused-parameter -Wno-unused-variable -fno-threadsafe-statics -fvisibility-inlines-hidden -std=gnu++11 -Wno-narrowing -fno-rtti -fno-exceptions -c /var/tmp/portage/dev-qt/qtwebengine-5.9.1/work/qtwebengine-opensource-src-5.9.1/src/core/network_delegate_qt.cpp -o obj/QtWebEngineCore/network_delegate_qt.o

QWebEngineUrlRequestInfo::ResourceTypeLast is provided by qwebengineurlrequestinfo.h. In the build tree, that exists at $S/src/core/api.

Towards the beginning of the build line, we can see: -I/var/tmp/portage/dev-qt/qtwebengine-5.9.1/work/qtwebengine-opensource-src-5.9.1/src/core/api

However, the system copy at /usr/include/qt5/QtWebEngineCore/qwebengineurlrequestinfo.h is used anyway.
Comment 9 Michael Palimaka (kensington) gentoo-dev 2017-09-07 12:17:23 UTC
slyfox figured this out: qtwebengine gets poisoned header at: "qtwebengine-opensource-src-5.7.1/src/core/api/qwebengineurlrequestinterceptor.h" : #include <QtWebEngineCore/qwebengineurlrequestinfo.h>
Comment 10 Michael Palimaka (kensington) gentoo-dev 2017-09-08 15:54:07 UTC
Thanks, fixed in git.

https://gitweb.gentoo.org/proj/qt.git/commit/?id=95b94093e5a8aef05a777bbec859af86d91cd194