Closed Bug 299213 Opened 20 years ago Closed 19 years ago

Mac PPC build fails, Xcode 2.1 and no SDK or deployment target set

Categories

(Firefox Build System :: General, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: mark, Assigned: mark)

Details

Attachments

(1 file)

Follow-up to bug 298529.  The system's root SDK (/usr/include, etc.) is the
10.4u SDK under Xcode 2.1.  API changes prevent it from working, and foreclose a
clean workaround in code or preprocessor conditionals.

Workaround: when Xcode 2.1 is installed, use a SDK other than the 10.4u SDK by
using --with-macos-sdk.  10.2.8, 10.3.9, and 10.4.0 are all tested and
functional.  10.2.8 is currently recommended.  If you must target the 10.4u SDK,
specify a deployment target with --enable-macos-target.
Attached patch WorkaroundSplinter Review
This is suboptimal, although the ugly code path won't be hit by production
builds for the foreseeable future.
Apple provides the workaround in the header itself, where it belongs.  In the
10.4u SDK, the offending struct is defined non-opaque if DT < 10.4.  The 10.4.0
SDK (only bundled with the obsolete Xcode 2.0) is defective in this regard. 
This is only a problem if Xcode > 2.0 is installed over Xcode 2.0.  Workaround:
on the off chance that you've got the 10.4.0 SDK, don't use it.  It's been
superseded by 10.4u anyway.
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → INVALID
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: