Closed Bug 223323 Opened 21 years ago Closed 21 years ago

Fix building under 10.3 with Xcode

Categories

(Camino Graveyard :: General, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: sfraser_bugs, Assigned: sfraser_bugs)

References

Details

Attachments

(1 file, 1 obsolete file)

Building Camino on 10.3 breaks because pbxbuild is no longer present; it's xcodebuild now.
Comment on attachment 133899 [details] [diff] [review] Patch to use xcodebuild when present r=pink
Attachment #133899 - Flags: review+
Attachment #133899 - Flags: superreview+
Comment on attachment 133951 [details] [diff] [review] Patch to make Rendezvous stuff build landed
Attachment #133951 - Attachment is obsolete: true
Attachment #133899 - Flags: approval1.6a?
*** Bug 223778 has been marked as a duplicate of this bug. ***
eric albert gave us this help on the xcode mailing list: Cool bug! This appears to be running afoul of the compiler's implicit wrapping of all /usr/include headers with 'extern "C"'. Prior to Panther, system headers didn't always do a great job of exporting their APIs as C. GCC implicitly exports anything in /usr/include as a C API, but CodeWarrior doesn't. If you look through various list and newsgroup archives, you'll see a lot of messages from CodeWarrior users who had trouble with the Mach headers from C++ code on Jaguar. It seems that GCC isn't recognizing the SDK headers as system headers, so you're running into the same problem there. The compiler thinks the functions are C++ APIs, so it links against the C++-name-mangled versions, but those don't exist at link time. Until this is fixed, the workaround is to wrap all includes of Mach headers like this: #ifdef __cplusplus extern "C" { #endif #include <mach/mach.h> #ifdef __cpluplus } #endif This works for me with a test program in Xcode that calls mach_host_self() and uses the 10.2.7 SDK. Hope this helps, Eric
this patch we were waiting on has already landed, but other issues are still in bug 224161. closing this one out.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Comment on attachment 133899 [details] [diff] [review] Patch to use xcodebuild when present Removing obsolete approval request.
Attachment #133899 - Flags: approval1.6a?
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: