views:

24

answers:

1

Hi,

I'm using compiled openssl for an iphone app, I followed instruccions 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 proyect

_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.

A: 

This and this both suggest for Mac OS X that your problem is two different ccomponents compiled for two different SDKs.

You should try cleaning the project's build output (make clean) and rebuilding everything with the same compiler/SDK.

rubenvb
Yes, it might be, I ended up copying their libraries to my project and it works now. Nevertheless I remember editing my Makefile with a higher version (their's iPhone 3.1.2, mine's 3.2). I'll follow your advice. Thanks a lot.
iPhoneDevProf