1 (edited by protocold 2012-01-08 08:49:44)

Topic: CyaSSL 2.0.2 compile problem on Openwrt

Hi,

I am trying to compile CyaSSL 2.0.2 on Openwrt but receive the following error:

testsuite/testsuite.c:31:6: #error testsuite needs threads to run, please run ctaocrypt/test, and the examples/ individually
testsuite/testsuite.c: In function `start_thread':
testsuite/testsuite.c:166: warning: passing arg 1 of `pthread_create' from incompatible pointer type
testsuite/testsuite.c:166: warning: passing arg 3 of `pthread_create' from incompatible pointer type
testsuite/testsuite.c: In function `join_thread':
testsuite/testsuite.c:177: warning: passing arg 1 of `pthread_join' makes intege
make[4]: *** [testsuite/testsuite_testsuite-testsuite.o] Error 1


Does anyone come across this and know how to fix this?

Or can I pass something to configure to it wont try to build (examples, testsuite, etc) ?!?

Many Thanks.

Share

Re: CyaSSL 2.0.2 compile problem on Openwrt

Did you aply the openwrt patches, including the "disable example tests" patch?

you can also remove the --enable-singleThreaded configure option from the openwrt mk file.

Share

Re: CyaSSL 2.0.2 compile problem on Openwrt

The patch from openwrt wont apply... hunk failed...

Does anyone have a working patch?

Share

Re: CyaSSL 2.0.2 compile problem on Openwrt

Hi protocold,

You can build only the CyaSSL embedded SSL library (excluding examples, testsuite, etc.) by issuing the following after ./configure:

make src/libcyassl.la

Regards,
Chris

Re: CyaSSL 2.0.2 compile problem on Openwrt

Thanks for the suggestion but to build it in openwrt... i have to do:

Make V=99 package/cyassl/compile

How can I pass the parameter "src/libcyassl.la" into that??!?!  sad  hmm  roll  neutral

Share