libc UNIX2003 mystery
libc UNIX2003 mystery
- Subject: libc UNIX2003 mystery
- From: Andy O'Meara <email@hidden>
- Date: Tue, 7 Dec 2010 11:28:33 -0600
Hey guys, I was hoping an Xcode or OS guru can help nail this one... I've scoured the interwebs for an answer but I can't find a definitive answer, so I'm turning to the expertise here.
We use CPython statically and have been using its prepackaged build script to build the static lib that we use. That lib gets included in our main project (a bundle actually) and all is well. However, when our bundle tries to load on a 10.4 machine, it fails and the system log says:
Symbol not found: _fsync$UNIX2003 (libSystem.B.dylib)
My first reaction was that CPython's lib build script was doing something ignorant with linking, so I made an empty Xcode static lib project and added all the appropriate CPython files. I set the project settings to the exact same as the main project (10.5 SDK, 10.4 min deployment target, and gcc 4.2), but the error on out test 10.4 machine above didn't change.
I then tried setting both projects to both use the 10.6 SDK and still no change.
I then tried setting both SDKs to 10.4u and gcc 4.0, but that causes a bunch of libc static link errors, suggesting the static lib being built is still emitting _foo$UNIX2003 etc.
So, how do I get the static lib project to stop emitting the $UNIX2003 symbols and emit the proper ones? In case it's not clear above, in each of the tests, both projects were cleaned and set to matching SDK options (most posts out there on this issue seem to result from people using a different SDK in their static lib projects).
Hopefully this seemingly straight-forward (yet opaque!) problem has a happy ending? If it matters any, I'm using the latest version of Xcode on a 10.6 intel machine.
Thanks in advance!!
Andy O'Meara
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden