miniupnp.tuxfamily.org Forum Index miniupnp.tuxfamily.org
The forum about miniupnp and libnatpmp
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

miniupnpd-2.1.20191003 fails to build on Linux

 
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpd Compilation/Installation
View previous topic :: View next topic  
Author Message
mgorny



Joined: 03 Oct 2019
Posts: 2

PostPosted: Thu Oct 03, 2019 6:18 am    Post subject: miniupnpd-2.1.20191003 fails to build on Linux Reply with quote

The newest snapshot fails to build on Linux, both with nftables and iptables.

The log for nftables:
Code:

>>> Configuring source in /tmp/portage/net-misc/miniupnpd-2.1.20191003/work/miniupnpd-2.1.20191003 ...
make -j12 'CONFIG_OPTIONS=--vendorcfg --ipv6 --leasefile' config.h
./genconfig.sh --vendorcfg --ipv6 --leasefile
./genconfig.sh: line 331: /sbin/sysctl: No such file or directory
Configuring compilation for [Gentoo] [2.6] with [nftables] firewall software.
Please edit config.h for more compilation options.
>>> Source configured.
>>> Compiling source in /tmp/portage/net-misc/miniupnpd-2.1.20191003/work/miniupnpd-2.1.20191003 ...
make -j12 CC=x86_64-pc-linux-gnu-gcc-9.2.0 STRIP=true miniupnpd
x86_64-pc-linux-gnu-gcc-9.2.0 -march=x86-64 -mtune=k8 -mcx16 -msahf -msse3 --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -O2 -pipe -frecord-gcc-switches -fno-strict-aliasing -fno-common -Wall -Wextra -Wstrict-prototypes -Wdeclaration-after-statement  -D_GNU_SOURCE  -c -o miniupnpd.o miniupnpd.c
x86_64-pc-linux-gnu-gcc-9.2.0 -march=x86-64 -mtune=k8 -mcx16 -msahf -msse3 --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -O2 -pipe -frecord-gcc-switches -fno-strict-aliasing -fno-common -Wall -Wextra -Wstrict-prototypes -Wdeclaration-after-statement  -D_GNU_SOURCE  -c -o upnphttp.o upnphttp.c
x86_64-pc-linux-gnu-gcc-9.2.0 -march=x86-64 -mtune=k8 -mcx16 -msahf -msse3 --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -O2 -pipe -frecord-gcc-switches -fno-strict-aliasing -fno-common -Wall -Wextra -Wstrict-prototypes -Wdeclaration-after-statement  -D_GNU_SOURCE  -c -o upnpdescgen.o upnpdescgen.c
x86_64-pc-linux-gnu-gcc-9.2.0 -march=x86-64 -mtune=k8 -mcx16 -msahf -msse3 --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -O2 -pipe -frecord-gcc-switches -fno-strict-aliasing -fno-common -Wall -Wextra -Wstrict-prototypes -Wdeclaration-after-statement  -D_GNU_SOURCE  -c -o upnpsoap.o upnpsoap.c
x86_64-pc-linux-gnu-gcc-9.2.0 -march=x86-64 -mtune=k8 -mcx16 -msahf -msse3 --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -O2 -pipe -frecord-gcc-switches -fno-strict-aliasing -fno-common -Wall -Wextra -Wstrict-prototypes -Wdeclaration-after-statement  -D_GNU_SOURCE  -c -o upnpreplyparse.o upnpreplyparse.c
x86_64-pc-linux-gnu-gcc-9.2.0 -march=x86-64 -mtune=k8 -mcx16 -msahf -msse3 --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -O2 -pipe -frecord-gcc-switches -fno-strict-aliasing -fno-common -Wall -Wextra -Wstrict-prototypes -Wdeclaration-after-statement  -D_GNU_SOURCE  -c -o minixml.o minixml.c
x86_64-pc-linux-gnu-gcc-9.2.0 -march=x86-64 -mtune=k8 -mcx16 -msahf -msse3 --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -O2 -pipe -frecord-gcc-switches -fno-strict-aliasing -fno-common -Wall -Wextra -Wstrict-prototypes -Wdeclaration-after-statement  -D_GNU_SOURCE  -c -o portinuse.o portinuse.c
x86_64-pc-linux-gnu-gcc-9.2.0 -march=x86-64 -mtune=k8 -mcx16 -msahf -msse3 --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -O2 -pipe -frecord-gcc-switches -fno-strict-aliasing -fno-common -Wall -Wextra -Wstrict-prototypes -Wdeclaration-after-statement  -D_GNU_SOURCE  -c -o upnpredirect.o upnpredirect.c
x86_64-pc-linux-gnu-gcc-9.2.0 -march=x86-64 -mtune=k8 -mcx16 -msahf -msse3 --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -O2 -pipe -frecord-gcc-switches -fno-strict-aliasing -fno-common -Wall -Wextra -Wstrict-prototypes -Wdeclaration-after-statement  -D_GNU_SOURCE  -c -o getifaddr.o getifaddr.c
x86_64-pc-linux-gnu-gcc-9.2.0 -march=x86-64 -mtune=k8 -mcx16 -msahf -msse3 --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -O2 -pipe -frecord-gcc-switches -fno-strict-aliasing -fno-common -Wall -Wextra -Wstrict-prototypes -Wdeclaration-after-statement  -D_GNU_SOURCE  -c -o daemonize.o daemonize.c
x86_64-pc-linux-gnu-gcc-9.2.0 -march=x86-64 -mtune=k8 -mcx16 -msahf -msse3 --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -O2 -pipe -frecord-gcc-switches -fno-strict-aliasing -fno-common -Wall -Wextra -Wstrict-prototypes -Wdeclaration-after-statement  -D_GNU_SOURCE  -c -o options.o options.c
x86_64-pc-linux-gnu-gcc-9.2.0 -march=x86-64 -mtune=k8 -mcx16 -msahf -msse3 --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -O2 -pipe -frecord-gcc-switches -fno-strict-aliasing -fno-common -Wall -Wextra -Wstrict-prototypes -Wdeclaration-after-statement  -D_GNU_SOURCE  -c -o upnppermissions.o upnppermissions.c
x86_64-pc-linux-gnu-gcc-9.2.0 -march=x86-64 -mtune=k8 -mcx16 -msahf -msse3 --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -O2 -pipe -frecord-gcc-switches -fno-strict-aliasing -fno-common -Wall -Wextra -Wstrict-prototypes -Wdeclaration-after-statement  -D_GNU_SOURCE  -c -o minissdp.o minissdp.c
x86_64-pc-linux-gnu-gcc-9.2.0 -march=x86-64 -mtune=k8 -mcx16 -msahf -msse3 --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -O2 -pipe -frecord-gcc-switches -fno-strict-aliasing -fno-common -Wall -Wextra -Wstrict-prototypes -Wdeclaration-after-statement  -D_GNU_SOURCE  -c -o natpmp.o natpmp.c
x86_64-pc-linux-gnu-gcc-9.2.0 -march=x86-64 -mtune=k8 -mcx16 -msahf -msse3 --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -O2 -pipe -frecord-gcc-switches -fno-strict-aliasing -fno-common -Wall -Wextra -Wstrict-prototypes -Wdeclaration-after-statement  -D_GNU_SOURCE  -c -o pcpserver.o pcpserver.c
x86_64-pc-linux-gnu-gcc-9.2.0 -march=x86-64 -mtune=k8 -mcx16 -msahf -msse3 --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -O2 -pipe -frecord-gcc-switches -fno-strict-aliasing -fno-common -Wall -Wextra -Wstrict-prototypes -Wdeclaration-after-statement  -D_GNU_SOURCE  -c -o upnpglobalvars.o upnpglobalvars.c
x86_64-pc-linux-gnu-gcc-9.2.0 -march=x86-64 -mtune=k8 -mcx16 -msahf -msse3 --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -O2 -pipe -frecord-gcc-switches -fno-strict-aliasing -fno-common -Wall -Wextra -Wstrict-prototypes -Wdeclaration-after-statement  -D_GNU_SOURCE  -c -o upnpevents.o upnpevents.c
x86_64-pc-linux-gnu-gcc-9.2.0 -march=x86-64 -mtune=k8 -mcx16 -msahf -msse3 --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -O2 -pipe -frecord-gcc-switches -fno-strict-aliasing -fno-common -Wall -Wextra -Wstrict-prototypes -Wdeclaration-after-statement  -D_GNU_SOURCE  -c -o upnputils.o upnputils.c
x86_64-pc-linux-gnu-gcc-9.2.0 -march=x86-64 -mtune=k8 -mcx16 -msahf -msse3 --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -O2 -pipe -frecord-gcc-switches -fno-strict-aliasing -fno-common -Wall -Wextra -Wstrict-prototypes -Wdeclaration-after-statement  -D_GNU_SOURCE  -c -o getconnstatus.o getconnstatus.c
x86_64-pc-linux-gnu-gcc-9.2.0 -march=x86-64 -mtune=k8 -mcx16 -msahf -msse3 --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -O2 -pipe -frecord-gcc-switches -fno-strict-aliasing -fno-common -Wall -Wextra -Wstrict-prototypes -Wdeclaration-after-statement  -D_GNU_SOURCE  -c -o upnpstun.o upnpstun.c
x86_64-pc-linux-gnu-gcc-9.2.0 -march=x86-64 -mtune=k8 -mcx16 -msahf -msse3 --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -O2 -pipe -frecord-gcc-switches -fno-strict-aliasing -fno-common -Wall -Wextra -Wstrict-prototypes -Wdeclaration-after-statement  -D_GNU_SOURCE  -c -o upnppinhole.o upnppinhole.c
x86_64-pc-linux-gnu-gcc-9.2.0 -march=x86-64 -mtune=k8 -mcx16 -msahf -msse3 --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -O2 -pipe -frecord-gcc-switches -fno-strict-aliasing -fno-common -Wall -Wextra -Wstrict-prototypes -Wdeclaration-after-statement  -D_GNU_SOURCE  -c -o pcplearndscp.o pcplearndscp.c
x86_64-pc-linux-gnu-gcc-9.2.0 -march=x86-64 -mtune=k8 -mcx16 -msahf -msse3 --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -O2 -pipe -frecord-gcc-switches -fno-strict-aliasing -fno-common -Wall -Wextra -Wstrict-prototypes -Wdeclaration-after-statement  -D_GNU_SOURCE  -c -o asyncsendto.o asyncsendto.c
x86_64-pc-linux-gnu-gcc-9.2.0 -march=x86-64 -mtune=k8 -mcx16 -msahf -msse3 --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -O2 -pipe -frecord-gcc-switches -fno-strict-aliasing -fno-common -Wall -Wextra -Wstrict-prototypes -Wdeclaration-after-statement  -D_GNU_SOURCE  -c -o linux/getifstats.o linux/getifstats.c
x86_64-pc-linux-gnu-gcc-9.2.0 -march=x86-64 -mtune=k8 -mcx16 -msahf -msse3 --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -O2 -pipe -frecord-gcc-switches -fno-strict-aliasing -fno-common -Wall -Wextra -Wstrict-prototypes -Wdeclaration-after-statement  -D_GNU_SOURCE  -c -o linux/ifacewatcher.o linux/ifacewatcher.c
In file included from /usr/include/string.h:494,
                 from linux/ifacewatcher.c:46:
In function ‘strncpy’,
    inlined from ‘ProcessInterfaceWatchNotify’ at linux/ifacewatcher.c:323:6:
/usr/include/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ specified bound 128 equals destination size [-Wstringop-truncation]
  106 |   return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function ‘strncpy’,
    inlined from ‘ProcessInterfaceWatchNotify’ at linux/ifacewatcher.c:324:6:
/usr/include/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ output may be truncated copying 16 bytes from a string of length 127 [-Wstringop-truncation]
  106 |   return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function ‘strncpy’,
    inlined from ‘ProcessInterfaceWatchNotify’ at linux/ifacewatcher.c:320:7:
/usr/include/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ output may be truncated copying 48 bytes from a string of length 127 [-Wstringop-truncation]
  106 |   return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
x86_64-pc-linux-gnu-gcc-9.2.0 -march=x86-64 -mtune=k8 -mcx16 -msahf -msse3 --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -O2 -pipe -frecord-gcc-switches -fno-strict-aliasing -fno-common -Wall -Wextra -Wstrict-prototypes -Wdeclaration-after-statement  -D_GNU_SOURCE  -c -o linux/getroute.o linux/getroute.c
x86_64-pc-linux-gnu-gcc-9.2.0 -march=x86-64 -mtune=k8 -mcx16 -msahf -msse3 --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -O2 -pipe -frecord-gcc-switches -fno-strict-aliasing -fno-common -Wall -Wextra -Wstrict-prototypes -Wdeclaration-after-statement  -D_GNU_SOURCE  -c -o netfilter_nft/nftnlrdr.o netfilter_nft/nftnlrdr.c
x86_64-pc-linux-gnu-gcc-9.2.0 -march=x86-64 -mtune=k8 -mcx16 -msahf -msse3 --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -O2 -pipe -frecord-gcc-switches -fno-strict-aliasing -fno-common -Wall -Wextra -Wstrict-prototypes -Wdeclaration-after-statement  -D_GNU_SOURCE  -c -o netfilter_nft/nftpinhole.o netfilter_nft/nftpinhole.c
distcc[265] (dcc_connect_via_socks5) ERROR: proxy connection failed, reason=0x04
distcc[265] Warning: failed to distribute pcplearndscp.c to pomiocik/3, running locally instead
x86_64-pc-linux-gnu-gcc-9.2.0 -march=x86-64 -mtune=k8 -mcx16 -msahf -msse3 --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -O2 -pipe -frecord-gcc-switches -fno-strict-aliasing -fno-common -Wall -Wextra -Wstrict-prototypes -Wdeclaration-after-statement  -D_GNU_SOURCE  -c -o netfilter_nft/nfct_get.o netfilter_nft/nfct_get.c
x86_64-pc-linux-gnu-gcc-9.2.0 -march=x86-64 -mtune=k8 -mcx16 -msahf -msse3 --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -O2 -pipe -frecord-gcc-switches -fno-strict-aliasing -fno-common -Wall -Wextra -Wstrict-prototypes -Wdeclaration-after-statement  -D_GNU_SOURCE  -c -o netfilter_nft/nftnlrdr_misc.o netfilter_nft/nftnlrdr_misc.c
distcc[316] (dcc_connect_via_socks5) ERROR: proxy connection failed, reason=0x04
distcc[316] Warning: failed to distribute linux/getroute.c to pomiocik/3, running locally instead
distcc[294] (dcc_connect_via_socks5) ERROR: proxy connection failed, reason=0x04
distcc[294] Warning: failed to distribute linux/getifstats.c to pomiocik/3, running locally instead
distcc[339] (dcc_connect_via_socks5) ERROR: proxy connection failed, reason=0x04
distcc[339] Warning: failed to distribute netfilter_nft/nftpinhole.c to pomiocik/3, running locally instead
netfilter_nft/nftpinhole.c: In function ‘add_pinhole’:
netfilter_nft/nftpinhole.c:104:8: warning: implicit declaration of function ‘nft_send_request’; did you mean ‘nft_send_rule’? [-Wimplicit-function-declaration]
  104 |  res = nft_send_request(r, NFT_MSG_NEWRULE, RULE_CHAIN_FILTER);
      |        ^~~~~~~~~~~~~~~~
      |        nft_send_rule
netfilter_nft/nftpinhole.c: In function ‘find_pinhole’:
netfilter_nft/nftpinhole.c:138:2: warning: implicit declaration of function ‘reflesh_nft_cache_filter’; did you mean ‘refresh_nft_cache_filter’? [-Wimplicit-function-declaration]
  138 |  reflesh_nft_cache_filter();
      |  ^~~~~~~~~~~~~~~~~~~~~~~~
      |  refresh_nft_cache_filter
netfilter_nft/nftpinhole.c: In function ‘update_pinhole’:
netfilter_nft/nftpinhole.c:214:7: warning: unused variable ‘iaddr’ [-Wunused-variable]
  214 |  char iaddr[INET6_ADDRSTRLEN];
      |       ^~~~~
netfilter_nft/nftpinhole.c:55:31: warning: ‘%s’ directive output may be truncated writing up to 1023 bytes into a region of size between 995 and 1008 [-Wformat-truncation=]
   55 | #define PINEHOLE_LABEL_FORMAT "pinhole-%d ts-%u: %s"
      |                               ^~~~~~~~~~~~~~~~~~~~~~
netfilter_nft/nftpinhole.c:300:12: note: in expansion of macro ‘PINEHOLE_LABEL_FORMAT’
  300 |            PINEHOLE_LABEL_FORMAT, uid, timestamp, desc);
      |            ^~~~~~~~~~~~~~~~~~~~~
netfilter_nft/nftpinhole.c:55:50: note: format string is defined here
   55 | #define PINEHOLE_LABEL_FORMAT "pinhole-%d ts-%u: %s"
      |                                                  ^~
In file included from /usr/include/stdio.h:867,
                 from netfilter_nft/nftpinhole.c:8:
/usr/include/bits/stdio2.h:67:10: note: ‘__builtin___snprintf_chk’ output between 17 and 1053 bytes into a destination of size 1024
   67 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   68 |        __bos (__s), __fmt, __va_arg_pack ());
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/string.h:494,
                 from netfilter_nft/nftpinhole.c:11:
In function ‘strncpy’,
    inlined from ‘update_pinhole’ at netfilter_nft/nftpinhole.c:279:5:
/usr/include/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ specified bound 1024 equals destination size [-Wstringop-truncation]
  106 |   return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
x86_64-pc-linux-gnu-gcc-9.2.0 -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0    miniupnpd.o upnphttp.o upnpdescgen.o upnpsoap.o upnpreplyparse.o minixml.o portinuse.o upnpredirect.o getifaddr.o daemonize.o options.o upnppermissions.o minissdp.o natpmp.o pcpserver.o upnpglobalvars.o upnpevents.o upnputils.o getconnstatus.o upnpstun.o upnppinhole.o pcplearndscp.o asyncsendto.o linux/getifstats.o linux/ifacewatcher.o linux/getroute.o netfilter_nft/nftnlrdr.o netfilter_nft/nftpinhole.o netfilter_nft/nfct_get.o netfilter_nft/nftnlrdr_misc.o  -lnftnl -lmnl -lssl -lcrypto -lz -ldl -luuid -o miniupnpd
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: netfilter_nft/nftpinhole.o: in function `add_pinhole':
nftpinhole.c:(.text+0x137): undefined reference to `nft_send_request'
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: netfilter_nft/nftpinhole.o: in function `find_pinhole':
nftpinhole.c:(.text+0x26c): undefined reference to `reflesh_nft_cache_filter'
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: netfilter_nft/nftpinhole.o: in function `delete_pinhole':
nftpinhole.c:(.text+0x418): undefined reference to `reflesh_nft_cache_filter'
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: nftpinhole.c:(.text+0x4bd): undefined reference to `nft_send_request'
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: netfilter_nft/nftpinhole.o: in function `update_pinhole':
nftpinhole.c:(.text+0x52e): undefined reference to `reflesh_nft_cache_filter'
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: nftpinhole.c:(.text+0x685): undefined reference to `nft_send_request'
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: nftpinhole.c:(.text+0x715): undefined reference to `nft_send_request'
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: netfilter_nft/nftpinhole.o: in function `get_pinhole_info':
nftpinhole.c:(.text+0x815): undefined reference to `reflesh_nft_cache_filter'
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: netfilter_nft/nftpinhole.o: in function `clean_pinhole_list':
nftpinhole.c:(.text+0xa82): undefined reference to `reflesh_nft_cache_filter'
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: nftpinhole.c:(.text+0xbff): undefined reference to `nft_send_request'
collect2: error: ld returned 1 exit status
distcc[413] ERROR: compile (null) on localhost failed
make: *** [<builtin>: miniupnpd] Error 1


Apparently it is using nonexisting (obsolete?) nft_send_request. reflesh_nft_cache_filter looks like a typo.

The iptables build fails with:

Code:

>>> Configuring source in /tmp/portage/net-misc/miniupnpd-2.1.20191003/work/miniupnpd-2.1.20191003 ...
make -j12 'CONFIG_OPTIONS=--vendorcfg --ipv6 --leasefile' config.h
./genconfig.sh --vendorcfg --ipv6 --leasefile
./genconfig.sh: line 331: /sbin/sysctl: No such file or directory
Configuring compilation for [Gentoo] [2.6] with [nftables] firewall software.
Please edit config.h for more compilation options.
>>> Source configured.
>>> Compiling source in /tmp/portage/net-misc/miniupnpd-2.1.20191003/work/miniupnpd-2.1.20191003 ...
make -j12 CC=x86_64-pc-linux-gnu-gcc-9.2.0 STRIP=true miniupnpd
x86_64-pc-linux-gnu-gcc-9.2.0 -march=x86-64 -mtune=k8 -mcx16 -msahf -msse3 --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -O2 -pipe -frecord-gcc-switches -fno-strict-aliasing -fno-common -fstack-protector -fPIE -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wstrict-prototypes -Wdeclaration-after-statement  -D_GNU_SOURCE -DIPTABLES_143  -c -o miniupnpd.o miniupnpd.c
x86_64-pc-linux-gnu-gcc-9.2.0 -march=x86-64 -mtune=k8 -mcx16 -msahf -msse3 --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -O2 -pipe -frecord-gcc-switches -fno-strict-aliasing -fno-common -fstack-protector -fPIE -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wstrict-prototypes -Wdeclaration-after-statement  -D_GNU_SOURCE -DIPTABLES_143  -c -o upnphttp.o upnphttp.c
x86_64-pc-linux-gnu-gcc-9.2.0 -march=x86-64 -mtune=k8 -mcx16 -msahf -msse3 --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -O2 -pipe -frecord-gcc-switches -fno-strict-aliasing -fno-common -fstack-protector -fPIE -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wstrict-prototypes -Wdeclaration-after-statement  -D_GNU_SOURCE -DIPTABLES_143  -c -o upnpdescgen.o upnpdescgen.c
x86_64-pc-linux-gnu-gcc-9.2.0 -march=x86-64 -mtune=k8 -mcx16 -msahf -msse3 --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -O2 -pipe -frecord-gcc-switches -fno-strict-aliasing -fno-common -fstack-protector -fPIE -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wstrict-prototypes -Wdeclaration-after-statement  -D_GNU_SOURCE -DIPTABLES_143  -c -o upnpsoap.o upnpsoap.c
x86_64-pc-linux-gnu-gcc-9.2.0 -march=x86-64 -mtune=k8 -mcx16 -msahf -msse3 --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -O2 -pipe -frecord-gcc-switches -fno-strict-aliasing -fno-common -fstack-protector -fPIE -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wstrict-prototypes -Wdeclaration-after-statement  -D_GNU_SOURCE -DIPTABLES_143  -c -o upnpreplyparse.o upnpreplyparse.c
x86_64-pc-linux-gnu-gcc-9.2.0 -march=x86-64 -mtune=k8 -mcx16 -msahf -msse3 --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -O2 -pipe -frecord-gcc-switches -fno-strict-aliasing -fno-common -fstack-protector -fPIE -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wstrict-prototypes -Wdeclaration-after-statement  -D_GNU_SOURCE -DIPTABLES_143  -c -o minixml.o minixml.c
x86_64-pc-linux-gnu-gcc-9.2.0 -march=x86-64 -mtune=k8 -mcx16 -msahf -msse3 --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -O2 -pipe -frecord-gcc-switches -fno-strict-aliasing -fno-common -fstack-protector -fPIE -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wstrict-prototypes -Wdeclaration-after-statement  -D_GNU_SOURCE -DIPTABLES_143  -c -o portinuse.o portinuse.c
x86_64-pc-linux-gnu-gcc-9.2.0 -march=x86-64 -mtune=k8 -mcx16 -msahf -msse3 --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -O2 -pipe -frecord-gcc-switches -fno-strict-aliasing -fno-common -fstack-protector -fPIE -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wstrict-prototypes -Wdeclaration-after-statement  -D_GNU_SOURCE -DIPTABLES_143  -c -o upnpredirect.o upnpredirect.c
x86_64-pc-linux-gnu-gcc-9.2.0 -march=x86-64 -mtune=k8 -mcx16 -msahf -msse3 --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -O2 -pipe -frecord-gcc-switches -fno-strict-aliasing -fno-common -fstack-protector -fPIE -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wstrict-prototypes -Wdeclaration-after-statement  -D_GNU_SOURCE -DIPTABLES_143  -c -o getifaddr.o getifaddr.c
x86_64-pc-linux-gnu-gcc-9.2.0 -march=x86-64 -mtune=k8 -mcx16 -msahf -msse3 --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -O2 -pipe -frecord-gcc-switches -fno-strict-aliasing -fno-common -fstack-protector -fPIE -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wstrict-prototypes -Wdeclaration-after-statement  -D_GNU_SOURCE -DIPTABLES_143  -c -o daemonize.o daemonize.c
x86_64-pc-linux-gnu-gcc-9.2.0 -march=x86-64 -mtune=k8 -mcx16 -msahf -msse3 --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -O2 -pipe -frecord-gcc-switches -fno-strict-aliasing -fno-common -fstack-protector -fPIE -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wstrict-prototypes -Wdeclaration-after-statement  -D_GNU_SOURCE -DIPTABLES_143  -c -o upnpglobalvars.o upnpglobalvars.c
x86_64-pc-linux-gnu-gcc-9.2.0 -march=x86-64 -mtune=k8 -mcx16 -msahf -msse3 --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -O2 -pipe -frecord-gcc-switches -fno-strict-aliasing -fno-common -fstack-protector -fPIE -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wstrict-prototypes -Wdeclaration-after-statement  -D_GNU_SOURCE -DIPTABLES_143  -c -o options.o options.c
x86_64-pc-linux-gnu-gcc-9.2.0 -march=x86-64 -mtune=k8 -mcx16 -msahf -msse3 --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -O2 -pipe -frecord-gcc-switches -fno-strict-aliasing -fno-common -fstack-protector -fPIE -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wstrict-prototypes -Wdeclaration-after-statement  -D_GNU_SOURCE -DIPTABLES_143  -c -o upnppermissions.o upnppermissions.c
x86_64-pc-linux-gnu-gcc-9.2.0 -march=x86-64 -mtune=k8 -mcx16 -msahf -msse3 --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -O2 -pipe -frecord-gcc-switches -fno-strict-aliasing -fno-common -fstack-protector -fPIE -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wstrict-prototypes -Wdeclaration-after-statement  -D_GNU_SOURCE -DIPTABLES_143  -c -o minissdp.o minissdp.c
x86_64-pc-linux-gnu-gcc-9.2.0 -march=x86-64 -mtune=k8 -mcx16 -msahf -msse3 --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -O2 -pipe -frecord-gcc-switches -fno-strict-aliasing -fno-common -fstack-protector -fPIE -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wstrict-prototypes -Wdeclaration-after-statement  -D_GNU_SOURCE -DIPTABLES_143  -c -o natpmp.o natpmp.c
x86_64-pc-linux-gnu-gcc-9.2.0 -march=x86-64 -mtune=k8 -mcx16 -msahf -msse3 --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -O2 -pipe -frecord-gcc-switches -fno-strict-aliasing -fno-common -fstack-protector -fPIE -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wstrict-prototypes -Wdeclaration-after-statement  -D_GNU_SOURCE -DIPTABLES_143  -c -o pcpserver.o pcpserver.c
x86_64-pc-linux-gnu-gcc-9.2.0 -march=x86-64 -mtune=k8 -mcx16 -msahf -msse3 --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -O2 -pipe -frecord-gcc-switches -fno-strict-aliasing -fno-common -fstack-protector -fPIE -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wstrict-prototypes -Wdeclaration-after-statement  -D_GNU_SOURCE -DIPTABLES_143  -c -o upnpevents.o upnpevents.c
x86_64-pc-linux-gnu-gcc-9.2.0 -march=x86-64 -mtune=k8 -mcx16 -msahf -msse3 --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -O2 -pipe -frecord-gcc-switches -fno-strict-aliasing -fno-common -fstack-protector -fPIE -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wstrict-prototypes -Wdeclaration-after-statement  -D_GNU_SOURCE -DIPTABLES_143  -c -o upnputils.o upnputils.c
x86_64-pc-linux-gnu-gcc-9.2.0 -march=x86-64 -mtune=k8 -mcx16 -msahf -msse3 --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -O2 -pipe -frecord-gcc-switches -fno-strict-aliasing -fno-common -fstack-protector -fPIE -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wstrict-prototypes -Wdeclaration-after-statement  -D_GNU_SOURCE -DIPTABLES_143  -c -o getconnstatus.o getconnstatus.c
x86_64-pc-linux-gnu-gcc-9.2.0 -march=x86-64 -mtune=k8 -mcx16 -msahf -msse3 --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -O2 -pipe -frecord-gcc-switches -fno-strict-aliasing -fno-common -fstack-protector -fPIE -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wstrict-prototypes -Wdeclaration-after-statement  -D_GNU_SOURCE -DIPTABLES_143  -c -o upnpstun.o upnpstun.c
x86_64-pc-linux-gnu-gcc-9.2.0 -march=x86-64 -mtune=k8 -mcx16 -msahf -msse3 --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -O2 -pipe -frecord-gcc-switches -fno-strict-aliasing -fno-common -fstack-protector -fPIE -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wstrict-prototypes -Wdeclaration-after-statement  -D_GNU_SOURCE -DIPTABLES_143  -c -o upnppinhole.o upnppinhole.c
x86_64-pc-linux-gnu-gcc-9.2.0 -march=x86-64 -mtune=k8 -mcx16 -msahf -msse3 --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -O2 -pipe -frecord-gcc-switches -fno-strict-aliasing -fno-common -fstack-protector -fPIE -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wstrict-prototypes -Wdeclaration-after-statement  -D_GNU_SOURCE -DIPTABLES_143  -c -o pcplearndscp.o pcplearndscp.c
x86_64-pc-linux-gnu-gcc-9.2.0 -march=x86-64 -mtune=k8 -mcx16 -msahf -msse3 --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -O2 -pipe -frecord-gcc-switches -fno-strict-aliasing -fno-common -fstack-protector -fPIE -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wstrict-prototypes -Wdeclaration-after-statement  -D_GNU_SOURCE -DIPTABLES_143  -c -o asyncsendto.o asyncsendto.c
x86_64-pc-linux-gnu-gcc-9.2.0 -march=x86-64 -mtune=k8 -mcx16 -msahf -msse3 --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -O2 -pipe -frecord-gcc-switches -fno-strict-aliasing -fno-common -fstack-protector -fPIE -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wstrict-prototypes -Wdeclaration-after-statement  -D_GNU_SOURCE -DIPTABLES_143  -c -o linux/getifstats.o linux/getifstats.c
x86_64-pc-linux-gnu-gcc-9.2.0 -march=x86-64 -mtune=k8 -mcx16 -msahf -msse3 --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -O2 -pipe -frecord-gcc-switches -fno-strict-aliasing -fno-common -fstack-protector -fPIE -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wstrict-prototypes -Wdeclaration-after-statement  -D_GNU_SOURCE -DIPTABLES_143  -c -o linux/ifacewatcher.o linux/ifacewatcher.c
x86_64-pc-linux-gnu-gcc-9.2.0 -march=x86-64 -mtune=k8 -mcx16 -msahf -msse3 --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -O2 -pipe -frecord-gcc-switches -fno-strict-aliasing -fno-common -fstack-protector -fPIE -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wstrict-prototypes -Wdeclaration-after-statement  -D_GNU_SOURCE -DIPTABLES_143  -c -o linux/getroute.o linux/getroute.c
x86_64-pc-linux-gnu-gcc-9.2.0 -march=x86-64 -mtune=k8 -mcx16 -msahf -msse3 --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -O2 -pipe -frecord-gcc-switches -fno-strict-aliasing -fno-common -fstack-protector -fPIE -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wstrict-prototypes -Wdeclaration-after-statement  -D_GNU_SOURCE -DIPTABLES_143  -c -o netfilter/iptcrdr.o netfilter/iptcrdr.c
x86_64-pc-linux-gnu-gcc-9.2.0 -march=x86-64 -mtune=k8 -mcx16 -msahf -msse3 --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -O2 -pipe -frecord-gcc-switches -fno-strict-aliasing -fno-common -fstack-protector -fPIE -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wstrict-prototypes -Wdeclaration-after-statement  -D_GNU_SOURCE -DIPTABLES_143  -c -o netfilter/iptpinhole.o netfilter/iptpinhole.c
x86_64-pc-linux-gnu-gcc-9.2.0 -march=x86-64 -mtune=k8 -mcx16 -msahf -msse3 --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -O2 -pipe -frecord-gcc-switches -fno-strict-aliasing -fno-common -fstack-protector -fPIE -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wstrict-prototypes -Wdeclaration-after-statement  -D_GNU_SOURCE -DIPTABLES_143  -c -o netfilter/nfct_get.o netfilter/nfct_get.c
In file included from /usr/include/string.h:494,
                 from linux/ifacewatcher.c:46:
In function ‘strncpy’,
    inlined from ‘ProcessInterfaceWatchNotify’ at linux/ifacewatcher.c:323:6:
/usr/include/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ specified bound 128 equals destination size [-Wstringop-truncation]
  106 |   return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function ‘strncpy’,
    inlined from ‘ProcessInterfaceWatchNotify’ at linux/ifacewatcher.c:324:6:
/usr/include/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ output may be truncated copying 16 bytes from a string of length 127 [-Wstringop-truncation]
  106 |   return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function ‘strncpy’,
    inlined from ‘ProcessInterfaceWatchNotify’ at linux/ifacewatcher.c:320:7:
/usr/include/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ output may be truncated copying 48 bytes from a string of length 127 [-Wstringop-truncation]
  106 |   return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
distcc[262] ERROR: compile netfilter/iptpinhole.c on localhost failed
netfilter/iptpinhole.c: In function ‘add_pinhole’:
netfilter/iptpinhole.c:263:40: error: ‘miniupnpd_v6_filter_chain’ undeclared (first use in this function)
  263 |  if(ip6tc_init_verify_append("filter", miniupnpd_v6_filter_chain, e) < 0) {
      |                                        ^~~~~~~~~~~~~~~~~~~~~~~~~
netfilter/iptpinhole.c:263:40: note: each undeclared identifier is reported only once for each function it appears in
netfilter/iptpinhole.c: In function ‘delete_pinhole’:
netfilter/iptpinhole.c:324:21: error: ‘miniupnpd_v6_filter_chain’ undeclared (first use in this function)
  324 |  if(!ip6tc_is_chain(miniupnpd_v6_filter_chain, h)) {
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~
netfilter/iptpinhole.c: In function ‘get_pinhole_info’:
netfilter/iptpinhole.c:422:28: error: ‘miniupnpd_v6_filter_chain’ undeclared (first use in this function)
  422 |   for(e = ip6tc_first_rule(miniupnpd_v6_filter_chain, h);
      |                            ^~~~~~~~~~~~~~~~~~~~~~~~~
make: *** [<builtin>: netfilter/iptpinhole.o] Error 1
make: *** Waiting for unfinished jobs....
distcc[263] (dcc_connect_via_socks5) ERROR: proxy connection failed, reason=0x04
distcc[263] Warning: failed to distribute netfilter/iptcrdr.c to pomiocik/3, running locally instead
distcc[263] ERROR: compile netfilter/iptcrdr.c on localhost failed
netfilter/iptcrdr.c: In function ‘get_redirect_rule’:
netfilter/iptcrdr.c:302:31: error: ‘miniupnpd_nat_chain’ undeclared (first use in this function)
  302 |  return get_nat_redirect_rule(miniupnpd_nat_chain,
      |                               ^~~~~~~~~~~~~~~~~~~
netfilter/iptcrdr.c:302:31: note: each undeclared identifier is reported only once for each function it appears in
netfilter/iptcrdr.c: In function ‘get_redirect_rule_by_index’:
netfilter/iptcrdr.c:421:20: error: ‘miniupnpd_nat_chain’ undeclared (first use in this function)
  421 |  if(!iptc_is_chain(miniupnpd_nat_chain, h))
      |                    ^~~~~~~~~~~~~~~~~~~
netfilter/iptcrdr.c: In function ‘get_peer_rule_by_index’:
netfilter/iptcrdr.c:512:20: error: ‘miniupnpd_nat_postrouting_chain’ undeclared (first use in this function)
  512 |  if(!iptc_is_chain(miniupnpd_nat_postrouting_chain, h))
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
netfilter/iptcrdr.c: In function ‘delete_filter_rule’:
netfilter/iptcrdr.c:643:27: error: ‘miniupnpd_forward_chain’ undeclared (first use in this function)
  643 |   for(e = iptc_first_rule(miniupnpd_forward_chain, h);
      |                           ^~~~~~~~~~~~~~~~~~~~~~~
netfilter/iptcrdr.c: In function ‘delete_redirect_and_filter_rules’:
netfilter/iptcrdr.c:712:20: error: ‘miniupnpd_nat_chain’ undeclared (first use in this function)
  712 |  if(!iptc_is_chain(miniupnpd_nat_chain, h))
      |                    ^~~~~~~~~~~~~~~~~~~
netfilter/iptcrdr.c:778:28: error: ‘miniupnpd_forward_chain’ undeclared (first use in this function)
  778 |    for(e = iptc_first_rule(miniupnpd_forward_chain, h);
      |                            ^~~~~~~~~~~~~~~~~~~~~~~
netfilter/iptcrdr.c:830:27: error: ‘miniupnpd_nat_postrouting_chain’ undeclared (first use in this function)
  830 |   for(e = iptc_first_rule(miniupnpd_nat_postrouting_chain, h);
      |                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
netfilter/iptcrdr.c: In function ‘addnatrule’:
netfilter/iptcrdr.c:1215:41: error: ‘miniupnpd_nat_chain’ undeclared (first use in this function)
 1215 |  r = iptc_init_verify_and_append("nat", miniupnpd_nat_chain, e, "addnatrule");
      |                                         ^~~~~~~~~~~~~~~~~~~
netfilter/iptcrdr.c: In function ‘addmasqueraderule’:
netfilter/iptcrdr.c:1303:41: error: ‘miniupnpd_nat_postrouting_chain’ undeclared (first use in this function)
 1303 |  r = iptc_init_verify_and_append("nat", miniupnpd_nat_postrouting_chain, e, "addmasqueraderule");
      |                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
netfilter/iptcrdr.c: In function ‘addpeernatrule’:
netfilter/iptcrdr.c:1384:41: error: ‘miniupnpd_nat_postrouting_chain’ undeclared (first use in this function)
 1384 |  r = iptc_init_verify_and_append("nat", miniupnpd_nat_postrouting_chain, e, "addpeernatrule");
      |                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
netfilter/iptcrdr.c: In function ‘addpeerdscprule’:
netfilter/iptcrdr.c:1462:44: error: ‘miniupnpd_nat_chain’ undeclared (first use in this function)
 1462 |  r = iptc_init_verify_and_append("mangle", miniupnpd_nat_chain, e,
      |                                            ^~~~~~~~~~~~~~~~~~~
netfilter/iptcrdr.c: In function ‘add_filter_rule’:
netfilter/iptcrdr.c:1544:44: error: ‘miniupnpd_forward_chain’ undeclared (first use in this function)
 1544 |  r = iptc_init_verify_and_append("filter", miniupnpd_forward_chain, e, "add_filter_rule");
      |                                            ^~~~~~~~~~~~~~~~~~~~~~~
netfilter/iptcrdr.c: In function ‘get_portmappings_in_range’:
netfilter/iptcrdr.c:1581:20: error: ‘miniupnpd_nat_chain’ undeclared (first use in this function)
 1581 |  if(!iptc_is_chain(miniupnpd_nat_chain, h))
      |                    ^~~~~~~~~~~~~~~~~~~
netfilter/iptcrdr.c: In function ‘update_portmapping’:
netfilter/iptcrdr.c:1730:20: error: ‘miniupnpd_nat_chain’ undeclared (first use in this function)
 1730 |  if(!iptc_is_chain(miniupnpd_nat_chain, h))
      |                    ^~~~~~~~~~~~~~~~~~~
netfilter/iptcrdr.c:1812:20: error: ‘miniupnpd_forward_chain’ undeclared (first use in this function)
 1812 |  if(!iptc_is_chain(miniupnpd_forward_chain, h))
      |                    ^~~~~~~~~~~~~~~~~~~~~~~
netfilter/iptcrdr.c: In function ‘get_redirect_rule’:
netfilter/iptcrdr.c:308:1: warning: control reaches end of non-void function [-Wreturn-type]
  308 | }
      | ^
make: *** [<builtin>: netfilter/iptcrdr.o] Error 1
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1474

PostPosted: Sat Oct 05, 2019 9:52 pm    Post subject: Reply with quote

hum nftpinhole.c was forgotten in
https://github.com/miniupnp/miniupnp/commit/75bdb777cfa7b62aba1d8ae8fcd081abef775d2e
_________________
Main miniUPnP author.
http://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1474

PostPosted: Sat Oct 05, 2019 10:04 pm    Post subject: Reply with quote

about the iptables build I see an issue :
Code:
>>> Configuring source in /tmp/portage/net-misc/miniupnpd-2.1.20191003/work/miniupnpd-2.1.20191003 ...
make -j12 'CONFIG_OPTIONS=--vendorcfg --ipv6 --leasefile' config.h
./genconfig.sh --vendorcfg --ipv6 --leasefile
./genconfig.sh: line 331: /sbin/sysctl: No such file or directory
Configuring compilation for [Gentoo] [2.6] with [nftables] firewall software.

for some reasons the --firewall=iptables option is not added to CONFIG_OPTIONS.
You should use the command line :
Code:
CONFIG_OPTIONS="--vendorcfg --ipv6 --leasefile" make -f Makefile.linux config.h

that way it works better
_________________
Main miniUPnP author.
http://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
mgorny



Joined: 03 Oct 2019
Posts: 2

PostPosted: Sun Oct 06, 2019 6:51 am    Post subject: Reply with quote

miniupnp wrote:

hum nftpinhole.c was forgotten in
https://github.com/miniupnp/miniupnp/commit/75bdb777cfa7b62aba1d8ae8fcd081abef775d2e


I guess I'll have to wait till it's unforgotten to package the release ;-).

miniupnp wrote:

for some reasons the --firewall=iptables option is not added to CONFIG_OPTIONS.
You should use the command line :
Code:
CONFIG_OPTIONS="--vendorcfg --ipv6 --leasefile" make -f Makefile.linux config.h

that way it works better


Indeed, moving it around helps. Thanks!
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1474

PostPosted: Sun Oct 06, 2019 9:03 pm    Post subject: Reply with quote

miniupnpd-2.1.20191006.tar.gz should fix the nftables build
_________________
Main miniUPnP author.
http://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpd Compilation/Installation All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP
© 2007 Thomas Bernard, author of MiniUPNP.