Opened 15 years ago

Closed 14 years ago

#20199 closed defect (fixed)

qt4-mac fails to build when conflicting ports are active

Reported by: jwhowse4 Owned by: michaelld (Michael Dickens)
Priority: Normal Milestone:
Component: ports Version: 1.7.1
Keywords: Cc: clubjuggler@…, ryandesign (Ryan Carsten Schmidt), MarcusCalhoun-Lopez (Marcus Calhoun-Lopez), boeyms@…, mail@…, thedoobs@…, mf2k (Frank Schima), jogonzales@…, bgrupe27, gentoomeo@…, couannette@…, lhunath@…, borschel@…, markus@…, launchpad@…, jp@…, sharky@…, rishi.j.sanyal@…, shawjef3@…, stephan@…, marix@…, cozimlate@…, soehn@…, root42, mail@…, ericmoret, simonis.christophe+macports@…, flavio@…, michaelld (Michael Dickens), bjoern.ricks@…, raimue (Rainer Müller)
Port: qt4-mac

Description

On an intel mac running Leopard 10.5.7, Xcode 3.1.3, and Xquartz 2.3.3.2, a qt4-mac upgrade to version 4.5.2 fails with the following error. Note that I have also tried deactivating the previous version (4.5.1) of qt4-mac and installing the new version, but this fails with the same error. Any ideas?

/usr/bin/g++-4.0 -c -include .pch/debug-shared/QtWebKit_debug -O2 -Xarch_i386 -mmacosx-version-min=10.4 -fconstant-cfstrings -Wreturn-type -fno-strict-aliasing -I/opt/macports/include -gdwarf-2 -fvisibility=hidden -fvisibility-inlines-hidden -arch i386 -fPIC -DQT_SHARED -DBUILDING_QT__=1 -DUSE_SYSTEM_MALLOC -DNDEBUG -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DBUILD_WEBKIT -DENABLE_OFFLINE_WEB_APPLICATIONS=1 -DENABLE_DOM_STORAGE=1 -DENABLE_ICONDATABASE=1 -DENABLE_DATABASE=1 -DENABLE_DASHBOARD_SUPPORT=0 -DENABLE_XPATH=1 -DENABLE_WML=0 -DENABLE_SVG=1 -DENABLE_SVG_FONTS=1 -DENABLE_SVG_FILTERS=1 -DENABLE_SVG_FOREIGN_OBJECT=1 -DENABLE_SVG_ANIMATION=1 -DENABLE_SVG_AS_IMAGE=1 -DENABLE_SVG_USE=1 -DENABLE_VIDEO=1 -DENABLE_NETSCAPE_PLUGIN_API=1 -DWTF_USE_JAVASCRIPTCORE_BINDINGS=1 -DWTF_CHANGES=1 -DBUILDING_QT__ -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 -Istorage -I../WebKit/qt/Api -I../../../../include/QtWebKit -I.rcc/debug-shared -I. -I../JavaScriptCore -I../JavaScriptCore/ForwardingHeaders -I../JavaScriptCore/interpreter -I../JavaScriptCore/bytecode -I../JavaScriptCore/debugger -I../JavaScriptCore/parser -I../JavaScriptCore/runtime -I/opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_aqua_qt4-mac/work/qt-mac-opensource-src-4.5.2/src/3rdparty/webkit/WebCore/../JavaScriptCore/bindings -I../JavaScriptCore/wrec -I../JavaScriptCore/jit -I../JavaScriptCore/wtf -Itmp -I../JavaScriptCore -I../JavaScriptCore/parser -I../JavaScriptCore/bytecompiler -I../JavaScriptCore/debugger -I../JavaScriptCore/runtime -I../JavaScriptCore/wtf -I../JavaScriptCore/wtf/unicode -I../JavaScriptCore/interpreter -I../JavaScriptCore/jit -I../JavaScriptCore/profiler -I../JavaScriptCore/wrec -I../JavaScriptCore/API -I../../webkit -I../JavaScriptCore/ForwardingHeaders -I../JavaScriptCore/bytecode -I../JavaScriptCore/assembler -I../JavaScriptCore/pcre -I/opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_aqua_qt4-mac/work/qt-mac-opensource-src-4.5.2/src/3rdparty/webkit/WebKitBuild/Debug/JavaScriptCore/tmp -Iplatform/qt -Iplatform/network/qt -Iplatform/graphics/filters -Iplatform/graphics/transforms -Iplatform/graphics/qt -Isvg/graphics/qt -Iloader -Ipage/qt -I../WebKit/qt/WebCoreSupport -I../WebKit/qt/Api -Ibridge/qt -I. -IForwardingHeaders -I../../webkit -Iplatform -Iplatform/animation -Iplatform/network -Iplatform/graphics -Isvg/animation -Isvg/graphics -Isvg/graphics/filters -Iplatform/sql -Iplatform/text -Iloader -Iloader/appcache -Iloader/archive -Iloader/icon -Icss -Idom -Ipage -Ipage/animation -Ibridge -Iediting -Irendering -Irendering/style -Ihistory -Iinspector -Ixml -Ihtml -Iwml -Ibindings/js -Isvg -Iplatform/image-decoders -Iplugins -Ibridge -Ibridge/c -Ibridge/qt -Igenerated -Iplatform/mac -I../../../../include/phonon -I../../../../lib/phonon.framework/Versions/4/Headers -I.moc/debug-shared -F/opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_aqua_qt4-mac/work/qt-mac-opensource-src-4.5.2/lib -o .obj/debug-shared/JSHTMLOptionsCollectionCustom.o bindings/js/JSHTMLOptionsCollectionCustom.cpp
html/HTMLSelectElement.h:168: error: 'DOMTimeStamp' does not name a type
make[2]: *** [.obj/debug-shared/JSHTMLOptionsCollectionCustom.o] Error 1
make[1]: *** [debug-all] Error 2
make: *** [sub-webkit-make_default-ordered] Error 2

Attachments (1)

qt4-mac_debug_Jun7_10.txt.zip (125.5 KB) - added by payam.minoofar@… 14 years ago.

Download all attachments as: .zip

Change History (90)

comment:1 Changed 15 years ago by mf2k (Frank Schima)

Cc: clubjuggler@… added
Owner: changed from macports-tickets@… to erickt@…
Port: qt4-mac added

comment:2 Changed 15 years ago by mf2k (Frank Schima)

I also cannot upgrade with the same setup, but I see the following error:

--->  Building qt4-mac
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_aqua_qt4-mac/work/qt-mac-opensource-src-4.5.2" && make first " returned error 2
Command output: /usr/bin/g++-4.0 -c -include .pch/debug-shared/QtWebKit_debug -O2 -Xarch_i386 -mmacosx-version-min=10.4 -fconstant-cfstrings -Wreturn-type -fno-strict-aliasing -I/opt/local/include -gdwarf-2 -fvisibility=hidden -fvisibility-inlines-hidden -arch i386 -fPIC -DQT_SHARED -DBUILDING_QT__=1 -DUSE_SYSTEM_MALLOC -DNDEBUG -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DBUILD_WEBKIT -DENABLE_OFFLINE_WEB_APPLICATIONS=1 -DENABLE_DOM_STORAGE=1 -DENABLE_ICONDATABASE=1 -DENABLE_DATABASE=1 -DENABLE_DASHBOARD_SUPPORT=0 -DENABLE_XPATH=1 -DENABLE_WML=0 -DENABLE_SVG=1 -DENABLE_SVG_FONTS=1 -DENABLE_SVG_FILTERS=1 -DENABLE_SVG_FOREIGN_OBJECT=1 -DENABLE_SVG_ANIMATION=1 -DENABLE_SVG_AS_IMAGE=1 -DENABLE_SVG_USE=1 -DENABLE_VIDEO=1 -DENABLE_NETSCAPE_PLUGIN_API=1 -DWTF_USE_JAVASCRIPTCORE_BINDINGS=1 -DWTF_CHANGES=1 -DBUILDING_QT__ -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 -Istorage -I../WebKit/qt/Api -I../../../../include/QtWebKit -I.rcc/debug-shared -I. -I../JavaScriptCore -I../JavaScriptCore/ForwardingHeaders -I../JavaScriptCore/interpreter -I../JavaScriptCore/bytecode -I../JavaScriptCore/debugger -I../JavaScriptCore/parser -I../JavaScriptCore/runtime -I/opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_aqua_qt4-mac/work/qt-mac-opensource-src-4.5.2/src/3rdparty/webkit/WebCore/../JavaScriptCore/bindings -I../JavaScriptCore/wrec -I../JavaScriptCore/jit -I../JavaScriptCore/wtf -Itmp -I../JavaScriptCore -I../JavaScriptCore/parser -I../JavaScriptCore/bytecompiler -I../JavaScriptCore/debugger -I../JavaScriptCore/runtime -I../JavaScriptCore/wtf -I../JavaScriptCore/wtf/unicode -I../JavaScriptCore/interpreter -I../JavaScriptCore/jit -I../JavaScriptCore/profiler -I../JavaScriptCore/wrec -I../JavaScriptCore/API -I../../webkit -I../JavaScriptCore/ForwardingHeaders -I../JavaScriptCore/bytecode -I../JavaScriptCore/assembler -I../JavaScriptCore/pcre -I/opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_aqua_qt4-mac/work/qt-mac-opensource-src-4.5.2/src/3rdparty/webkit/WebKitBuild/Debug/JavaScriptCore/tmp -Iplatform/qt -Iplatform/network/qt -Iplatform/graphics/filters -Iplatform/graphics/transforms -Iplatform/graphics/qt -Isvg/graphics/qt -Iloader -Ipage/qt -I../WebKit/qt/WebCoreSupport -I../WebKit/qt/Api -Ibridge/qt -I. -IForwardingHeaders -I../../webkit -Iplatform -Iplatform/animation -Iplatform/network -Iplatform/graphics -Isvg/animation -Isvg/graphics -Isvg/graphics/filters -Iplatform/sql -Iplatform/text -Iloader -Iloader/appcache -Iloader/archive -Iloader/icon -Icss -Idom -Ipage -Ipage/animation -Ibridge -Iediting -Irendering -Irendering/style -Ihistory -Iinspector -Ixml -Ihtml -Iwml -Ibindings/js -Isvg -Iplatform/image-decoders -Iplugins -Ibridge -Ibridge/c -Ibridge/qt -Igenerated -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_svn.macports.org_trunk_dports_aqua_qt4-mac/work/qt-mac-opensource-src-4.5.2/lib -o .obj/debug-shared/ProfileGenerator.o ../JavaScriptCore/profiler/ProfileGenerator.cpp
/usr/bin/g++-4.0 -c -include .pch/debug-shared/QtWebKit_debug -O2 -Xarch_i386 -mmacosx-version-min=10.4 -fconstant-cfstrings -Wreturn-type -fno-strict-aliasing -I/opt/local/include -gdwarf-2 -fvisibility=hidden -fvisibility-inlines-hidden -arch i386 -fPIC -DQT_SHARED -DBUILDING_QT__=1 -DUSE_SYSTEM_MALLOC -DNDEBUG -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DBUILD_WEBKIT -DENABLE_OFFLINE_WEB_APPLICATIONS=1 -DENABLE_DOM_STORAGE=1 -DENABLE_ICONDATABASE=1 -DENABLE_DATABASE=1 -DENABLE_DASHBOARD_SUPPORT=0 -DENABLE_XPATH=1 -DENABLE_WML=0 -DENABLE_SVG=1 -DENABLE_SVG_FONTS=1 -DENABLE_SVG_FILTERS=1 -DENABLE_SVG_FOREIGN_OBJECT=1 -DENABLE_SVG_ANIMATION=1 -DENABLE_SVG_AS_IMAGE=1 -DENABLE_SVG_USE=1 -DENABLE_VIDEO=1 -DENABLE_NETSCAPE_PLUGIN_API=1 -DWTF_USE_JAVASCRIPTCORE_BINDINGS=1 -DWTF_CHANGES=1 -DBUILDING_QT__ -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 -Istorage -I../WebKit/qt/Api -I../../../../include/QtWebKit -I.rcc/debug-shared -I. -I../JavaScriptCore -I../JavaScriptCore/ForwardingHeaders -I../JavaScriptCore/interpreter -I../JavaScriptCore/bytecode -I../JavaScriptCore/debugger -I../JavaScriptCore/parser -I../JavaScriptCore/runtime -I/opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_aqua_qt4-mac/work/qt-mac-opensource-src-4.5.2/src/3rdparty/webkit/WebCore/../JavaScriptCore/bindings -I../JavaScriptCore/wrec -I../JavaScriptCore/jit -I../JavaScriptCore/wtf -Itmp -I../JavaScriptCore -I../JavaScriptCore/parser -I../JavaScriptCore/bytecompiler -I../JavaScriptCore/debugger -I../JavaScriptCore/runtime -I../JavaScriptCore/wtf -I../JavaScriptCore/wtf/unicode -I../JavaScriptCore/interpreter -I../JavaScriptCore/jit -I../JavaScriptCore/profiler -I../JavaScriptCore/wrec -I../JavaScriptCore/API -I../../webkit -I../JavaScriptCore/ForwardingHeaders -I../JavaScriptCore/bytecode -I../JavaScriptCore/assembler -I../JavaScriptCore/pcre -I/opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_aqua_qt4-mac/work/qt-mac-opensource-src-4.5.2/src/3rdparty/webkit/WebKitBuild/Debug/JavaScriptCore/tmp -Iplatform/qt -Iplatform/network/qt -Iplatform/graphics/filters -Iplatform/graphics/transforms -Iplatform/graphics/qt -Isvg/graphics/qt -Iloader -Ipage/qt -I../WebKit/qt/WebCoreSupport -I../WebKit/qt/Api -Ibridge/qt -I. -IForwardingHeaders -I../../webkit -Iplatform -Iplatform/animation -Iplatform/network -Iplatform/graphics -Isvg/animation -Isvg/graphics -Isvg/graphics/filters -Iplatform/sql -Iplatform/text -Iloader -Iloader/appcache -Iloader/archive -Iloader/icon -Icss -Idom -Ipage -Ipage/animation -Ibridge -Iediting -Irendering -Irendering/style -Ihistory -Iinspector -Ixml -Ihtml -Iwml -Ibindings/js -Isvg -Iplatform/image-decoders -Iplugins -Ibridge -Ibridge/c -Ibridge/qt -Igenerated -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_svn.macports.org_trunk_dports_aqua_qt4-mac/work/qt-mac-opensource-src-4.5.2/lib -o .obj/debug-shared/ProfileNode.o ../JavaScriptCore/profiler/ProfileNode.cpp
/usr/bin/g++-4.0 -c -include .pch/debug-shared/QtWebKit_debug -O2 -Xarch_i386 -mmacosx-version-min=10.4 -fconstant-cfstrings -Wreturn-type -fno-strict-aliasing -I/opt/local/include -gdwarf-2 -fvisibility=hidden -fvisibility-inlines-hidden -arch i386 -fPIC -DQT_SHARED -DBUILDING_QT__=1 -DUSE_SYSTEM_MALLOC -DNDEBUG -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DBUILD_WEBKIT -DENABLE_OFFLINE_WEB_APPLICATIONS=1 -DENABLE_DOM_STORAGE=1 -DENABLE_ICONDATABASE=1 -DENABLE_DATABASE=1 -DENABLE_DASHBOARD_SUPPORT=0 -DENABLE_XPATH=1 -DENABLE_WML=0 -DENABLE_SVG=1 -DENABLE_SVG_FONTS=1 -DENABLE_SVG_FILTERS=1 -DENABLE_SVG_FOREIGN_OBJECT=1 -DENABLE_SVG_ANIMATION=1 -DENABLE_SVG_AS_IMAGE=1 -DENABLE_SVG_USE=1 -DENABLE_VIDEO=1 -DENABLE_NETSCAPE_PLUGIN_API=1 -DWTF_USE_JAVASCRIPTCORE_BINDINGS=1 -DWTF_CHANGES=1 -DBUILDING_QT__ -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 -Istorage -I../WebKit/qt/Api -I../../../../include/QtWebKit -I.rcc/debug-shared -I. -I../JavaScriptCore -I../JavaScriptCore/ForwardingHeaders -I../JavaScriptCore/interpreter -I../JavaScriptCore/bytecode -I../JavaScriptCore/debugger -I../JavaScriptCore/parser -I../JavaScriptCore/runtime -I/opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_aqua_qt4-mac/work/qt-mac-opensource-src-4.5.2/src/3rdparty/webkit/WebCore/../JavaScriptCore/bindings -I../JavaScriptCore/wrec -I../JavaScriptCore/jit -I../JavaScriptCore/wtf -Itmp -I../JavaScriptCore -I../JavaScriptCore/parser -I../JavaScriptCore/bytecompiler -I../JavaScriptCore/debugger -I../JavaScriptCore/runtime -I../JavaScriptCore/wtf -I../JavaScriptCore/wtf/unicode -I../JavaScriptCore/interpreter -I../JavaScriptCore/jit -I../JavaScriptCore/profiler -I../JavaScriptCore/wrec -I../JavaScriptCore/API -I../../webkit -I../JavaScriptCore/ForwardingHeaders -I../JavaScriptCore/bytecode -I../JavaScriptCore/assembler -I../JavaScriptCore/pcre -I/opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_aqua_qt4-mac/work/qt-mac-opensource-src-4.5.2/src/3rdparty/webkit/WebKitBuild/Debug/JavaScriptCore/tmp -Iplatform/qt -Iplatform/network/qt -Iplatform/graphics/filters -Iplatform/graphics/transforms -Iplatform/graphics/qt -Isvg/graphics/qt -Iloader -Ipage/qt -I../WebKit/qt/WebCoreSupport -I../WebKit/qt/Api -Ibridge/qt -I. -IForwardingHeaders -I../../webkit -Iplatform -Iplatform/animation -Iplatform/network -Iplatform/graphics -Isvg/animation -Isvg/graphics -Isvg/graphics/filters -Iplatform/sql -Iplatform/text -Iloader -Iloader/appcache -Iloader/archive -Iloader/icon -Icss -Idom -Ipage -Ipage/animation -Ibridge -Iediting -Irendering -Irendering/style -Ihistory -Iinspector -Ixml -Ihtml -Iwml -Ibindings/js -Isvg -Iplatform/image-decoders -Iplugins -Ibridge -Ibridge/c -Ibridge/qt -Igenerated -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_svn.macports.org_trunk_dports_aqua_qt4-mac/work/qt-mac-opensource-src-4.5.2/lib -o .obj/debug-shared/Profiler.o ../JavaScriptCore/profiler/Profiler.cpp
/usr/bin/g++-4.0 -c -include .pch/debug-shared/QtWebKit_debug -O2 -Xarch_i386 -mmacosx-version-min=10.4 -fconstant-cfstrings -Wreturn-type -fno-strict-aliasing -I/opt/local/include -gdwarf-2 -fvisibility=hidden -fvisibility-inlines-hidden -arch i386 -fPIC -DQT_SHARED -DBUILDING_QT__=1 -DUSE_SYSTEM_MALLOC -DNDEBUG -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DBUILD_WEBKIT -DENABLE_OFFLINE_WEB_APPLICATIONS=1 -DENABLE_DOM_STORAGE=1 -DENABLE_ICONDATABASE=1 -DENABLE_DATABASE=1 -DENABLE_DASHBOARD_SUPPORT=0 -DENABLE_XPATH=1 -DENABLE_WML=0 -DENABLE_SVG=1 -DENABLE_SVG_FONTS=1 -DENABLE_SVG_FILTERS=1 -DENABLE_SVG_FOREIGN_OBJECT=1 -DENABLE_SVG_ANIMATION=1 -DENABLE_SVG_AS_IMAGE=1 -DENABLE_SVG_USE=1 -DENABLE_VIDEO=1 -DENABLE_NETSCAPE_PLUGIN_API=1 -DWTF_USE_JAVASCRIPTCORE_BINDINGS=1 -DWTF_CHANGES=1 -DBUILDING_QT__ -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 -Istorage -I../WebKit/qt/Api -I../../../../include/QtWebKit -I.rcc/debug-shared -I. -I../JavaScriptCore -I../JavaScriptCore/ForwardingHeaders -I../JavaScriptCore/interpreter -I../JavaScriptCore/bytecode -I../JavaScriptCore/debugger -I../JavaScriptCore/parser -I../JavaScriptCore/runtime -I/opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_aqua_qt4-mac/work/qt-mac-opensource-src-4.5.2/src/3rdparty/webkit/WebCore/../JavaScriptCore/bindings -I../JavaScriptCore/wrec -I../JavaScriptCore/jit -I../JavaScriptCore/wtf -Itmp -I../JavaScriptCore -I../JavaScriptCore/parser -I../JavaScriptCore/bytecompiler -I../JavaScriptCore/debugger -I../JavaScriptCore/runtime -I../JavaScriptCore/wtf -I../JavaScriptCore/wtf/unicode -I../JavaScriptCore/interpreter -I../JavaScriptCore/jit -I../JavaScriptCore/profiler -I../JavaScriptCore/wrec -I../JavaScriptCore/API -I../../webkit -I../JavaScriptCore/ForwardingHeaders -I../JavaScriptCore/bytecode -I../JavaScriptCore/assembler -I../JavaScriptCore/pcre -I/opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_aqua_qt4-mac/work/qt-mac-opensource-src-4.5.2/src/3rdparty/webkit/WebKitBuild/Debug/JavaScriptCore/tmp -Iplatform/qt -Iplatform/network/qt -Iplatform/graphics/filters -Iplatform/graphics/transforms -Iplatform/graphics/qt -Isvg/graphics/qt -Iloader -Ipage/qt -I../WebKit/qt/WebCoreSupport -I../WebKit/qt/Api -Ibridge/qt -I. -IForwardingHeaders -I../../webkit -Iplatform -Iplatform/animation -Iplatform/network -Iplatform/graphics -Isvg/animation -Isvg/graphics -Isvg/graphics/filters -Iplatform/sql -Iplatform/text -Iloader -Iloader/appcache -Iloader/archive -Iloader/icon -Icss -Idom -Ipage -Ipage/animation -Ibridge -Iediting -Irendering -Irendering/style -Ihistory -Iinspector -Ixml -Ihtml -Iwml -Ibindings/js -Isvg -Iplatform/image-decoders -Iplugins -Ibridge -Ibridge/c -Ibridge/qt -Igenerated -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_svn.macports.org_trunk_dports_aqua_qt4-mac/work/qt-mac-opensource-src-4.5.2/lib -o .obj/debug-shared/TreeProfile.o ../JavaScriptCore/profiler/TreeProfile.cpp
/usr/bin/g++-4.0 -c -include .pch/debug-shared/QtWebKit_debug -O2 -Xarch_i386 -mmacosx-version-min=10.4 -fconstant-cfstrings -Wreturn-type -fno-strict-aliasing -I/opt/local/include -gdwarf-2 -fvisibility=hidden -fvisibility-inlines-hidden -arch i386 -fPIC -DQT_SHARED -DBUILDING_QT__=1 -DUSE_SYSTEM_MALLOC -DNDEBUG -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DBUILD_WEBKIT -DENABLE_OFFLINE_WEB_APPLICATIONS=1 -DENABLE_DOM_STORAGE=1 -DENABLE_ICONDATABASE=1 -DENABLE_DATABASE=1 -DENABLE_DASHBOARD_SUPPORT=0 -DENABLE_XPATH=1 -DENABLE_WML=0 -DENABLE_SVG=1 -DENABLE_SVG_FONTS=1 -DENABLE_SVG_FILTERS=1 -DENABLE_SVG_FOREIGN_OBJECT=1 -DENABLE_SVG_ANIMATION=1 -DENABLE_SVG_AS_IMAGE=1 -DENABLE_SVG_USE=1 -DENABLE_VIDEO=1 -DENABLE_NETSCAPE_PLUGIN_API=1 -DWTF_USE_JAVASCRIPTCORE_BINDINGS=1 -DWTF_CHANGES=1 -DBUILDING_QT__ -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 -Istorage -I../WebKit/qt/Api -I../../../../include/QtWebKit -I.rcc/debug-shared -I. -I../JavaScriptCore -I../JavaScriptCore/ForwardingHeaders -I../JavaScriptCore/interpreter -I../JavaScriptCore/bytecode -I../JavaScriptCore/debugger -I../JavaScriptCore/parser -I../JavaScriptCore/runtime -I/opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_aqua_qt4-mac/work/qt-mac-opensource-src-4.5.2/src/3rdparty/webkit/WebCore/../JavaScriptCore/bindings -I../JavaScriptCore/wrec -I../JavaScriptCore/jit -I../JavaScriptCore/wtf -Itmp -I../JavaScriptCore -I../JavaScriptCore/parser -I../JavaScriptCore/bytecompiler -I../JavaScriptCore/debugger -I../JavaScriptCore/runtime -I../JavaScriptCore/wtf -I../JavaScriptCore/wtf/unicode -I../JavaScriptCore/interpreter -I../JavaScriptCore/jit -I../JavaScriptCore/profiler -I../JavaScriptCore/wrec -I../JavaScriptCore/API -I../../webkit -I../JavaScriptCore/ForwardingHeaders -I../JavaScriptCore/bytecode -I../JavaScriptCore/assembler -I../JavaScriptCore/pcre -I/opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_aqua_qt4-mac/work/qt-mac-opensource-src-4.5.2/src/3rdparty/webkit/WebKitBuild/Debug/JavaScriptCore/tmp -Iplatform/qt -Iplatform/network/qt -Iplatform/graphics/filters -Iplatform/graphics/transforms -Iplatform/graphics/qt -Isvg/graphics/qt -Iloader -Ipage/qt -I../WebKit/qt/WebCoreSupport -I../WebKit/qt/Api -Ibridge/qt -I. -IForwardingHeaders -I../../webkit -Iplatform -Iplatform/animation -Iplatform/network -Iplatform/graphics -Isvg/animation -Isvg/graphics -Isvg/graphics/filters -Iplatform/sql -Iplatform/text -Iloader -Iloader/appcache -Iloader/archive -Iloader/icon -Icss -Idom -Ipage -Ipage/animation -Ibridge -Iediting -Irendering -Irendering/style -Ihistory -Iinspector -Ixml -Ihtml -Iwml -Ibindings/js -Isvg -Iplatform/image-decoders -Iplugins -Ibridge -Ibridge/c -Ibridge/qt -Igenerated -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_svn.macports.org_trunk_dports_aqua_qt4-mac/work/qt-mac-opensource-src-4.5.2/lib -o .obj/debug-shared/FastMalloc.o ../JavaScriptCore/wtf/FastMalloc.cpp
/usr/bin/g++-4.0 -c -include .pch/debug-shared/QtWebKit_debug -O2 -Xarch_i386 -mmacosx-version-min=10.4 -fconstant-cfstrings -Wreturn-type -fno-strict-aliasing -I/opt/local/include -gdwarf-2 -fvisibility=hidden -fvisibility-inlines-hidden -arch i386 -fPIC -DQT_SHARED -DBUILDING_QT__=1 -DUSE_SYSTEM_MALLOC -DNDEBUG -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DBUILD_WEBKIT -DENABLE_OFFLINE_WEB_APPLICATIONS=1 -DENABLE_DOM_STORAGE=1 -DENABLE_ICONDATABASE=1 -DENABLE_DATABASE=1 -DENABLE_DASHBOARD_SUPPORT=0 -DENABLE_XPATH=1 -DENABLE_WML=0 -DENABLE_SVG=1 -DENABLE_SVG_FONTS=1 -DENABLE_SVG_FILTERS=1 -DENABLE_SVG_FOREIGN_OBJECT=1 -DENABLE_SVG_ANIMATION=1 -DENABLE_SVG_AS_IMAGE=1 -DENABLE_SVG_USE=1 -DENABLE_VIDEO=1 -DENABLE_NETSCAPE_PLUGIN_API=1 -DWTF_USE_JAVASCRIPTCORE_BINDINGS=1 -DWTF_CHANGES=1 -DBUILDING_QT__ -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 -Istorage -I../WebKit/qt/Api -I../../../../include/QtWebKit -I.rcc/debug-shared -I. -I../JavaScriptCore -I../JavaScriptCore/ForwardingHeaders -I../JavaScriptCore/interpreter -I../JavaScriptCore/bytecode -I../JavaScriptCore/debugger -I../JavaScriptCore/parser -I../JavaScriptCore/runtime -I/opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_aqua_qt4-mac/work/qt-mac-opensource-src-4.5.2/src/3rdparty/webkit/WebCore/../JavaScriptCore/bindings -I../JavaScriptCore/wrec -I../JavaScriptCore/jit -I../JavaScriptCore/wtf -Itmp -I../JavaScriptCore -I../JavaScriptCore/parser -I../JavaScriptCore/bytecompiler -I../JavaScriptCore/debugger -I../JavaScriptCore/runtime -I../JavaScriptCore/wtf -I../JavaScriptCore/wtf/unicode -I../JavaScriptCore/interpreter -I../JavaScriptCore/jit -I../JavaScriptCore/profiler -I../JavaScriptCore/wrec -I../JavaScriptCore/API -I../../webkit -I../JavaScriptCore/ForwardingHeaders -I../JavaScriptCore/bytecode -I../JavaScriptCore/assembler -I../JavaScriptCore/pcre -I/opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_aqua_qt4-mac/work/qt-mac-opensource-src-4.5.2/src/3rdparty/webkit/WebKitBuild/Debug/JavaScriptCore/tmp -Iplatform/qt -Iplatform/network/qt -Iplatform/graphics/filters -Iplatform/graphics/transforms -Iplatform/graphics/qt -Isvg/graphics/qt -Iloader -Ipage/qt -I../WebKit/qt/WebCoreSupport -I../WebKit/qt/Api -Ibridge/qt -I. -IForwardingHeaders -I../../webkit -Iplatform -Iplatform/animation -Iplatform/network -Iplatform/graphics -Isvg/animation -Isvg/graphics -Isvg/graphics/filters -Iplatform/sql -Iplatform/text -Iloader -Iloader/appcache -Iloader/archive -Iloader/icon -Icss -Idom -Ipage -Ipage/animation -Ibridge -Iediting -Irendering -Irendering/style -Ihistory -Iinspector -Ixml -Ihtml -Iwml -Ibindings/js -Isvg -Iplatform/image-decoders -Iplugins -Ibridge -Ibridge/c -Ibridge/qt -Igenerated -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_svn.macports.org_trunk_dports_aqua_qt4-mac/work/qt-mac-opensource-src-4.5.2/lib -o .obj/debug-shared/Threading.o ../JavaScriptCore/wtf/Threading.cpp
/usr/bin/g++-4.0 -c -include .pch/debug-shared/QtWebKit_debug -O2 -Xarch_i386 -mmacosx-version-min=10.4 -fconstant-cfstrings -Wreturn-type -fno-strict-aliasing -I/opt/local/include -gdwarf-2 -fvisibility=hidden -fvisibility-inlines-hidden -arch i386 -fPIC -DQT_SHARED -DBUILDING_QT__=1 -DUSE_SYSTEM_MALLOC -DNDEBUG -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DBUILD_WEBKIT -DENABLE_OFFLINE_WEB_APPLICATIONS=1 -DENABLE_DOM_STORAGE=1 -DENABLE_ICONDATABASE=1 -DENABLE_DATABASE=1 -DENABLE_DASHBOARD_SUPPORT=0 -DENABLE_XPATH=1 -DENABLE_WML=0 -DENABLE_SVG=1 -DENABLE_SVG_FONTS=1 -DENABLE_SVG_FILTERS=1 -DENABLE_SVG_FOREIGN_OBJECT=1 -DENABLE_SVG_ANIMATION=1 -DENABLE_SVG_AS_IMAGE=1 -DENABLE_SVG_USE=1 -DENABLE_VIDEO=1 -DENABLE_NETSCAPE_PLUGIN_API=1 -DWTF_USE_JAVASCRIPTCORE_BINDINGS=1 -DWTF_CHANGES=1 -DBUILDING_QT__ -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 -Istorage -I../WebKit/qt/Api -I../../../../include/QtWebKit -I.rcc/debug-shared -I. -I../JavaScriptCore -I../JavaScriptCore/ForwardingHeaders -I../JavaScriptCore/interpreter -I../JavaScriptCore/bytecode -I../JavaScriptCore/debugger -I../JavaScriptCore/parser -I../JavaScriptCore/runtime -I/opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_aqua_qt4-mac/work/qt-mac-opensource-src-4.5.2/src/3rdparty/webkit/WebCore/../JavaScriptCore/bindings -I../JavaScriptCore/wrec -I../JavaScriptCore/jit -I../JavaScriptCore/wtf -Itmp -I../JavaScriptCore -I../JavaScriptCore/parser -I../JavaScriptCore/bytecompiler -I../JavaScriptCore/debugger -I../JavaScriptCore/runtime -I../JavaScriptCore/wtf -I../JavaScriptCore/wtf/unicode -I../JavaScriptCore/interpreter -I../JavaScriptCore/jit -I../JavaScriptCore/profiler -I../JavaScriptCore/wrec -I../JavaScriptCore/API -I../../webkit -I../JavaScriptCore/ForwardingHeaders -I../JavaScriptCore/bytecode -I../JavaScriptCore/assembler -I../JavaScriptCore/pcre -I/opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_aqua_qt4-mac/work/qt-mac-opensource-src-4.5.2/src/3rdparty/webkit/WebKitBuild/Debug/JavaScriptCore/tmp -Iplatform/qt -Iplatform/network/qt -Iplatform/graphics/filters -Iplatform/graphics/transforms -Iplatform/graphics/qt -Isvg/graphics/qt -Iloader -Ipage/qt -I../WebKit/qt/WebCoreSupport -I../WebKit/qt/Api -Ibridge/qt -I. -IForwardingHeaders -I../../webkit -Iplatform -Iplatform/animation -Iplatform/network -Iplatform/graphics -Isvg/animation -Isvg/graphics -Isvg/graphics/filters -Iplatform/sql -Iplatform/text -Iloader -Iloader/appcache -Iloader/archive -Iloader/icon -Icss -Idom -Ipage -Ipage/animation -Ibridge -Iediting -Irendering -Irendering/style -Ihistory -Iinspector -Ixml -Ihtml -Iwml -Ibindings/js -Isvg -Iplatform/image-decoders -Iplugins -Ibridge -Ibridge/c -Ibridge/qt -Igenerated -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_svn.macports.org_trunk_dports_aqua_qt4-mac/work/qt-mac-opensource-src-4.5.2/lib -o .obj/debug-shared/ThreadingQt.o ../JavaScriptCore/wtf/ThreadingQt.cpp
/opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_aqua_qt4-mac/work/qt-mac-opensource-src-4.5.2/bin/moc -DQT_SHARED -DBUILDING_QT__=1 -DUSE_SYSTEM_MALLOC -DNDEBUG -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DBUILD_WEBKIT -DENABLE_OFFLINE_WEB_APPLICATIONS=1 -DENABLE_DOM_STORAGE=1 -DENABLE_ICONDATABASE=1 -DENABLE_DATABASE=1 -DENABLE_DASHBOARD_SUPPORT=0 -DENABLE_XPATH=1 -DENABLE_WML=0 -DENABLE_SVG=1 -DENABLE_SVG_FONTS=1 -DENABLE_SVG_FILTERS=1 -DENABLE_SVG_FOREIGN_OBJECT=1 -DENABLE_SVG_ANIMATION=1 -DENABLE_SVG_AS_IMAGE=1 -DENABLE_SVG_USE=1 -DENABLE_VIDEO=1 -DENABLE_NETSCAPE_PLUGIN_API=1 -DWTF_USE_JAVASCRIPTCORE_BINDINGS=1 -DWTF_CHANGES=1 -DBUILDING_QT__ -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 -Istorage -I../WebKit/qt/Api -I../../../../include/QtWebKit -I.rcc/debug-shared -I. -I../JavaScriptCore -I../JavaScriptCore/ForwardingHeaders -I../JavaScriptCore/interpreter -I../JavaScriptCore/bytecode -I../JavaScriptCore/debugger -I../JavaScriptCore/parser -I../JavaScriptCore/runtime -I/opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_aqua_qt4-mac/work/qt-mac-opensource-src-4.5.2/src/3rdparty/webkit/WebCore/../JavaScriptCore/bindings -I../JavaScriptCore/wrec -I../JavaScriptCore/jit -I../JavaScriptCore/wtf -Itmp -I../JavaScriptCore -I../JavaScriptCore/parser -I../JavaScriptCore/bytecompiler -I../JavaScriptCore/debugger -I../JavaScriptCore/runtime -I../JavaScriptCore/wtf -I../JavaScriptCore/wtf/unicode -I../JavaScriptCore/interpreter -I../JavaScriptCore/jit -I../JavaScriptCore/profiler -I../JavaScriptCore/wrec -I../JavaScriptCore/API -I../../webkit -I../JavaScriptCore/ForwardingHeaders -I../JavaScriptCore/bytecode -I../JavaScriptCore/assembler -I../JavaScriptCore/pcre -I/opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_aqua_qt4-mac/work/qt-mac-opensource-src-4.5.2/src/3rdparty/webkit/WebKitBuild/Debug/JavaScriptCore/tmp -Iplatform/qt -Iplatform/network/qt -Iplatform/graphics/filters -Iplatform/graphics/transforms -Iplatform/graphics/qt -Isvg/graphics/qt -Iloader -Ipage/qt -I../WebKit/qt/WebCoreSupport -I../WebKit/qt/Api -Ibridge/qt -I. -IForwardingHeaders -I../../webkit -Iplatform -Iplatform/animation -Iplatform/network -Iplatform/graphics -Isvg/animation -Isvg/graphics -Isvg/graphics/filters -Iplatform/sql -Iplatform/text -Iloader -Iloader/appcache -Iloader/archive -Iloader/icon -Icss -Idom -Ipage -Ipage/animation -Ibridge -Iediting -Irendering -Irendering/style -Ihistory -Iinspector -Ixml -Ihtml -Iwml -Ibindings/js -Isvg -Iplatform/image-decoders -Iplugins -Ibridge -Ibridge/c -Ibridge/qt -Igenerated -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_svn.macports.org_trunk_dports_aqua_qt4-mac/work/qt-mac-opensource-src-4.5.2/lib -D__APPLE__ -D__GNUC__ ../JavaScriptCore/wtf/qt/MainThreadQt.cpp -o .moc/debug-shared/MainThreadQt.moc
/usr/bin/g++-4.0 -c -include .pch/debug-shared/QtWebKit_debug -O2 -Xarch_i386 -mmacosx-version-min=10.4 -fconstant-cfstrings -Wreturn-type -fno-strict-aliasing -I/opt/local/include -gdwarf-2 -fvisibility=hidden -fvisibility-inlines-hidden -arch i386 -fPIC -DQT_SHARED -DBUILDING_QT__=1 -DUSE_SYSTEM_MALLOC -DNDEBUG -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DBUILD_WEBKIT -DENABLE_OFFLINE_WEB_APPLICATIONS=1 -DENABLE_DOM_STORAGE=1 -DENABLE_ICONDATABASE=1 -DENABLE_DATABASE=1 -DENABLE_DASHBOARD_SUPPORT=0 -DENABLE_XPATH=1 -DENABLE_WML=0 -DENABLE_SVG=1 -DENABLE_SVG_FONTS=1 -DENABLE_SVG_FILTERS=1 -DENABLE_SVG_FOREIGN_OBJECT=1 -DENABLE_SVG_ANIMATION=1 -DENABLE_SVG_AS_IMAGE=1 -DENABLE_SVG_USE=1 -DENABLE_VIDEO=1 -DENABLE_NETSCAPE_PLUGIN_API=1 -DWTF_USE_JAVASCRIPTCORE_BINDINGS=1 -DWTF_CHANGES=1 -DBUILDING_QT__ -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 -Istorage -I../WebKit/qt/Api -I../../../../include/QtWebKit -I.rcc/debug-shared -I. -I../JavaScriptCore -I../JavaScriptCore/ForwardingHeaders -I../JavaScriptCore/interpreter -I../JavaScriptCore/bytecode -I../JavaScriptCore/debugger -I../JavaScriptCore/parser -I../JavaScriptCore/runtime -I/opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_aqua_qt4-mac/work/qt-mac-opensource-src-4.5.2/src/3rdparty/webkit/WebCore/../JavaScriptCore/bindings -I../JavaScriptCore/wrec -I../JavaScriptCore/jit -I../JavaScriptCore/wtf -Itmp -I../JavaScriptCore -I../JavaScriptCore/parser -I../JavaScriptCore/bytecompiler -I../JavaScriptCore/debugger -I../JavaScriptCore/runtime -I../JavaScriptCore/wtf -I../JavaScriptCore/wtf/unicode -I../JavaScriptCore/interpreter -I../JavaScriptCore/jit -I../JavaScriptCore/profiler -I../JavaScriptCore/wrec -I../JavaScriptCore/API -I../../webkit -I../JavaScriptCore/ForwardingHeaders -I../JavaScriptCore/bytecode -I../JavaScriptCore/assembler -I../JavaScriptCore/pcre -I/opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_aqua_qt4-mac/work/qt-mac-opensource-src-4.5.2/src/3rdparty/webkit/WebKitBuild/Debug/JavaScriptCore/tmp -Iplatform/qt -Iplatform/network/qt -Iplatform/graphics/filters -Iplatform/graphics/transforms -Iplatform/graphics/qt -Isvg/graphics/qt -Iloader -Ipage/qt -I../WebKit/qt/WebCoreSupport -I../WebKit/qt/Api -Ibridge/qt -I. -IForwardingHeaders -I../../webkit -Iplatform -Iplatform/animation -Iplatform/network -Iplatform/graphics -Isvg/animation -Isvg/graphics -Isvg/graphics/filters -Iplatform/sql -Iplatform/text -Iloader -Iloader/appcache -Iloader/archive -Iloader/icon -Icss -Idom -Ipage -Ipage/animation -Ibridge -Iediting -Irendering -Irendering/style -Ihistory -Iinspector -Ixml -Ihtml -Iwml -Ibindings/js -Isvg -Iplatform/image-decoders -Iplugins -Ibridge -Ibridge/c -Ibridge/qt -Igenerated -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_svn.macports.org_trunk_dports_aqua_qt4-mac/work/qt-mac-opensource-src-4.5.2/lib -o .obj/debug-shared/MainThreadQt.o ../JavaScriptCore/wtf/qt/MainThreadQt.cpp
/usr/bin/g++-4.0 -c -include .pch/debug-shared/QtWebKit_debug -O2 -Xarch_i386 -mmacosx-version-min=10.4 -fconstant-cfstrings -Wreturn-type -fno-strict-aliasing -I/opt/local/include -gdwarf-2 -fvisibility=hidden -fvisibility-inlines-hidden -arch i386 -fPIC -DQT_SHARED -DBUILDING_QT__=1 -DUSE_SYSTEM_MALLOC -DNDEBUG -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DBUILD_WEBKIT -DENABLE_OFFLINE_WEB_APPLICATIONS=1 -DENABLE_DOM_STORAGE=1 -DENABLE_ICONDATABASE=1 -DENABLE_DATABASE=1 -DENABLE_DASHBOARD_SUPPORT=0 -DENABLE_XPATH=1 -DENABLE_WML=0 -DENABLE_SVG=1 -DENABLE_SVG_FONTS=1 -DENABLE_SVG_FILTERS=1 -DENABLE_SVG_FOREIGN_OBJECT=1 -DENABLE_SVG_ANIMATION=1 -DENABLE_SVG_AS_IMAGE=1 -DENABLE_SVG_USE=1 -DENABLE_VIDEO=1 -DENABLE_NETSCAPE_PLUGIN_API=1 -DWTF_USE_JAVASCRIPTCORE_BINDINGS=1 -DWTF_CHANGES=1 -DBUILDING_QT__ -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 -Istorage -I../WebKit/qt/Api -I../../../../include/QtWebKit -I.rcc/debug-shared -I. -I../JavaScriptCore -I../JavaScriptCore/ForwardingHeaders -I../JavaScriptCore/interpreter -I../JavaScriptCore/bytecode -I../JavaScriptCore/debugger -I../JavaScriptCore/parser -I../JavaScriptCore/runtime -I/opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_aqua_qt4-mac/work/qt-mac-opensource-src-4.5.2/src/3rdparty/webkit/WebCore/../JavaScriptCore/bindings -I../JavaScriptCore/wrec -I../JavaScriptCore/jit -I../JavaScriptCore/wtf -Itmp -I../JavaScriptCore -I../JavaScriptCore/parser -I../JavaScriptCore/bytecompiler -I../JavaScriptCore/debugger -I../JavaScriptCore/runtime -I../JavaScriptCore/wtf -I../JavaScriptCore/wtf/unicode -I../JavaScriptCore/interpreter -I../JavaScriptCore/jit -I../JavaScriptCore/profiler -I../JavaScriptCore/wrec -I../JavaScriptCore/API -I../../webkit -I../JavaScriptCore/ForwardingHeaders -I../JavaScriptCore/bytecode -I../JavaScriptCore/assembler -I../JavaScriptCore/pcre -I/opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_aqua_qt4-mac/work/qt-mac-opensource-src-4.5.2/src/3rdparty/webkit/WebKitBuild/Debug/JavaScriptCore/tmp -Iplatform/qt -Iplatform/network/qt -Iplatform/graphics/filters -Iplatform/graphics/transforms -Iplatform/graphics/qt -Isvg/graphics/qt -Iloader -Ipage/qt -I../WebKit/qt/WebCoreSupport -I../WebKit/qt/Api -Ibridge/qt -I. -IForwardingHeaders -I../../webkit -Iplatform -Iplatform/animation -Iplatform/network -Iplatform/graphics -Isvg/animation -Isvg/graphics -Isvg/graphics/filters -Iplatform/sql -Iplatform/text -Iloader -Iloader/appcache -Iloader/archive -Iloader/icon -Icss -Idom -Ipage -Ipage/animation -Ibridge -Iediting -Irendering -Irendering/style -Ihistory -Iinspector -Ixml -Ihtml -Iwml -Ibindings/js -Isvg -Iplatform/image-decoders -Iplugins -Ibridge -Ibridge/c -Ibridge/qt -Igenerated -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_svn.macports.org_trunk_dports_aqua_qt4-mac/work/qt-mac-opensource-src-4.5.2/lib -o .obj/debug-shared/Grammar.o generated/Grammar.cpp
/usr/bin/g++-4.0 -c -include .pch/debug-shared/QtWebKit_debug -O2 -Xarch_i386 -mmacosx-version-min=10.4 -fconstant-cfstrings -Wreturn-type -fno-strict-aliasing -I/opt/local/include -gdwarf-2 -fvisibility=hidden -fvisibility-inlines-hidden -arch i386 -fPIC -DQT_SHARED -DBUILDING_QT__=1 -DUSE_SYSTEM_MALLOC -DNDEBUG -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DBUILD_WEBKIT -DENABLE_OFFLINE_WEB_APPLICATIONS=1 -DENABLE_DOM_STORAGE=1 -DENABLE_ICONDATABASE=1 -DENABLE_DATABASE=1 -DENABLE_DASHBOARD_SUPPORT=0 -DENABLE_XPATH=1 -DENABLE_WML=0 -DENABLE_SVG=1 -DENABLE_SVG_FONTS=1 -DENABLE_SVG_FILTERS=1 -DENABLE_SVG_FOREIGN_OBJECT=1 -DENABLE_SVG_ANIMATION=1 -DENABLE_SVG_AS_IMAGE=1 -DENABLE_SVG_USE=1 -DENABLE_VIDEO=1 -DENABLE_NETSCAPE_PLUGIN_API=1 -DWTF_USE_JAVASCRIPTCORE_BINDINGS=1 -DWTF_CHANGES=1 -DBUILDING_QT__ -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 -Istorage -I../WebKit/qt/Api -I../../../../include/QtWebKit -I.rcc/debug-shared -I. -I../JavaScriptCore -I../JavaScriptCore/ForwardingHeaders -I../JavaScriptCore/interpreter -I../JavaScriptCore/bytecode -I../JavaScriptCore/debugger -I../JavaScriptCore/parser -I../JavaScriptCore/runtime -I/opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_aqua_qt4-mac/work/qt-mac-opensource-src-4.5.2/src/3rdparty/webkit/WebCore/../JavaScriptCore/bindings -I../JavaScriptCore/wrec -I../JavaScriptCore/jit -I../JavaScriptCore/wtf -Itmp -I../JavaScriptCore -I../JavaScriptCore/parser -I../JavaScriptCore/bytecompiler -I../JavaScriptCore/debugger -I../JavaScriptCore/runtime -I../JavaScriptCore/wtf -I../JavaScriptCore/wtf/unicode -I../JavaScriptCore/interpreter -I../JavaScriptCore/jit -I../JavaScriptCore/profiler -I../JavaScriptCore/wrec -I../JavaScriptCore/API -I../../webkit -I../JavaScriptCore/ForwardingHeaders -I../JavaScriptCore/bytecode -I../JavaScriptCore/assembler -I../JavaScriptCore/pcre -I/opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_aqua_qt4-mac/work/qt-mac-opensource-src-4.5.2/src/3rdparty/webkit/WebKitBuild/Debug/JavaScriptCore/tmp -Iplatform/qt -Iplatform/network/qt -Iplatform/graphics/filters -Iplatform/graphics/transforms -Iplatform/graphics/qt -Isvg/graphics/qt -Iloader -Ipage/qt -I../WebKit/qt/WebCoreSupport -I../WebKit/qt/Api -Ibridge/qt -I. -IForwardingHeaders -I../../webkit -Iplatform -Iplatform/animation -Iplatform/network -Iplatform/graphics -Isvg/animation -Isvg/graphics -Isvg/graphics/filters -Iplatform/sql -Iplatform/text -Iloader -Iloader/appcache -Iloader/archive -Iloader/icon -Icss -Idom -Ipage -Ipage/animation -Ibridge -Iediting -Irendering -Irendering/style -Ihistory -Iinspector -Ixml -Ihtml -Iwml -Ibindings/js -Isvg -Iplatform/image-decoders -Iplugins -Ibridge -Ibridge/c -Ibridge/qt -Igenerated -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_svn.macports.org_trunk_dports_aqua_qt4-mac/work/qt-mac-opensource-src-4.5.2/lib -o .obj/debug-shared/DOMTimer.o bindings/js/DOMTimer.cpp
/usr/bin/g++-4.0 -c -include .pch/debug-shared/QtWebKit_debug -O2 -Xarch_i386 -mmacosx-version-min=10.4 -fconstant-cfstrings -Wreturn-type -fno-strict-aliasing -I/opt/local/include -gdwarf-2 -fvisibility=hidden -fvisibility-inlines-hidden -arch i386 -fPIC -DQT_SHARED -DBUILDING_QT__=1 -DUSE_SYSTEM_MALLOC -DNDEBUG -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DBUILD_WEBKIT -DENABLE_OFFLINE_WEB_APPLICATIONS=1 -DENABLE_DOM_STORAGE=1 -DENABLE_ICONDATABASE=1 -DENABLE_DATABASE=1 -DENABLE_DASHBOARD_SUPPORT=0 -DENABLE_XPATH=1 -DENABLE_WML=0 -DENABLE_SVG=1 -DENABLE_SVG_FONTS=1 -DENABLE_SVG_FILTERS=1 -DENABLE_SVG_FOREIGN_OBJECT=1 -DENABLE_SVG_ANIMATION=1 -DENABLE_SVG_AS_IMAGE=1 -DENABLE_SVG_USE=1 -DENABLE_VIDEO=1 -DENABLE_NETSCAPE_PLUGIN_API=1 -DWTF_USE_JAVASCRIPTCORE_BINDINGS=1 -DWTF_CHANGES=1 -DBUILDING_QT__ -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 -Istorage -I../WebKit/qt/Api -I../../../../include/QtWebKit -I.rcc/debug-shared -I. -I../JavaScriptCore -I../JavaScriptCore/ForwardingHeaders -I../JavaScriptCore/interpreter -I../JavaScriptCore/bytecode -I../JavaScriptCore/debugger -I../JavaScriptCore/parser -I../JavaScriptCore/runtime -I/opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_aqua_qt4-mac/work/qt-mac-opensource-src-4.5.2/src/3rdparty/webkit/WebCore/../JavaScriptCore/bindings -I../JavaScriptCore/wrec -I../JavaScriptCore/jit -I../JavaScriptCore/wtf -Itmp -I../JavaScriptCore -I../JavaScriptCore/parser -I../JavaScriptCore/bytecompiler -I../JavaScriptCore/debugger -I../JavaScriptCore/runtime -I../JavaScriptCore/wtf -I../JavaScriptCore/wtf/unicode -I../JavaScriptCore/interpreter -I../JavaScriptCore/jit -I../JavaScriptCore/profiler -I../JavaScriptCore/wrec -I../JavaScriptCore/API -I../../webkit -I../JavaScriptCore/ForwardingHeaders -I../JavaScriptCore/bytecode -I../JavaScriptCore/assembler -I../JavaScriptCore/pcre -I/opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_aqua_qt4-mac/work/qt-mac-opensource-src-4.5.2/src/3rdparty/webkit/WebKitBuild/Debug/JavaScriptCore/tmp -Iplatform/qt -Iplatform/network/qt -Iplatform/graphics/filters -Iplatform/graphics/transforms -Iplatform/graphics/qt -Isvg/graphics/qt -Iloader -Ipage/qt -I../WebKit/qt/WebCoreSupport -I../WebKit/qt/Api -Ibridge/qt -I. -IForwardingHeaders -I../../webkit -Iplatform -Iplatform/animation -Iplatform/network -Iplatform/graphics -Isvg/animation -Isvg/graphics -Isvg/graphics/filters -Iplatform/sql -Iplatform/text -Iloader -Iloader/appcache -Iloader/archive -Iloader/icon -Icss -Idom -Ipage -Ipage/animation -Ibridge -Iediting -Irendering -Irendering/style -Ihistory -Iinspector -Ixml -Ihtml -Iwml -Ibindings/js -Isvg -Iplatform/image-decoders -Iplugins -Ibridge -Ibridge/c -Ibridge/qt -Igenerated -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_svn.macports.org_trunk_dports_aqua_qt4-mac/work/qt-mac-opensource-src-4.5.2/lib -o .obj/debug-shared/GCController.o bindings/js/GCController.cpp
In file included from page/DOMWindow.h:29,
                 from generated/JSDOMWindow.h:25,
                 from bindings/js/GCController.cpp:29:
/opt/local/include/KURL.h:24:24: error: qvaluelist.h: No such file or directory
/opt/local/include/KURL.h:187: error: expected template-name before '<' token
/opt/local/include/KURL.h:187: error: expected `{' before '<' token
/opt/local/include/KURL.h:187: error: expected unqualified-id before '<' token
/opt/local/include/KURL.h:312: error: expected ',' or '...' before '&' token
/opt/local/include/KURL.h:312: error: ISO C++ forbids declaration of 'QCString' with no type
page/DOMWindow.h:281: error: field 'm_url' has incomplete type
page/DOMWindow.h: In member function 'void WebCore::DOMWindow::setURL(const WebCore::KURL&)':
page/DOMWindow.h:80: error: 'm_url' was not declared in this scope
page/DOMWindow.h: In member function 'WebCore::KURL WebCore::DOMWindow::url() const':
page/DOMWindow.h:81: error: return type 'struct WebCore::KURL' is incomplete
page/DOMWindow.h:81: error: 'm_url' was not declared in this scope
make[2]: *** [.obj/debug-shared/GCController.o] Error 1
make[1]: *** [debug-all] Error 2
make: *** [sub-webkit-make_default-ordered] Error 2

Error: Unable to upgrade port: 1

comment:3 in reply to:  description Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added

Replying to jwhowse4@…:

html/HTMLSelectElement.h:168: error: 'DOMTimeStamp' does not name a type

I see the same here, with Mac OS X 10.5.7 (no XQuartz), Xcode 3.1.2 and MacPorts 1.7.1 on an Intel MacBook Pro.

comment:4 Changed 15 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Cc: mcalhoun@… added

Cc Me!

comment:5 Changed 15 years ago by raimue (Rainer Müller)

Successfully installed @4.5.2 on Mac OS X 10.5.7, Xcode 3.1.2 using MacPorts trunk. Note that I don't have the file /opt/local/include/KURL.h.

comment:6 Changed 15 years ago by mf2k (Frank Schima)

/opt/local/include/KURL.h is provided by kdelibs3. Indeed when I deactivated that port, qt4-mac compiled just fine. So that's a good workaround.

comment:7 in reply to:  6 Changed 15 years ago by reg@…

Replying to macsforever2000@…:

/opt/local/include/KURL.h is provided by kdelibs3. Indeed when I deactivated that port, qt4-mac compiled just fine. So that's a good workaround.

I had the same issue as well.

Looks like the problem is in the Makefile that gets generated by qmake for qt-mac-opensource-src-4.5.2/src/3rdparty/webkit/WebCore. The CFLAGS contains a -I/opt/local/include which is positioned before the rest of the local INCLUDEPATH, so headers in /opt/local/include are getting searched before the webkit headers. I believe macports automatically passes CFLAGS=-I/opt/local/include when executing the configure script (as specified by configure.env).

Perhaps by overriding configure.env to be empty in the port file and instead calling the configure script with the additional arguments -I${prefix}/include and -L${prefix}/lib will allow qmake to generate the Makefile with the INCLUDEPATH ordered correctly?

comment:8 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

MacPorts puts -I${prefix}/include in CPPFLAGS and -L${prefix}/lib in LDFLAGS. You can clear configure.cppflags and/or configure.ldflags if you don't want these.

comment:9 in reply to:  8 Changed 15 years ago by boeyms@…

I get the same problem as the original poster; the problem in that case arises because:

  • the build is occurring on a case-preserving but not case-sensitive (e.g. HFS+)
  • libevent is installed;
  • -I${prefix}/include appears before the other -I flags in the command that causes the failure;
  • gcc therefore ends up including ${prefix}/include/Event.h instead of event.h inside the build directories (hence the importance of the filesystem not being case-sensitive).

Deactivating or uninstalling libevent during the build works around this problem.

Replying to ryandesign@…:

MacPorts puts -I${prefix}/include in CPPFLAGS and -L${prefix}/lib in LDFLAGS. You can clear configure.cppflags and/or configure.ldflags if you don't want these.

As Qt 4 builds against third-party libraries, this will result in the port either linking against system libraries (zlib, openssl), building and linking against internal ones (possibly libtiff, libpng, libmng, libjpeg), or building without support for a feature (dbus). (Actually, we may also get error reports from people who have stuff in /usr/local, since the "linking against system libraries" actually means GCC using its default search paths for system libraries, and that has /usr/local/include before /usr/include.) This probably won't be a problem for most Qt 4 programs, but violates MacPorts policy, and will make the installation larger.

The two solutions that I can think of are:

  1. trying to get the upstream developers to include configure-time CPPFLAGS and CFLAGS contents after the stuff that they generate themselves (I don't know whether or not there are any reasons they would not do this); and
  2. switching the MacPorts-supplied "-I${prefix}/include" argument to "-isystem ${prefix}/include".

According to the C preprocessor guide available via XCode's documentation, the latter of these has the effect of:

  1. ensuring ${prefix}/include is searched after all directories specified by -I, but before the default system directories; and
  2. switching off a few (unspecified) warnings that headers for the OS and its runtime libraries often generate because they often cannot be written in strictly conforming C.

I don't imagine either of these would be a problem for anything other than the dependence on a flag (-isystem) that may be GCC-specific, though someone more knowledgeable than may be able to say otherwise.

comment:10 Changed 15 years ago by boeyms@…

Cc: boeyms@… added

Cc Me!

comment:11 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

I wonder if MacPorts base should switch to using -isystem instead of -I.

comment:12 in reply to:  11 Changed 15 years ago by boeyms@…

Replying to ryandesign@…:

I wonder if MacPorts base should switch to using -isystem instead of -I.

I certainly agree that we should make that change. (Sorry to miss your original macports-dev post; I'd have agreed with you then, too.)

comment:13 Changed 15 years ago by mail@…

Cc: mail@… added

Cc Me!

comment:14 Changed 15 years ago by payam.minoofar@…

I have deactivated kde3, but qt4 still fails to compile. I am not sure where to find the files that need to be modified in order to get the process to go. More detailed instructions for the uninitiated would be greatly appreciated.

Getting a fix via selfupdate even more.

comment:15 in reply to:  14 ; Changed 15 years ago by mf2k (Frank Schima)

Replying to payam.minoofar@…:

I have deactivated kde3, but qt4 still fails to compile. I am not sure where to find the files that need to be modified in order to get the process to go. More detailed instructions for the uninitiated would be greatly appreciated.

Run the following:

sudo port deactivate kdelibs3 libevent
sudo port clean qt4-mac
sudo port install qt4-mac 
sudo port activate kdelibs3 libevent

Getting a fix via selfupdate even more.

That would be nice!

comment:16 in reply to:  15 Changed 15 years ago by payam.minoofar@…

Thank you very much. This did the trick. It was a matter of doing the cleanup before attempting installation.

comment:17 Changed 15 years ago by payam.minoofar@…

I stand corrected. I now encounter this (same?) error about 2 hours into the build process, instead of 5 minutes:

--->  Building qt4-mac
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-mac-opensource-src-4.5.2" && make first " returned error 2
Command output: /usr/bin/g++-4.0 -c -include .pch/debug-shared/QtWebKit_debug -O2 -Xarch_i386 -mmacosx-version-min=10.4 -fconstant-cfstrings -Wreturn-type -fno-strict-aliasing -I/opt/local/include -gdwarf-2 -fvisibility=hidden -fvisibility-inlines-hidden -arch i386 -fPIC -DQT_SHARED -DBUILDING_QT__=1 -DUSE_SYSTEM_MALLOC -DNDEBUG -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DBUILD_WEBKIT -DENABLE_OFFLINE_WEB_APPLICATIONS=1 -DENABLE_DOM_STORAGE=1 -DENABLE_ICONDATABASE=1 -DENABLE_DATABASE=1 -DENABLE_DASHBOARD_SUPPORT=0 -DENABL

Lots more commands and ending in:

on -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-mac-opensource-src-4.5.2/lib -o .obj/debug-shared/GCController.o bindings/js/GCController.cpp
page/DOMWindow.h:281: error: field 'm_url' has incomplete type
page/DOMWindow.h: In member function 'void WebCore::DOMWindow::setURL(const WebCore::KURL&)':
page/DOMWindow.h:80: error: 'm_url' was not declared in this scope
page/DOMWindow.h: In member function 'WebCore::KURL WebCore::DOMWindow::url() const':
page/DOMWindow.h:81: error: return type 'struct WebCore::KURL' is incomplete
page/DOMWindow.h:81: error: 'm_url' was not declared in this scope
make[2]: *** [.obj/debug-shared/GCController.o] Error 1
make[1]: *** [debug-all] Error 2
make: *** [sub-webkit-make_default-ordered] Error 2

Error: Status 1 encountered during processing.

comment:18 in reply to:  17 ; Changed 15 years ago by mf2k (Frank Schima)

Replying to payam.minoofar@…:

I stand corrected. I now encounter this (same?) error about 2 hours into the build process, instead of 5 minutes:

qt4-mac has been updated in r54186. Please run the following:

sudo port clean qt4-mac
sudo port install qt4-mac

Please let us know if it works for you or not. If not, please supply the version of Mac OS X and Xcode that you are running.

comment:19 in reply to:  18 ; Changed 15 years ago by payam.minoofar@…

Alas, no. I attempted another upgrade of qt4 with the fresh version, but it failed. Then I saw your note above, so I cleaned up the previous installation, and still got exactly the same error.

Also, port reports that qt4-mac-devel (ver 4.5.0) is older than qt4-mac (4.5.2).

page/DOMWindow.h:281: error: field 'm_url' has incomplete type
page/DOMWindow.h: In member function 'void WebCore::DOMWindow::setURL(const WebCore::KURL&)':
page/DOMWindow.h:80: error: 'm_url' was not declared in this scope
page/DOMWindow.h: In member function 'WebCore::KURL WebCore::DOMWindow::url() const':
page/DOMWindow.h:81: error: return type 'struct WebCore::KURL' is incomplete
page/DOMWindow.h:81: error: 'm_url' was not declared in this scope
make[2]: *** [.obj/debug-shared/GCController.o] Error 1
make[1]: *** [debug-all] Error 2
make: *** [sub-webkit-make_default-ordered] Error 2

Error: Status 1 encountered during processing.

comment:20 Changed 15 years ago by thedoobs@…

Cc: thedoobs@… added

Cc Me!

comment:21 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Using qt4-mac r54186 I still see

html/HTMLSelectElement.h:168: error: 'DOMTimeStamp' does not name a type
make[2]: *** [.obj/debug-shared/JSHTMLOptionsCollectionCustom.o] Error 1

after 1 hour 13 minutes (Mac OS X 10.4.11, Xcode 2.5, Intel Core 2 Duo 2.2 GHz, buildmakejobs=1) if libevent is installed and active. If I deactivate libevent and clean qt4-mac, then it installs successfully after 3 hours 55 minutes. I did not test this time around what effect having kdelibs3 installed and active would have.

comment:22 in reply to:  21 Changed 15 years ago by payam.minoofar@…

Replying to ryandesign@…:

after 1 hour 13 minutes (Mac OS X 10.4.11, Xcode 2.5, Intel Core 2 Duo 2.2 GHz, buildmakejobs=1) if libevent is installed and active. If I deactivate libevent and clean qt4-mac, then it installs successfully after 3 hours 55 minutes. I did not test this time around what effect having kdelibs3 installed and active would have.

Port on my computer says that libevent is not registered as active or installed.

I'm running 10.5.7, XCode 3.1.3, X11 from xQuartz project 2.3.3.2 on Intel core 2 duo 2.66 GHz iMac.

comment:23 Changed 15 years ago by jonas@…

/opt/local/include/KURL.h is also provided by kdelibs4. So you may need to deactivate that port too to build the qt4-mac port @4.5.2

comment:24 Changed 15 years ago by mf2k (Frank Schima)

Cc: macsforever2000@… added

Cc Me!

comment:25 Changed 15 years ago by tobypeterson

Cc: jogonzales@… added

comment:26 in reply to:  23 ; Changed 15 years ago by jogonzales@…

Replying to jonas@…:

/opt/local/include/KURL.h is also provided by kdelibs4. So you may need to deactivate that port too to build the qt4-mac port @4.5.2

Isn't qt4-mac a dependence for kdelibs4. That what I was trying to build and haven't gotten it built cause I need this first..

comment:27 Changed 15 years ago by bgrupe27

Now that MacPorts 1.8 is out, can't qt4-mac conflict against libevent and kdelibs3? That would eliminate most of the build failures.

comment:28 Changed 15 years ago by bgrupe27

Cc: bgrupe@… added

Cc Me!

comment:29 Changed 15 years ago by gentoomeo@…

Cc: gentoomeo@… added

Cc Me!

comment:30 in reply to:  26 Changed 15 years ago by ewal@…

Replying to jogonzales@…:

Replying to jonas@…:

/opt/local/include/KURL.h is also provided by kdelibs4. So you may need to deactivate that port too to build the qt4-mac port @4.5.2

Isn't qt4-mac a dependence for kdelibs4. That what I was trying to build and haven't gotten it built cause I need this first..

Fixed it for me too. I had qt4-mac installed and kdelibs4 compiled already. But now I needed to update qt4-mac to be able to compile kdebase4-runtime, and that failed because kdelibs4 was already installed.

comment:31 in reply to:  19 ; Changed 15 years ago by tanks4dat@…

Replying to payam.minoofar@…:

Alas, no. I attempted another upgrade of qt4 with the fresh version, but it failed. Then I saw your note above, so I cleaned up the previous installation, and still got exactly the same error.

Also, port reports that qt4-mac-devel (ver 4.5.0) is older than qt4-mac (4.5.2).

page/DOMWindow.h:281: error: field 'm_url' has incomplete type
page/DOMWindow.h: In member function 'void WebCore::DOMWindow::setURL(const WebCore::KURL&)':
page/DOMWindow.h:80: error: 'm_url' was not declared in this scope
page/DOMWindow.h: In member function 'WebCore::KURL WebCore::DOMWindow::url() const':
page/DOMWindow.h:81: error: return type 'struct WebCore::KURL' is incomplete
page/DOMWindow.h:81: error: 'm_url' was not declared in this scope
make[2]: *** [.obj/debug-shared/GCController.o] Error 1
make[1]: *** [debug-all] Error 2
make: *** [sub-webkit-make_default-ordered] Error 2

Error: Status 1 encountered during processing.

I received exactly the same errors:

In file included from page/DOMWindow.h:29,
                 from generated/JSDOMWindow.h:25,
                 from bindings/js/GCController.cpp:29:
/Volumes/User/opt/local/include/KURL.h:24:24: error: qvaluelist.h: No such file or directory
/Volumes/User/opt/local/include/KURL.h:187: error: expected template-name before '<' token
/Volumes/User/opt/local/include/KURL.h:187: error: expected `{' before '<' token
/Volumes/User/opt/local/include/KURL.h:187: error: expected unqualified-id before '<' token
/Volumes/User/opt/local/include/KURL.h:312: error: expected ',' or '...' before '&' token
/Volumes/User/opt/local/include/KURL.h:312: error: ISO C++ forbids declaration of 'QCString' with no type
page/DOMWindow.h:281: error: field 'm_url' has incomplete type
page/DOMWindow.h: In member function 'void WebCore::DOMWindow::setURL(const WebCore::KURL&)':
page/DOMWindow.h:80: error: 'm_url' was not declared in this scope
page/DOMWindow.h: In member function 'WebCore::KURL WebCore::DOMWindow::url() const':
page/DOMWindow.h:81: error: return type 'struct WebCore::KURL' is incomplete
page/DOMWindow.h:81: error: 'm_url' was not declared in this scope
make[2]: *** [.obj/debug-shared/GCController.o] Error 1
make[1]: *** [debug-all] Error 2
make: *** [sub-webkit-make_default-ordered] Error 2

$ locate /opt/local/include/KURL.h had no results. I do not have kdelibs3 or libevent installed.

% port installed kdelib3 
None of the specified ports are installed.

and

% port installed libevent
None of the specified ports are installed.

locate libevent results in libevent located at var/macports/sources/rsync.macports.org/release/ports/devel/libevent

I do have kdeedu3 installed, but is is deactivated. I think that kdeedu3 uses kdelibs3, so it is in the /opt file hierarchy, but deactivated.

my system: cpu powerppc g4 laptop; xcode 3.1.4. I tried cleaning qt4-mac and reinstalling. kdeedu4 will not install quiting on errors, one being qt4-mac failed to build. I tried cleaning kdeedu4 and installing qt4-mac and the errors above resulted.
Any ideas how to solve? Any configurations I can give to the port install to help build.

comment:32 Changed 15 years ago by mf2k (Frank Schima)

To summarize, the workaround for this problem is the following:

port installed kdelibs3 kdelibs4 libevent
sudo port deactivate kdelibs3 kdelibs4 libevent
sudo port upgrade qt4-mac  # or install instead of upgrade
sudo port activate kdelibs3 kdelibs4 libevent  # This command may fail if more than one of a port is installed or if one of them is not installed. Modify it as needed. 

comment:33 Changed 15 years ago by mf2k (Frank Schima)

Cc: couannette@… added

Cc reporter of duplicate #21455.

comment:34 Changed 15 years ago by mf2k (Frank Schima)

Cc: lhunath@… added

Cc reporter of duplicate #20846.

comment:35 Changed 15 years ago by agile.guo@…

I have the same problem:
Mac OS 10.6
port 1.8.

comment:36 in reply to:  31 Changed 15 years ago by tanks4dat@…

Replying to tanks4dat@…:

I received exactly the same errors:

In file included from page/DOMWindow.h:29,
                 from generated/JSDOMWindow.h:25,
                 from bindings/js/GCController.cpp:29:
/Volumes/User/opt/local/include/KURL.h:24:24: error: qvaluelist.h: No such file or directory
/Volumes/User/opt/local/include/KURL.h:187: error: expected template-name before '<' token
/Volumes/User/opt/local/include/KURL.h:187: error: expected `{' before '<' token
/Volumes/User/opt/local/include/KURL.h:187: error: expected unqualified-id before '<' token
/Volumes/User/opt/local/include/KURL.h:312: error: expected ',' or '...' before '&' token
/Volumes/User/opt/local/include/KURL.h:312: error: ISO C++ forbids declaration of 'QCString' with no type
page/DOMWindow.h:281: error: field 'm_url' has incomplete type
page/DOMWindow.h: In member function 'void WebCore::DOMWindow::setURL(const WebCore::KURL&)':
page/DOMWindow.h:80: error: 'm_url' was not declared in this scope
page/DOMWindow.h: In member function 'WebCore::KURL WebCore::DOMWindow::url() const':
page/DOMWindow.h:81: error: return type 'struct WebCore::KURL' is incomplete
page/DOMWindow.h:81: error: 'm_url' was not declared in this scope
make[2]: *** [.obj/debug-shared/GCController.o] Error 1
make[1]: *** [debug-all] Error 2
make: *** [sub-webkit-make_default-ordered] Error 2

$ locate /opt/local/include/KURL.h had no results. I do not have kdelibs3 or libevent installed.

% port installed kdelib3 
None of the specified ports are installed.

and

% port installed libevent
None of the specified ports are installed.

locate libevent results in libevent located at var/macports/sources/rsync.macports.org/release/ports/devel/libevent

I do have kdeedu3 installed, but is is deactivated. I think that kdeedu3 uses kdelibs3, so it is in the /opt file hierarchy, but deactivated.

my system: cpu powerppc g4 laptop; xcode 3.1.4. I tried cleaning qt4-mac and reinstalling. kdeedu4 will not install quiting on errors, one being qt4-mac failed to build. I tried cleaning kdeedu4 and installing qt4-mac and the errors above resulted.
Any ideas how to solve? Any configurations I can give to the port install to help build.

UPDATE
I fallowed this:

port installed kdelibs3 kdelibs4 libevent
sudo port deactivate kdelibs3 kdelibs4 libevent
sudo port upgrade qt4-mac  # or install instead of upgrade
sudo port activate kdelibs3 kdelibs4 libevent

I did not have libevents. I deactivated kdelibs3 and qt4-mac still never build. I deactivated kdeedp3 and still no build. So I uninstalled kdeedu3 (I don't know why this worked, sorry) and qt4-mac build properly. Thank you, all who understand the inner workings of port libraries, dependencies, and lateral thinking for offering assistance and a workaround :) now, off to wikipedia to find out what CPPFLAGS and CFLAGS are :P my code knowledge is LAGing :)

comment:37 Changed 15 years ago by mf2k (Frank Schima)

Cc: borschel@… added

Cc reporter of duplicate #22189.

comment:38 Changed 15 years ago by shawjef3@…

I updated my macports a couple hours ago, tried to run port upgrade qt4-mac and ran into the same error. Deactivating kdelibs4 seems to have fixed the error, but I'm still waiting for qt4-mac to finish building.

...-o .obj/debug-shared/GCController.o bindings/js/GCController.cpp
page/DOMWindow.h:281: error: field 'm_url' has incomplete type
page/DOMWindow.h: In member function 'void WebCore::DOMWindow::setURL(const WebCore::KURL&)':
page/DOMWindow.h:80: error: 'm_url' was not declared in this scope
page/DOMWindow.h: In member function 'WebCore::KURL WebCore::DOMWindow::url() const':
page/DOMWindow.h:81: error: return type 'struct WebCore::KURL' is incomplete
page/DOMWindow.h:81: error: 'm_url' was not declared in this scope
make[2]: *** [.obj/debug-shared/GCController.o] Error 1
make[1]: *** [debug-all] Error 2
make: *** [sub-webkit-make_default-ordered] Error 2

Error: Unable to upgrade port: 1

comment:39 in reply to:  38 Changed 15 years ago by borschel@…

Deactivating kdelibs4 worked for me. after finishing to install qt4-mac, I reactivated kdelib4 and everything is all right.

comment:40 Changed 15 years ago by markus@…

Cc: markus@… added

Cc Me!

comment:41 Changed 15 years ago by mf2k (Frank Schima)

Cc: launchpad@… added

Cc reporter of duplicate #22274.

comment:42 Changed 15 years ago by a.vincelli@…

Cc: a.vincelli@… added

Cc Me!

comment:43 Changed 15 years ago by a.vincelli@…

Cc: a.vincelli@… removed

Cc Me!

comment:44 in reply to:  27 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to bgrupe@…:

Now that MacPorts 1.8 is out, can't qt4-mac conflict against libevent and kdelibs3?

I marked qt4-mac and qt4-mac-devel as conflicting with libevent in r61151.

comment:45 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

And conflicting with kdelibs3 in r61171.

comment:46 Changed 15 years ago by jp@…

Cc: jp@… added

Cc Me!

comment:47 Changed 15 years ago by shane.wilkins@…

Does qt4-mac also conflict with qt3-mac? I'm on macports 1.8.1 and I am having trouble building qt4-mac, but noticed that I also had the old version installed. uninstalled qt3-mac and am now trying to build qt4-mac again.

comment:48 in reply to:  15 Changed 15 years ago by informatimago (Pascal J. Bourguignon)

Replying to macsforever2000@…:

Replying to payam.minoofar@…:

I have deactivated kde3, but qt4 still fails to compile. I am not sure where to find the files that need to be modified in order to get the process to go. More detailed instructions for the uninitiated would be greatly appreciated.

Run the following:

sudo port deactivate kdelibs3 libevent

Better deactivate each of them independently, for if one is not installed, the other won't be deactivated:

  for p in kdelibs4 kdelibs3 libevent ; do sudo port deactivate $p ; done

comment:49 Changed 15 years ago by sharky@…

I am not convinced this has anything to do with other ports being installed on the system. I have seen this error before, and repeatedly attempting the build without deactivating any ports eventually worked for me. I am therefore inclined to think that the webkit module of Qt does not like parallel builds.

Could some other users experiencing this error try to change "use_parallel yes" to "use_parallel no" in the Portfile and let me know whether this fixes the issue?

comment:50 Changed 15 years ago by sharky@…

Cc: sharky@… added

Cc Me!

comment:51 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

I added the conflicts with libevent and kdelibs3, as noted above, only after confirming that installing those ports caused the problem, and that deactivating them fixed the problem. I did at least some of my builds with parallel building disabled. To disable parallel building for your own tests, you can set "buildmakejobs 1" in macports.conf, or set "use_parallel_build no" in the portfile, or set "build.jobs=1" on the command line (e.g. "sudo port install qt4-mac build.jobs=1").

comment:52 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

I did not add a conflict with kdelibs4 because although installing kdelibs4 caused qt4-mac to fail to compile for me, deactivating kdelibs4 did not fix the problem. I suspect one of kdelibs4's dependencies. Or perhaps my testing was flawed, since someone else indicated above that disabling kdelibs4 was sufficient.

comment:53 Changed 15 years ago by mf2k (Frank Schima)

Cc: rishi.j.sanyal@… added

Cc reporter of dup #23073.

comment:54 Changed 15 years ago by sharky@…

Cc: shawjef3@… added

Cc reporter of dup #23211

comment:55 Changed 15 years ago by stephan@…

Cc: stephan@… added

Cc Me!

comment:56 Changed 15 years ago by marix@…

Cc: marix@… added

Cc Me!

comment:57 Changed 15 years ago by cozimlate@…

Cc: cozimlate@… added

Cc Me!

comment:58 Changed 15 years ago by mf2k (Frank Schima)

Cc: soehn@… added

Cc reporter of duplicate #23835.

comment:59 Changed 15 years ago by root42

Any news on this bug?

comment:60 Changed 15 years ago by root42

Cc: arne.schmitz@… added

Cc Me!

comment:61 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Summary: qt4-mac fails to buildqt4-mac fails to build when conflicting ports are active

At present, we know that qt4-mac cannot be built while kdelibs3, kdelibs4, libevent or xmlrpcxx are active. Deactivate any of these ports that are installed before attempting to build qt4-mac. You can reactivate them afterward.

The conflicts keyword used in the qt4-mac port to indicate this does not adequately encompass this situation; we need a second type of conflicts keyword to be implemented by MacPorts base to automate the detection of this problem. See this mailing list discussion.

comment:62 Changed 15 years ago by rishi.j.sanyal@…

I'm just here to corroborate that the following two steps allow Qt4 to compile just fine on OS X 10.6.2:


First, if it's active, invoke:

sudo port deactivate kdelibs4 

Then, open: /opt/local/etc/macports/macports.conf

And change:

"#buildmakejobs 0"

to:

"#buildmakejobs 1"

That should do it! Remember to reactivate kdelibs4 once qt4-mac is done installing.

-Rishi

comment:63 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Changing macports.conf is not necessary. qt4-mac builds fine parallel for me, and besides, lines in the conf files that begin with "#" are comments; they don't do anything unless you uncomment them by removing the "#".

comment:64 Changed 15 years ago by mail@…

Cc: mail@… added

Cc Me!

comment:65 Changed 14 years ago by ericmoret

Cc: eric.moret@… added

Cc Me!

comment:66 Changed 14 years ago by simonis.christophe+macports@…

Cc: simonis.christophe+macports@… added

Cc Me!

comment:67 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Has duplicate #25162.

Changed 14 years ago by payam.minoofar@…

comment:68 Changed 14 years ago by payam.minoofar@…

All the qt4-mac build errors reported today seem to be duplicates of this bug, so I'll post mine here, too, since it seems to have the same characteristics. Here is the last bit spat out by the debugger. I have attached full debug transcript as a zip file that unzips to a 5.5 Mb file. Failure came quite late in compilation.

XCode 3.2.2, OS X.6.3, building as universal.

platform/network/qt/ResourceResponse.h: At global scope:
platform/network/qt/ResourceResponse.h:39: warning: unused parameter 'KURL'
bindings/js/GCController.cpp:83: warning: unused parameter 'waitUntilDone'
lipo: can't open input file: /var/tmp//ccUcZc5q.out (No such file or directory)
make[2]: *** [obj/release/GCController.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [release-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.2" && /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.2" && /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: couldn't read file "/opt/local/share/macports/Tcl/darwintrace1.0/pkgIndex.tcl": no such file or directory
    while executing
"source [file join $dir pkgIndex.tcl]"
Error: Unable to upgrade port: 1

comment:69 in reply to:  68 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to payam.minoofar@…:

Here is the last bit spat out

That bit is not relevant; the bit that is relevant is:

platform/network/ResourceResponseBase.h:51: error: ISO C++ forbids declaration of 'KURL' with no type
platform/network/ResourceResponseBase.h:51: error: expected ';' before '&' token
platform/network/ResourceResponseBase.h:52: error: expected ',' or '...' before '&' token
platform/network/ResourceResponseBase.h:52: error: ISO C++ forbids declaration of 'KURL' with no type
platform/network/ResourceResponseBase.h:108: error: expected ',' or '...' before '&' token
platform/network/ResourceResponseBase.h:108: error: ISO C++ forbids declaration of 'KURL' with no type
platform/network/ResourceResponseBase.h:118: error: 'KURL' does not name a type
platform/network/ResourceResponseBase.h:154: error: 'KURL' does not name a type

So deactivate the conflicting ports, clean qt4-mac, and try again.

comment:70 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Has duplicates #23282, #23459, #25216.

comment:71 Changed 14 years ago by flavio@…

Cc: flavio@… added

Cc Me!

comment:72 Changed 14 years ago by andre.david@…

I was having trouble after installing memcached (which depends on libevent) and just want to confirm that

sudo port deactivate libevent && sudo port upgrade qt4-mac && sudo port activate libevent

worked for me.

comment:73 Changed 14 years ago by michaelld (Michael Dickens)

Per ticket #25320, I'm updating qt4-mac (and the various qt4-foo variants) to use the select group, and also to correctly use compiler.cpath and compiler.library_path instead of -I. Further, ${prefix}/include will be the last searched path, so hopefully some of the 'conflicts' found here will be resolved. In my initial testing, libevent no longer conflicts during build. I don't have the other conflicting ports installed right now, so I cannot vouch that my changes work for them (but, I will try to try them too).

Give me a bit to sort out the qt4-foo Portfile changes, try the upgrade, and if it still doesn't work then post back here & I'll try to fix it. If upgrading does work at that time, then IMHO we can close this ticket.

comment:74 Changed 14 years ago by michaelld (Michael Dickens)

Cc: michaelld@… added

Cc Me!

comment:75 Changed 14 years ago by michaelld (Michael Dickens)

More progress: By moving ${prefix}/include to the end of the CPATH, it looks like the conflict(s) from this ticket are fixed (along with some from other tickets). I'm still testing out the changes to this and ports that depend on qt4-mac, so not quite ready to commit -- but, soon.

comment:76 Changed 14 years ago by michaelld (Michael Dickens)

Owner: changed from erickt@… to michaelld@…

comment:77 Changed 14 years ago by michaelld (Michael Dickens)

Resolution: fixed
Status: newclosed

Fixed in r69277 .

comment:78 Changed 14 years ago by michaelld (Michael Dickens)

Resolution: fixed
Status: closedreopened

After more testing and another bug report (#25433), what I can say is that this is a subtle issue that's at least partly due to upstream issues with the way 'qmake' works (going back a ways, and through 4.7.0b1). I'm going to reopen this ticket and work on a quick fix (patching Makefile's with the flaw); a longer-term fix would come from upstream, so I'll look at the Qt tickets to see if this issue exists & if not add it.

comment:79 Changed 14 years ago by michaelld (Michael Dickens)

(Apologies to those on ticket #25459 where I posted this accidentally already.)

So I think the issues are:

  • For system-provided features (e.g., sqlite3), the include header path is added to the CXXFLAGS, which comes immediately after the ${CXX} command and before ${DEFINES}. Qt provides a variable INCLUDEPATH that is used for all of the other includes. So, I've created a post-patch reinplace to get Qt into appending any external header path to the end of the INCLUDEPATH instead of it being the first path -- this should provide a temporary (and reasonably quick) solution. The values being appended are for CFLAGS, so ideally they would be split into "-I stuff" and "the rest" and appended to those variables separately -- takes too long to work out how to do that, and this patch should work (I'm testing it right now to verify that ${prefix}/include is listed -after- the other -I directories).
  • For many of Qt's 3rd-party extensions, #include's just use the filename, e.g.,
    #include "KURL.h"
    

instead of a subdirectory that would better define the ownership of the file, e.g.,

#include "platform/KURL.h"

When developing a modern reasonably complex project that expects to #include from system or user-installed headers, it's -always- wise to both install into and use directory names for those headers in order to avoid #include'ing the incorrect file.

  • With respect to the previous point, the 'sqlite3' port installs 2 header files directly into ${prefix}/include -- it's this directory that Qt is picking up and including in the CXXFLAGS before all other header paths. So, moving sqlite3's headers into ${prefix}/include/sqlite3 would probably fix this issue as well.

comment:80 Changed 14 years ago by bjoern.ricks@…

Cc: bjoern.ricks@… added

Cc Me!

comment:81 in reply to:  79 ; Changed 14 years ago by raimue (Rainer Müller)

Cc: raimue@… added

Replying to michaelld@…:

  • With respect to the previous point, the 'sqlite3' port installs 2 header files directly into ${prefix}/include -- it's this directory that Qt is picking up and including in the CXXFLAGS before all other header paths. So, moving sqlite3's headers into ${prefix}/include/sqlite3 would probably fix this issue as well.

If this would be a problem for Qt in general, it would prevent compilation on any other platform as well. Usually sqlite3 headers would be in /usr/include without a sub directory. Moving sqlite3 headers would not be a good solution in my opinion.

comment:82 in reply to:  81 Changed 14 years ago by michaelld (Michael Dickens)

Replying to raimue@…:

If this would be a problem for Qt in general, it would prevent compilation on any other platform as well. Usually sqlite3 headers would be in /usr/include without a sub directory. Moving sqlite3 headers would not be a good solution in my opinion.

I've been thinking about what I wrote, and I've come to the same conclusion as you -- not for sqlite3 but in general. sqlite3 actually provides a pkg-config file, and (I think) most ports use that method to figure out how to include sqlite3; hence, I actually think for that particular port it wouldn't be a big issue. But, most ports do not install a pkg-config file and hence in general changing the header file install location is not a robust solution.

comment:83 Changed 14 years ago by michaelld (Michael Dickens)

An interesting side-effect of moving from using -I/-L to CPATH/LIBRARY_PATH, I'm 99% sure from testing today, and at least in qt4-* :

The produced libraries no longer link with the MacPorts-provided zlib and openssl libraries (possibly others). Why not? There is no way to select them specifically during configure, and by default the system includes and libraries are found first because the MacPorts paths are searched last. I came upon this issue when fixing some other ports during the qt4-* upgrade and wondered; so, now I think I know.

Solution, IMHO: Either explicitly tell configure what headers and libraries to use, or, when that is not possible, make sure MacPorts paths are first in the search at least during configure.

comment:84 Changed 14 years ago by michaelld (Michael Dickens)

Update on this ticket: There is no "truly optimal" solution for this issue without tweaking the #includes themselves in the Qt source. Without tweaking the source: Putting MacPorts paths first for searching will find the correct libraries and headers, but will result in the conflicts already found. Putting them last will resolve the conflicts -- I've verified that yesterday; took quite a bit of hacking to get all the paths last, but it does work -- but no longer uses certain MacPorts-provided libraries and headers.

IMHO the "best" solution given the above is (1) to patch any violating #includes in the Qt source to decrease the chances of finding that file in some external-to-Qt path (e.g., ${prefix}/include). I think this patching can be performed dynamically in the Portfile instead of using a static patch file. (2) Move MacPorts search paths to the front of the list in order for configure to find them.

So that's what I'll be working towards later today unless someone has a better suggestion. First, hopefully, some good sleep now, to be better prepared.

comment:85 in reply to:  84 ; Changed 14 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Replying to michaelld@…:

Update on this ticket: There is no "truly optimal" solution for this issue without tweaking the #includes themselves in the Qt source. Without tweaking the source: Putting MacPorts paths first for searching will find the correct libraries and headers, but will result in the conflicts already found. Putting them last will resolve the conflicts -- I've verified that yesterday; took quite a bit of hacking to get all the paths last, but it does work -- but no longer uses certain MacPorts-provided libraries and headers.

This may be a silly idea, but could we put the MacPorts paths first (no patching the source) but just for the libraries we need (thereby avoiding conflicts)?
For example, instead of -I${prefix}/include, we use something like (for zlib) -I${zlib_loc}/${prefix}/include, where ${zlib_loc} is found from the output
of port location zlib.

comment:86 Changed 14 years ago by michaelld (Michael Dickens)

Yes, that would probably work; I had no idea 'software' was installed in that way & that 'location' was provided by port either.

Before pursuing that path: I'm going to check in a change to the qt4-* Portfiles shortly that, I think, fix this ticket and #25476. These changes go back to using CPATH & such for all of the external-to-Qt includes & such (as before I started all of this), but in addition manually removes any -I/opt/local*/include from the CPATH for SQLITE and DBUS variables such that those paths no longer included in the (eventual) Makefile's C*FLAGS -- they are instead searched last (via the CPATH).

comment:87 Changed 14 years ago by michaelld (Michael Dickens)

OK; Hopefully fixed in r69365. Those for whom the current portfile does not work (or, if you just want to do so for kicks and grins), please do:

$ sudo port deactivate qt4-mac
$ sudo port sync
$ sudo port clean qt4-mac
$ sudo port install qt4-mac [+variants]

and let me know if that works. I've now tried these Portfile changes with all variants on, and it works for me -- but, of course, your installed files will be different than mine :)

comment:88 in reply to:  85 Changed 14 years ago by raimue (Rainer Müller)

Replying to mcalhoun@…:

This may be a silly idea, but could we put the MacPorts paths first (no patching the source) but just for the libraries we need (thereby avoiding conflicts)?
For example, instead of -I${prefix}/include, we use something like (for zlib) -I${zlib_loc}/${prefix}/include, where ${zlib_loc} is found from the output
of port location zlib.

You are talking about depot dependencies (there are also mailing list posts). As long as we have direct mode, this is not possible. It would also be mutual exclusive with the current images-and-archives plans, see #19458 and the corresponding branch.

comment:89 Changed 14 years ago by michaelld (Michael Dickens)

Resolution: fixed
Status: reopenedclosed

This ticket should be fixed in r69495. Please do, in this order:

$ sudo port sync
$ sudo port upgrade qt4_select
$ sudo qt4_select none
$ sudo port deactivate qt4-mac
$ sudo port install qt4-mac [+variants]

with the optional variants as desired. Upgrading with variants doesn't work well yet, in my testing. If all goes well, the errors listed above will not happen. I'm closing this ticket; please reopen if the above doesn't work.

Note: See TracTickets for help on using tickets.