Need help with undefined symbols error with Univeral app running under 10.3.9

Member
Posts: 257
Joined: 2004.06
Post: #1
I'm getting a crash in an app running under 10.3.9 that I compiled as a universal binary that the crash log lists as a couple of undefined symbols:

undefined reference to ___stderrp expected to be defined in /usr/lib/libSystem.B.dylib
undefined reference to ___stdinp expected to be defined in /usr/lib/libSystem.B.dylib

Anyone have any ideas? The only clue that I have that could be the cause of it is I'm using some static libraries (libcurl and it's associated libssl and libcrypto) that I compiled as Universal libs.

The brains and fingers behind Malarkey Software (plus caretaker of the world's two brattiest felines).
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #2
My guess is that you compiled for PowerPC/10.4, not PowerPC/10.3 when you were building your universal binary.

To guarantee 10.3.9 compatibility, you must use the 10.3.9 SDK and set MACOSX_DEPLOYMENT_TARGET to 10.3.9. This requires using different build settings for PowerPC and Intel, which is not something Xcode likes to make easy. How to do it is in the Xcode release notes, however.

If you're compiling this yourself (via a Makefile, for example) it's quite straightforward.
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Need help with undefined symbols error with Univeral app running under 10.3.9 dmdmdm 0 2,226 May 29, 2009 01:16 PM
Last Post: dmdmdm
  Error with Linking Symbols Oddity007 1 2,743 Feb 24, 2009 06:20 PM
Last Post: Oddity007
  'Undefined Symbols' problem with Xcode 2.3. Any ideas, please!! scratt 6 5,941 Jun 11, 2006 10:19 AM
Last Post: scratt
  'Unidentified error' error in Xcode scgames 2 3,758 Jun 10, 2006 01:38 AM
Last Post: scgames
  Undefined References vbuser1338 13 5,345 Feb 2, 2006 06:40 AM
Last Post: Dingo