Update: Building Firefox 2 with the Mac OS X 10.5 SDK

I investigated getting Firefox 2 to build with the Mac OS X 10.5 SDK (bug 400165) and it turns out we won’t be completing that work. This does not mean you can’t build Firefox 2 on Mac OS X 10.5, it just means you have to use an SDK for a previous OS release. You will not be able to build Firefox 2 using the 10.5 SDK. There are some nspr/sdk header conflicts that are nasty enough to make it not worth it.

The good news is there aren’t really any good reasons to use the 10.5 SDK. Being too lazy to install SDKs with your developer tools is not a good reason, at least according to me.

If you want to build Firefox 2 on Mac OS X 10.5 you should install the Mac OS X 10.4u SDK and add this line to your mozconfig:

ac_add_options --with-macos-sdk=/Developer/SDKs/MacOSX10.4u.sdk

You can also build with the 10.2 and 10.3 SDKs, I’ll leave modifying the above instructions to do that as an exercise for those interested.

4 thoughts on “Update: Building Firefox 2 with the Mac OS X 10.5 SDK

  1. Is this going to be a problem for all future SDKs? Won’t this leave us in trouble further down the line? Or are we planning to file a bug report with Apple or change NSPR to work around the problem eventually?


  2. We don’t plan to ever fix these bugs at this point. You will always need the 10.4u or lower SDK to build the 1.8 branch.

    This is just an unfortunate quirk that probably won’t come up again, and if we *really* needed to fix it we could. It just isn’t worth the effort here.

  3. Confirmed that it’s only a problem with the branch. I’m building successfully using the 10.5 SDK using the trunk. I don’t think it makes a difference at this point, but just thought I’d throw it out there in case anyone is curious.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s