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)

main.log (948.3 KB) - added by itiunov@… 12 years ago.
Log…
main.2.log (66.8 KB) - added by crazymykl@… 12 years ago.
log after my first change
main.3.log (66.4 KB) - added by mat@… 12 years ago.
Portfile.diff (510 bytes) - added by eborisch (Eric A. Borisch) 12 years ago.
patch-ML-fixes.diff (1.1 KB) - added by eborisch (Eric A. Borisch) 12 years ago.

Download all attachments as: .zip

Change History (66)

Changed 12 years ago by itiunov@…

Attachment: main.log added

Log...

comment:1 Changed 12 years ago by Veence (Vincent)

Are you running Mountain Lion?

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:5 Changed 12 years ago by crazymykl@…

Cc: crazymykl@… added

Cc Me!

Changed 12 years ago by crazymykl@…

Attachment: main.2.log added

log after my first change

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:7 Changed 12 years ago by tlui@…

Cc Me!

comment:8 in reply to:  1 Changed 12 years ago by itiunov@…

Replying to vince@…:

Are you running Mountain Lion?

Yes...

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:10 Changed 12 years ago by g5pw (Aljaž Srebrnič)

Cc: g5pw@… added

Cc Me!

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:14 Changed 12 years ago by bm55b@…

Cc: bm55b@… added

Cc Me!

comment:15 Changed 12 years ago by zoleg@…

Cc: zoleg@… added

Cc Me!

comment:16 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: barbrel@… added

Has duplicate #35346.

comment:17 Changed 12 years ago by tlui@…

Cc: tlui@… added

Cc Me!

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:19 Changed 12 years ago by mat@…

Cc: mat@… added

Cc Me!

comment:20 Changed 12 years ago by ctreleaven (Craig Treleaven)

Cc: ctreleaven@… added

Cc Me!

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:22 Changed 12 years ago by elventear (Pepe Barbe)

Cc: elventear@… added

Cc Me!

comment:23 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added

Cc Me!

comment:24 Changed 12 years ago by soehn@…

Cc: soehn@… added

Cc Me!

comment:25 Changed 12 years ago by maehne (Torsten Maehne)

Cc: Torsten.Maehne@… added

Cc Me!

comment:26 Changed 12 years ago by dcecchin@…

Cc: dcecchin@… added

Cc Me!

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:29 Changed 12 years ago by 3add3287 (3add3287)

Cc: torstenb@… added

Cc Me!

comment:30 Changed 12 years ago by lawrence.ong@…

Cc: lawrence.ong@… added

Cc Me!

comment:31 Changed 12 years ago by derekathomas@…

Cc: derekathomas@… added

Cc Me!

comment:32 Changed 12 years ago by Stochasticus@…

Cc: Stochasticus@… added

Cc Me!

comment:33 Changed 12 years ago by anthonygelibert (Anthony Gelibert)

Cc: anthony.gelibert@… added

Cc Me!

comment:34 Changed 12 years ago by kuenstler@…

Cc: kuenstler@… added

Cc Me!

comment:35 Changed 12 years ago by blaise.frederick@…

Cc: blaise.frederick@… added

Cc Me!

comment:36 Changed 12 years ago by j@…

Cc: j@… added

Cc Me!

comment:37 Changed 12 years ago by eborisch (Eric A. Borisch)

Cc: eborisch@… added

Cc Me!

comment:38 Changed 12 years ago by brett.higgins@…

Cc: brett.higgins@… added

Cc Me!

comment:39 Changed 12 years ago by meyumer@…

CC Me!

comment:40 Changed 12 years ago by meyumer@…

Cc: meyumer@… added

Cc Me!

comment:41 Changed 12 years ago by jess.morecroft@…

Cc: jess.morecroft@… added

Cc Me!

comment:42 Changed 12 years ago by creaktive (Stanislaw Pusep)

Cc: stas@… added

Cc Me!

comment:43 Changed 12 years ago by vincent.liegeois@…

Cc: vincent.liegeois@… added

Cc Me!

comment:44 Changed 12 years ago by dhuffkc@…

Cc: dhuffkc@… added

Cc Me!

comment:45 Changed 12 years ago by marklivingstone (Mark Livingstone)

Cc: livingstonemark@… added

Cc Me!

comment:46 Changed 12 years ago by Ruslan.Zakirov@…

Cc: Ruslan.Zakirov@… added

Cc Me!

comment:47 Changed 12 years ago by Ruslan.Zakirov@…

Hi,

I believe the following patch should help:

https://codereview.qt-project.org/#change,31759

comment:48 Changed 12 years ago by asgerdrewsen@…

Cc: asgerdrewsen@… added

Cc Me!

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 Changed 12 years ago by zoleg@…

but libWebKitSystemInterfaceMountainLion.a also needed

comment:51 Changed 12 years ago by zoleg@…

comment:52 Changed 12 years ago by miguelbarao (MB)

Cc: miguel.barao@… added

Cc Me!

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 in reply to:  50 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:56 Changed 12 years ago by billmag687@…

Cc: billmag687@… added

Cc Me!

comment:57 Changed 12 years ago by asgerdrewsen@…

Cc: asgerdrewsen@… removed

Cc Me!

comment:58 Changed 12 years ago by fondacio@…

Cc: fondacio@… added

Cc Me!

comment:59 Changed 12 years ago by eborisch (Eric A. Borisch)

Hopefully addressed in r96204.

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: newclosed

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).

Note: See TracTickets for help on using tickets.