Cross compiling with openssl,

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Cross compiling with openssl,

Michael Luich
Howdy,
   So I've got a mingw cross compile setup on fedora9 running.

When I try to add openssl to the mix I get linker errors. first I got erros that the libraryies couldn't be found but once I copied the libs to the mingw libdir from a windows install. I now get the errors below. Do I need to compile openssl with mingw first?

Mike

/tmp/ccwNOOJG.o:sr_trillian_plugin.cpp:(.text+0x28): undefined reference to `_CRYPTO_set_mem_functions'
/tmp/ccwNOOJG.o:sr_trillian_plugin.cpp:(.text+0x2d): undefined reference to `_EVP_des_ede3_cbc'
/tmp/ccwNOOJG.o:sr_trillian_plugin.cpp:(.text+0x35): undefined reference to `_sk_new_null'
/tmp/ccwNOOJG.o:sr_trillian_plugin.cpp:(.text+0x3d): undefined reference to `_OPENSSL_add_all_algorithms_noconf'
/tmp/ccwNOOJG.o:sr_trillian_plugin.cpp:(.text+0x42): undefined reference to `_ERR_load_crypto_strings'
/tmp/ccwNOOJG.o:sr_trillian_plugin.cpp:(.text+0x55): undefined reference to `_BIO_new_mem_buf'
/tmp/ccwNOOJG.o:sr_trillian_plugin.cpp:(.text+0x5d): undefined reference to `_BIO_s_mem'
/tmp/ccwNOOJG.o:sr_trillian_plugin.cpp:(.text+0x65): undefined reference to `_BIO_new'
/tmp/ccwNOOJG.o:sr_trillian_plugin.cpp:(.text+0x8b): undefined reference to `_PEM_read_X509'
/tmp/ccwNOOJG.o:sr_trillian_plugin.cpp:(.text+0xa4): undefined reference to `_sk_push'
/tmp/ccwNOOJG.o:sr_trillian_plugin.cpp:(.text+0xd0): undefined reference to `_PKCS7_encrypt'
/tmp/ccwNOOJG.o:sr_trillian_plugin.cpp:(.text+0xf8): undefined reference to `_SMIME_write_PKCS7'
/tmp/ccwNOOJG.o:sr_trillian_plugin.cpp:(.text+0x106): undefined reference to `_BIO_ctrl_pending'
/tmp/ccwNOOJG.o:sr_trillian_plugin.cpp:(.text+0x15e): undefined reference to `_BIO_ctrl'
/tmp/ccwNOOJG.o:sr_trillian_plugin.cpp:(.text+0x179): undefined reference to `_BIO_gets'
/tmp/ccwNOOJG.o:sr_trillian_plugin.cpp:(.text+0x1bd): undefined reference to `_BIO_ctrl'


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
MinGW-users mailing list
[hidden email]

You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Reply | Threaded
Open this post in threaded view
|

Re: Cross compiling with openssl,

Roumen Petrov
Michael Luich wrote:
> Howdy,
>    So I've got a mingw cross compile setup on fedora9 running.
>
> When I try to add openssl to the mix I get linker errors. first I got erros
> that the libraryies couldn't be found but once I copied the libs to the
> mingw libdir from a windows install. I now get the errors below. Do I need
> to compile openssl with mingw first?

Usually no.

> Mike
>
> `_CRYPTO_set_mem_functions'
> `_EVP_des_ede3_cbc'
> `_sk_new_null'
The win openssl port don't export all functions. The version that export
them is "HEAD" (0.9.9).

Roumen

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
MinGW-users mailing list
[hidden email]

You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users