Opened 15 years ago

Closed 15 years ago

#22078 closed defect (fixed)

qt4-mac-4.5.3 fails to compile on OSX 10.6 x86_64

Reported by: harrisonmetz@… Owned by: erickt@…
Priority: Normal Milestone:
Component: ports Version: 1.8.1
Keywords: Cc: clubjuggler@…, hsivank@…, a.vincelli@…, faisal.moledina@…, dershow, mf2k (Frank Schima), kthenriksson@…, sharky@…
Port: qt4-mac

Description

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

Attachments (2)

qt4-mac-debug-build.log.gz (126.5 KB) - added by faisal.moledina@… 15 years ago.
Build failure on 10.6.2
noqt3.patch (539 bytes) - added by kthenriksson@… 15 years ago.
Adds noqt3 variant to qt4-mac

Download all attachments as: .zip

Change History (20)

comment:1 Changed 15 years ago by jmroot (Joshua Root)

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

comment:2 Changed 15 years ago by hsivank@…

Cc: hsivank@… added

Cc Me!

comment:3 Changed 15 years ago by nerdling (Jeremy Lavergne)

qt4-mac-4.5.3_0 built for me on x86_64.

comment:4 Changed 15 years ago by harrisonmetz@…

I should mention I'm trying to build it as +universal, @snc how about you?

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

Cc: a.vincelli@… added

Cc Me!

comment:6 Changed 15 years ago by faisal.moledina@…

Cc: faisal.moledina@… added

Cc Me!

comment:7 Changed 15 years ago by faisal.moledina@…

I added my debug build failure log for qt4-mac on the page for ticket #22082.

comment:8 Changed 15 years ago by Veence (Vincent)

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.

comment:9 Changed 15 years ago by dershow

Cc: dersh@… added

Cc Me!

comment:10 Changed 15 years ago by dershow

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.

comment:11 Changed 15 years ago by Veence (Vincent)

Qt3 back compatibility should definitely be disabled when building universal (and especially 64-bit)

Changed 15 years ago by faisal.moledina@…

Attachment: qt4-mac-debug-build.log.gz added

Build failure on 10.6.2

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

Cc: macsforever2000@… added

Cc Me!

Changed 15 years ago by kthenriksson@…

Attachment: noqt3.patch added

Adds noqt3 variant to qt4-mac

comment:13 Changed 15 years ago 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.

comment:14 Changed 15 years ago by kthenriksson@…

Cc: kthenriksson@… added

Cc Me!

comment:15 Changed 15 years ago by sharky@…

Could you please retry with qt4-mac 4.6.0?

comment:16 Changed 15 years ago by sharky@…

Cc: sharky@… added

Cc Me!

comment:17 Changed 15 years ago 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!

comment:18 Changed 15 years ago by sharky@…

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.