Opened 15 years ago

Closed 15 years ago

#23073 closed defect (duplicate)

qt4-mac 4.5.3 Fails to Build on OS X 10.6.2

Reported by: rishi.j.sanyal@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.8.1
Keywords: Cc:
Port: qt4-mac

Description (last modified by mf2k (Frank Schima))

Hi,

I had qt4-mac 4.5.2 install & compile (via macports) just fine under OS X Snow Leopard (10.6.2).

However, when I updated my macports installation (to 1.8.1), and then went to upgrade all my ports, macports, naturally, attempted to install the newest qt4-mac; that is, 4.5.3.

However, it fails to build, giving me the following message:

--->  Computing dependencies for qt4-mac
--->  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.3" && /usr/bin/make -j2 first " returned error 2
Command output: 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
In file included from generated/JSDOMWindow.h:25,
                 from bindings/js/GCController.cpp:29:
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/release-shared/GCController.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 -O2 -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5 -fconstant-cfstrings -Wreturn-type -fno-strict-aliasing -I/opt/local/include -gdwarf-2 -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5 -fvisibility=hidden -fvisibility-inlines-hidden -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_rsync.macports.org_release_ports_aqua_qt4-mac/work/qt-mac-opensource-src-4.5.3/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_rsync.macports.org_release_ports_aqua_qt4-mac/work/qt-mac-opensource-src-4.5.3/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_rsync.macports.org_release_ports_aqua_qt4-mac/work/qt-mac-opensource-src-4.5.3/lib -o .obj/debug-shared/JSClipboardCustom.o bindings/js/JSClipboardCustom.cpp
make[2]: *** [.obj/debug-shared/GCController.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from platform/network/qt/ResourceResponse.h:29,
                 from loader/CachedResource.h:28,
                 from loader/CachedResourceHandle.h:29,
                 from dom/Clipboard.h:27,
                 from bindings/js/JSClipboardCustom.cpp:32:
platform/network/ResourceResponseBase.h:126: error: field 'm_url' has incomplete type
platform/network/ResourceResponseBase.h: In constructor 'WebCore::ResourceResponseBase::ResourceResponseBase(const WebCore::KURL&, const WebCore::String&, long long int, const WebCore::String&, const WebCore::String&)':
platform/network/ResourceResponseBase.h:105: error: class 'WebCore::ResourceResponseBase' does not have any field named 'm_url'
make[2]: *** [.obj/debug-shared/JSClipboardCustom.o] Error 1
make[1]: *** [debug-all] Error 2
make: *** [sub-webkit-make_default-ordered] Error 2

Seems that the problem starts with an error in DOMWindow.h. Attached is a text file with the error, in case the above is hard to read.

No luck in the last 2 weeks. Any ideas?

Thank you, Rishi

Attachments (1)

qt4-mac_error.txt (6.0 KB) - added by rishi.j.sanyal@… 15 years ago.
qt4-mac error message

Download all attachments as: .zip

Change History (3)

Changed 15 years ago by rishi.j.sanyal@…

Attachment: qt4-mac_error.txt added

qt4-mac error message

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

Description: modified (diff)
Keywords: qt4 qt4-mac removed

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

Resolution: duplicate
Status: newclosed

Looks like a duplicate of #20199. See that ticket for a workaround.

Note: See TracTickets for help on using tickets.