Ubuntu's openssl is installed as well as building my own latest version.
I've tried to build Master and v2.3.1 (which is Ubuntu ARM's latest version) with no success.
They both fail at "ssl_openssl.c" either with
Code: Select all
gcc -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../../src/compat -I/usr/local/include -I/usr/local/include -g -O2 -MT ssl_openssl.o -MD -MP -MF .deps/ssl_openssl.Tpo -c -o ssl_openssl.o ssl_openssl.c
ssl_openssl.c: In function ‘tmp_rsa_cb’:
ssl_openssl.c:107:20: warning: initialization makes pointer from integer without a cast
BIGNUM *bn = BN_new();
^
ssl_openssl.c:108:15: warning: assignment makes pointer from integer without a cast
rsa_tmp = RSA_new();
^
ssl_openssl.c:112:34: error: ‘RSA_F4’ undeclared (first use in this function)
if(!bn || !BN_set_word(bn, RSA_F4) ||
^
ssl_openssl.c:112:34: note: each undeclared identifier is reported only once for each function it appears in
or
Code: Select all
gcc -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../../src/compat -g -O2 -MT ssl_openssl.o -MD -MP -MF .deps/ssl_openssl.Tpo -c -o ssl_openssl.o ssl_openssl.c
ssl_openssl.c: In function ‘tmp_rsa_cb’:
ssl_openssl.c:107:20: warning: initialization makes pointer from integer without a cast
BIGNUM *bn = BN_new();
^
ssl_openssl.c:108:15: warning: assignment makes pointer from integer without a cast
rsa_tmp = RSA_new();
^
ssl_openssl.c:112:34: error: ‘RSA_F4’ undeclared (first use in this function)
if(!bn || !BN_set_word(bn, RSA_F4) ||
^
ssl_openssl.c:112:34: note: each undeclared identifier is reported only once for each function it appears in
I can't remember which branch/tag/tar and which configuration caused the other error which I also don't remember except that it wasn't an rsa issue.
Grep finds the header defining RSA_F4 which is referenced by other includes like x509.h which is set to be included in the ssl_openssl.c file.
Code: Select all
$ find /usr -name "*ssl*pc"
/usr/local/lib/pkgconfig/openssl.pc //1.1.0-dev
/usr/local/lib/pkgconfig/libssl.pc
/usr/local/ssl/lib/pkgconfig/openssl.pc //1.1.0-dev
/usr/local/ssl/lib/pkgconfig/libssl.pc
/usr/lib/arm-linux-gnueabihf/pkgconfig/openssl.pc //1.0.1f
/usr/lib/arm-linux-gnueabihf/pkgconfig/libssl.pc