Accel-ppp (git версия) не собирается на последнем Archlinux

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

Accel-ppp (git версия) не собирается на последнем Archlinux

Post by 4le34n » 14 Nov 2017, 04:42

Два три месяца как перестал собираться на последнем Archlinux.
Лог:

Code: Select all

>>> LANG=en makepkg -cf                                                                                                                                          15:32.44 Вт ноя 14 2017 >>>
==> Making package: accel-ppp-git r1443.34fac26-1 (Tue Nov 14 15:33:17 +11 2017)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating accel-ppp git repo...
Fetching origin
  -> 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 ... Skipped
    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...
  -> Creating working copy of code git repo...
Reset branch 'makepkg'
==> Starting prepare()...
==> Starting pkgver()...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
CMake Deprecation Warning at CMakeLists.txt:3 (cmake_policy):
  The OLD behavior for policy CMP0003 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.


-- The C compiler identification is GNU 7.2.0
-- 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'
-- Found Lua51: /usr/lib/liblua5.1.so;/usr/lib/libm.so (found version "5.1.5")
-- Looking for timerfd_create
-- Looking for timerfd_create - found
-- Looking for linux/netfilter/ipset/ip_set.h
-- Looking for linux/netfilter/ipset/ip_set.h - found
-- Looking for setns
-- Looking for setns - found
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/makepkg/accel-ppp-git/src/accel-ppp/build
Scanning dependencies of target luasupp
Scanning dependencies of target triton
Scanning dependencies of target pptp
Scanning dependencies of target vlan-mon
Scanning dependencies of target l2tp
[  1%] Building C object accel-pppd/lua/CMakeFiles/luasupp.dir/lua_lpack.c.o
[  2%] Building C object accel-pppd/triton/CMakeFiles/triton.dir/md.c.o
[  3%] Building C object accel-pppd/vlan-mon/CMakeFiles/vlan-mon.dir/vlan_mon.c.o
[  4%] Building C object accel-pppd/ctrl/pptp/CMakeFiles/pptp.dir/pptp.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/timer.c.o
[  6%] Linking C shared library libvlan-mon.so
[  7%] Building C object accel-pppd/lua/CMakeFiles/luasupp.dir/lua_bit.c.o
[  7%] Built target vlan-mon
[  7%] Building C object accel-pppd/ctrl/l2tp/CMakeFiles/l2tp.dir/dict.c.o
[  8%] Building C object accel-pppd/lua/CMakeFiles/luasupp.dir/session.c.o
[  9%] Building C object accel-pppd/triton/CMakeFiles/triton.dir/triton.c.o
[ 10%] Building C object accel-pppd/ctrl/l2tp/CMakeFiles/l2tp.dir/packet.c.o
[ 11%] Linking C shared library libluasupp.so
[ 11%] Linking C shared library libpptp.so
[ 11%] Built target luasupp
Scanning dependencies of target auth_chap_md5
[ 11%] Built target pptp
[ 12%] Building C object accel-pppd/auth/CMakeFiles/auth_chap_md5.dir/auth_chap_md5.c.o
Scanning dependencies of target auth_pap
[ 13%] Building C object accel-pppd/auth/CMakeFiles/auth_pap.dir/auth_pap.c.o
[ 14%] Building C object accel-pppd/triton/CMakeFiles/triton.dir/conf_file.c.o
[ 15%] Linking C shared library libauth_chap_md5.so
[ 16%] Linking C shared library libauth_pap.so
[ 17%] Building C object accel-pppd/triton/CMakeFiles/triton.dir/loader.c.o
[ 18%] Building C object accel-pppd/triton/CMakeFiles/triton.dir/log.c.o
[ 18%] Built target auth_chap_md5
Scanning dependencies of target auth_mschap_v1
[ 18%] Built target auth_pap
[ 19%] Building C object accel-pppd/auth/CMakeFiles/auth_mschap_v1.dir/auth_mschap_v1.c.o
Scanning dependencies of target auth_mschap_v2
[ 19%] Building C object accel-pppd/auth/CMakeFiles/auth_mschap_v2.dir/auth_mschap_v2.c.o
[ 19%] Building C object accel-pppd/triton/CMakeFiles/triton.dir/mempool.c.o
Scanning dependencies of target log_tcp
[ 20%] Building C object accel-pppd/logs/CMakeFiles/log_tcp.dir/log_tcp.c.o
[ 21%] Building C object accel-pppd/triton/CMakeFiles/triton.dir/event.c.o
[ 22%] Linking C shared library libtriton.so
[ 22%] Built target triton
Scanning dependencies of target log_file
[ 23%] Building C object accel-pppd/logs/CMakeFiles/log_file.dir/log_file.c.o
[ 24%] Linking C shared library libauth_mschap_v1.so
[ 25%] Linking C shared library liblog_tcp.so
[ 25%] Built target auth_mschap_v1
Scanning dependencies of target log_syslog
[ 25%] Building C object accel-pppd/logs/CMakeFiles/log_syslog.dir/log_syslog.c.o
[ 25%] Built target log_tcp
Scanning dependencies of target connlimit
[ 26%] Building C object accel-pppd/extra/CMakeFiles/connlimit.dir/connlimit.c.o
[ 27%] Linking C shared library libauth_mschap_v2.so
[ 28%] Linking C shared library liblog_syslog.so
[ 28%] Built target auth_mschap_v2
Scanning dependencies of target sigchld
[ 29%] Building C object accel-pppd/extra/CMakeFiles/sigchld.dir/sigchld.c.o
[ 29%] Built target log_syslog
Scanning dependencies of target ipv6pool
[ 30%] Linking C shared library libconnlimit.so
[ 31%] Building C object accel-pppd/extra/CMakeFiles/ipv6pool.dir/ipv6pool.c.o
[ 31%] Built target connlimit
[ 32%] Linking C shared library libsigchld.so
Scanning dependencies of target ippool
[ 32%] Building C object accel-pppd/extra/CMakeFiles/ippool.dir/ippool.c.o
[ 32%] Built target sigchld
[ 33%] Linking C shared library liblog_file.so
Scanning dependencies of target chap-secrets
[ 33%] Built target log_file
[ 34%] Building C object accel-pppd/extra/CMakeFiles/chap-secrets.dir/chap-secrets.c.o
Scanning dependencies of target logwtmp
[ 35%] Building C object accel-pppd/extra/CMakeFiles/logwtmp.dir/logwtmp.c.o
[ 36%] Linking C shared library libipv6pool.so
[ 36%] Linking C shared library liblogwtmp.so
[ 36%] Built target ipv6pool
Scanning dependencies of target ipv6_dhcp
[ 36%] Built target logwtmp
Scanning dependencies of target ipv6_nd
[ 37%] Building C object accel-pppd/ipv6/CMakeFiles/ipv6_dhcp.dir/dhcpv6.c.o
/tmp/makepkg/accel-ppp-git/src/accel-ppp/accel-pppd/extra/ippool.c: In function ‘ippool_init2’:
/tmp/makepkg/accel-ppp-git/src/accel-ppp/accel-pppd/extra/ippool.c:614:5: warning: ‘generate’ may be used uninitialized in this function [-Wmaybe-uninitialized]
     add_range(p, &p->gw_list, opt->val, generate);
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 37%] Building C object accel-pppd/ipv6/CMakeFiles/ipv6_nd.dir/nd.c.o
[ 38%] Linking C shared library libippool.so
[ 39%] Linking C shared library libl2tp.so
[ 39%] Built target ippool
Scanning dependencies of target shaper
[ 40%] Building C object accel-pppd/shaper/CMakeFiles/shaper.dir/shaper.c.o
[ 40%] Built target l2tp
Scanning dependencies of target accel-cmd
[ 40%] Linking C shared library libchap-secrets.so
[ 40%] Building C object accel-cmd/CMakeFiles/accel-cmd.dir/accel_cmd.c.o
[ 40%] Built target chap-secrets
Scanning dependencies of target accel-pppd
[ 41%] Linking C shared library libipv6_nd.so
[ 42%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/memdebug.c.o
[ 42%] Built target ipv6_nd
/tmp/makepkg/accel-ppp-git/src/accel-ppp/accel-cmd/accel_cmd.c: In function ‘accel_talk’:
/tmp/makepkg/accel-ppp-git/src/accel-ppp/accel-cmd/accel_cmd.c:218:7: warning: ‘last_char’ may be used uninitialized in this function [-Wmaybe-uninitialized]
    if (last_char == '\n') {
       ^
Scanning dependencies of target radius
[ 43%] Building C object accel-pppd/radius/CMakeFiles/radius.dir/stat_accm.c.o
[ 44%] Building C object accel-pppd/radius/CMakeFiles/radius.dir/dict.c.o
[ 45%] Building C object accel-pppd/ipv6/CMakeFiles/ipv6_dhcp.dir/dhcpv6_packet.c.o
[ 46%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/session.c.o
[ 47%] Linking C executable accel-cmd
[ 47%] Built target accel-cmd
In file included from /tmp/makepkg/accel-ppp-git/src/accel-ppp/accel-pppd/radius/dict.c:7:0:
/tmp/makepkg/accel-ppp-git/src/accel-ppp/accel-pppd/radius/dict.c: In function ‘dict_load’:
/tmp/makepkg/accel-ppp-git/src/accel-ppp/accel-pppd/include/list.h:44:13: warning: ‘items’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  next->prev = new;
  ~~~~~~~~~~~^~~~~
/tmp/makepkg/accel-ppp-git/src/accel-ppp/accel-pppd/radius/dict.c:78:20: note: ‘items’ was declared here
  struct list_head *items;
                    ^~~~~
Scanning dependencies of target pppoe
[ 48%] Building C object accel-pppd/shaper/CMakeFiles/shaper.dir/limiter.c.o
[ 49%] Building C object accel-pppd/ctrl/pppoe/CMakeFiles/pppoe.dir/pppoe.c.o
[ 50%] Building C object accel-pppd/radius/CMakeFiles/radius.dir/req.c.o
[ 51%] Linking C shared library libipv6_dhcp.so
[ 51%] Built target ipv6_dhcp
Scanning dependencies of target ipoe
[ 52%] Building C object accel-pppd/ctrl/ipoe/CMakeFiles/ipoe.dir/ipoe.c.o
/tmp/makepkg/accel-ppp-git/src/accel-ppp/accel-pppd/shaper/limiter.c: In function ‘install_limiter’:
/tmp/makepkg/accel-ppp-git/src/accel-ppp/accel-pppd/shaper/limiter.c:497:9: warning: ‘r’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  return r;
         ^
[ 53%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/session_backup.c.o
[ 54%] Building C object accel-pppd/radius/CMakeFiles/radius.dir/packet.c.o
[ 55%] Building C object accel-pppd/shaper/CMakeFiles/shaper.dir/leaf_qdisc.c.o
[ 55%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/ifcfg.c.o
[ 55%] Building C object accel-pppd/shaper/CMakeFiles/shaper.dir/tc_core.c.o
[ 56%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/net.c.o
/tmp/makepkg/accel-ppp-git/src/accel-ppp/accel-pppd/shaper/tc_core.c: In function ‘tc_calc_size_table’:
/tmp/makepkg/accel-ppp-git/src/accel-ppp/accel-pppd/shaper/tc_core.c:173:29: error: ‘UINT16_MAX’ undeclared (first use in this function); did you mean ‘__INT16_MAX__’?
   if ((sz >> s->size_log) > UINT16_MAX) {
                             ^~~~~~~~~~
                             __INT16_MAX__
/tmp/makepkg/accel-ppp-git/src/accel-ppp/accel-pppd/shaper/tc_core.c:173:29: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [accel-pppd/shaper/CMakeFiles/shaper.dir/build.make:135: accel-pppd/shaper/CMakeFiles/shaper.dir/tc_core.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1326: accel-pppd/shaper/CMakeFiles/shaper.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 56%] Building C object accel-pppd/radius/CMakeFiles/radius.dir/auth.c.o
[ 57%] Building C object accel-pppd/ctrl/ipoe/CMakeFiles/ipoe.dir/dhcpv4.c.o
[ 58%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/backup/backup.c.o
[ 59%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/ppp/ppp.c.o
[ 60%] Building C object accel-pppd/radius/CMakeFiles/radius.dir/acct.c.o
[ 60%] Building C object accel-pppd/ctrl/ipoe/CMakeFiles/ipoe.dir/dhcpv4_options.c.o
[ 61%] Building C object accel-pppd/radius/CMakeFiles/radius.dir/serv.c.o
[ 62%] Building C object accel-pppd/ctrl/pppoe/CMakeFiles/pppoe.dir/mac_filter.c.o
[ 63%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/ppp/ppp_fsm.c.o
[ 64%] Building C object accel-pppd/ctrl/ipoe/CMakeFiles/ipoe.dir/ipoe_netlink.c.o
/tmp/makepkg/accel-ppp-git/src/accel-ppp/accel-pppd/ctrl/ipoe/ipoe.c: In function ‘ipoe_serv_disc_timer’:
/tmp/makepkg/accel-ppp-git/src/accel-ppp/accel-pppd/ctrl/ipoe/ipoe.c:1538:9: warning: ‘offer_delay’ may be used uninitialized in this function [-Wmaybe-uninitialized]
   delay = offer_delay - delay;
   ~~~~~~^~~~~~~~~~~~~~~~~~~~~
[ 64%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/ppp/ppp_lcp.c.o
[ 65%] Building C object accel-pppd/ctrl/pppoe/CMakeFiles/pppoe.dir/dpado.c.o
[ 66%] Building C object accel-pppd/radius/CMakeFiles/radius.dir/dm_coa.c.o
[ 67%] Building C object accel-pppd/ctrl/ipoe/CMakeFiles/ipoe.dir/arp.c.o
[ 68%] Building C object accel-pppd/radius/CMakeFiles/radius.dir/radius.c.o
[ 68%] Building C object accel-pppd/ctrl/pppoe/CMakeFiles/pppoe.dir/cli.c.o
[ 69%] Building C object accel-pppd/ctrl/pppoe/CMakeFiles/pppoe.dir/disc.c.o
[ 70%] Building C object accel-pppd/ctrl/ipoe/CMakeFiles/ipoe.dir/lua.c.o
[ 71%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/ppp/lcp_opt_mru.c.o
[ 72%] Building C object accel-pppd/ctrl/pppoe/CMakeFiles/pppoe.dir/tr101.c.o
[ 73%] Linking C shared library libipoe.so
[ 74%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/ppp/lcp_opt_magic.c.o
[ 75%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/ppp/lcp_opt_pcomp.c.o
[ 75%] Built target ipoe
[ 76%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/ppp/lcp_opt_accomp.c.o
[ 76%] Building C object accel-pppd/radius/CMakeFiles/radius.dir/lua.c.o
[ 77%] Linking C shared library libpppoe.so
[ 77%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/ppp/ppp_auth.c.o
[ 78%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/ppp/ppp_ipcp.c.o
[ 78%] Built target pppoe
[ 79%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/ppp/ipcp_opt_ipaddr.c.o
[ 80%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/ppp/ipcp_opt_dns.c.o
[ 81%] Linking C shared library libradius.so
[ 82%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/ppp/ipcp_opt_wins.c.o
[ 82%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/ppp/ipv6cp_opt_intfid.c.o
[ 82%] Built target radius
[ 83%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/ppp/ppp_ipv6cp.c.o
[ 84%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/ppp/ppp_ccp.c.o
[ 85%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/ppp/ccp_mppe.c.o
[ 86%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/cli/std_cmd.c.o
[ 86%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/cli/show_sessions.c.o
[ 87%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/cli/telnet.c.o
[ 88%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/cli/cli.c.o
[ 89%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/cli/tcp.c.o
/tmp/makepkg/accel-ppp-git/src/accel-ppp/accel-pppd/cli/show_sessions.c: In function ‘print_uptime’:
/tmp/makepkg/accel-ppp-git/src/accel-ppp/accel-pppd/cli/show_sessions.c:487:26: warning: ‘snprintf’ output may be truncated before the last format character [-Wformat-truncation=]
   snprintf(time_str, 13, "%i.%02i:%02i:%02i", day, hour, min, sec);
                          ^~~~~~~~~~~~~~~~~~~
/tmp/makepkg/accel-ppp-git/src/accel-ppp/accel-pppd/cli/show_sessions.c:487:3: note: ‘snprintf’ output between 11 and 24 bytes into a destination of size 13
   snprintf(time_str, 13, "%i.%02i:%02i:%02i", day, hour, min, sec);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 90%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/libnetlink/libnetlink.c.o
[ 90%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/libnetlink/iputils.c.o
[ 91%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/libnetlink/genl.c.o
[ 92%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/libnetlink/ipset.c.o
[ 93%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/pwdb.c.o
[ 93%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/iprange.c.o
[ 94%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/ipdb.c.o
[ 95%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/utils.c.o
[ 96%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/rbtree.c.o
[ 97%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/log.c.o
[ 98%] Building C object accel-pppd/CMakeFiles/accel-pppd.dir/main.c.o
/tmp/makepkg/accel-ppp-git/src/accel-ppp/accel-pppd/main.c: In function ‘close_all_fd’:
/tmp/makepkg/accel-ppp-git/src/accel-ppp/accel-pppd/main.c:125:3: warning: ‘readdir_r’ is deprecated [-Wdeprecated-declarations]
   if (readdir_r(dirp, &ent, &res))
   ^~
In file included from /tmp/makepkg/accel-ppp-git/src/accel-ppp/accel-pppd/main.c:11:0:
/usr/include/dirent.h:183:12: note: declared here
 extern int readdir_r (DIR *__restrict __dirp,
            ^~~~~~~~~
At top level:
/tmp/makepkg/accel-ppp-git/src/accel-ppp/accel-pppd/main.c:55:13: warning: ‘ssl_lock’ defined but not used [-Wunused-function]
 static void ssl_lock(int mode, int type, const char *file, int line)
             ^~~~~~~~
/tmp/makepkg/accel-ppp-git/src/accel-ppp/accel-pppd/main.c:50:22: warning: ‘ssl_thread_id’ defined but not used [-Wunused-function]
 static unsigned long ssl_thread_id(void)
                      ^~~~~~~~~~~~~
[ 98%] Linking C executable accel-pppd
[ 98%] Built target accel-pppd
make: *** [Makefile:152: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

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

Re: Accel-ppp (git версия) не собирается на последнем Archlinux

Post by 4le34n » 14 Nov 2017, 07:34

Решено. Разработчики патч скинули в telegram канале accel-ppp. В ближайшее время добавят в git.
Если у кого не стартует и ругается в лог таким образом:

Code: Select all

>> cat /var/log/accel-ppp/core.log 
[2017-11-14 17:30:10.701]loader: failed to load 'pptp': /usr/lib64/accel-ppp/libpptp.so: undefined symbol: connlimit_check
failed to load 'ipoe': /usr/lib64/accel-ppp/libipoe.so: undefined symbol: rad_dict_find_attr
Нужно модули connlimit и radius поднять выше.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest