Re: Patched OpenSSL
Re: Patched OpenSSL
- Subject: Re: Patched OpenSSL
- From: Peter O'Gorman <email@hidden>
- Date: Sun, 01 Mar 2009 07:42:14 -0600
Ron Elliott wrote:
> A little background: I'm working with an AES GCM patched version of
> OpenSSL 0.9.8j. The patch compiles fine and produces the libcrypto.a and
> libssl.a. I use "gcc -dynamiclib -o libcrypto.dylib libcrypto.a" to get
> my dynamic library and it produces no errors. However when I load the
> library using ctypes in python and try to access one of the any
> function, built in or one of the patched, I get a "symbol not found". Am
> I linking my dylib wrong? I should also note that I'm loading the dylib
> in python with CDLL("~/Desktop/openssl-0.9.8j/libcrypto.dylib")
Nothing uses any members of the libcrypto.a archive, so ld puts none in
the output.
There is currently no way to load all members of selected archives,
however, you can use the -all_load flag to load all members of all
archives, e.g. gcc -dynamiclib -o libcrypto.dylib -all_load libcrypto.a
(as long as no other archives are added implicitly by the compiler
driver, this should be good enough).
Peter
--
Peter O'Gorman
http://pogma.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden