Re: FoundationKit md5/checksum
Re: FoundationKit md5/checksum
- Subject: Re: FoundationKit md5/checksum
- From: Chris Ridd <email@hidden>
- Date: Mon, 28 Jul 2003 08:06:03 +0100
On Sunday, July 27, 2003, at 10:06PM, Peter Robinson <email@hidden> wrote:
>
Chris Ridd <email@hidden> wrote:
>
>
> It uses the OpenSSL /usr/lib/libcrypto.dylib, so you'll need to link
>
> against that.
>
>
When I link against libcrypto, I get the following warnings:
>
>
/usr/bin/ld: warning suggest use of -bind_at_load, as lazy binding may
>
result in errors or different symbols being used
>
symbol _crypt used from dynamic library
>
/usr/lib/libSystem.dylib(crypt.o) not from earlier dynamic library
>
/usr/lib/libcrypto.0.9.dylib(fcrypt.o)
>
/usr/bin/ld: warning unused multiple definitions of symbol _crypt
>
/usr/lib/libSystem.dylib(crypt.o) definition of _crypt
>
/usr/lib/libcrypto.dylib(fcrypt.o) unused definition of _crypt
>
>
Is this a problem? If not, how do I make the warnings go away? I
>
assume that using -bind_at_load as suggested would make my program
>
launch more slowly.
This warning is because libcrypto contains a function called crypt(), and libSystem contains another function called crypt(). If you call crypt() in your program, you may end up with the wrong one. OpenSSL's crypt() is probably meant to be a drop-in replacement for libSystem's crypt() except that it runs (perhaps) faster.
As I don't call crypt() that isn't a problem for me, so this warning is (for me) just an irritating warning. I'd be interested in finding out how to lose it though!
I *thought* OpenSSL had build options which avoided producing libraries with this problem (which should be a problem on lots of systems, not just OS X/Darwin). Libcrypto on my x86 Linux box doesn't export a crypt function...
Cheers,
Chris
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.