Opened 12 years ago
Closed 12 years ago
#35313 closed defect (fixed)
qt4-mac: Undefined symbols _objc_msgSend_fixup
Reported by: | itiunov@… | Owned by: | michaelld (Michael Dickens) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.1.1 |
Keywords: | mountainlion, haspatch | Cc: | crazymykl@…, g5pw (Aljaž Srebrnič), bm55b@…, zoleg@…, barbrel@…, tlui@…, mat@…, ctreleaven (Craig Treleaven), elventear (Pepe Barbe), ryandesign (Ryan Carsten Schmidt), soehn@…, maehne (Torsten Maehne), dcecchin@…, 3add3287 (3add3287), lawrence.ong@…, derekathomas@…, Stochasticus@…, anthonygelibert (Anthony Gelibert), kuenstler@…, blaise.frederick@…, j@…, eborisch (Eric A. Borisch), brett.higgins@…, meyumer@…, jess.morecroft@…, creaktive (Stanislaw Pusep), vincent.liegeois@…, dhuffkc@…, marklivingstone (Mark Livingstone), Ruslan.Zakirov@…, miguelbarao (MB), billmag687@…, fondacio@… |
Port: | qt4-mac |
Description
Can't install qt4-mac...
Ivan-Tiunovs-iMac:cgru iTiunov$ sudo port install qt4-mac ---> Computing dependencies for qt4-mac ---> Fetching archive for qt4-mac ---> Attempting to fetch qt4-mac-4.8.2_0+quartz.darwin_12.x86_64.tbz2 from http://packages.macports.org/qt4-mac ---> Fetching distfiles for qt4-mac ---> Verifying checksum(s) for qt4-mac ---> Extracting qt4-mac ---> Applying patches to qt4-mac ---> Configuring qt4-mac ---> Building qt4-mac Error: org.macports.build for port qt4-mac returned: command execution failed Please see the log file for port qt4-mac for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_qt4-mac/qt4-mac/main.log To report a bug, follow the instructions in the guide: http://guide.macports.org/#project.tickets Error: Processing of port qt4-mac failed
Attachments (5)
Change History (66)
Changed 12 years ago by itiunov@…
comment:2 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
Keywords: | mountainlion added; Error Build removed |
---|---|
Owner: | changed from macports-tickets@… to michaelld@… |
Summary: | qt4-mac @4.8.2_0 +quartz Build error - build failure" → qt4-mac: Undefined symbols _objc_msgSend_fixup |
Are you running Mountain Lion?
Clearly ("darwin_12") he is.
The relevant error in the log seems to be:
:info:build Undefined symbols for architecture x86_64: :info:build "_objc_msgSend_fixup", referenced from: :info:build l_objc_msgSend_fixup_autorelease in qlocale_mac.o :info:build ld: symbol(s) not found for architecture x86_64
comment:3 Changed 12 years ago by dhayden18@…
I get the same, OSX 10.8, XCode 4.4, both with and without +framework +mysql +debug
comment:4 Changed 12 years ago by crazymykl@…
Adding
-framework Foundation
to the LIBS line of
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_qt4-mac/qt4-mac/work/qt-everywhere-opensource-src-4.8.2/src/corelib/Makefile
fixes the build.
comment:6 Changed 12 years ago by crazymykl@…
This is as far as it gets with my fix. This WebKit issue seems a bit harder to track than the last was.
comment:8 Changed 12 years ago by itiunov@…
comment:9 Changed 12 years ago by Veence (Vincent)
Well, I have tinkered with Qt for a while, but didn’t get anything satisfactory on ML. I guess we’ll have to wait until the next Qt version is out. With Nokia floundering, I wonder how many developers are still put on Qt…
comment:11 Changed 12 years ago by crazymykl@…
Adding
../../../WebKitLibraries/libWebKitSystemInterfaceLion.a
to the LIBS line of
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_qt4-mac/qt4-mac/work/qt-everywhere-opensource-src-4.8.2/src/3rdparty/webkit/Source/WebKit/qt
lets the build continue, but it's obviously a kluge. Newer versions of WebKit have libWebKitSystemInterfaceMountainLion.a, which would be the correct solution.
comment:12 Changed 12 years ago by crazymykl@…
The build completed successfully with my two alterations (comments 4 and 11).
comment:13 Changed 12 years ago by francois.lagunas@…
I had your issues, plus some issues with libtiff, libjpeg and libmng that were not found at compilation.
I had to add manually :
-I/opt/local/include
in the INCPATH and
-L/opt/local/lib -lmng
in the LIBS part of :
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_qt4-mac/qt4-mac/work/qt-everywhere-opensource-src-4.8.2/src/plugins/imageformats/mng/
And same thing with libjpeg and libtiff.
I suppose those Makefiles are generated somewhere, but I don't know where.
comment:16 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | barbrel@… added |
---|
Has duplicate #35346.
Changed 12 years ago by mat@…
Attachment: | main.3.log added |
---|
comment:18 Changed 12 years ago by mat@…
Did all the manual patches francois came up with, now I get the error's in main.3.log - similar to those listed in the qt-forums: http://qt-project.org/forums/viewthread/19117/ Did anyone else experience those?
comment:21 Changed 12 years ago by mat@…
I used the changes to Qt/Webkit from this patch (currently in code review): https://codereview.qt-project.org/#change,31646 So you can get the to-be-new version of QtWebKit.pro from here: https://codereview.qt-project.org/cat/31646%2C2%2Csrc/3rdparty/webkit/Source/WebKit/qt/QtWebKit.pro%5E0 And libWebKitSystemInterfaceMountainLion.a from here: http://svn.webkit.org/repository/webkit/trunk/WebKitLibraries/libWebKitSystemInterfaceMountainLion.a Then copy them to their respective places in the work directory (named in the qt-patch). Now it works - for the folks who can't wait for the code reviews to be done.
comment:27 Changed 12 years ago by dcecchin@…
This will probably need to be fixed upstream I'm seeing a lot of: warning: #warning "This version of Mac OS X is unsupported" on 10.8.
comment:28 Changed 12 years ago by muthaofdood@…
I can confirm that crazymykl's two suggestions let me build. Except that his instructions were a little incomplete. There are two Makefiles in
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_qt4-mac/qt4-mac/work/qt-everywhere-opensource-src-4.8.2/src/3rdparty/webkit/Source/WebKit/qt
I put
../../../WebKitLibraries/libWebKitSystemInterfaceLion.a
in the LIBS lines of both of them. (Not sure if both need it, but it didn't break anything.
comment:33 Changed 12 years ago by anthonygelibert (Anthony Gelibert)
Cc: | anthony.gelibert@… added |
---|
Cc Me!
comment:45 Changed 12 years ago by marklivingstone (Mark Livingstone)
Cc: | livingstonemark@… added |
---|
Cc Me!
comment:47 Changed 12 years ago by Ruslan.Zakirov@…
comment:49 Changed 12 years ago by eborisch (Eric A. Borisch)
Keywords: | haspatch added |
---|
I'm attaching a patch to the portfile (which just adds a patchfile) and a patchfile that implements the two changes that let it compile for me... try it out and see if it works.
Changed 12 years ago by eborisch (Eric A. Borisch)
Attachment: | Portfile.diff added |
---|
Changed 12 years ago by eborisch (Eric A. Borisch)
Attachment: | patch-ML-fixes.diff added |
---|
comment:50 follow-up: 55 Changed 12 years ago by zoleg@…
but libWebKitSystemInterfaceMountainLion.a also needed
comment:51 Changed 12 years ago by zoleg@…
best use patchset 3 from https://codereview.qt-project.org/#change,31759
comment:53 Changed 12 years ago by michaelld (Michael Dickens)
I've been following this, trying to get 10.8 installed on an external drive so that I can test it out. Please keep reporting on progress and success; I'll get to this when I can test it, if some other developer doesn't get to it first.
comment:54 Changed 12 years ago by nicolas.leclercq.fr@…
The "Portfile.diff" (see attachments) worked for me (Mountain Lion + XCode 4.4).
comment:55 Changed 12 years ago by eborisch (Eric A. Borisch)
Replying to zoleg@…:
but libWebKitSystemInterfaceMountainLion.a also needed
It compiles/installes and the items I've been able to check (not many yet, mainly wanted to get py27-spder running) work fine without the new lib (just updating the logic to use the "non-Mountain" Lion version) ...
Is there something fundamentally broken when linked agains the old lib (vs. new functionality missing?)
comment:60 Changed 12 years ago by meyumer@…
I have successfully got qt4-mac built and working (on darwin 12) with the patch given here: r96204
Previously, I was getting the same errors mentioned in this Issue.
comment:61 Changed 12 years ago by michaelld (Michael Dickens)
Resolution: | → fixed |
---|---|
Status: | new → closed |
r96204, in my testing, should correct this issue. I'm sure the Qt folks will integrate such changes in the Qt QMake build system in a soon-to-be-released version (e.g., 4.8.3). But, for now, I think this ticket is fixed so I'm closing it as such. Thanks for dealing with this, MP users and eborisch. I'm going to incorporate another bunch of fixes shortly, which will require a rev-bump (sorry).
Log...