Hi all,
I manage to build OpenSSL beta3 successfully on two mingw
installations - one on 32 bit WinXP (mingw.org), and one on 64 bit
Vista (http://sourceforge.net/projects/mingw-w64/).
I use "./Configure mingw shared" and "./Configure mingw64 no-asm
no-shared", respectively (followed by make, make install).
However, the problem is that I can not link to *any* functions in the
openssl libraries...
I have this test-file, saved as "aes.c":
---
#include <openssl/evp.h>
int main()
{
EVP_aes_256_cbc();
return 0;
}
---
I try to compile it, on both mingw installations, with: "gcc
-I/usr/local/ssl/include -L/usr/local/ssl/lib -lcrypto aes.c", which
gives:
---
C:\Users\Limit\AppData\Local\Temp\ccwPokzy.o:aes.c:(.text+0xe):
undefined reference to `EVP_aes_256_cbc'
collect2: ld returned 1 exit status
---
However, "nm /usr/local/ssl/lib/libcrypto.a | grep EVP_aes_256_cbc" gives:
---
0000000000000d50 T _EVP_aes_256_cbc
U _EVP_aes_256_cbc
---
So it seems like some relevant symbol are present (I tried calling
"_EVP_aes_256_cbc()" as well, without success)?
Or are they not properly exported?
Moreover, the exact same code and compile command successfully
compiles on a linux box with openssl version 0.9.7a.
I have spent a lot of time on this, and any inputs would be greatly appreciated.
Thank you.
Regards,
Eystein
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [email protected]
Automated List Manager [email protected]