billhibazzz / ics-openvpn

Automatically exported from code.google.com/p/ics-openvpn
0 stars 0 forks source link

NDK-10b doesn't build properly #288

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
ndk-10b, cyanogenmod 11.

2014-09-30 19:27:28 Running on GT-I9100 (smdk4210) Samsung, API
Android 19, versión 0.6.17, compiled by CN=Android
Debug,O=Android,C=US
2014-09-30 19:27:30 Building configuration…
2014-09-30 19:27:32 started Socket Thread
2014-09-30 19:27:33 P:CANNOT LINK EXECUTABLE: could not load library
"libopenvpn.so" needed by "/data/data/de.blinkt.openvpn/cache/pievpn";
caused by cannot locate symbol "srandom" referenced by
"libopenvpn.so"...
2014-09-30 19:27:33 Process exited with exit value 1

Original issue reported on code.google.com by parm...@sdf.org on 30 Sep 2014 at 5:36

GoogleCodeExporter commented 9 years ago
Version 10b works fine here with current tip version.  For older version you 
might need older ndks.

Original comment by arne@rfc2549.org on 30 Sep 2014 at 6:27

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I'm trying to compile it using android-ndk64-r10b-linux-x86_64.tar.bz2, but the 
same error happens, I don't know why.

libopenvpn is inside the apk, that's for sure.

Original comment by parm...@sdf.org on 30 Sep 2014 at 7:08

GoogleCodeExporter commented 9 years ago
The last released version (0.6.17) is build with 9d.

Original comment by arne@rfc2549.org on 30 Sep 2014 at 7:26

GoogleCodeExporter commented 9 years ago
I'm using the 885 changeset, the current tip.

Are you using the same ndk tarball? ndk64 + x86_64?

Original comment by parm...@sdf.org on 1 Oct 2014 at 4:49

GoogleCodeExporter commented 9 years ago
I am using the OS X 64 Bit versions. But it could also be a general problem of 
NDK 10. you can try the prerelease of 0.6.18 on plai.de/android and see if that 
gives you the same or different results.

Original comment by arne@rfc2549.org on 1 Oct 2014 at 7:28

GoogleCodeExporter commented 9 years ago
that apk works OK. I wonder what I'm doing bad.

Thanks for that apk Arne

Original comment by parm...@sdf.org on 2 Oct 2014 at 8:19

GoogleCodeExporter commented 9 years ago
Submitted a bug to AOSP: 
https://code.google.com/p/android/issues/detail?id=77004&thanks=77004&ts=1412248
443

I'm just removing the 64 bits targets, until they fix this bug or they point me 
to a fix to myself.

Original comment by parm...@sdf.org on 2 Oct 2014 at 11:15

GoogleCodeExporter commented 9 years ago
Important update: https://code.google.com/p/android/issues/detail?id=77004#c4

"You need to unzip ndk64* on top of ndk32* to get all API level for 32-bit 
development, and let ndk-build select proper API level as your did on and 
before r9d."

Original comment by parm...@sdf.org on 3 Oct 2014 at 7:02

GoogleCodeExporter commented 9 years ago
Yeah that is what I did too. I am closing this bug since it has been "solved"

Original comment by arne@rfc2549.org on 3 Oct 2014 at 11:00