hanwckf / rt-n56u

Padavan
3.28k stars 3.68k forks source link

strongswan编译问题红米AC2100 #675

Open reboot-system opened 3 years ago

reboot-system commented 3 years ago

make[2]: Entering directory '/opt/rt-n56u/trunk/user/strongswan' ( if [ ! -f /opt/rt-n56u/trunk/user/strongswan/strongswan-5.6.0.tar.bz2 ]; then \ wget -t5 --timeout=20 --no-check-certificate https://download.strongswan.org/strongswan-5.6.0.tar.bz2; \ fi ) --2021-06-15 12:41:09-- https://download.strongswan.org/strongswan-5.6.0.tar.bz2 Resolving download.strongswan.org (download.strongswan.org)... 152.96.80.46, 2001:620:130:a080::46 Connecting to download.strongswan.org (download.strongswan.org)|152.96.80.46|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 4850722 (4.6M) [application/x-bzip2] Saving to: ‘strongswan-5.6.0.tar.bz2’

strongswan-5.6.0.tar.bz2 100%[================================================================================================================>] 4.63M 167KB/s in 41s

2021-06-15 12:41:56 (114 KB/s) - ‘strongswan-5.6.0.tar.bz2’ saved [4850722/4850722]

( if [ ! -d /opt/rt-n56u/trunk/user/strongswan/strongswan-5.6.0 ]; then \ tar xjf strongswan-5.6.0.tar.bz2; \ fi ) ( if [ -f /opt/rt-n56u/trunk/user/strongswan/config_done ]; then \ echo "the same configuration"; \ else \ make configure && touch config_done; \ fi ) make[3]: Entering directory '/opt/rt-n56u/trunk/user/strongswan' ( cd strongswan-5.6.0 ; \ PKG_CONFIG_PATH=/opt/rt-n56u/trunk/stage/lib/pkgconfig \ ./configure \ --with-sysroot=/opt/rt-n56u/trunk/stage \ --prefix=/usr \ --sysconfdir=/etc/storage/strongswan \ --enable-strongswan \ --enable-charon \ --enable-default \ --enable-aes \ --enable-attr \ --enable-connmark \ --enable-constraints \ --enable-des \ --enable-dnskey \ --enable-fips-prf \ --enable-gmp \ --enable-hmac \ --enable-kernel-netlink \ --enable-md5 \ --enable-nonce \ --enable-pem \ --enable-pgp \ --enable-pkcs1 \ --enable-pubkey \ --enable-random \ --enable-rc2 \ --enable-resolve \ --enable-revocation \ --enable-sha1 \ --enable-sha2 \ --enable-socket-default \ --enable-sshkey \ --enable-stroke \ --enable-updown \ --enable-x509 \ --enable-xauth-generic \ --enable-xcbc \ --enable-utils \ --with-resolv-conf=/etc/resolv.conf \ --with-user=admin \ --host=mipsel-linux \ --build=i686-pc-linux-gnu ; \ ) configure: WARNING: unrecognized options: --enable-strongswan, --enable-default, --enable-utils checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for mipsel-linux-strip... /opt/rt-n56u/trunk/../toolchain-mipsel/toolchain-3.4.x/bin/mipsel-linux-uclibc-strip checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether UID '0' is supported by ustar format... yes checking whether GID '0' is supported by ustar format... yes checking how to create a ustar tar archive... gnutar checking whether make supports nested variables... (cached) yes checking for mipsel-linux-pkg-config... no checking for pkg-config... /usr/bin/pkg-config configure: WARNING: using cross tools not prefixed with host triplet checking pkg-config is at least version 0.9.0... yes checking for a sed that does not truncate output... /bin/sed checking configured UDP ports (500, 4500)... ok checking for mipsel-linux-gcc... /opt/rt-n56u/trunk/../toolchain-mipsel/toolchain-3.4.x/bin/mipsel-linux-uclibc-gcc -mips32r2 -march=mips32r2 -mtune=1004kc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... yes checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether /opt/rt-n56u/trunk/../toolchain-mipsel/toolchain-3.4.x/bin/mipsel-linux-uclibc-gcc -mips32r2 -march=mips32r2 -mtune=1004kc accepts -g... yes checking for /opt/rt-n56u/trunk/../toolchain-mipsel/toolchain-3.4.x/bin/mipsel-linux-uclibc-gcc -mips32r2 -march=mips32r2 -mtune=1004kc option to accept ISO C89... none needed checking whether /opt/rt-n56u/trunk/../toolchain-mipsel/toolchain-3.4.x/bin/mipsel-linux-uclibc-gcc -mips32r2 -march=mips32r2 -mtune=1004kc understands -c and -o together... yes checking for style of include used by make... GNU checking dependency style of /opt/rt-n56u/trunk/../toolchain-mipsel/toolchain-3.4.x/bin/mipsel-linux-uclibc-gcc -mips32r2 -march=mips32r2 -mtune=1004kc... gcc3 checking build system type... i686-pc-linux-gnu checking host system type... mipsel-unknown-linux-gnu checking how to run the C preprocessor... /opt/rt-n56u/trunk/../toolchain-mipsel/toolchain-3.4.x/bin/mipsel-linux-uclibc-gcc -mips32r2 -march=mips32r2 -mtune=1004kc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking whether byte ordering is bigendian... no checking how to print strings... printf checking for a sed that does not truncate output... (cached) /bin/sed checking for fgrep... /bin/grep -F checking for ld used by /opt/rt-n56u/trunk/../toolchain-mipsel/toolchain-3.4.x/bin/mipsel-linux-uclibc-gcc -mips32r2 -march=mips32r2 -mtune=1004kc... /opt/rt-n56u/trunk/../toolchain-mipsel/toolchain-3.4.x/bin/mipsel-linux-uclibc-ld checking if the linker (/opt/rt-n56u/trunk/../toolchain-mipsel/toolchain-3.4.x/bin/mipsel-linux-uclibc-ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /opt/rt-n56u/trunk/../toolchain-mipsel/toolchain-3.4.x/bin/mipsel-linux-uclibc-nm checking the name lister (/opt/rt-n56u/trunk/../toolchain-mipsel/toolchain-3.4.x/bin/mipsel-linux-uclibc-nm) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking how to convert i686-pc-linux-gnu file names to mipsel-unknown-linux-gnu format... func_convert_file_noop checking how to convert i686-pc-linux-gnu file names to toolchain format... func_convert_file_noop checking for /opt/rt-n56u/trunk/../toolchain-mipsel/toolchain-3.4.x/bin/mipsel-linux-uclibc-ld option to reload object files... -r checking for mipsel-linux-objdump... no checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for mipsel-linux-dlltool... no checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for mipsel-linux-ar... /opt/rt-n56u/trunk/../toolchain-mipsel/toolchain-3.4.x/bin/mipsel-linux-uclibc-ar checking for archiver @FILE support... @ checking for mipsel-linux-strip... (cached) /opt/rt-n56u/trunk/../toolchain-mipsel/toolchain-3.4.x/bin/mipsel-linux-uclibc-strip checking for mipsel-linux-ranlib... /opt/rt-n56u/trunk/../toolchain-mipsel/toolchain-3.4.x/bin/mipsel-linux-uclibc-ranlib checking command to parse /opt/rt-n56u/trunk/../toolchain-mipsel/toolchain-3.4.x/bin/mipsel-linux-uclibc-nm output from /opt/rt-n56u/trunk/../toolchain-mipsel/toolchain-3.4.x/bin/mipsel-linux-uclibc-gcc -mips32r2 -march=mips32r2 -mtune=1004kc object... ok checking for sysroot... /opt/rt-n56u/trunk/stage checking for a working dd... /bin/dd checking how to truncate binary pipes... /bin/dd bs=4096 count=1 checking for mipsel-linux-mt... no checking for mt... mt checking if mt is a manifest tool... no checking for dlfcn.h... yes checking for objdir... .libs checking if /opt/rt-n56u/trunk/../toolchain-mipsel/toolchain-3.4.x/bin/mipsel-linux-uclibc-gcc -mips32r2 -march=mips32r2 -mtune=1004kc supports -fno-rtti -fno-exceptions... no checking for /opt/rt-n56u/trunk/../toolchain-mipsel/toolchain-3.4.x/bin/mipsel-linux-uclibc-gcc -mips32r2 -march=mips32r2 -mtune=1004kc option to produce PIC... -fPIC -DPIC checking if /opt/rt-n56u/trunk/../toolchain-mipsel/toolchain-3.4.x/bin/mipsel-linux-uclibc-gcc -mips32r2 -march=mips32r2 -mtune=1004kc PIC flag -fPIC -DPIC works... yes checking if /opt/rt-n56u/trunk/../toolchain-mipsel/toolchain-3.4.x/bin/mipsel-linux-uclibc-gcc -mips32r2 -march=mips32r2 -mtune=1004kc static flag -static works... no checking if /opt/rt-n56u/trunk/../toolchain-mipsel/toolchain-3.4.x/bin/mipsel-linux-uclibc-gcc -mips32r2 -march=mips32r2 -mtune=1004kc supports -c -o file.o... yes checking if /opt/rt-n56u/trunk/../toolchain-mipsel/toolchain-3.4.x/bin/mipsel-linux-uclibc-gcc -mips32r2 -march=mips32r2 -mtune=1004kc supports -c -o file.o... (cached) yes checking whether the /opt/rt-n56u/trunk/../toolchain-mipsel/toolchain-3.4.x/bin/mipsel-linux-uclibc-gcc -mips32r2 -march=mips32r2 -mtune=1004kc linker (/opt/rt-n56u/trunk/../toolchain-mipsel/toolchain-3.4.x/bin/mipsel-linux-uclibc-ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no checking for egrep... (cached) /bin/grep -E checking for gawk... (cached) gawk checking for flex... flex checking lex output file root... lex.yy checking lex library... none needed checking whether yytext is a pointer... no checking for bison... bison -y checking for python... /usr/bin/python checking for python version... 2.7 checking for python platform... linux2 checking for python script directory... ${prefix}/lib/python2.7/dist-packages checking for python extension module directory... ${exec_prefix}/lib/python2.7/dist-packages checking for perl... /usr/bin/perl checking for gperf... /usr/bin/gperf checking gperf version >= 3.0.0... yes checking for stdbool.h that conforms to C99... yes checking for _Bool... yes checking for size_t... yes checking for working alloca.h... yes checking for alloca... yes checking whether strerror_r is declared... yes checking for strerror_r... yes checking whether strerror_r returns char *... no checking for library containing dlopen... none required checking for library containing backtrace... no checking for backtrace... no checking for library containing socket... none required checking for library containing pthread_create... none required checking for library containing atomic_and_fetch... none required checking for dladdr... yes checking for pthread_condattr_setclock(CLOCK_MONOTONIC)... unknown checking for pthread_condattr_setclock... yes checking for pthread_condattr_init... yes checking for pthread_cond_timedwait_monotonic... no checking for pthread_cancel... yes checking for pthread_rwlock_init... yes checking for pthread_spin_init... yes checking for sem_timedwait... yes checking for gettid... no checking for SYS_gettid... yes checking for qsort_r... yes checking for GNU-style qsort_r... yes checking for prctl... yes checking for mallinfo... yes checking for getpass... yes checking for closefrom... no checking for getpwnam_r... yes checking for getgrnam_r... yes checking for getpwuid_r... yes checking for fmemopen... yes checking for funopen... no checking for mmap... yes checking for memrchr... yes checking for setlinebuf... yes checking for strptime... yes checking for dirfd... yes checking for sigwaitinfo... yes checking for syslog... yes checking sys/sockio.h usability... no checking sys/sockio.h presence... no checking for sys/sockio.h... no checking sys/syscall.h usability... yes checking sys/syscall.h presence... yes checking for sys/syscall.h... yes checking sys/param.h usability... yes checking sys/param.h presence... yes checking for sys/param.h... yes checking glob.h usability... yes checking glob.h presence... yes checking for glob.h... yes checking net/if_tun.h usability... no checking net/if_tun.h presence... no checking for net/if_tun.h... no checking net/pfkeyv2.h usability... no checking net/pfkeyv2.h presence... no checking for net/pfkeyv2.h... no checking netipsec/ipsec.h usability... no checking netipsec/ipsec.h presence... no checking for netipsec/ipsec.h... no checking netinet6/ipsec.h usability... no checking netinet6/ipsec.h presence... no checking for netinet6/ipsec.h... no checking linux/udp.h usability... yes checking linux/udp.h presence... yes checking for linux/udp.h... yes checking for netinet/ip6.h... yes checking for linux/fib_rules.h... yes checking for struct sockaddr.sa_len... no checking for struct sadb_x_policy.sadb_x_policy_priority... yes checking for in6addr_any... yes checking for in6_pktinfo... yes checking for RTM_IFANNOUNCE... no checking for IPSEC_MODE_BEET... yes checking for IPSEC_DIR_FWD... yes checking for RTA_TABLE... yes checking for int128... no checking for GCC sync operations... no checking for register_printf_specifier... no checking for register_printf_function... yes checking for Windows target... no checking for library containing clock_gettime... none required checking for clock_gettime... yes checking for working attribute((packed))... yes checking clang... no checking x86/x64 target... no checking for gmpz_init in -lgmp... no configure: error: GNU Multi Precision library gmp not found Makefile:31: recipe for target 'configure' failed make[3]: [configure] Error 1 make[3]: Leaving directory '/opt/rt-n56u/trunk/user/strongswan' Makefile:24: recipe for target 'config_test' failed make[2]: [config_test] Error 2 make[2]: Leaving directory '/opt/rt-n56u/trunk/user/strongswan' Makefile:222: recipe for target 'all' failed make[1]: [all] Error 2 make[1]: Leaving directory '/opt/rt-n56u/trunk/user' Makefile:202: recipe for target 'user_only' failed make: [user_only] Error 2

知道怎么处理吗,我搞好久了没搞了,有能出处理,可以帮个忙吗加wx,386515350,我可以加鸡腿200

serafwind commented 3 years ago

大概率是源码没下载全导致的,你可以试试先勾选最少的项目和组件(default),然后再慢慢加

paldier commented 3 years ago

GNU Multi Precision library gmp not found