< Previous by Date Date Index Next by Date >
< Previous in Thread Thread Index Next in Thread >

Re: [reSIProcate-users] openssl-android build error for resiprocate


Hello,

I hope that you had nice Christmas and new year celebrations and I wish you all a very happy new year.

Let me explain the problem in detail:

I am trying to install OpenSSL for Android using https://github.com/guardianproject/openssl-android

I changed the path settings and related Android versions in the respective configuration files in openssl-android source code. When I am executing "${HOME}/Desktop/android-ndk-r13b/ndk-build" command from openssl-android directory, I am getting the below error:

warning: libz.so, needed by ./obj/local/mips64/libcrypto.so, not found (try using -rpath or -rpath-link)

libz.so file is already existed in /usr/lib64 directory. This is for your information. But, I could not able to add -rpath along with /usr/lib64 in the source.

Can anybody suggest me where I have to add? I already checked the Makefile and didn't find anything.

Below is the full error log:

[arm64-v8a] Install        : libcrypto.so => libs/arm64-v8a/libcrypto.so
[arm64-v8a] Install        : openssl => libs/arm64-v8a/openssl
[arm64-v8a] Install        : libssl.so => libs/arm64-v8a/libssl.so
[arm64-v8a] Install        : ssltest => libs/arm64-v8a/ssltest
[x86_64] Install        : libcrypto.so => libs/x86_64/libcrypto.so
[x86_64] Install        : openssl => libs/x86_64/openssl
[x86_64] Install        : libssl.so => libs/x86_64/libssl.so
[x86_64] Install        : ssltest => libs/x86_64/ssltest
[mips64] Install        : libcrypto.so => libs/mips64/libcrypto.so
[mips64] Executable     : openssl
/home/chandramouli/Desktop/android-ndk-r13b/toolchains/mips64el-linux-android-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/mips64el-linux-android/4.9.x/../../../../mips64el-linux-android/bin/ld: warning: libz.so, needed by ./obj/local/mips64/libcrypto.so, not found (try using -rpath or -rpath-link)
./obj/local/mips64/libcrypto.so: undefined reference to `inflate'
./obj/local/mips64/libcrypto.so: undefined reference to `zError'
./obj/local/mips64/libcrypto.so: undefined reference to `deflate'
./obj/local/mips64/libcrypto.so: undefined reference to `deflateInit_'
./obj/local/mips64/libcrypto.so: undefined reference to `inflateEnd'
./obj/local/mips64/libcrypto.so: undefined reference to `deflateEnd'
./obj/local/mips64/libcrypto.so: undefined reference to `inflateInit_'
collect2: error: ld returned 1 exit status
make: *** [obj/local/mips64/openssl] Error 1

Thanks in advance,
Chandramouli.











On Wed, Dec 28, 2016 at 2:35 PM, Thomas Thorne <Thomas.Thorne@xxxxxxxxxxxx> wrote:

It is the Christmas, Hanukkah and New Year holiday season over here so many people are away seeing their families.  That is the reason that I have been quiet (and probably the reason lots of other people on this and other lists are too).  Sorry for the delay in responding.

 

Your build system does not know where to find those files.  Either you need to update it to use the locations you have demonstrated it existing or you need to install a copy into your native filesystem. 

 

A search using Google (other internet search providers are available) for the message I highlighted previously brings up several suggestions for resolving the issue, mostly by installing the library natively. 

 

sudo apt-get install libz-dev

Or

sudo apt-get install lib32z1-dev

if you need the 32-bit version for development work on your target platform. 

 

Regards,

Thomas A. F. Thorne  Software Engineer  Net2Edge

 

From: Chandramouli P [mailto:mouli123@xxxxxxxxx]
Sent: 27 December 2016 10:22
To: Thomas Thorne <Thomas.Thorne@xxxxxxxxxxxx>
Cc: resiprocate-users@resiprocate.org
Subject: Re: [reSIProcate-users] openssl-android build error for resiprocate

 

Hello Thomas,

 

Any update would be appreciated.

 

Thank you,

Chandramouli.

 

 

On Mon, Dec 26, 2016 at 5:10 PM, Chandramouli P <mouli123@xxxxxxxxx> wrote:

Hello Thomas,

 

libz.so file is existed at the below locations:

 

/home/adts/Android/Sdk/ndk-bundle/platforms/android-12/arch-x86/usr/lib/libz.so

/home/adts/Android/Sdk/ndk-bundle/platforms/android-12/arch-mips/usr/libr6/libz.so

/home/adts/Android/Sdk/ndk-bundle/platforms/android-12/arch-mips/usr/lib/libz.so

/home/adts/Android/Sdk/ndk-bundle/platforms/android-12/arch-arm/usr/lib/libz.so

/home/adts/Android/Sdk/ndk-bundle/platforms/android-24/arch-x86/usr/lib/libz.so

/home/adts/Android/Sdk/ndk-bundle/platforms/android-24/arch-mips/usr/libr6/libz.so

/home/adts/Android/Sdk/ndk-bundle/platforms/android-24/arch-mips/usr/lib/libz.so

/home/adts/Android/Sdk/ndk-bundle/platforms/android-24/arch-x86_64/usr/lib/libz.so

/home/adts/Android/Sdk/ndk-bundle/platforms/android-24/arch-x86_64/usr/lib64/libz.so

/home/adts/Android/Sdk/ndk-bundle/platforms/android-24/arch-arm/usr/lib/libz.so

/home/adts/Android/Sdk/ndk-bundle/platforms/android-24/arch-arm64/usr/lib/libz.so

/home/adts/Android/Sdk/ndk-bundle/platforms/android-24/arch-mips64/usr/lib64/libz.so

/home/adts/Android/Sdk/ndk-bundle/platforms/android-14/arch-x86/usr/lib/libz.so

/home/adts/Android/Sdk/ndk-bundle/platforms/android-14/arch-mips/usr/libr6/libz.so

/home/adts/Android/Sdk/ndk-bundle/platforms/android-14/arch-mips/usr/lib/libz.so

/home/adts/Android/Sdk/ndk-bundle/platforms/android-14/arch-arm/usr/lib/libz.so

/home/adts/Android/Sdk/ndk-bundle/platforms/android-21/arch-x86/usr/lib/libz.so

/home/adts/Android/Sdk/ndk-bundle/platforms/android-21/arch-mips/usr/libr6/libz.so

/home/adts/Android/Sdk/ndk-bundle/platforms/android-21/arch-mips/usr/lib/libz.so

/home/adts/Android/Sdk/ndk-bundle/platforms/android-21/arch-x86_64/usr/lib/libz.so

/home/adts/Android/Sdk/ndk-bundle/platforms/android-21/arch-x86_64/usr/lib64/libz.so

/home/adts/Android/Sdk/ndk-bundle/platforms/android-21/arch-arm/usr/lib/libz.so

/home/adts/Android/Sdk/ndk-bundle/platforms/android-21/arch-arm64/usr/lib/libz.so

/home/adts/Android/Sdk/ndk-bundle/platforms/android-21/arch-mips64/usr/lib64/libz.so

/home/adts/Android/Sdk/ndk-bundle/platforms/android-13/arch-x86/usr/lib/libz.so

/home/adts/Android/Sdk/ndk-bundle/platforms/android-13/arch-mips/usr/libr6/libz.so

/home/adts/Android/Sdk/ndk-bundle/platforms/android-13/arch-mips/usr/lib/libz.so

/home/adts/Android/Sdk/ndk-bundle/platforms/android-13/arch-arm/usr/lib/libz.so

/home/adts/Android/Sdk/ndk-bundle/platforms/android-17/arch-x86/usr/lib/libz.so

/home/adts/Android/Sdk/ndk-bundle/platforms/android-17/arch-mips/usr/libr6/libz.so

/home/adts/Android/Sdk/ndk-bundle/platforms/android-17/arch-mips/usr/lib/libz.so

/home/adts/Android/Sdk/ndk-bundle/platforms/android-17/arch-arm/usr/lib/libz.so

/home/adts/Android/Sdk/ndk-bundle/platforms/android-15/arch-x86/usr/lib/libz.so

/home/adts/Android/Sdk/ndk-bundle/platforms/android-15/arch-mips/usr/libr6/libz.so

/home/adts/Android/Sdk/ndk-bundle/platforms/android-15/arch-mips/usr/lib/libz.so

/home/adts/Android/Sdk/ndk-bundle/platforms/android-15/arch-arm/usr/lib/libz.so

/home/adts/Android/Sdk/ndk-bundle/platforms/android-19/arch-x86/usr/lib/libz.so

/home/adts/Android/Sdk/ndk-bundle/platforms/android-19/arch-mips/usr/libr6/libz.so

/home/adts/Android/Sdk/ndk-bundle/platforms/android-19/arch-mips/usr/lib/libz.so

/home/adts/Android/Sdk/ndk-bundle/platforms/android-19/arch-arm/usr/lib/libz.so

/home/adts/Android/Sdk/ndk-bundle/platforms/android-22/arch-x86/usr/lib/libz.so

/home/adts/Android/Sdk/ndk-bundle/platforms/android-22/arch-mips/usr/libr6/libz.so

/home/adts/Android/Sdk/ndk-bundle/platforms/android-22/arch-mips/usr/lib/libz.so

/home/adts/Android/Sdk/ndk-bundle/platforms/android-22/arch-x86_64/usr/lib/libz.so

/home/adts/Android/Sdk/ndk-bundle/platforms/android-22/arch-x86_64/usr/lib64/libz.so

/home/adts/Android/Sdk/ndk-bundle/platforms/android-22/arch-arm/usr/lib/libz.so

/home/adts/Android/Sdk/ndk-bundle/platforms/android-22/arch-arm64/usr/lib/libz.so

/home/adts/Android/Sdk/ndk-bundle/platforms/android-22/arch-mips64/usr/lib64/libz.so

/home/adts/Android/Sdk/ndk-bundle/platforms/android-16/arch-x86/usr/lib/libz.so

/home/adts/Android/Sdk/ndk-bundle/platforms/android-16/arch-mips/usr/libr6/libz.so

/home/adts/Android/Sdk/ndk-bundle/platforms/android-16/arch-mips/usr/lib/libz.so

/home/adts/Android/Sdk/ndk-bundle/platforms/android-16/arch-arm/usr/lib/libz.so

/home/adts/Android/Sdk/ndk-bundle/platforms/android-18/arch-x86/usr/lib/libz.so

/home/adts/Android/Sdk/ndk-bundle/platforms/android-18/arch-mips/usr/libr6/libz.so

/home/adts/Android/Sdk/ndk-bundle/platforms/android-18/arch-mips/usr/lib/libz.so

/home/adts/Android/Sdk/ndk-bundle/platforms/android-18/arch-arm/usr/lib/libz.so

/home/adts/Android/Sdk/ndk-bundle/platforms/android-23/arch-x86/usr/lib/libz.so

/home/adts/Android/Sdk/ndk-bundle/platforms/android-23/arch-mips/usr/libr6/libz.so

/home/adts/Android/Sdk/ndk-bundle/platforms/android-23/arch-mips/usr/lib/libz.so

/home/adts/Android/Sdk/ndk-bundle/platforms/android-23/arch-x86_64/usr/lib/libz.so

/home/adts/Android/Sdk/ndk-bundle/platforms/android-23/arch-x86_64/usr/lib64/libz.so

/home/adts/Android/Sdk/ndk-bundle/platforms/android-23/arch-arm/usr/lib/libz.so

/home/adts/Android/Sdk/ndk-bundle/platforms/android-23/arch-arm64/usr/lib/libz.so

/home/adts/Android/Sdk/ndk-bundle/platforms/android-23/arch-mips64/usr/lib64/libz.so

/home/adts/Android/Sdk/ndk-bundle/platforms/android-9/arch-x86/usr/lib/libz.so

/home/adts/Android/Sdk/ndk-bundle/platforms/android-9/arch-mips/usr/libr6/libz.so

/home/adts/Android/Sdk/ndk-bundle/platforms/android-9/arch-mips/usr/lib/libz.so

/home/adts/Android/Sdk/ndk-bundle/platforms/android-9/arch-arm/usr/lib/libz.so

/home/adts/Desktop/android-ndk-r13b/platforms/android-12/arch-x86/usr/lib/libz.so

/home/adts/Desktop/android-ndk-r13b/platforms/android-12/arch-mips/usr/libr6/libz.so

/home/adts/Desktop/android-ndk-r13b/platforms/android-12/arch-mips/usr/lib/libz.so

/home/adts/Desktop/android-ndk-r13b/platforms/android-12/arch-arm/usr/lib/libz.so

/home/adts/Desktop/android-ndk-r13b/platforms/android-24/arch-x86/usr/lib/libz.so

/home/adts/Desktop/android-ndk-r13b/platforms/android-24/arch-mips/usr/libr6/libz.so

/home/adts/Desktop/android-ndk-r13b/platforms/android-24/arch-mips/usr/lib/libz.so

/home/adts/Desktop/android-ndk-r13b/platforms/android-24/arch-x86_64/usr/lib/libz.so

/home/adts/Desktop/android-ndk-r13b/platforms/android-24/arch-x86_64/usr/lib64/libz.so

/home/adts/Desktop/android-ndk-r13b/platforms/android-24/arch-arm/usr/lib/libz.so

/home/adts/Desktop/android-ndk-r13b/platforms/android-24/arch-arm64/usr/lib/libz.so

/home/adts/Desktop/android-ndk-r13b/platforms/android-24/arch-mips64/usr/lib64/libz.so

/home/adts/Desktop/android-ndk-r13b/platforms/android-14/arch-x86/usr/lib/libz.so

/home/adts/Desktop/android-ndk-r13b/platforms/android-14/arch-mips/usr/libr6/libz.so

/home/adts/Desktop/android-ndk-r13b/platforms/android-14/arch-mips/usr/lib/libz.so

/home/adts/Desktop/android-ndk-r13b/platforms/android-14/arch-arm/usr/lib/libz.so

/home/adts/Desktop/android-ndk-r13b/platforms/android-21/arch-x86/usr/lib/libz.so

/home/adts/Desktop/android-ndk-r13b/platforms/android-21/arch-mips/usr/libr6/libz.so

/home/adts/Desktop/android-ndk-r13b/platforms/android-21/arch-mips/usr/lib/libz.so

/home/adts/Desktop/android-ndk-r13b/platforms/android-21/arch-x86_64/usr/lib/libz.so

/home/adts/Desktop/android-ndk-r13b/platforms/android-21/arch-x86_64/usr/lib64/libz.so

/home/adts/Desktop/android-ndk-r13b/platforms/android-21..

 

Could you please suggest the solution?

 

Thank you,

Chandramouli.

 

 

 

On Sat, Dec 24, 2016 at 2:04 PM, Chandramouli P <mouli123@xxxxxxxxx> wrote:

Hello Thomas,

 

Thanks for your reply. The operating system is Ubuntu Desktop 16.04 (64 bit) version and there is no libz.so file in my system.

 

Thank you,

Chandramouli.

 

On Fri, Dec 23, 2016 at 5:28 PM, Thomas Thorne <Thomas.Thorne@xxxxxxxxxxxx> wrote:

> libz.so, needed by ./obj/local/mips64/libcrypto.so, not found (try using -rpath or -rpath-link)

 

Can you confirm that you have the libz.so file installed on your system?  The exact method for doing this will depend on your operating system. 

 

Thomas A. F. Thorne  Software Engineer  Net2Edge

 

From: resiprocate-users [mailto:resiprocate-users-bounces@xxxxxxxxxxxxxxx] On Behalf Of Chandramouli P
Sent: 23 December 2016 11:25
To: resiprocate-users@resiprocate.org
Subject: Re: [reSIProcate-users] openssl-android build error for resiprocate

 

Hello,

 

Any help would be appreciated.

 

Thank you,

Chandramouli.

 

 

On Thu, Dec 22, 2016 at 1:31 PM, Chandramouli P <mouli123@xxxxxxxxx> wrote:

Hello,

 

I downloaded the openssl-android source code from https://github.com/resiprocate/openssl-android.git and tried to build .so files. It is done for all platforms except mips64 platform. 

 

Below are the errors that we are getting:

 

[arm64-v8a] Install        : libcrypto.so => libs/arm64-v8a/libcrypto.so

[arm64-v8a] Install        : openssl => libs/arm64-v8a/openssl

[arm64-v8a] Install        : libssl.so => libs/arm64-v8a/libssl.so

[arm64-v8a] Install        : ssltest => libs/arm64-v8a/ssltest

[x86_64] Install        : libcrypto.so => libs/x86_64/libcrypto.so

[x86_64] Install        : openssl => libs/x86_64/openssl

[x86_64] Install        : libssl.so => libs/x86_64/libssl.so

[x86_64] Install        : ssltest => libs/x86_64/ssltest

[mips64] Install        : libcrypto.so => libs/mips64/libcrypto.so

[mips64] Executable     : openssl

/home/adts/Desktop/android-ndk-r13b/toolchains/mips64el-linux-android-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/mips64el-linux-android/4.9.x/../../../../mips64el-linux-android/bin/ld: warning: libz.so, needed by ./obj/local/mips64/libcrypto.so, not found (try using -rpath or -rpath-link)

./obj/local/mips64/libcrypto.so: undefined reference to `inflate'

./obj/local/mips64/libcrypto.so: undefined reference to `zError'

./obj/local/mips64/libcrypto.so: undefined reference to `deflate'

./obj/local/mips64/libcrypto.so: undefined reference to `deflateInit_'

./obj/local/mips64/libcrypto.so: undefined reference to `inflateEnd'

./obj/local/mips64/libcrypto.so: undefined reference to `deflateEnd'

./obj/local/mips64/libcrypto.so: undefined reference to `inflateInit_'

collect2: error: ld returned 1 exit status

/home/adts/Desktop/android-ndk-r13b/build/core/build-binary.mk:715: recipe for target 'obj/local/mips64/openssl' failed

make: *** [obj/local/mips64/openssl] Error 1

 

I tried in different ways with the help of Internet. But, unable to resolve the issue. Can any body help me to resolve the issue?

 

Thank you,

Chandramouli.