Re: Linking to libcrypto for 10.2 & 10.3
Re: Linking to libcrypto for 10.2 & 10.3
- Subject: Re: Linking to libcrypto for 10.2 & 10.3
- From: Heath Raftery <email@hidden>
- Date: Thu, 06 Jan 2005 08:11:43 +1100
On 06/01/2005, at 5:43 AM, Glen Simmons wrote:
On 5 Jan, 2005, at 12:26 PM, Shawn Erickson wrote:
On Jan 4, 2005, at 1:31 PM, Glen Simmons wrote:
To try to work around this, I downloaded the OpenSSL source and
compiled libcrypto.a. I added this to my project and removed
libcrypto.dylib. But, otool -L shows that my built application still
tries to use libcrypto.0.9.7.dylib, so it still won't launch on
10.2. Why is it trying to link to the dylib when I don't have it
included in my project???
Thanks,
Glen
On 3 Jan, 2005, at 3:33 PM, Glen Simmons wrote:
I've seen a number of emails from people linking to libcrypto and
having problems with running on Jaguar. What I haven't seen is a
good solution. Apparently, the "best" solution is to use the 10.2.8
SDK and completely give up any Panther-only functionality. I'm not
at all thrilled by this prospect. Is there no other way to do this?
Thanks,
Glen Simmons
Humm I have a Cocoa application built with Xcode 1.5 on Mac OS 10.3
using the 10.2.8 SDK and set to link against libcrypto.dylib (which
is an alias to the latest libcrypto version). Firing up otool I see
the following which I believe should allow it to work on Mac OS X
10.2 and 10.3 (not had a chance to test it on 10.2 yet however). Of
course I am only using it for MD5.
G5:~ $ otool -L blah
blah:
/System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa
(compatibility version 1.0.0, current version 8.0.0)
/System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
(compatibility version 2.0.0, current version 122.0.0)
/usr/lib/libcrypto.0.9.dylib (compatibility version 0.9.0,
current version 0.9.6)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0,
current version 63.0.0)
Yep, it works just fine if you use the 10.2.8 SDK. I don't want to use
the SDK because I'm making use of some Panther features. So I'm
basically stuck with several options, none of which are very
attractive.
Oh, the 0.9 dylib is good enough for you? Maybe you can just change the
link on your 10.3 installation from this:
[506:~] liteyear$ l /usr/lib/libcrypto*
-rwxr-xr-x 1 root wheel 1173488 31 May 2004
/usr/lib/libcrypto.0.9.7.dylib
-rwxr-xr-x 1 root wheel 915664 31 May 2004
/usr/lib/libcrypto.0.9.dylib
lrwxr-xr-x 1 root wheel 21 31 May 2004
/usr/lib/libcrypto.dylib -> libcrypto.0.9.7.dylib
to this:
[506:~] liteyear$ l /usr/lib/libcrypto*
-rwxr-xr-x 1 root wheel 1173488 31 May 2004
/usr/lib/libcrypto.0.9.7.dylib
-rwxr-xr-x 1 root wheel 915664 31 May 2004
/usr/lib/libcrypto.0.9.dylib
lrwxr-xr-x 1 root wheel 21 31 May 2004
/usr/lib/libcrypto.dylib -> libcrypto.0.9.dylib
Note that the libcrypto.dylib link now points to the 0.9 version.
Heath
_______________________________________________
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