I’m using compiled OpenSSL for an iPhone app. I followed the instructions here http://www.x2on.de/kontakt/ so I could develop rsa operation on iPhone simulator. The problem is that I get this error when building the project:
_fopen$UNIX2003 referenced from
_BIO_new_file in libcrypto_i386.a(bss_file.o)
_file_ctrl in libcrypto_i386.a(bss_file.o) Symbol(s)
not found
Every time I invoke this function to get a public key:
RSA * d2i_RSAPublicKey(RSA **a, const unsigned char **pp, long length);
Some places point this is a version problem so I should build openssl for a different architecture (currently using iPhoneOS3.2.sdk), is that right?
Thanks for your comments.
This and this both suggest for Mac OS X that your problem is two different components compiled for two different SDKs.
You should try cleaning the project’s build output (
make clean) and rebuilding everything with the same compiler/SDK.