site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com User-agent: Thunderbird 2.0.0.19 (X11/20090105) 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 (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Peter O'Gorman