• 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
Cross development question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Cross development question


  • Subject: Cross development question
  • From: Mike Laster <email@hidden>
  • Date: Fri, 13 Feb 2004 15:16:58 -0500

I don't have any luck getting cross-development to work. I need to make a simple tool that uses the old OpenSSL libraries as they existed on 10.2. To be precise, I need to decrypt data encoded using the EVP_idea_cbc algorithm which no longer exists in the standard 10.3 libraries.

I set my cross-compile SDK to 10.2.8, I explicitly link against libcrypto.dylib and libssl.dylib in /Developer/SDKs/MacOSX10.2.8.sdk/usr/lib, but when I run my tool it still crashes with:

dyld: ccdecrypt Undefined symbols:
ccdecrypt undefined reference to _EVP_idea_cbc expected to be defined in /usr/lib/libcrypto.0.9.dylib


Looking at otool output, it shows it is linked againt the /usr/lib versions, not the ones I told it:

otool -Lv ccdecrypt
ccdecrypt:
/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation (compatibility version 300.0.0, current version 462.7.0)
time stamp 1060654571 Mon Aug 11 22:16:11 2003
/usr/lib/libssl.0.9.dylib (compatibility version 0.9.0, current version 0.9.6)
time stamp 1063644358 Mon Sep 15 12:45:58 2003
/usr/lib/libcrypto.0.9.dylib (compatibility version 0.9.0, current version 0.9.6)
time stamp 1063585262 Sun Sep 14 20:21:02 2003
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 63.0.0)
time stamp 1060192043 Wed Aug 6 13:47:23 2003


How to I make the binary look at the dylib I actually linked against instead of the 10.3 version?
_______________________________________________
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.

  • Prev by Date: Re: version.plist
  • Next by Date: Trouble linking library
  • Previous by thread: Converting from a refnum to a FILE *
  • Next by thread: Trouble linking library
  • Index(es):
    • Date
    • Thread