Topic: problem with make curl with wolfSSL

system: ubuntu 12.04 in virtualbox

I have downloaded cyassl-2.8.0 embedded SSL and curl-7.32.0

for cyassl, entering directory and

./configure --prefix=/home/chris/installed_library/cyassl-2.8.0
make clean
make
make install

then successful installation.

for curl:

./configure --prefix=/home/chris/installed_library/curl-7.32.0 --without-ssl --with-cyassl==/home/chris/installed_library/cyassl-2.8.0
make clean
make

it failed, the error message is

/home/chris/installed_library/cyassl-2.8.0/include/cyassl/ctaocrypt/types.h:281:6: error: #error "bad math long / long long settings"
/home/chris/installed_library/cyassl-2.8.0/include/cyassl/ctaocrypt/types.h:283:1: error: expected identifier before '}' token

any suggestion?

Share

Re: problem with make curl with wolfSSL

Hi,

This seems to be an issue where the CURL configure system isn't setting SIZEOF_LONG_LONG for your platform.  I'll look into it and get back to you with a more permanent solution, but as a temporary fix, you can define SIZEOF_LONG_LONG manually during CURL's ./configure process, making your ./configure line similar to:

./configure CFLAGS=-DSIZEOF_LONG_LONG=8 --prefix=/home/chris/installed_library/curl-7.32.0 --without-ssl --with-cyassl==/home/chris/installed_library/cyassl-2.8.0

where sizeof(long long) would equal 8 on your platform.

Best Regards,
Chris