cernekee / ics-openconnect

Android UI for OpenConnect VPN client
GNU General Public License v2.0
358 stars 129 forks source link

compile fail #55

Closed ffyliu closed 4 years ago

ffyliu commented 4 years ago

gcc version 4.8.5 Red Hat 4.8.5-16 android-ndk-r16b compile openconnect log below:

configure:3929: $? = 0 configure:3918: gcc -std=gnu99 -v >&5 Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/lto-wrapper Target: x86_64-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-initfini-array --disable-libgcj --with-isl=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/isl-install --with-cloog=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/cloog-install --enable-gnu-indirect-function --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux Thread model: posix gcc version 4.8.5 20150623 (Red Hat 4.8.5-16) (GCC) configure:3929: $? = 0 configure:3918: gcc -std=gnu99 -V >&5 gcc: error: unrecognized command line option '-V' gcc: fatal error: no input files compilation terminated. configure:3929: $? = 4 configure:3918: gcc -std=gnu99 -qversion >&5 gcc: error: unrecognized command line option '-qversion' gcc: fatal error: no input files compilation terminated. configure:3929: $? = 4 configure:3949: checking whether the C compiler works configure:3971: gcc -std=gnu99 -march=armv7-a -mthumb -D__ANDROID_API=14 -O2 -fvisibility=default -fPIE -I/usr/local/openssl/include -rdynamic -pie conftest.c >&5 gcc: error: unrecognized command line option '-mthumb' configure:3975: $? = 1 configure:4013: result: no configure: failed program was: / confdefs.h / #define PACKAGE_NAME "openconnect" #define PACKAGE_TARNAME "openconnect" #define PACKAGE_VERSION "7.08" #define PACKAGE_STRING "openconnect 7.08" #define PACKAGE_BUGREPORT "" #define PACKAGE_URL "" #define PACKAGE "openconnect" #define VERSION "7.08" #define _GNU_SOURCE 1 #define DEFAULT_VPNCSCRIPT "/etc/vpnc/vpnc-script" / end confdefs.h. /
int
main ()
{
;
return 0;
}
ffyliu commented 4 years ago

use ubuntu to compile is OK.