• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Undefined symbols: "_fputs$UNIX2003", referenced from:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Undefined symbols: "_fputs$UNIX2003", referenced from:


  • Subject: Re: Undefined symbols: "_fputs$UNIX2003", referenced from:
  • From: Steve Checkoway <email@hidden>
  • Date: Tue, 4 Nov 2008 14:16:09 -0800


On Nov 4, 2008, at 9:35 AM, Rich Collyer wrote:

What I have learned is that when I build openssl with XCode 3.0, it contains a reference to _fputs$UNIX2003, but does not complain about it when I statically link the libcrypto.a file with my application. When I build openssl with XCode 3.1, it also contains a reference to _fputs$UNIX2003, but does complain about it when I statically link the libcrypto.a file with my application.

You need to build it for the same system SDK that your application will be compiled against.


I read the Apple document "Symbol Variants: Why Those Dollar Signs?", which was helpful in understanding what is happening, but really difficult to understand how to fix the problem. I tried to add a number of -U and -D flags to the build, but that seemed to make matters worse.

Unless I misunderstand what you're saying, you're adding -D and -U to the CPPFLAGS (or Xcode equivalent) which controls preprocessor defines and undefines. I'm not sure what you're defining or undefining here, but selecting the appropriate SDK will Do The Right Thing (tm) without needing to set that.


What has changed that makes XCode 3.1 make this an error, when XCode 3.0 considers this OK. Is one of them just wrong? Is there an update to the recommended scripts listed in the Apple Document "Building an Open Source Universal Binary" that would ensure that the library is built to work with 10.4 and beyond?

Without looking at this particular doc, I'd suggest that if you find the documentation lacking, you should file a bug report on the particular doc.



-- Steve Checkoway





_______________________________________________
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


References: 
 >Re: Undefined symbols: "_fputs$UNIX2003", referenced from: (From: Rich Collyer <email@hidden>)

  • Prev by Date: Re: Strange warning on Xcode startup
  • Next by Date: Re: Strange dynamic_cast problem
  • Previous by thread: Re: Undefined symbols: "_fputs$UNIX2003", referenced from:
  • Next by thread: Strange warning on Xcode startup
  • Index(es):
    • Date
    • Thread