Re: libssl failure on Leopard
Re: libssl failure on Leopard
- Subject: Re: libssl failure on Leopard
- From: "a.d. jensen" <email@hidden>
- Date: Fri, 2 Nov 2007 14:01:10 -0500
On Oct 31, 2007, at 2:21 PM, a.d. jensen wrote:
One of our applications has a dynamic library that uses libcrypto
and libssl. This is causing a crash on Leopard (noted in many
places, including <http://smartic.us/2007/10/27/leopard-and-non-
native-crypto-libraries>) and I'm struggling to fix this quickly.
The link shows a cumbersome end user work around, but I need to get
this into a new build of the application today. My options are:
1) Change the library to link to version 0.9.7 of the libraries,
rather than 0.9
2) Include the correct versions of the libraries in the application
that includes the dynamic library
Nothing that I've tried has changed anything -- the dynamic library
insists on using libssl.0.9.dylib and including the proper version
in the application bundle doesn't change it looking in /usr/lib/
Any help would be well appreciated, thanks!
To follow up on my own post and get the solution into the archive,
here's how to fix it:
1) In your project info (select top line of left list, command-I) set
the "Cross-Develop with target SDK" to 10.4 (Universal)
2) From the file menu, select "New File" and create an Xcode
configuration file (last option in my list)
3) Edit that file, add this:
GCC_VERSION_ppc = 3.3
MACOSX_DEPLOYMENT_TARGET_ppc = 10.2
SDKROOT_ppc = /Developer/SDKs/MacOSX10.2.8.sdk
PREBINDING_PPC = NO
GCC_VERSION_i386 = 4.0
MACOSX_DEPLOYMENT_TARGET_i386 = 10.4
SDKROOT_i386 = /Developer/SDKs/MacOSX10.4u.sdk
PREBINDING_i386 = NO
4) Go back to the info screen (step one) and in the "Build" tab,
select your configuration file in the "Based on" popup towards the
middle of the window
5) Select "Existing Frameworks and Libraries" from your project list,
control click for the menu and select "Add"
6) Navigate to /usr/lib/ and select libcrypto.dylib
7) Repeat step 5, adding libssl.dylib instead
8) Clean and rebuild
That should take care of it. Probably not the only solution, but it
works for me -- same application runs on 10.2, 10.3, 10.4 and 10.5
Much, much thanks to Aaron Tuller for his help in sorting it out.
dale
--
email@hidden http://homepage.mac.com/adjensen/
Only a fool turns away from an angel,
Vision in white steps through the door,
Holds out her hand, I say 'No I'm not ready'
I open my eyes and let the dream fade away.
-- echolyn, "on any given nite"
_______________________________________________
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