我尝试在Windows(本地版本)上配置stronsgwan。我正在使用Mingw- 64,openssl。我收到以下错误“找不到openssl libcrypto” 我在环境变量中给出了所有路径,但仍然出现错误。
CFLAGS="-I/c/mingw-w64/msys/OpenSSL-Win64/include/openssl" \
LDFLAGS="-L/c/mingw-w64/msys/OpenSSL-Win64/lib" \
/configure --disable-defaults --enable-openssl --enable-monolithic --
enablestatic \
--enable-svc --enable-ikev2 --enable-ikev1 \
--enable-nonce --enable-pem --enable-pkcs1 \
--enable-x509 --enable-socket-win \
--enable-kernel-wfp --enable-kernel-iph --enable-pubkey \
--enable-swanctl --with-swanctldir=swanctl \
--with-strongswan-conf=strongswan.conf
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
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 '500' is supported by ustar format... yes
checking whether GID '544' 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 pkg-config... no
checking for a sed that does not truncate output... /bin/sed
checking configured UDP ports (500, 4500)... ok
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.exe
checking for suffix of executables... .exe
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking build system type... i686-pc-mingw32
checking host system type... i686-pc-mingw32
checking how to run the C preprocessor... gcc -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 gcc... C:/mingw-w64/mingw64/x86_64-w64-
mingw32/bin/ld.exe
checking if the linker (C:/mingw-w64/mingw64/x86_64-w64-
mingw32/bin/ld.exe) is
GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /mingw/bin/nm -B
checking the name lister (/mingw/bin/nm -B) interface... BSD nm
checking whether ln -s works... no, using cp -pR
checking the maximum length of command line arguments... 8192
checking how to convert i686-pc-mingw32 file names to i686-pc-mingw32
format... func_convert_file_msys_to_w32
checking how to convert i686-pc-mingw32 file names to toolchain
format... func_convert_file_msys_to_w32
checking for C:/mingw-w64/mingw64/x86_64-w64-mingw32/bin/ld.exe option
to reload
object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... file_magic ^x86
archive import|^x86 DLL
checking for dlltool... dlltool
checking how to associate runtime and link libraries...
func_cygming_dll_for_implib
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /mingw/bin/nm -B output from gcc object...
ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking for dlfcn.h... no
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -DDLL_EXPORT -DPIC
checking if gcc PIC flag -DDLL_EXPORT -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (C:/mingw-w64/mingw64/x86_64-w64-
mingw32/bin/ld.exe) supports shared libraries... yes
checking whether -lc should be explicitly linked in... yes
checking dynamic linker characteristics... Win32 ld.exe
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... yes
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... no
checking for python2... no
checking for python3... no
checking for python3.3... no
checking for python3.2... no
checking for python3.1... no
checking for python3.0... no
checking for python2.7... no
checking for python2.6... no
checking for python2.5... no
checking for python2.4... no
checking for python2.3... no
checking for python2.2... no
checking for python2.1... no
checking for python2.0... no
checking for perl... /bin/perl
checking for gperf... no
checking gperf version >= 3.0.0... not found
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for size_t... yes
checking for working alloca.h... no
checking for alloca... yes
checking whether strerror_r is declared... no
checking for strerror_r... no
checking whether strerror_r returns char *... no
checking for library containing dlopen... no
checking for library containing backtrace... no
checking for backtrace... no
checking for library containing socket... no
checking for socket in -lnsl... no
checking for library containing pthread_create... none required
checking for library containing __atomic_and_fetch... none required
checking for dladdr... no
checking for pthread_condattr_setclock(CLOCK_MONOTONIC)... no
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... no
checking for qsort_r... no
checking for prctl... no
checking for mallinfo... no
checking for getpass... no
checking for closefrom... no
checking for getpwnam_r... no
checking for getgrnam_r... no
checking for getpwuid_r... no
checking for fmemopen... no
checking for funopen... no
checking for mmap... no
checking for memrchr... no
checking for setlinebuf... no
checking for strptime... no
checking for dirfd... no
checking for sigwaitinfo... no
checking for syslog... no
checking sys/sockio.h usability... no
checking sys/sockio.h presence... no
checking for sys/sockio.h... no
checking sys/syscall.h usability... no
checking sys/syscall.h presence... no
checking for sys/syscall.h... no
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking glob.h usability... no
checking glob.h presence... no
checking for glob.h... no
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... no
checking linux/udp.h presence... no
checking for linux/udp.h... no
checking for netinet/ip6.h... no
checking for linux/fib_rules.h... no
checking for struct sockaddr.sa_len... no
checking for struct sadb_x_policy.sadb_x_policy_priority... no
checking for in6addr_any... no
checking for in6_pktinfo... no
checking for RTM_IFANNOUNCE... no
checking for IPSEC_MODE_BEET... no
checking for IPSEC_DIR_FWD... no
checking for RTA_TABLE... no
checking for __int128... yes
checking for GCC __sync operations... yes
checking for register_printf_specifier... no
checking for register_printf_function... no
configure: printf(3) does not support custom format specifiers!
checking for Windows target... yes
checking for working __attribute__((packed))... yes
checking clang... no
checking x86/x64 target... yes
checking for EVP_CIPHER_CTX_new in -leay32... no
no
checking for EVP_CIPHER_CTX_new in -lcrypto... no
configure: error: OpenSSL libcrypto not found
我尝试在Windows(本地版本)上配置stronsgwan。我正在使用Mingw- 64,openssl。我收到以下错误“找不到openssl libcrypto” 我在环境变量中给出了所有路径,但仍然出现错误。