• 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: Rich Collyer <email@hidden>
  • Date: Tue, 14 Oct 2008 12:02:32 -0700

I am not confident that I have a solution, but here is what I have so far...

I have build the openssl library on a 10.4 machine (with XCode 2.1 - I need to update it to 2.4, download will be complete in about 3 hours)

When I look at the resulting library with HexEdit, I no longer see the $UNIX2003 in it.

When I copy the resulting files to my build machine, the rest of my project appears to build fine (it even seems to pick up the correct library (mine) when I use Nick suggestion below.

However, the ranlib tool appears to not be in XCode 2.1, so the build results in about 185 errors.

Hopefully it actually works at this point, but it seems like the MUST be a better way. Any hints or suggestions would be greatly appreciated.

+++++++++++++++++++++++
Rich Collyer
Senior Software Engineer
IronKey, Inc.
email@hidden
+++++++++++++++++++++++



On Oct 13, 2008, at 6:12 PM, Nick Zitzmann wrote:


On Oct 13, 2008, at 6:39 PM, Rich Collyer wrote:

It looks like part of my problem may be that XCode is forcing me to link against the libcrypto library that comes with the OS, even though I state a specific search path and have the - search_paths_first flag set.

XCode is adding a -lcrypto flag into the linking command, which I am guessing is a way to force the use of the system libcrypto library.


Yeah, that would do it. Unfortunately there is no way to get the linker to prefer static libraries over dynamic ones.

There is, however, a workaround. Instead of including your static library in the project, take it out and add the path to the library as a linker flag. That will force a static link of the library.

Nick Zitzmann
<http://seiryu.home.comcast.net/>




Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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

  • Follow-Ups:
    • Re: Undefined symbols: "_fputs$UNIX2003", referenced from:
      • From: Thomas Engelmeier <email@hidden>
References: 
 >Undefined symbols: "_fputs$UNIX2003", referenced from: (From: Rich Collyer <email@hidden>)
 >Re: Undefined symbols: "_fputs$UNIX2003", referenced from: (From: Nick Zitzmann <email@hidden>)
 >Re: Undefined symbols: "_fputs$UNIX2003", referenced from: (From: Rich Collyer <email@hidden>)
 >Re: Undefined symbols: "_fputs$UNIX2003", referenced from: (From: "Wesley Smith" <email@hidden>)
 >Re: Undefined symbols: "_fputs$UNIX2003", referenced from: (From: Rich Collyer <email@hidden>)
 >Re: Undefined symbols: "_fputs$UNIX2003", referenced from: (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Re: A little bug with code completion
  • Next by Date: [Q] Dependencies in Xcode
  • Previous by thread: Re: Undefined symbols: "_fputs$UNIX2003", referenced from:
  • Next by thread: Re: Undefined symbols: "_fputs$UNIX2003", referenced from:
  • Index(es):
    • Date
    • Thread