• 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
Library conflicts with DarwinPorts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Library conflicts with DarwinPorts


  • Subject: Library conflicts with DarwinPorts
  • From: Paul Kim <email@hidden>
  • Date: Sat, 25 Mar 2006 12:20:25 -0500

Hi,

I'm running into a problem with conflicting versions of OpenSSL (libcrypto in particular). I do have OpenSSL from darwinports installed.

In my project, I've added libcrypto from /usr/lib - not the DarwinPorts version. Since this is an app that will be distributed, I need to link against the standard libcrypto that ships with OS X.

Unfortunately, when I build, I get the following warning:
-----
/usr/bin/ld: warning can't open dynamic library: /Developer/SDKs/ MacOSX10.4u.sdk/opt/local/lib/libz.1.dylib referenced from: /opt/ local/lib/libcrypto.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2)
-----


And then subsequently an Undefineed symbols error for all the libcrypto stuff.

If I deactivate openssl in DarwinPorts, I can build (it finds the correct version of the library) but then I'm stuck unable to use Subversion (also from DarwinPorts) as it is dependent on the DP version.

Is there a way to force XCode to use the standard Apple libcrypto? I don't see any DYLD_LIBRARY_PATH or LD_LIBRARY_PATH set so I'm not even sure why it keeps insisting on using the DP version.

I have to say that constantly activating/deactivating openssl in DP is getting tedious going back and forth from builds to checkins.

Thanks,

paul

_______________________________________________
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: Library conflicts with DarwinPorts
      • From: Steve Checkoway <email@hidden>
  • Prev by Date: Best way to get files and folders cleaned by a Clean action?
  • Next by Date: Re: Getting xcconfig file changes to trigger subproject builds
  • Previous by thread: Best way to get files and folders cleaned by a Clean action?
  • Next by thread: Re: Library conflicts with DarwinPorts
  • Index(es):
    • Date
    • Thread