Build On ARM With OpenSSL Issue

Weekly dev snapshots are available for testing.
We talk about them here. Testing features in the dev snapshot helps the features make it to stable.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please report your experience with testing branch. Include what you were using and how
If there is a problem, the more info the better!
Post Reply
vindicator
OpenVpn Newbie
Posts: 2
Joined: Sat Mar 21, 2015 1:10 pm

Build On ARM With OpenSSL Issue

Post by vindicator » Fri Oct 09, 2015 11:06 pm

I have an ODroid using kernel 4.2 and Ubuntu 15.04.
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
(and it snowballs with more errors for that file) where -I/usr/local/include is used with the default "$ ./configure"

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
(also snowballs) where pkgconfig path location is set using "./configure PKG_CONFIG_PATH=/usr/lib/arm-linux-gnueabihf/pkgconfig"

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

Post Reply