[MacPorts] #22078: qt4-mac-4.5.3 fails to compile on OSX 10.6 x86_64
#22078: qt4-mac-4.5.3 fails to compile on OSX 10.6 x86_64 ------------------------------------+--------------------------------------- Reporter: harrisonmetz@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: | Port: ------------------------------------+--------------------------------------- qt4-mac-4.5.3 fails to compile on OSX 10.6 x86_64 Using latest macports and latest port tree (as of bug report time) {{{ ---> Computing dependencies for qt4-mac ---> Fetching qt4-mac ---> Attempting to fetch qt-mac-opensource-src-4.5.3.tar.gz from ftp://ftp.trolltech.com/qt/source/ ---> Verifying checksum(s) for qt4-mac ---> Extracting qt4-mac ---> Applying patches to qt4-mac ---> Configuring 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: .moc/debug-shared/q3filedialog.moc:303: error: redefinition of 'const QMetaObject* metaObject()' .moc/debug-shared/moc_q3filedialog.cpp:43: error: 'const QMetaObject* metaObject()' previously defined here .moc/debug-shared/q3filedialog.moc: At global scope: .moc/debug-shared/q3filedialog.moc:308: error: 'QFDProgressDialog' has not been declared .moc/debug-shared/q3filedialog.moc: In function 'void* qt_metacast(const char*)': .moc/debug-shared/q3filedialog.moc:308: error: redefinition of 'void* qt_metacast(const char*)' .moc/debug-shared/moc_q3filedialog.cpp:48: error: 'void* qt_metacast(const char*)' previously defined here .moc/debug-shared/q3filedialog.moc:312: error: expected type-specifier before 'QFDProgressDialog' .moc/debug-shared/q3filedialog.moc:312: error: expected `>' before 'QFDProgressDialog' .moc/debug-shared/q3filedialog.moc:312: error: expected `(' before 'QFDProgressDialog' .moc/debug-shared/q3filedialog.moc:312: error: 'QFDProgressDialog' was not declared in this scope .moc/debug-shared/q3filedialog.moc:312: error: expected primary-expression before '>' token .moc/debug-shared/q3filedialog.moc:312: error: invalid use of 'this' in non-member function .moc/debug-shared/q3filedialog.moc:312: error: expected `)' before ';' token .moc/debug-shared/q3filedialog.moc:313: error: cannot call member function 'virtual void* QDialog::qt_metacast(const char*)' without object .moc/debug-shared/q3filedialog.moc: At global scope: .moc/debug-shared/q3filedialog.moc:316: error: 'QFDProgressDialog' has not been declared .moc/debug-shared/q3filedialog.moc: In function 'int qt_metacall(QMetaObject::Call, int, void**)': .moc/debug-shared/q3filedialog.moc:316: error: redefinition of 'int qt_metacall(QMetaObject::Call, int, void**)' .moc/debug-shared/moc_q3filedialog.cpp:56: error: 'int qt_metacall(QMetaObject::Call, int, void**)' previously defined here .moc/debug-shared/q3filedialog.moc:318: error: cannot call member function 'virtual int QDialog::qt_metacall(QMetaObject::Call, int, void**)' without object .moc/debug-shared/q3filedialog.moc:323: error: 'cancelled' was not declared in this scope .moc/debug-shared/q3filedialog.moc: At global scope: .moc/debug-shared/q3filedialog.moc:332: error: 'QFDProgressDialog' has not been declared .moc/debug-shared/q3filedialog.moc: In function 'void cancelled()': .moc/debug-shared/q3filedialog.moc:334: error: invalid use of 'this' in non-member function lipo: can't figure out the architecture type of: /var/tmp//ccZ4mx1e.out make[2]: *** [.obj/debug-shared/q3filedialog.o] Error 1 make[1]: *** [debug-all] Error 2 make: *** [sub-qt3support-make_default-ordered] Error 2 Error: Unable to upgrade port: 1 }}} -- Ticket URL: <http://trac.macports.org/ticket/22078> MacPorts <http://www.macports.org/> Ports system for Mac OS
#22078: qt4-mac-4.5.3 fails to compile on OSX 10.6 x86_64 ------------------------------------+--------------------------------------- Reporter: harrisonmetz@… | Owner: erickt@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: | Port: qt4-mac ------------------------------------+--------------------------------------- Changes (by jmr@…): * cc: clubjuggler@… (added) * owner: macports-tickets@… => erickt@… * port: => qt4-mac -- Ticket URL: <http://trac.macports.org/ticket/22078#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#22078: qt4-mac-4.5.3 fails to compile on OSX 10.6 x86_64 ------------------------------------+--------------------------------------- Reporter: harrisonmetz@… | Owner: erickt@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: | Port: qt4-mac ------------------------------------+--------------------------------------- Comment(by snc@…): qt4-mac-4.5.3_0 built for me on x86_64. -- Ticket URL: <http://trac.macports.org/ticket/22078#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#22078: qt4-mac-4.5.3 fails to compile on OSX 10.6 x86_64 ------------------------------------+--------------------------------------- Reporter: harrisonmetz@… | Owner: erickt@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: | Port: qt4-mac ------------------------------------+--------------------------------------- Comment(by harrisonmetz@…): I should mention I'm trying to build it as +universal, @snc how about you? -- Ticket URL: <http://trac.macports.org/ticket/22078#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#22078: qt4-mac-4.5.3 fails to compile on OSX 10.6 x86_64 ------------------------------------+--------------------------------------- Reporter: harrisonmetz@… | Owner: erickt@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: | Port: qt4-mac ------------------------------------+--------------------------------------- Comment(by faisal.moledina@…): I added my debug build failure log for qt4-mac on the page for ticket #22802. -- Ticket URL: <http://trac.macports.org/ticket/22078#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#22078: qt4-mac-4.5.3 fails to compile on OSX 10.6 x86_64 ------------------------------------+--------------------------------------- Reporter: harrisonmetz@… | Owner: erickt@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: | Port: qt4-mac ------------------------------------+--------------------------------------- Comment(by vince@…): I have successfully compiled qt 4.5.3 on both i386 and x86_64, but I explicitly forewent the qt3 compatibility by adding an additional flag in the Portfile. -- Ticket URL: <http://trac.macports.org/ticket/22078#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#22078: qt4-mac-4.5.3 fails to compile on OSX 10.6 x86_64 ------------------------------------+--------------------------------------- Reporter: harrisonmetz@… | Owner: erickt@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: | Port: qt4-mac ------------------------------------+--------------------------------------- Comment(by dersh@…): I built it just fine with the default variant. Then, I realized that I need +universal, and tried to rebuilt it that way, and got the same error as above. -- Ticket URL: <http://trac.macports.org/ticket/22078#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
#22078: qt4-mac-4.5.3 fails to compile on OSX 10.6 x86_64 ------------------------------------+--------------------------------------- Reporter: harrisonmetz@… | Owner: erickt@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: | Port: qt4-mac ------------------------------------+--------------------------------------- Comment(by vince@…): Qt3 back compatibility should definitely be disabled when building universal (and especially 64-bit) -- Ticket URL: <http://trac.macports.org/ticket/22078#comment:11> MacPorts <http://www.macports.org/> Ports system for Mac OS
#22078: qt4-mac-4.5.3 fails to compile on OSX 10.6 x86_64 ------------------------------------+--------------------------------------- Reporter: harrisonmetz@… | Owner: erickt@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: | Port: qt4-mac ------------------------------------+--------------------------------------- Comment(by kthenriksson@…): I can confirm what Vince said a couple months ago: with QT3 disabled, it compiles fine as +universal. Because universal means different things to different people, I didn't want to change the universal variant, as an "x86 ppc" universal build should still work fine. I attached a patch that adds a variant which disables QT3, and building +universal+noqt3 works fine for me. If there is some better way to automagically determine what kind of universal build we're doing and disable QT3 only when necessary, that may be better but for now this is a working workaround. -- Ticket URL: <http://trac.macports.org/ticket/22078#comment:13> MacPorts <http://www.macports.org/> Ports system for Mac OS
#22078: qt4-mac-4.5.3 fails to compile on OSX 10.6 x86_64 ------------------------------------+--------------------------------------- Reporter: harrisonmetz@… | Owner: erickt@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: | Port: qt4-mac ------------------------------------+--------------------------------------- Comment(by sharky@…): Could you please retry with qt4-mac 4.6.0? -- Ticket URL: <http://trac.macports.org/ticket/22078#comment:15> MacPorts <http://www.macports.org/> Ports system for Mac OS
#22078: qt4-mac-4.5.3 fails to compile on OSX 10.6 x86_64 ------------------------------------+--------------------------------------- Reporter: harrisonmetz@… | Owner: erickt@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: | Port: qt4-mac ------------------------------------+--------------------------------------- Comment(by kthenriksson@…): After several hours compiling I can confirm that this is fixed in 4.6.0. I just successfully compiled +universal on Snow Leopard. Nice work to the Qt developers for fixing this. Thanks for uploading the new version sharky! -- Ticket URL: <http://trac.macports.org/ticket/22078#comment:17> MacPorts <http://www.macports.org/> Ports system for Mac OS
#22078: qt4-mac-4.5.3 fails to compile on OSX 10.6 x86_64 -------------------------------------+-------------------------------------- Reporter: harrisonmetz@… | Owner: erickt@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Resolution: fixed | Keywords: Port: qt4-mac | -------------------------------------+-------------------------------------- Changes (by sharky@…): * status: new => closed * resolution: => fixed -- Ticket URL: <http://trac.macports.org/ticket/22078#comment:18> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts