building openssl 1.1.1 using CrystaX NDK 10.3.2 (Android)

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

building openssl 1.1.1 using CrystaX NDK 10.3.2 (Android)

Peter Petrik
Hi,

I want to add openssl to OSGeo4A, which is built with CrystaX NDK. 
I have run into issues building openssl, missing random functions:

arm-linux-androideabi-gcc  -I. -Icrypto/include -Iinclude -I../openssl-1.1.1 -I../openssl-1.1.1/crypto/include -I../op
enssl-1.1.1/include -fPIC -pthread  -mandroid --sysroot=/opt/crystax-ndk-10.3.2/platforms/android-16/arch-arm  -march=
armv7-a -Wa,--noexecstack -Wall -O3 -DOPENSSL_USE_NODELETE -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_BN_ASM_MONT -DO
PENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DAES_ASM -DBSAES_ASM -DGHASH_ASM -DECP_NISTZ
256_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/usr/local/ssl/16/\"" -DENGINESDIR="\"/usr/local/lib/engines-1.1\"" -DNDEBUG -D
__ANDROID_API__=16 -MMD -MF crypto/rand/rand_unix.d.tmp -MT crypto/rand/rand_unix.o -c -o crypto/rand/rand_unix.o ../o
penssl-1.1.1/crypto/rand/rand_unix.c 
In file included from /opt/crystax-ndk-10.3.2/platforms/android-16/arch-arm/usr/include/sys/glibc-syscalls.h:43:0, 
                from /opt/crystax-ndk-10.3.2/platforms/android-16/arch-arm/usr/include/crystax/bionic/libc/include/sy
s/mangled-syscall.h:34, 
                from /opt/crystax-ndk-10.3.2/platforms/android-16/arch-arm/usr/include/sys/syscall.h:43, 
                from ../openssl-1.1.1/crypto/rand/rand_unix.c:22: 
../openssl-1.1.1/crypto/rand/rand_unix.c: In function 'syscall_random': 
../openssl-1.1.1/crypto/rand/rand_unix.c:297:20: error: '__NR_getrandom' undeclared (first use in this function) 
    return syscall(SYS_getrandom, buf, buflen, 0);

(see attached configure.txt)

What is strange is that when I try with --with-rand-seed=none, I have the same error message. With other rand-seed options, different methods 
are missing.

Do you have any idea how to proceed here?

Thanks a lot.

--
openssl-users mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users

configure.txt (11K) Download Attachment