не собирается 1.11.1 под Archlinux c ядром 4.9

Compilation and installation questions and stories
Post Reply
4le34n
Posts: 10
Joined: 29 Jun 2017, 06:15

не собирается 1.11.1 под Archlinux c ядром 4.9

Post by 4le34n » 29 Jun 2017, 06:54

Два три месяца назад перестала собираться версия 1.11.1.
gcc:

Code: Select all

% LANG=en_US.UTF-8 gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-linux-gnu/7.1.1/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /build/gcc/src/gcc/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --enable-libmpx --with-system-zlib --with-isl --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object --enable-linker-build-id --enable-lto --enable-plugin --enable-install-libiberty --with-linker-hash-style=gnu --enable-gnu-indirect-function --disable-multilib --disable-werror --enable-checking=release
Thread model: posix
gcc version 7.1.1 20170516 (GCC)
%
ядро:

Code: Select all

% uname -a
Linux LocalHost 4.9.33-1-lts #1 SMP Sat Jun 17 10:32:41 CEST 2017 x86_64 GNU/Linux
%
Вывод где стопорится:

Code: Select all

[ 29%] Linking C shared library liblog_syslog.so
[ 29%] Built target log_syslog
Scanning dependencies of target sigchld
[ 30%] Building C object accel-pppd/extra/CMakeFiles/sigchld.dir/sigchld.c.o
[ 31%] Linking C shared library libconnlimit.so
[ 31%] Linking C shared library libsigchld.so
[ 32%] Linking C shared library liblog_file.so
[ 32%] Built target connlimit
[ 32%] Built target sigchld
Scanning dependencies of target ipv6pool
Scanning dependencies of target ippool
[ 32%] Built target log_file
Scanning dependencies of target chap-secrets
[ 33%] Building C object accel-pppd/extra/CMakeFiles/ipv6pool.dir/ipv6pool.c.o
[ 34%] Building C object accel-pppd/extra/CMakeFiles/chap-secrets.dir/chap-secrets.c.o
[ 35%] Building C object accel-pppd/extra/CMakeFiles/ippool.dir/ippool.c.o
[ 36%] Building C object accel-pppd/radius/CMakeFiles/radius.dir/dm_coa.c.o
/tmp/makepkg/accel-ppp/src/accel-ppp-1.11.1/accel-pppd/extra/chap-secrets.c: In function ‘create_pd’:
/tmp/makepkg/accel-ppp/src/accel-ppp-1.11.1/accel-pppd/extra/chap-secrets.c:132:13: error: storage size of ‘md_ctx’ isn’t known
  EVP_MD_CTX md_ctx;
             ^~~~~~
/tmp/makepkg/accel-ppp/src/accel-ppp-1.11.1/accel-pppd/extra/chap-secrets.c:147:4: warning: implicit declaration of function ‘EVP_MD_CTX_cleanup’; did you mean ‘EVP_MD_CTX_create’? [-Wimplicit-function-declaration]
    EVP_MD_CTX_cleanup(&md_ctx);
    ^~~~~~~~~~~~~~~~~~
    EVP_MD_CTX_create
/tmp/makepkg/accel-ppp/src/accel-ppp-1.11.1/accel-pppd/extra/chap-secrets.c:132:13: warning: unused variable ‘md_ctx’ [-Wunused-variable]
  EVP_MD_CTX md_ctx;
             ^~~~~~
make[2]: *** [accel-pppd/extra/CMakeFiles/chap-secrets.dir/build.make:63: accel-pppd/extra/CMakeFiles/chap-secrets.dir/chap-secrets.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1081: accel-pppd/extra/CMakeFiles/chap-secrets.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 37%] Building C object accel-pppd/ctrl/l2tp/CMakeFiles/l2tp.dir/dict.c.o
[ 38%] Building C object accel-pppd/ctrl/l2tp/CMakeFiles/l2tp.dir/packet.c.o
/tmp/makepkg/accel-ppp/src/accel-ppp-1.11.1/accel-pppd/extra/ippool.c: In function ‘ippool_init2’:
/tmp/makepkg/accel-ppp/src/accel-ppp-1.11.1/accel-pppd/extra/ippool.c:616:5: warning: ‘generate’ may be used uninitialized in this function [-Wmaybe-uninitialized]
     add_range(p, &p->tunnel_list, opt->val, generate);
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 39%] Building C object accel-pppd/radius/CMakeFiles/radius.dir/radius.c.o
[ 40%] Linking C shared library libippool.so
[ 40%] Linking C shared library libipv6pool.so
[ 40%] Built target ippool
[ 40%] Built target ipv6pool
[ 41%] Linking C shared library libl2tp.so
[ 41%] Built target l2tp
[ 42%] Linking C shared library libradius.so
[ 42%] Built target radius
make: *** [Makefile:152: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
LANG=en_US.UTF-8 makepkg -c  19,93s user 0,94s system 253% cpu 8,232 total
%

dimka88
Posts: 419
Joined: 13 Oct 2014, 05:51
Contact:

Re: не собирается 1.11.1 под Archlinux c ядром 4.9

Post by dimka88 » 30 Jun 2017, 10:39

Я так ядро версии 4.4 на днях решил собрать c gcc-6, проклял эту затею. Многое что поменялось, нужно модернизировать код =)

Dmitry
Администратор
Posts: 949
Joined: 09 Oct 2014, 10:06

Re: не собирается 1.11.1 под Archlinux c ядром 4.9

Post by Dmitry » 30 Jun 2017, 11:28

дело не в gcc, а в openssl
в соседней теме тоже самое

4le34n
Posts: 10
Joined: 29 Jun 2017, 06:15

Re: не собирается 1.11.1 под Archlinux c ядром 4.9

Post by 4le34n » 03 Jul 2017, 04:47

Возможно дело и в gcc и в openssl.
openssl у меня стоит всех возможных версий.

Code: Select all

% pacman -Qi openssl
Название             : openssl
Версия               : 1.1.0.f-1
Описание             : The Open Source toolkit for Secure Sockets Layer and Transport Layer Security
Архитектура          : x86_64
URL                  : https://www.openssl.org
Лицензии             : custom:BSD
Группы               : Нет
Предоставляет        : Нет
Зависит от           : perl
Доп. зависимости     : ca-certificates [установлено]
Требуется            : android-tools  archboot  bind-tools  coreutils  curl  dillo  efitools  git  iputils  ldns  libarchive  libevent  libgit2  libsasl  libshout  libssh2  lua-sec  lynx
                       net-snmp  nginx  nmap  nsd  ntp  openslp  openssh  openvpn  pkcs11-helper  python  python2  s-nail  tcpdump  testdisk  unbound  vpnc  wpa_supplicant
Опционально для      : apr-util
Конфликтует с        : Нет
Заменяет             : Нет
Установленный размер : 6,26 MiB
Сборщик              : Pierre Schmitz <pierre@archlinux.de>
Дата сборки          : Пт 26 май 2017 03:50:57
Дата установки       : Чт 29 июн 2017 15:12:02
Причина установки    : Установлен как зависимость другого пакета
Установочный скрипт  : No
Проверен             : Подпись

Code: Select all

% pacman -Qi openssl-1.0
Название             : openssl-1.0
Версия               : 1.0.2.l-1
Описание             : The Open Source toolkit for Secure Sockets Layer and Transport Layer Security
Архитектура          : x86_64
URL                  : https://www.openssl.org
Лицензии             : custom:BSD
Группы               : Нет
Предоставляет        : Нет
Зависит от           : perl
Доп. зависимости     : ca-certificates [установлено]
Требуется            : dillo  qt5-base  wvstreams
Опционально для      : Нет
Конфликтует с        : Нет
Заменяет             : Нет
Установленный размер : 5,78 MiB
Сборщик              : Pierre Schmitz <pierre@archlinux.de>
Дата сборки          : Пт 26 май 2017 03:54:21
Дата установки       : Чт 29 июн 2017 15:13:13
Причина установки    : Установлен как зависимость другого пакета
Установочный скрипт  : No
Проверен             : Подпись
Если я правильно понял мне нужен пакет openssl-1.0.
Как видно выше он у меня есть. Ну и пути наверно в исходниках нужно везде заменить.
Заменил везде "#include <openssl/" на "#include <openssl-1.0/openssl/".
Не особо помогло, но вывод измеился:

Code: Select all

% LANG=en_US.UTF-8 makepkg   
==> Making package: accel-ppp 1.11.1-2 (Mon Jul  3 15:44:44 +11 2017)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found accel-ppp-1.11.1.tar.bz2
  -> Found accel-ppp.logrotate
  -> Found accel-ppp.lua
  -> Found accel-ppp.tmpfiles
  -> Found accel-pppd.service
  -> Found dictionary.abills
  -> Found dictionary.accel_ipoe
==> Validating source files with md5sums...
    accel-ppp-1.11.1.tar.bz2 ... Passed
    accel-ppp.logrotate ... Passed
    accel-ppp.lua ... Passed
    accel-ppp.tmpfiles ... Passed
    accel-pppd.service ... Passed
    dictionary.abills ... Passed
    dictionary.accel_ipoe ... Passed
==> Extracting sources...
  -> Extracting accel-ppp-1.11.1.tar.bz2 with bsdtar
==> Starting prepare()...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
-- The C compiler identification is GNU 7.1.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- 'x86_64'
-- Looking for timerfd_create
-- Looking for timerfd_create - found
-- Found Lua51: /usr/lib/liblua5.1.so;/usr/lib/libm.so (found version "5.1.5") 
-- Looking for linux/netfilter/ipset/ip_set.h
-- Looking for linux/netfilter/ipset/ip_set.h - found
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/makepkg/accel-ppp/src/accel-ppp-1.11.1/build
Scanning dependencies of target vlan-mon
Scanning dependencies of target radius
Scanning dependencies of target pptp
Scanning dependencies of target l2tp
Scanning dependencies of target triton
[  1%] Building C object accel-pppd/vlan-mon/CMakeFiles/vlan-mon.dir/vlan_mon.c.o
[  2%] Building C object accel-pppd/ctrl/pptp/CMakeFiles/pptp.dir/pptp.c.o
[  3%] Building C object accel-pppd/radius/CMakeFiles/radius.dir/stat_accm.c.o
[  5%] Building C object accel-pppd/ctrl/l2tp/CMakeFiles/l2tp.dir/l2tp.c.o
[  5%] Building C object accel-pppd/triton/CMakeFiles/triton.dir/md.c.o
In file included from /tmp/makepkg/accel-ppp/src/accel-ppp-1.11.1/accel-pppd/include/crypto.h:9:0,
                 from /tmp/makepkg/accel-ppp/src/accel-ppp-1.11.1/accel-pppd/ctrl/l2tp/l2tp.c:27:
/usr/include/openssl-1.0/openssl/des.h:91:9: error: unknown type name ‘DES_LONG’
         DES_LONG deslong[2];
         ^~~~~~~~
/usr/include/openssl-1.0/openssl/des.h:102:12: fatal error: openssl/des_old.h: No such file or directory
 #  include <openssl/des_old.h>
            ^~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [accel-pppd/ctrl/l2tp/CMakeFiles/l2tp.dir/build.make:63: accel-pppd/ctrl/l2tp/CMakeFiles/l2tp.dir/l2tp.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:469: accel-pppd/ctrl/l2tp/CMakeFiles/l2tp.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[  6%] Building C object accel-pppd/triton/CMakeFiles/triton.dir/timer.c.o
[  7%] Building C object accel-pppd/radius/CMakeFiles/radius.dir/dict.c.o
[  8%] Building C object accel-pppd/triton/CMakeFiles/triton.dir/triton.c.o
[  9%] Building C object accel-pppd/triton/CMakeFiles/triton.dir/conf_file.c.o
[ 10%] Linking C shared library libvlan-mon.so
[ 11%] Building C object accel-pppd/radius/CMakeFiles/radius.dir/req.c.o
[ 11%] Built target vlan-mon
[ 12%] Building C object accel-pppd/radius/CMakeFiles/radius.dir/packet.c.o
[ 13%] Building C object accel-pppd/triton/CMakeFiles/triton.dir/loader.c.o
[ 13%] Building C object accel-pppd/triton/CMakeFiles/triton.dir/log.c.o
[ 13%] Building C object accel-pppd/radius/CMakeFiles/radius.dir/auth.c.o
In file included from /tmp/makepkg/accel-ppp/src/accel-ppp-1.11.1/accel-pppd/include/crypto.h:9:0,
                 from /tmp/makepkg/accel-ppp/src/accel-ppp-1.11.1/accel-pppd/radius/auth.c:4:
/usr/include/openssl-1.0/openssl/des.h:91:9: error: unknown type name ‘DES_LONG’
         DES_LONG deslong[2];
         ^~~~~~~~
/usr/include/openssl-1.0/openssl/des.h:102:12: fatal error: openssl/des_old.h: No such file or directory
 #  include <openssl/des_old.h>
            ^~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [accel-pppd/radius/CMakeFiles/radius.dir/build.make:159: accel-pppd/radius/CMakeFiles/radius.dir/auth.c.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 14%] Building C object accel-pppd/triton/CMakeFiles/triton.dir/mempool.c.o
[ 15%] Building C object accel-pppd/triton/CMakeFiles/triton.dir/event.c.o
[ 16%] Linking C shared library libtriton.so
[ 16%] Built target triton
[ 16%] Linking C shared library libpptp.so
[ 16%] Built target pptp
make[1]: *** [CMakeFiles/Makefile2:167: accel-pppd/radius/CMakeFiles/radius.dir/all] Error 2
make: *** [Makefile:152: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
LANG=en_US.UTF-8 makepkg  6,67s user 0,46s system 176% cpu 4,035 total

4le34n
Posts: 10
Joined: 29 Jun 2017, 06:15

Re: не собирается 1.11.1 под Archlinux c ядром 4.9

Post by 4le34n » 04 Jul 2017, 05:25

Пробовал собирать с 5-ой и 4-ой версией gcc, не собирается, ошибки одинаковые. Так что да подтверждаю дело не в gcc.

Dmitry
Администратор
Posts: 949
Joined: 09 Oct 2014, 10:06

Re: не собирается 1.11.1 под Archlinux c ядром 4.9

Post by Dmitry » 04 Jul 2017, 05:31


4le34n
Posts: 10
Joined: 29 Jun 2017, 06:15

Re: не собирается 1.11.1 под Archlinux c ядром 4.9

Post by 4le34n » 05 Jul 2017, 04:18

Спасибо помогло. Теперь все собирается.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest