Ubuntu OS:: Strongswan 编译失败(make 失败)

Ubuntu OS:: Strongswan 编译失败(make 失败)

我使用的是 Ubuntu OS 22.04。我运行了“apt-get install strongswan”

  • 安装“apt-get install opensc”后
  • 安装“apt-get install libgmp-dev”后
  • 安装“apt-get install libssl-dev”后
  • 安装“apt-get install libssh-dev”后

然后

wget https://download.strongswan.org/strongswan-5.9.11.tar.gz
tar -xzf  strongswan-5.9.11.tar.gz
./configure --prefix=/usr/local  --enable-openssl --sysconfdir=/etc

以上所有命令均成功运行。

但是当我接下来运行“make”命令时,它运行了一段时间并抛出了一条错误消息,我发现很难理解。粘贴最后一个结尾的 make 文件日志的片段。如果有人能帮助解决这个问题,我将不胜感激。

root@arjun:/usr/src/strongswan-5.9.11#make
.....................................
make[3]: Entering directory '/usr/src/strongswan-5.9.11/src/xfrmi'
depbase=`echo xfrmi.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I../..  -I../../src/libstrongswan -I../../src/libcharon -I../../src/libcharon/plugins/kernel_netlink   -Wno-format -Wno-format-security -Wno-implicit-fallthrough -Wno-missing-field-initializers -Wno-pointer-sign -Wno-sign-compare -Wno-type-limits -Wno-unused-parameter -g -O2 -include /usr/src/strongswan-5.9.11/config.h -MT xfrmi.o -MD -MP -MF $depbase.Tpo -c -o xfrmi.o xfrmi.c &&\
mv -f $depbase.Tpo $depbase.Po
/bin/bash ../../libtool  --tag=CC   --mode=link gcc  -Wno-format -Wno-format-security -Wno-implicit-fallthrough -Wno-missing-field-initializers -Wno-pointer-sign -Wno-sign-compare -Wno-type-limits -Wno-unused-parameter -g -O2 -include /usr/src/strongswan-5.9.11/config.h   -o xfrmi xfrmi.o ../../src/libcharon/plugins/kernel_netlink/libstrongswan-kernel-netlink.la ../../src/libstrongswan/libstrongswan.la ../../src/libcharon/libcharon.la

*** Warning: Linking the executable xfrmi against the loadable module
*** libstrongswan-kernel-netlink.so is not portable!
libtool: link: gcc -Wno-format -Wno-format-security -Wno-implicit-fallthrough -Wno-missing-field-initializers -Wno-pointer-sign -Wno-sign-compare -Wno-type-limits -Wno-unused-parameter -g -O2 -include /usr/src/strongswan-5.9.11/config.h -o .libs/xfrmi xfrmi.o  ../../src/libcharon/plugins/kernel_netlink/.libs/libstrongswan-kernel-netlink.so ../../src/libstrongswan/.libs/libstrongswan.so ../../src/libcharon/.libs/libcharon.so -Wl,-rpath -Wl,/usr/local/lib/ipsec/plugins -Wl,-rpath -Wl,/usr/local/lib/ipsec
make[3]: Leaving directory '/usr/src/strongswan-5.9.11/src/xfrmi'
Making all in starter
make[3]: Entering directory '/usr/src/strongswan-5.9.11/src/starter'
\
         -m 10 -C -G -D -t \
                --output-file=keywords.c ./keywords.txt
/bin/bash: line 2: -m: command not found
make[3]: *** [Makefile:1046: keywords.c] Error 127
make[3]: Leaving directory '/usr/src/strongswan-5.9.11/src/starter'
make[2]: *** [Makefile:539: all-recursive] Error 1
make[2]: Leaving directory '/usr/src/strongswan-5.9.11/src'
make[1]: *** [Makefile:604: all-recursive] Error 1
make[1]: Leaving directory '/usr/src/strongswan-5.9.11'
make: *** [Makefile:515: all] Error 2
root@eksa-cp01:/usr/src/strongswan-5.9.11#

任何帮助将不胜感激。

谢谢,阿琼

相关内容