Adium

Ticket #10308 (closed patch)

Opened 12 months ago

Last modified 2 months ago

Cannot build with gcc 4.2

Reported by: rgovostes Owned by: nobody
Milestone: Component: Adium Core
Version: 1.2.5 Severity: normal
Keywords: Cc:
Patch Status: Needs Dev Review

Description

The 10.4u and 10.5 SDKs do not include headers required to build FriBidi, JSON, and RBSplitView, required components of Adium with gcc version 4.2.1, which is default on some systems.

You can determine which version of gcc is default by opening Terminal and typing gcc --version:

i686-apple-darwin9-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5564)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Workaround A

You can configure these projects to use GCC 4.0. See the attached patch to take care of this for you.

Workaround B

If you are on Mac OS X 10.5 "Leopard", you may become a registered iPhone developer and  download the iPhone SDK. Then change the projects above to use the 10.5 SDK.

Workaround C

This may have unintended consequences but is easy to revert: You can make a link within your 10.4u SDK to use the headers in another SDK. For instance, if you have the iPhone SDK installed as above, you could run (substituting darwin9 with the release of your kernel):

sudo ln -s /Developer/SDKs/MacOSX10.5.sdk/usr/lib/gcc/i686-apple-darwin9/4.2.1 /Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin9/4.2.1
sudo ln -s /Developer/SDKs/MacOSX10.5.sdk/usr/lib/gcc/powerpc-apple-darwin9/4.2.1 /Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/powerpc-apple-darwin9/4.2.1

Or, if you do not have the iPhone SDK, you may simply use the 4.0.1 headers:

sudo ln -s /Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1 /Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin9/4.2.1

Attachments

use-gcc-4.0.diff (11.4 KB) - added by rgovostes 12 months ago.

Change History

Changed 12 months ago by rgovostes

Changed 12 months ago by rgovostes

If you are compiling dependencies via the build scripts in Utilities/dep-build-scripts/, you may want to force it to use gcc 4.0.1 rather than 4.2.1. Edit the common.sh script, and find the line

SDK_ROOT="/Developer/SDKs/MacOSX10.4u.sdk"

Above it, add,

export CC=/usr/bin/gcc-4.0

Changed 11 months ago by rgovostes

  • summary changed from Cannot build Deployment-Debug with gcc 4.2 to Cannot build with gcc 4.2

Changed 6 months ago by Robby

  • patch_status changed from Initially Included to Needs Dev Review

Changed 3 months ago by Robby

  • type changed from defect to patch

Changed 2 months ago by zacw

  • status changed from new to closed

Closing all waiting on apple tickets. These just take up space, and are largely ignored anyway. Any functionality we need but cannot add due to apple is a good radar to file, but we are not apple's tracker.

Changed 2 months ago by anonymous

  • milestone Waiting on Apple deleted

Milestone Waiting on Apple deleted

Note: See TracTickets for help on using tickets.