• 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: Redefined symbols in linked dylibs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Redefined symbols in linked dylibs


  • Subject: Re: Redefined symbols in linked dylibs
  • From: Thomas Dibble <email@hidden>
  • Date: Mon, 3 Nov 2003 09:59:10 -0800

I ran into the same problem.

First, you need to be using a native project, not JAM-based.

Second, compiling against the 10.1.5 SDK you can not use the gcc 3.3 compiler (without a bunch of workarounds ... look for messages from Thane Norton for details). You have to use gcc 3.1, at least officially.

				---- Tom Dibble

On Nov 1, 2003, at 10:07 AM, Ben Kennedy wrote:

Ok, Scott et al.,

I'm using the 10.1.5 SDK, building a classic target, linking against
libcrypto.  The app will not launch on 10.2 due to the dependency on
libcrypto.0.9.7.  If I punch Xcode in the gut while adjusting the
libcrypto path to libcrypto.0.9, it still dutifully resolves the alias
and insists on linking against 0.9.7.

Is it impossible to dynamic link libcrypto in such a manner that my app
will run on 10.2? Do I need to revert to ProjectBuilder and wait for the
maintenance release? Surely I am missing something here.


-ben


On 27 10 2003 at 2:55 pm -0500, Scott Tooker wrote:

Right now Xcode is too agressive about resolving symlinks for
references (which leads to the problem being described). This is
something we want to fix in a future release.

Scott

On Oct 25, 2003, at 10:01 PM, Frank Midgley wrote:

On Oct 25, 2003, at 11:48 PM, Ben Kennedy wrote:

However, I haven't figured out how to apply this in practice. If I
remove libz and libcrypto from the Frameworks and Libraries build
phase,
the build fails with undefined references. When I stick them back in,
they are doubly-linked.

The only thing I found that worked was not to link against the symlink
(/usr/lib/libcrypto.dylib) but to link against an actual library
(/usr/libcrypto.0.9.7.dylib) directly. This unfortunately puts an OS
dependency on your target but I haven't figured out any other way to
handle it.


-Frank

=========================
Frank Midgley
email@hidden
http://homepage.mac.com/knarf
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.

[demime 0.98b removed an attachment of type application/pkcs7-signature
which had a name of smime.p7s]
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/
xcode-users
Do not post admin requests to the list. They will be ignored.

--
Ben Kennedy, chief magician
zygoat creative technical services
613-228-3392 | 1-866-466-4628
http://www.zygoat.ca
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Redefined symbols in linked dylibs (From: "Ben Kennedy" <email@hidden>)

  • Prev by Date: Re: getting Saturn to walk
  • Next by Date: Re: OT: GetFileInfo (Modified by Dmitry Markman)
  • Previous by thread: Re: Redefined symbols in linked dylibs
  • Next by thread: UI quirks...
  • Index(es):
    • Date
    • Thread