[arch-general] Failed to compile shadowsocksr-libev-git with yay.

Hongyi Zhao hongyi.zhao at gmail.com
Sat Nov 9 10:01:52 UTC 2019


See the following:

$ yay -S shadowsocksr-libev-git
[...]
acl.c: In function 'init_block_list':
acl.c:74:90: error: '%s' directive writing up to 63 bytes into a
region of size between 50 and 176 [-Werror=format-overflow=]
   74 |     "ip6tables -N %s; ip6tables -F %s; ip6tables -A OUTPUT -p
tcp --tcp-flags RST RST -j %s";
      |
                          ^~
......
  158 |         sprintf(cli, ip6tables_init_chain, chain_name,
chain_name, chain_name);
      |
    ~~~~~~~~~~
In file included from /usr/include/stdio.h:867,
                 from ../libipset/include/ipset/ipset.h:14,
                 from acl.c:23:
/usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk'
output between 81 and 270 bytes into a destination of size 256
   36 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   37 |       __bos (__s), __fmt, __va_arg_pack ());
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
acl.c:67:87: error: '%s' directive writing up to 63 bytes into a
region of size between 53 and 179 [-Werror=format-overflow=]
   67 |     "iptables -N %s; iptables -F %s; iptables -A OUTPUT -p tcp
--tcp-flags RST RST -j %s";
      |
                       ^~
......
  160 |         sprintf(cli, iptables_init_chain, chain_name,
chain_name, chain_name);
      |
   ~~~~~~~~~~
In file included from /usr/include/stdio.h:867,
                 from ../libipset/include/ipset/ipset.h:14,
                 from acl.c:23:
/usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk'
output between 78 and 267 bytes into a destination of size 256
   36 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   37 |       __bos (__s), __fmt, __va_arg_pack ());
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
acl.c:92:5: error: ';      firewall-cmd --direct...' directive writing
88 bytes into a region of size between 33 and 159
[-Werror=format-overflow=]
   92 |     "firewall-cmd --direct --add-chain ipv6 filter %s; \
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   93 |      firewall-cmd --direct --passthrough ipv6 -F %s; \
      |      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   94 |      firewall-cmd --direct --passthrough ipv6 -A OUTPUT -p tcp
--tcp-flags RST RST -j %s";
      |      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/stdio.h:867,
                 from ../libipset/include/ipset/ipset.h:14,
                 from acl.c:23:
/usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk'
output between 186 and 375 bytes into a destination of size 256
   36 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   37 |       __bos (__s), __fmt, __va_arg_pack ());
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
acl.c:81:5: error: ';      firewall-cmd --direct...' directive writing
88 bytes into a region of size between 33 and 159
[-Werror=format-overflow=]
   81 |     "firewall-cmd --direct --add-chain ipv4 filter %s; \
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   82 |      firewall-cmd --direct --passthrough ipv4 -F %s; \
      |      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   83 |      firewall-cmd --direct --passthrough ipv4 -A OUTPUT -p tcp
--tcp-flags RST RST -j %s";
      |      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/stdio.h:867,
                 from ../libipset/include/ipset/ipset.h:14,
                 from acl.c:23:
/usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk'
output between 186 and 375 bytes into a destination of size 256
   36 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   37 |       __bos (__s), __fmt, __va_arg_pack ());
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
acl.c: In function 'free_block_list':
acl.c:96:5: error: '%s' directive writing up to 63 bytes into a region
of size between 61 and 124 [-Werror=format-overflow=]
   96 |     "firewall-cmd --direct --passthrough ipv6 -D OUTPUT -p tcp
--tcp-flags RST RST -j %s; \
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   97 |      firewall-cmd --direct --passthrough ipv6 -F %s; \
      |      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   98 |      firewall-cmd --direct --remove-chain ipv6 filter %s";
      |      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
......
  184 |         sprintf(cli, firewalld6_remove_chain, chain_name,
chain_name, chain_name);
      |                                                           ~~~~~~~~~~
In file included from /usr/include/stdio.h:867,
                 from ../libipset/include/ipset/ipset.h:14,
                 from acl.c:23:
/usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk'
output between 189 and 378 bytes into a destination of size 256
   36 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   37 |       __bos (__s), __fmt, __va_arg_pack ());
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
acl.c:85:5: error: '%s' directive writing up to 63 bytes into a region
of size between 61 and 124 [-Werror=format-overflow=]
   85 |     "firewall-cmd --direct --passthrough ipv4 -D OUTPUT -p tcp
--tcp-flags RST RST -j %s; \
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   86 |      firewall-cmd --direct --passthrough ipv4 -F %s; \
      |      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   87 |      firewall-cmd --direct --remove-chain ipv4 filter %s";
      |      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
......
  186 |         sprintf(cli, firewalld_remove_chain, chain_name,
chain_name, chain_name);
      |                                                          ~~~~~~~~~~
In file included from /usr/include/stdio.h:867,
                 from ../libipset/include/ipset/ipset.h:14,
                 from acl.c:23:
/usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk'
output between 189 and 378 bytes into a destination of size 256
   36 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   37 |       __bos (__s), __fmt, __va_arg_pack ());
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
acl.c:76:90: error: '%s' directive writing up to 63 bytes into a
region of size between 50 and 176 [-Werror=format-overflow=]
   76 |     "ip6tables -D OUTPUT -p tcp --tcp-flags RST RST -j %s;
ip6tables -F %s; ip6tables -X %s";
      |
                          ^~
......
  179 |         sprintf(cli, ip6tables_remove_chain, chain_name,
chain_name, chain_name);
      |
      ~~~~~~~~~~
In file included from /usr/include/stdio.h:867,
                 from ../libipset/include/ipset/ipset.h:14,
                 from acl.c:23:
/usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk'
output between 81 and 270 bytes into a destination of size 256
   36 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   37 |       __bos (__s), __fmt, __va_arg_pack ());
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
acl.c:69:87: error: '%s' directive writing up to 63 bytes into a
region of size between 53 and 179 [-Werror=format-overflow=]
   69 |     "iptables -D OUTPUT -p tcp --tcp-flags RST RST -j %s;
iptables -F %s; iptables -X %s";
      |
                       ^~
......
  181 |         sprintf(cli, iptables_remove_chain, chain_name,
chain_name, chain_name);
      |
     ~~~~~~~~~~
In file included from /usr/include/stdio.h:867,
                 from ../libipset/include/ipset/ipset.h:14,
                 from acl.c:23:
/usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk'
output between 78 and 267 bytes into a destination of size 256
   36 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   37 |       __bos (__s), __fmt, __va_arg_pack ());
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[2]: *** [Makefile:778: libshadowsocks_libev_la-acl.lo] Error 1
make[2]: Leaving directory
'/home/werner/.cache/yay/shadowsocksr-libev-git/src/shadowsocksr-libev/src'
make[1]: *** [Makefile:478: all-recursive] Error 1
make[1]: Leaving directory
'/home/werner/.cache/yay/shadowsocksr-libev-git/src/shadowsocksr-libev'
make: *** [Makefile:387: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
Error making: shadowsocksr-libev-git



-- 
Hongsheng Zhao <hongyi.zhao at gmail.com>
Institute of Semiconductors, Chinese Academy of Sciences
GnuPG DSA: 0xD108493


More information about the arch-general mailing list