Ticket #23282 (closed defect: duplicate)
qt4-mac fails to build when libevent is active
| Reported by: | celil.rufat@… | Owned by: | macports-tickets@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 1.8.2 |
| Keywords: | Cc: | ryandesign@… | |
| Port: | qt4-mac |
Description
Trying to upgrade to the latest version of qt4-mac, I get the following output in debug mode:
(...)
/usr/bin/g++-4.2 -c -include .pch/debug-shared/QtWebKit -pipe -Wreturn-type -fno-strict-aliasing -fconstant-cfstrings -I/opt/local/include -O2 -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5 -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -fPIC -DQT_SHARED -DBUILDING_QT__=1 -DNDEBUG -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DBUILD_WEBKIT -DENABLE_JAVASCRIPT_DEBUGGER=1 -DENABLE_DATABASE=1 -DENABLE_EVENTSOURCE=1 -DENABLE_OFFLINE_WEB_APPLICATIONS=1 -DENABLE_DOM_STORAGE=1 -DENABLE_ICONDATABASE=1 -DENABLE_CHANNEL_MESSAGING=1 -DENABLE_ORIENTATION_EVENTS=0 -DENABLE_SQLITE=1 -DENABLE_DASHBOARD_SUPPORT=0 -DENABLE_FILTERS=0 -DENABLE_XPATH=1 -DENABLE_WCSS=0 -DENABLE_WML=0 -DENABLE_SHARED_WORKERS=1 -DENABLE_WORKERS=1 -DENABLE_XHTMLMP=0 -DENABLE_DATAGRID=1 -DENABLE_SVG=1 -DENABLE_SVG_FONTS=1 -DENABLE_SVG_FOREIGN_OBJECT=1 -DENABLE_SVG_ANIMATION=1 -DENABLE_SVG_AS_IMAGE=1 -DENABLE_SVG_USE=1 -DENABLE_RUBY=1 -DENABLE_VIDEO=1 -DENABLE_DATALIST=1 -DENABLE_NETSCAPE_PLUGIN_API=1 -DENABLE_WEB_SOCKETS=1 -DENABLE_XSLT=1 -DWTF_USE_JAVASCRIPTCORE_BINDINGS=1 -DWTF_CHANGES=1 -DBUILDING_QT__ -DBUILDING_JavaScriptCore -DBUILDING_WTF -DQT_NO_DEBUG -DQT_XMLPATTERNS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../../../mkspecs/macx-g++ -I. -I../../../../include/QtCore -I../../../../include/QtNetwork -I../../../../include/QtGui -I../../../../include/QtXmlPatterns -I../../../../include -Ibridge/qt -Ipage/qt -Iplatform/graphics/qt -Iplatform/network/qt -Iplatform/qt -I../WebKit/qt/WebCoreSupport -I. -Iaccessibility -Ibindings/js -Ibridge -Ibridge/c -Icss -Idom -Idom/default -Iediting -Ihistory -Ihtml -Ihtml/canvas -Iinspector -Iloader -Iloader/appcache -Iloader/archive -Iloader/icon -Inotifications -Ipage -Ipage/animation -Iplatform -Iplatform/animation -Iplatform/graphics -Iplatform/graphics/filters -Iplatform/graphics/transforms -Iplatform/image-decoders -Iplatform/mock -Iplatform/network -Iplatform/sql -Iplatform/text -Iplugins -Irendering -Irendering/style -Istorage -Isvg -Isvg/animation -Isvg/graphics -Isvg/graphics/filters -Iwebsockets -Iwml -Iworkers -Ixml -Igenerated -I../JavaScriptCore -I../../webkit -I../JavaScriptCore/assembler -I../JavaScriptCore/bytecode -I../JavaScriptCore/bytecompiler -I../JavaScriptCore/debugger -I../JavaScriptCore/interpreter -I../JavaScriptCore/jit -I../JavaScriptCore/parser -I../JavaScriptCore/profiler -I../JavaScriptCore/runtime -I../JavaScriptCore/wrec -I../JavaScriptCore/wtf -I../JavaScriptCore/wtf/unicode -I../JavaScriptCore/yarr -I../JavaScriptCore/API -I../JavaScriptCore/ForwardingHeaders -Igenerated -I../WebKit/qt/Api -I../../../../include/QtWebKit -I.rcc/debug-shared -I../JavaScriptCore/pcre -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_qt4-mac/work/qt-everywhere-opensource-src-4.6.0/src/3rdparty/webkit/WebKitBuild/Release/JavaScriptCore/tmp -Iplatform/mac -I../../../../include/phonon -I../../../../lib/phonon.framework/Versions/4/Headers -I.moc/release-shared -F/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_qt4-mac/work/qt-everywhere-opensource-src-4.6.0/lib -o obj/release/JSEventListener.o bindings/js/JSEventListener.cpp
bindings/js/JSEventListener.cpp: In member function 'virtual void WebCore::JSEventListener::handleEvent(WebCore::ScriptExecutionContext*, WebCore::Event*)':
bindings/js/JSEventListener.cpp:118: error: invalid use of incomplete type 'struct WebCore::Event'
dom/EventListener.h:35: error: forward declaration of 'struct WebCore::Event'
bindings/js/JSEventListener.cpp:126: error: invalid use of incomplete type 'struct WebCore::Event'
dom/EventListener.h:35: error: forward declaration of 'struct WebCore::Event'
bindings/js/JSEventListener.cpp:127: error: invalid use of incomplete type 'struct WebCore::Event'
dom/EventListener.h:35: error: forward declaration of 'struct WebCore::Event'
bindings/js/JSEventListener.cpp:131: error: invalid use of incomplete type 'struct WebCore::Event'
dom/EventListener.h:35: error: forward declaration of 'struct WebCore::Event'
bindings/js/JSEventListener.cpp: In member function 'virtual void WebCore::JSEventListener::handleEvent(WebCore::ScriptExecutionContext*, WebCore::Event*)':
bindings/js/JSEventListener.cpp:118: error: invalid use of incomplete type 'struct WebCore::Event'
dom/EventListener.h:35: error: forward declaration of 'struct WebCore::Event'
bindings/js/JSEventListener.cpp:126: error: invalid use of incomplete type 'struct WebCore::Event'
dom/EventListener.h:35: error: forward declaration of 'struct WebCore::Event'
bindings/js/JSEventListener.cpp:127: error: invalid use of incomplete type 'struct WebCore::Event'
dom/EventListener.h:35: error: forward declaration of 'struct WebCore::Event'
bindings/js/JSEventListener.cpp:131: error: invalid use of incomplete type 'struct WebCore::Event'
dom/EventListener.h:35: error: forward declaration of 'struct WebCore::Event'
make[2]: *** [obj/release/JSEventListener.o] Error 1
make[1]: *** [release-all] Error 2
make[1]: *** Waiting for unfinished jobs....
/usr/bin/g++-4.2 -c -include .pch/debug-shared/QtWebKit_debug -pipe -Wreturn-type -fno-strict-aliasing -fconstant-cfstrings -I/opt/local/include -gdwarf-2 -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5 -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -fPIC -DQT_SHARED -DBUILDING_QT__=1 -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DNDEBUG -DBUILD_WEBKIT -DENABLE_JAVASCRIPT_DEBUGGER=1 -DENABLE_DATABASE=1 -DENABLE_EVENTSOURCE=1 -DENABLE_OFFLINE_WEB_APPLICATIONS=1 -DENABLE_DOM_STORAGE=1 -DENABLE_ICONDATABASE=1 -DENABLE_CHANNEL_MESSAGING=1 -DENABLE_ORIENTATION_EVENTS=0 -DENABLE_SQLITE=1 -DENABLE_DASHBOARD_SUPPORT=0 -DENABLE_FILTERS=0 -DENABLE_XPATH=1 -DENABLE_WCSS=0 -DENABLE_WML=0 -DENABLE_SHARED_WORKERS=1 -DENABLE_WORKERS=1 -DENABLE_XHTMLMP=0 -DENABLE_DATAGRID=1 -DENABLE_SVG=1 -DENABLE_SVG_FONTS=1 -DENABLE_SVG_FOREIGN_OBJECT=1 -DENABLE_SVG_ANIMATION=1 -DENABLE_SVG_AS_IMAGE=1 -DENABLE_SVG_USE=1 -DENABLE_RUBY=1 -DENABLE_VIDEO=1 -DENABLE_DATALIST=1 -DENABLE_NETSCAPE_PLUGIN_API=1 -DENABLE_WEB_SOCKETS=1 -DENABLE_XSLT=1 -DWTF_USE_JAVASCRIPTCORE_BINDINGS=1 -DWTF_CHANGES=1 -DBUILDING_QT__ -DBUILDING_JavaScriptCore -DBUILDING_WTF -DQT_XMLPATTERNS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../../../mkspecs/macx-g++ -I. -I../../../../include/QtCore -I../../../../include/QtNetwork -I../../../../include/QtGui -I../../../../include/QtXmlPatterns -I../../../../include -Ibridge/qt -Ipage/qt -Iplatform/graphics/qt -Iplatform/network/qt -Iplatform/qt -I../WebKit/qt/WebCoreSupport -I. -Iaccessibility -Ibindings/js -Ibridge -Ibridge/c -Icss -Idom -Idom/default -Iediting -Ihistory -Ihtml -Ihtml/canvas -Iinspector -Iloader -Iloader/appcache -Iloader/archive -Iloader/icon -Inotifications -Ipage -Ipage/animation -Iplatform -Iplatform/animation -Iplatform/graphics -Iplatform/graphics/filters -Iplatform/graphics/transforms -Iplatform/image-decoders -Iplatform/mock -Iplatform/network -Iplatform/sql -Iplatform/text -Iplugins -Irendering -Irendering/style -Istorage -Isvg -Isvg/animation -Isvg/graphics -Isvg/graphics/filters -Iwebsockets -Iwml -Iworkers -Ixml -Igenerated -I../JavaScriptCore -I../../webkit -I../JavaScriptCore/assembler -I../JavaScriptCore/bytecode -I../JavaScriptCore/bytecompiler -I../JavaScriptCore/debugger -I../JavaScriptCore/interpreter -I../JavaScriptCore/jit -I../JavaScriptCore/parser -I../JavaScriptCore/profiler -I../JavaScriptCore/runtime -I../JavaScriptCore/wrec -I../JavaScriptCore/wtf -I../JavaScriptCore/wtf/unicode -I../JavaScriptCore/yarr -I../JavaScriptCore/API -I../JavaScriptCore/ForwardingHeaders -Igenerated -I../WebKit/qt/Api -I../../../../include/QtWebKit -I.rcc/debug-shared -I../JavaScriptCore/pcre -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_qt4-mac/work/qt-everywhere-opensource-src-4.6.0/src/3rdparty/webkit/WebKitBuild/Debug/JavaScriptCore/tmp -Iplatform/mac -I../../../../include/phonon -I../../../../lib/phonon.framework/Versions/4/Headers -I.moc/debug-shared -F/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_qt4-mac/work/qt-everywhere-opensource-src-4.6.0/lib -o obj/debug/JSLazyEventListener.o bindings/js/JSLazyEventListener.cpp
make[2]: *** [obj/debug/JSEventListener.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [debug-all] Error 2
make: *** [sub-webkit-make_default-ordered] Error 2
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_qt4-mac/work/qt-everywhere-opensource-src-4.6.0" && /usr/bin/make -j2 first " returned error 2
DEBUG: Backtrace: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_qt4-mac/work/qt-everywhere-opensource-src-4.6.0" && /usr/bin/make -j2 first " returned error 2
while executing
"command_exec build"
(procedure "portbuild::build_main" line 9)
invoked from within
"$procedure $targetname"
Warning: the following items did not execute (for qt4-mac): org.macports.destroot org.macports.build
DEBUG: Registry error: py26-pyobjc2 not registered as installed & active.
while executing
"registry::active $portname"
Error: Unable to upgrade port: 1
To report a bug, see <http://guide.macports.org/#project.tickets>
Change History
comment:2 in reply to: ↑ 1 Changed 3 years ago by aleksey.ovcharenko@…
Replying to celil.rufat@…:
I'm running Snow Leopard 10.6
$ uname -v Darwin Kernel Version 10.2.0: Tue Nov 3 10:37:10 PST 2009; root:xnu-1486.2.11~1/RELEASE_I386
Try 'sudo port deactivate libevent' before build. You may activate it later when installation succeed.
comment:3 Changed 3 years ago by sharky@…
- Status changed from new to closed
- Resolution set to fixed
The latests qt4-mac has been marked as conflicting with "libevent" so this issue should be fixed.
comment:4 Changed 3 years ago by macports@…
- Status changed from closed to reopened
- Resolution fixed deleted
I got this problem right now, when performing a "port upgrade outdated". I did a "port selfupdate" just before that. Deactivating libevent solved the issue.
comment:5 Changed 3 years ago by ryandesign@…
- Cc ryandesign@… added
- Summary changed from qt4-mac fails to build to qt4-mac fails to build when libevent is active
This is because the conflicts keyword deals with conflicts at activation time, for situations like when two ports install the same files (e.g. graphviz and graphviz-devel); it does not deal with conflicts at build time, such as qt4-mac's problem building when libevent is active. MacPorts base needs a new keyword to model build-time conflicts, and to reduce confusion the existing conflicts keyword might need to be renamed as well.


I'm running Snow Leopard 10.6