I am using open-ssl source specified in https://github.com/eighthave/openssl-android to create a library that can be used in an android project.
According to the instructions given in README.txt, I can compile it for Android platform 2.2 version (level -8)
But my application requires it to be compatible with 2.1 (level -7).
I tried the following options with default.properties file ( https://github.com/eighthave/openssl-android/blob/master/default.properties )
1) set target = android-7
2) set target = android-5
But when I compile it with the ndk-build command, it gives the following error
Compile thumb : crypto <= dsa_vrf.c Compile thumb : crypto <= dso_dl.c Compile thumb : crypto <= dso_dlfcn.c /Crypto/openssl-android/crypto/dso/dso_dlfcn.c: In function 'dlfcn_pathbyaddr': /Crypto/openssl-android/crypto/dso/dso_dlfcn.c:445: error: 'Dl_info' undeclared (first use in this function) /Crypto/openssl-android/crypto/dso/dso_dlfcn.c:445: error: (Each undeclared identifier is reported only once /Crypto/openssl-android/crypto/dso/dso_dlfcn.c:445: error: for each function it appears in.) /Crypto/openssl-android/crypto/dso/dso_dlfcn.c:445: error: expected ';' before 'dli' /Crypto/openssl-android/crypto/dso/dso_dlfcn.c:455: error: 'dli' undeclared (first use in this function) make: *** [obj/local/armeabi/objs/crypto/dso/dso_dlfcn.o] Error 1
According to the error message - Dl_info is not defined. but if we go to the dso_dlfcn.c file, a structure definition is already provided. ( https://github.com/eighthave/openssl-android/blob/master/crypto/dso/dso_dlfcn.c )
And this code is compiled for target = android-8 in the default properties file, but not for android-7 or android-5.
Ask you to help me fix this error. and let me know what all the changes need to be done in order to compile it for the Android platform.
Thanks in advance.
source share