[stunnel-users] Compiling for Android
Pio Tofanelli
ptofanelli at gmail.com
Thu May 21 20:55:08 CEST 2015
Hi,
I'm new to stunnel and I'd like to compile it to ARM and x86 platforms. I
downloaded the stunnel-5.17 package and I'm using the build-android.sh and
android-ndk-r10e script to compile it:
../../configure
--with-sysroot=/home/ptofanelli/android-ndk-r10e/platforms/android-18/arch-arm/
--build=i686-pc-linux-gnu --host=arm-linux-androideabi --prefix=/data/local
I'm getting the message "The C compiler cannot create executables" and
checking the logs I've found that the problem is this:
configure:3538: arm-linux-androideabi-gcc conftest.c >&5
/home/ptofanelli/android-ndk-r10e/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld:
error: cannot open crtbegin_dynamic.o: No such file or directory
/home/ptofanelli/android-ndk-r10e/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld:
error: cannot open crtend_android.o: No such file or directory
/home/ptofanelli/android-ndk-r10e/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld:
error: cannot find -lc
/home/ptofanelli/android-ndk-r10e/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld:
error: cannot find -ldl
collect2: error: ld returned 1 exit status
I searched for this problem and a topic in stackoverflow (
http://stackoverflow.com/questions/16795583/android-error-cannot-open-crtbegin-dynamic-o-no-such-file-or-directory)
is said that the problem is the sysroot, so I tried to use the option
--with-sysroot, but I'm getting the same problem.
Can you help me?
Thanks and regards,
Pio Tofanelli
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.stunnel.org/pipermail/stunnel-users/attachments/20150521/b0f25c21/attachment.html>
More information about the stunnel-users
mailing list