<div dir="ltr">Hi,<div><br></div><div>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:</div><div>../../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<br></div><div><br></div><div>I'm getting the message "The C compiler cannot create executables" and checking the logs I've found that the problem is this:</div><div><br></div><div><div>configure:3538: arm-linux-androideabi-gcc    conftest.c  >&5</div><div>/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</div><div>/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</div><div>/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</div><div>/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</div><div>collect2: error: ld returned 1 exit status</div></div><div><br></div><div>I searched for this problem and a topic in stackoverflow (<a href="http://stackoverflow.com/questions/16795583/android-error-cannot-open-crtbegin-dynamic-o-no-such-file-or-directory">http://stackoverflow.com/questions/16795583/android-error-cannot-open-crtbegin-dynamic-o-no-such-file-or-directory</a>) is said that the problem is the sysroot, so I tried to use the option --with-sysroot, but I'm getting the same problem.</div><div><br></div><div>Can you help me?</div><div><br></div><div>Thanks and regards,</div><div><br></div><div>Pio Tofanelli</div></div>