Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#28993 closed defect (fixed)

Error building qt4-mac

Reported by: crispy1975@… Owned by: michaelld (Michael Dickens)
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc:
Port: qt4-mac

Description

Hi,

I'm new to MacPorts but so far all has worked well and I've replaced Debian Linux with Leopard (PPC), however I am trying to install qt4-mac with the ultimate aim of installing kdenlive. I cannot yet get qt4-mac to compile as it fails with the same error each time. Doing a dry run suggests that everything is present and correct on the system to go ahead with the build.

I've attached a snippet from the end of the build log with debugging output, and the only other things worth mentioning are that I have the following in variants.conf:

-ipv6 -universal

Also adjusted the build target in macports.conf to be ppc64 and the universal target to "ppc ppc64".

Thanks.

Attachments (4)

ct41g-08-05.pdf (44.3 KB) - added by crispy1975@… 13 years ago.
Tail of debug log for qt4-mac
debug.txt (81.2 KB) - added by crispy1975@… 13 years ago.
Tail of debug log for qt4-mac
qt4-mac_debug.log.bz2 (165.5 KB) - added by crispy1975@… 13 years ago.
Full qt4-mac debug log.
patch-PluginView-no-carbon.diff (1020 bytes) - added by michaelld (Michael Dickens) 13 years ago.
Patch for qt4-mac to fix PluginView for no Carbon (at least PPC64)

Download all attachments as: .zip

Change History (19)

Changed 13 years ago by crispy1975@…

Attachment: ct41g-08-05.pdf added

Tail of debug log for qt4-mac

Changed 13 years ago by crispy1975@…

Attachment: debug.txt added

Tail of debug log for qt4-mac

comment:1 Changed 13 years ago by crispy1975@…

Cc: crispy1975@… added

Cc Me!

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

Cc: crispy1975@… removed
Keywords: qt qt4 tool kit mac kdenlive removed
Owner: changed from macports-tickets@… to michaelld@…
Priority: HighNormal

What version of Mac OS X and Xcode are you running?

comment:3 Changed 13 years ago by crispy1975@…

This is from memory as I'm not at the Mac right now and only have ssh access...

Mac OS X 10.5.8 XCode 3.1.2

Also if this is any use the output of 'uname -a' is:

Darwin Power-Mac-G5.local 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:57:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_PPC Power Macintosh

comment:4 Changed 13 years ago by michaelld (Michael Dickens)

I need the whole debug log, to make a better assessment of this issue. If you have that on hand, you'll probably want to compress it before attaching to this ticket. If you don't have it, please 'clean' your current qt4-mac install and then reinstall it (yes, I know it takes a long time, and even longer I assume on 10.5 / PPC64); if/when it breaks again, please compress and upload that log file.

Changed 13 years ago by crispy1975@…

Attachment: qt4-mac_debug.log.bz2 added

Full qt4-mac debug log.

comment:5 Changed 13 years ago by crispy1975@…

No problem, the snippet I pasted was from a complete log file, it's compressed and attached to this ticket.

comment:6 Changed 13 years ago by michaelld (Michael Dickens)

Hmm ... well, PluginView::nullEventTimerFired is supposed to be defined at "src/3rdparty/webkit/WebCore/plugins/mac/PluginViewMac.mm:685", and is enclosed by "#ifndef NP_NO_CARBON". This method is used solely at "src/3rdparty/webkit/WebCore/plugins/mac/PluginViewMac.mm:236", which is not enclosed by the #ifndef. This method is defined at "src/3rdparty/webkit/WebCore/plugins/PluginView.h:363", again without the #ifndef around it. So, maybe, NP_NO_CARBON is actually defined for your platform? Seems like a stretch since all of the libraries in the debug log are linked against "-framework Carbon", but programmaticly it's the only thing that makes sense. If you're a programmer type, can you add the "#ifndef NP_NO_CARBON" around those lines of code, such that all 3 places work or not depending on that switch? If you're not, let me know & I'll create a patch.

comment:7 Changed 13 years ago by michaelld (Michael Dickens)

I'm wondering if this is a PPC64 issue. Have you tried compiling qt4-mac for just PPC (32)?

comment:8 Changed 13 years ago by crispy1975@…

I can add the lines of code no problem, I'll do that first, then try compiling again. If that fails I'll give PPC a go over PPC64 and report back.

comment:9 Changed 13 years ago by crispy1975@…

Success! Wrapping those lines of code in the if statements resulted in qt4-mac compiling and installing without error.

comment:10 Changed 13 years ago by jmroot (Joshua Root)

There is no 64-bit version of most of Carbon. That includes ppc64.

Changed 13 years ago by michaelld (Michael Dickens)

Patch for qt4-mac to fix PluginView for no Carbon (at least PPC64)

comment:11 Changed 13 years ago by michaelld (Michael Dickens)

Great! I just attached a patch that I think does what you did. Can you verify it before I update qt4-mac? Sorry to say, but Qt just released a patch to handle the bad certs issues a few weeks back -- so, if you keep your MacPorts install up to date, you get to rebuild for it! Wish there were a better way, e.g., to do incremental builds. Way beyond my pay grade here though ;)

comment:12 Changed 13 years ago by crispy1975@…

I actually only put the #ifndef around the call at line 236, as my build has broken down at a later stage (glibc) I don't mind cleaning, removing, and then rebuilding to see if the patch will work from scratch. At one point another build couldn't find cmake until I make a symlink.

Will try the patch out and report back.

comment:13 Changed 13 years ago by crispy1975@…

Ok, I uninstalled qt4-mac, cleaned it out, and then synced the MacPorts tree. Then I downloaded your patch into the correct port directory and edited the port file to add the following under the other patches...

# (6) Patch for Carbon on PPC64 10.5 patchfiles-append patch-PluginView-no-carbon.diff

Saved that, then ran 'sudo port -d install qt4-mac' and it compiled perfectly.

comment:14 Changed 13 years ago by michaelld (Michael Dickens)

Resolution: fixed
Status: newclosed

Fixed in r77577. Thanks for your assistance & promptness! Sorry about all the re-compiling; I know it takes a long time.

comment:15 Changed 13 years ago by crispy1975@…

All good. I don't mind assisting with any PPC64 stuff, my G5 is a file server here so can spare the CPU cycles and it doesn't affect my workflow at all.

Note: See TracTickets for help on using tickets.