Какова моя проблема с strongswan, человечностью 17.10

Это - то, что я получаю

    root@Dejected-Unicorn:~/strongswan-5.5.2# make
make  all-recursive
make[1]: Entering directory '/root/strongswan-5.5.2'
Making all in src
make[2]: Entering directory '/root/strongswan-5.5.2/src'
Making all in .
make[3]: Entering directory '/root/strongswan-5.5.2/src'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/root/strongswan-5.5.2/src'
Making all in include
make[3]: Entering directory '/root/strongswan-5.5.2/src/include'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/root/strongswan-5.5.2/src/include'
Making all in libstrongswan
make[3]: Entering directory '/root/strongswan-5.5.2/src/libstrongswan'
make  all-recursive
make[4]: Entering directory '/root/strongswan-5.5.2/src/libstrongswan'
Making all in .
make[5]: Entering directory '/root/strongswan-5.5.2/src/libstrongswan'
depbase=`echo library.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/bash ../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../..  -I../../src/libstrongswan -DIPSEC_DIR=\"/usr/lib/ipsec\" -DIPSEC_LIB_DIR=\"/usr/lib/ipsec\" -DPLUGINDIR=\"/usr/lib/ipsec/plugins\" -DSTRONGSWAN_CONF=\"/etc/strongswan.conf\"       -g -O2 -Wall -Wno-format -Wno-format-security -Wno-pointer-sign -include /root/strongswan-5.5.2/config.h -MT library.lo -MD -MP -MF $depbase.Tpo -c -o library.lo library.c &&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/libstrongswan -DIPSEC_DIR=\"/usr/lib/ipsec\" -DIPSEC_LIB_DIR=\"/usr/lib/ipsec\" -DPLUGINDIR=\"/usr/lib/ipsec/plugins\" -DSTRONGSWAN_CONF=\"/etc/strongswan.conf\" -g -O2 -Wall -Wno-format -Wno-format-security -Wno-pointer-sign -include /root/strongswan-5.5.2/config.h -MT library.lo -MD -MP -MF .deps/library.Tpo -c library.c  -fPIC -DPIC -o .libs/library.o
In file included from utils/utils.h:54:0,
                 from library.h:101,
                 from library.c:17:
utils/utils/memory.h: In function ‘memwipe_inline’:
utils/utils/memory.h:99:15: error: ‘uintptr_t’ undeclared (first use in this function); did you mean ‘__intptr_t’?
  for (i = 0; (uintptr_t)&c[i] % sizeof(long) && i < n; i++)
               ^~~~~~~~~
               __intptr_t
utils/utils/memory.h:99:15: note: each undeclared identifier is reported only once for each function it appears in
Makefile:1922: recipe for target 'library.lo' failed
make[5]: *** [library.lo] Error 1
make[5]: Leaving directory '/root/strongswan-5.5.2/src/libstrongswan'
Makefile:2008: recipe for target 'all-recursive' failed
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory '/root/strongswan-5.5.2/src/libstrongswan'
Makefile:1153: recipe for target 'all' failed
make[3]: *** [all] Error 2
make[3]: Leaving directory '/root/strongswan-5.5.2/src/libstrongswan'
Makefile:518: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/root/strongswan-5.5.2/src'
Makefile:579: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/root/strongswan-5.5.2'
Makefile:488: recipe for target 'all' failed
make: *** [all] Error 2

Спасибо за то, что заняли время для взгляда

1
задан 18 February 2018 в 06:41

1 ответ

В первую очередь, strongswan упаковывается в основном репозитории.

Можно установить версию 5.5.1 с:

sudo apt-get install strongswan

Если Вы не используете специальные опции в ./configure можно использовать этот двоичный пакет.

Но если действительно необходимо скомпилировать его, можно сделать это следующим образом:

wget https://download.strongswan.org/strongswan-5.5.2.tar.gz
tar -xvzf strongswan-5.5.2.tar.gz
cd strongswan-5.5.2/
sudo apt-get install build-essential
sudo apt-get build-dep strongswan
./configure
make 

но я получаю ту же ошибку с 5.5.2 и даже 5.5.1. Кажется, ошибка 2425 в strongswan.

0
ответ дан 8 December 2019 в 02:19

Другие вопросы по тегам:

Похожие вопросы: