[Bug 236173] net/miniupnpd: build fails on FreeBSD 12.0
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sun Mar 3 04:05:08 UTC 2019
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=236173
Bug ID: 236173
Summary: net/miniupnpd: build fails on FreeBSD 12.0
Product: Ports & Packages
Version: Latest
Hardware: amd64
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: Individual Port(s)
Assignee: ports-bugs at FreeBSD.org
Reporter: igor.arabesc.pavlov at gmail.com
CC: squat at squat.no
Flags: maintainer-feedback?(squat at squat.no)
CC: squat at squat.no
Here's a similar issue:
https://forums.freebsd.org/threads/psutil-wont-build-on-freebsd-12.60846/
Build log:
Command: make clean install clean
===> Cleaning for miniupnpd-2.0.20180503,1
===> License BSD3CLAUSE accepted by the user
===> miniupnpd-2.0.20180503,1 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by miniupnpd-2.0.20180503,1 for building
===> Extracting for miniupnpd-2.0.20180503,1
=> SHA256 Checksum OK for miniupnpd-2.0.20180503.tar.gz.
===> Patching for miniupnpd-2.0.20180503,1
===>SE accepted by the user
===> miniupnpd-2.0.20180503,1 dep Applying extra patch
/usr/ports/net/miniupnpd/files/enable_check_portinuse.patch
===> Applying extra patch
/usr/ports/net/miniupnpd/files/enable_leasefile.patch
===> Applying extra patch
/usr/ports/net/miniupnpd/files/pf_enable_filter_rules.patch
===> Applying extra patch /usr/ports/net/miniupnpd/files/enable_igdv2.patch
===> Applying FreeBSD patches for miniupnpd-2.0.20180503,1
/usr/bin/sed -i.bak -e 's|\(-lssl -lcrypto\)|$(LDFLAGS) \1|g'
/usr/ports/net/miniupnpd/work/miniupnpd-2.0.20180503/Makefile
===> Configuring for miniupnpd-2.0.20180503,1
===> Building for miniupnpd-2.0.20180503,1
./genconfig.sh
Could not detect usage of ipf, pf, ipfw. Compiling for pf by default
Configuring compilation for [FreeBSD] [12.0-RELEASE-p3] with [pf] firewall
software.
Please edit config.h for more compilation options.
cc -O2 -pipe -funroll-loops -Wall -W -Wstrict-prototypes -fno-common -c -o
miniupnpd.o miniupnpd.c
cc -O2 -pipe -funroll-loops -Wall -W -Wstrict-prototypes -fno-common -c -o
upnphttp.o upnphttp.c
cc -O2 -pipe -funroll-loops -Wall -W -Wstrict-prototypes -fno-common -c -o
upnpdescgen.o upnpdescgen.c
cc -O2 -pipe -funroll-loops -Wall -W -Wstrict-prototypes -fno-common -c -o
upnpsoap.o upnpsoap.c
cc -O2 -pipe -funroll-loops -Wall -W -Wstrict-prototypes -fno-common -c -o
upnpredirect.o upnpredirect.c
cc -O2 -pipe -funroll-loops -Wall -W -Wstrict-prototypes -fno-common -c -o
getifaddr.o getifaddr.c
cc -O2 -pipe -funroll-loops -Wall -W -Wstrict-prototypes -fno-common -c -o
daemonize.o daemonize.c
cc -O2 -pipe -funroll-loops -Wall -W -Wstrict-prototypes -fno-common -c -o
upnpglobalvars.o upnpglobalvars.c
cc -O2 -pipe -funroll-loops -Wall -W -Wstrict-prototypes -fno-common -c -o
options.o options.c
cc -O2 -pipe -funroll-loops -Wall -W -Wstrict-prototypes -fno-common -c -o
upnppermissions.o upnppermissions.c
cc -O2 -pipe -funroll-loops -Wall -W -Wstrict-prototypes -fno-common -c -o
minissdp.o minissdp.c
cc -O2 -pipe -funroll-loops -Wall -W -Wstrict-prototypes -fno-common -c -o
natpmp.o natpmp.c
cc -O2 -pipe -funroll-loops -Wall -W -Wstrict-prototypes -fno-common -c -o
pcpserver.o pcpserver.c
cc -O2 -pipe -funroll-loops -Wall -W -Wstrict-prototypes -fno-common -c -o
upnpevents.o upnpevents.c
cc -O2 -pipe -funroll-loops -Wall -W -Wstrict-prototypes -fno-common -c -o
upnputils.o upnputils.c
cc -O2 -pipe -funroll-loops -Wall -W -Wstrict-prototypes -fno-common -c -o
getconnstatus.o getconnstatus.c
cc -O2 -pipe -funroll-loops -Wall -W -Wstrict-prototypes -fno-common -c -o
upnppinhole.o upnppinhole.c
cc -O2 -pipe -funroll-loops -Wall -W -Wstrict-prototypes -fno-common -c -o
asyncsendto.o asyncsendto.c
cc -O2 -pipe -funroll-loops -Wall -W -Wstrict-prototypes -fno-common -c -o
portinuse.o portinuse.c
portinuse.c:342:8: warning: incompatible pointer types assigning to 'struct
inpcb *' from 'struct xinpcb *' [-Wincompatible-pointer-types]
inp = &xtp->xt_inp;
^ ~~~~~~~~~~~~
portinuse.c:352:16: error: no member named 'xi_inp' in 'struct xinpcb'
inp = &xip->xi_inp;
~~~ ^
portinuse.c:358:11: error: incomplete definition of type 'struct inpcb'
if ((inp->inp_vflag & INP_IPV6) != 0)
~~~^
/usr/include/netinet/in_pcb.h:71:25: note: forward declaration of 'struct
inpcb'
CK_LIST_HEAD(inpcbhead, inpcb);
^
/usr/include/sys/ck.h:11:22: note: expanded from macro 'CK_LIST_HEAD'
#define CK_LIST_HEAD LIST_HEAD
^
portinuse.c:361:21: error: incomplete definition of type 'struct inpcb'
(u_long)inp->inp_laddr.s_addr, ntohs(inp->inp_lport),
~~~^
/usr/include/netinet/in_pcb.h:71:25: note: forward declaration of 'struct
inpcb'
CK_LIST_HEAD(inpcbhead, inpcb);
^
/usr/include/sys/ck.h:11:22: note: expanded from macro 'CK_LIST_HEAD'
#define CK_LIST_HEAD LIST_HEAD
^
portinuse.c:361:50: error: incomplete definition of type 'struct inpcb'
(u_long)inp->inp_laddr.s_addr, ntohs(inp->inp_lport),
~~~^
/usr/include/netinet/in.h:122:26: note: expanded from macro 'ntohs'
#define ntohs(x) __ntohs(x)
^
/usr/include/x86/endian.h:131:30: note: expanded from macro '__ntohs'
#define __ntohs(x) __bswap16(x)
^
/usr/include/x86/endian.h:76:37: note: expanded from macro '__bswap16'
((__uint16_t)(__builtin_constant_p(x) ? \
^
/usr/include/netinet/in_pcb.h:71:25: note: forward declaration of 'struct
inpcb'
CK_LIST_HEAD(inpcbhead, inpcb);
^
/usr/include/sys/ck.h:11:22: note: expanded from macro 'CK_LIST_HEAD'
#define CK_LIST_HEAD LIST_HEAD
^
portinuse.c:361:50: error: incomplete definition of type 'struct inpcb'
(u_long)inp->inp_laddr.s_addr, ntohs(inp->inp_lport),
~~~^
/usr/include/netinet/in.h:122:26: note: expanded from macro 'ntohs'
#define ntohs(x) __ntohs(x)
^
/usr/include/x86/endian.h:131:30: note: expanded from macro '__ntohs'
#define __ntohs(x) __bswap16(x)
^
/usr/include/x86/endian.h:77:33: note: expanded from macro '__bswap16'
__bswap16_gen((__uint16_t)(x)) : __bswap16_var(x)))
^
/usr/include/x86/endian.h:68:40: note: expanded from macro '__bswap16_gen'
#define __bswap16_gen(x) (__uint16_t)((x) << 8 | (x) >> 8)
^
/usr/include/netinet/in_pcb.h:71:25: note: forward declaration of 'struct
inpcb'
CK_LIST_HEAD(inpcbhead, inpcb);
^
/usr/include/sys/ck.h:11:22: note: expanded from macro 'CK_LIST_HEAD'
#define CK_LIST_HEAD LIST_HEAD
^
portinuse.c:361:50: error: incomplete definition of type 'struct inpcb'
(u_long)inp->inp_laddr.s_addr, ntohs(inp->inp_lport),
~~~^
/usr/include/netinet/in.h:122:26: note: expanded from macro 'ntohs'
#define ntohs(x) __ntohs(x)
^
/usr/include/x86/endian.h:131:30: note: expanded from macro '__ntohs'
#define __ntohs(x) __bswap16(x)
^
/usr/include/x86/endian.h:77:33: note: expanded from macro '__bswap16'
__bswap16_gen((__uint16_t)(x)) : __bswap16_var(x)))
^
/usr/include/x86/endian.h:68:51: note: expanded from macro '__bswap16_gen'
#define __bswap16_gen(x) (__uint16_t)((x) << 8 | (x) >> 8)
^
/usr/include/netinet/in_pcb.h:71:25: note: forward declaration of 'struct
inpcb'
CK_LIST_HEAD(inpcbhead, inpcb);
^
/usr/include/sys/ck.h:11:22: note: expanded from macro 'CK_LIST_HEAD'
#define CK_LIST_HEAD LIST_HEAD
^
portinuse.c:361:50: error: incomplete definition of type 'struct inpcb'
(u_long)inp->inp_laddr.s_addr, ntohs(inp->inp_lport),
~~~^
/usr/include/netinet/in.h:122:26: note: expanded from macro 'ntohs'
#define ntohs(x) __ntohs(x)
^
/usr/include/x86/endian.h:131:30: note: expanded from macro '__ntohs'
#define __ntohs(x) __bswap16(x)
^
/usr/include/x86/endian.h:77:53: note: expanded from macro '__bswap16'
__bswap16_gen((__uint16_t)(x)) : __bswap16_var(x)))
^
/usr/include/netinet/in_pcb.h:71:25: note: forward declaration of 'struct
inpcb'
CK_LIST_HEAD(inpcbhead, inpcb);
^
/usr/include/sys/ck.h:11:22: note: expanded from macro 'CK_LIST_HEAD'
#define CK_LIST_HEAD LIST_HEAD
^
portinuse.c:362:21: error: incomplete definition of type 'struct inpcb'
(u_long)inp->inp_faddr.s_addr, ntohs(inp->inp_fport),
~~~^
/usr/include/netinet/in_pcb.h:71:25: note: forward declaration of 'struct
inpcb'
CK_LIST_HEAD(inpcbhead, inpcb);
^
/usr/include/sys/ck.h:11:22: note: expanded from macro 'CK_LIST_HEAD'
#define CK_LIST_HEAD LIST_HEAD
^
portinuse.c:362:50: error: incomplete definition of type 'struct inpcb'
(u_long)inp->inp_faddr.s_addr, ntohs(inp->inp_fport),
~~~^
/usr/include/netinet/in.h:122:26: note: expanded from macro 'ntohs'
#define ntohs(x) __ntohs(x)
^
/usr/include/x86/endian.h:131:30: note: expanded from macro '__ntohs'
#define __ntohs(x) __bswap16(x)
^
/usr/include/x86/endian.h:76:37: note: expanded from macro '__bswap16'
((__uint16_t)(__builtin_constant_p(x) ? \
^
/usr/include/netinet/in_pcb.h:71:25: note: forward declaration of 'struct
inpcb'
CK_LIST_HEAD(inpcbhead, inpcb);
^
/usr/include/sys/ck.h:11:22: note: expanded from macro 'CK_LIST_HEAD'
#define CK_LIST_HEAD LIST_HEAD
^
portinuse.c:362:50: error: incomplete definition of type 'struct inpcb'
(u_long)inp->inp_faddr.s_addr, ntohs(inp->inp_fport),
~~~^
/usr/include/netinet/in.h:122:26: note: expanded from macro 'ntohs'
#define ntohs(x) __ntohs(x)
^
/usr/include/x86/endian.h:131:30: note: expanded from macro '__ntohs'
#define __ntohs(x) __bswap16(x)
^
/usr/include/x86/endian.h:77:33: note: expanded from macro '__bswap16'
__bswap16_gen((__uint16_t)(x)) : __bswap16_var(x)))
^
/usr/include/x86/endian.h:68:40: note: expanded from macro '__bswap16_gen'
#define __bswap16_gen(x) (__uint16_t)((x) << 8 | (x) >> 8)
^
/usr/include/netinet/in_pcb.h:71:25: note: forward declaration of 'struct
inpcb'
CK_LIST_HEAD(inpcbhead, inpcb);
^
/usr/include/sys/ck.h:11:22: note: expanded from macro 'CK_LIST_HEAD'
#define CK_LIST_HEAD LIST_HEAD
^
portinuse.c:362:50: error: incomplete definition of type 'struct inpcb'
(u_long)inp->inp_faddr.s_addr, ntohs(inp->inp_fport),
~~~^
/usr/include/netinet/in.h:122:26: note: expanded from macro 'ntohs'
#define ntohs(x) __ntohs(x)
^
/usr/include/x86/endian.h:131:30: note: expanded from macro '__ntohs'
#define __ntohs(x) __bswap16(x)
^
/usr/include/x86/endian.h:77:33: note: expanded from macro '__bswap16'
__bswap16_gen((__uint16_t)(x)) : __bswap16_var(x)))
^
/usr/include/x86/endian.h:68:51: note: expanded from macro '__bswap16_gen'
#define __bswap16_gen(x) (__uint16_t)((x) << 8 | (x) >> 8)
^
/usr/include/netinet/in_pcb.h:71:25: note: forward declaration of 'struct
inpcb'
CK_LIST_HEAD(inpcbhead, inpcb);
^
/usr/include/sys/ck.h:11:22: note: expanded from macro 'CK_LIST_HEAD'
#define CK_LIST_HEAD LIST_HEAD
^
portinuse.c:362:50: error: incomplete definition of type 'struct inpcb'
(u_long)inp->inp_faddr.s_addr, ntohs(inp->inp_fport),
~~~^
/usr/include/netinet/in.h:122:26: note: expanded from macro 'ntohs'
#define ntohs(x) __ntohs(x)
^
/usr/include/x86/endian.h:131:30: note: expanded from macro '__ntohs'
#define __ntohs(x) __bswap16(x)
^
/usr/include/x86/endian.h:77:53: note: expanded from macro '__bswap16'
__bswap16_gen((__uint16_t)(x)) : __bswap16_var(x)))
^
/usr/include/netinet/in_pcb.h:71:25: note: forward declaration of 'struct
inpcb'
CK_LIST_HEAD(inpcbhead, inpcb);
^
/usr/include/sys/ck.h:11:22: note: expanded from macro 'CK_LIST_HEAD'
#define CK_LIST_HEAD LIST_HEAD
^
portinuse.c:365:35: error: incomplete definition of type 'struct inpcb'
if (eport == (unsigned)ntohs(inp->inp_lport)) {
~~~^
/usr/include/netinet/in.h:122:26: note: expanded from macro 'ntohs'
#define ntohs(x) __ntohs(x)
^
/usr/include/x86/endian.h:131:30: note: expanded from macro '__ntohs'
#define __ntohs(x) __bswap16(x)
^
/usr/include/x86/endian.h:76:37: note: expanded from macro '__bswap16'
((__uint16_t)(__builtin_constant_p(x) ? \
^
/usr/include/netinet/in_pcb.h:71:25: note: forward declaration of 'struct
inpcb'
CK_LIST_HEAD(inpcbhead, inpcb);
^
/usr/include/sys/ck.h:11:22: note: expanded from macro 'CK_LIST_HEAD'
#define CK_LIST_HEAD LIST_HEAD
^
portinuse.c:365:35: error: incomplete definition of type 'struct inpcb'
if (eport == (unsigned)ntohs(inp->inp_lport)) {
~~~^
/usr/include/netinet/in.h:122:26: note: expanded from macro 'ntohs'
#define ntohs(x) __ntohs(x)
^
/usr/include/x86/endian.h:131:30: note: expanded from macro '__ntohs'
#define __ntohs(x) __bswap16(x)
^
/usr/include/x86/endian.h:77:33: note: expanded from macro '__bswap16'
__bswap16_gen((__uint16_t)(x)) : __bswap16_var(x)))
^
/usr/include/x86/endian.h:68:40: note: expanded from macro '__bswap16_gen'
#define __bswap16_gen(x) (__uint16_t)((x) << 8 | (x) >> 8)
^
/usr/include/netinet/in_pcb.h:71:25: note: forward declaration of 'struct
inpcb'
CK_LIST_HEAD(inpcbhead, inpcb);
^
/usr/include/sys/ck.h:11:22: note: expanded from macro 'CK_LIST_HEAD'
#define CK_LIST_HEAD LIST_HEAD
^
portinuse.c:365:35: error: incomplete definition of type 'struct inpcb'
if (eport == (unsigned)ntohs(inp->inp_lport)) {
~~~^
/usr/include/netinet/in.h:122:26: note: expanded from macro 'ntohs'
#define ntohs(x) __ntohs(x)
^
/usr/include/x86/endian.h:131:30: note: expanded from macro '__ntohs'
#define __ntohs(x) __bswap16(x)
^
/usr/include/x86/endian.h:77:33: note: expanded from macro '__bswap16'
__bswap16_gen((__uint16_t)(x)) : __bswap16_var(x)))
^
/usr/include/x86/endian.h:68:51: note: expanded from macro '__bswap16_gen'
#define __bswap16_gen(x) (__uint16_t)((x) << 8 | (x) >> 8)
^
/usr/include/netinet/in_pcb.h:71:25: note: forward declaration of 'struct
inpcb'
CK_LIST_HEAD(inpcbhead, inpcb);
^
/usr/include/sys/ck.h:11:22: note: expanded from macro 'CK_LIST_HEAD'
#define CK_LIST_HEAD LIST_HEAD
^
portinuse.c:365:35: error: incomplete definition of type 'struct inpcb'
if (eport == (unsigned)ntohs(inp->inp_lport)) {
~~~^
/usr/include/netinet/in.h:122:26: note: expanded from macro 'ntohs'
#define ntohs(x) __ntohs(x)
^
/usr/include/x86/endian.h:131:30: note: expanded from macro '__ntohs'
#define __ntohs(x) __bswap16(x)
^
/usr/include/x86/endian.h:77:53: note: expanded from macro '__bswap16'
__bswap16_gen((__uint16_t)(x)) : __bswap16_var(x)))
^
/usr/include/netinet/in_pcb.h:71:25: note: forward declaration of 'struct
inpcb'
CK_LIST_HEAD(inpcbhead, inpcb);
^
/usr/include/sys/ck.h:11:22: note: expanded from macro 'CK_LIST_HEAD'
#define CK_LIST_HEAD LIST_HEAD
^
portinuse.c:366:11: error: incomplete definition of type 'struct inpcb'
if (inp->inp_laddr.s_addr == INADDR_ANY ||
inp->inp_laddr.s_addr == ip_addr.s_addr) {
~~~^
/usr/include/netinet/in_pcb.h:71:25: note: forward declaration of 'struct
inpcb'
CK_LIST_HEAD(inpcbhead, inpcb);
^
/usr/include/sys/ck.h:11:22: note: expanded from macro 'CK_LIST_HEAD'
#define CK_LIST_HEAD LIST_HEAD
^
portinuse.c:366:50: error: incomplete definition of type 'struct inpcb'
if (inp->inp_laddr.s_addr == INADDR_ANY ||
inp->inp_laddr.s_addr == ip_addr.s_addr) {
~~~^
/usr/include/netinet/in_pcb.h:71:25: note: forward declaration of 'struct
inpcb'
CK_LIST_HEAD(inpcbhead, inpcb);
^
/usr/include/sys/ck.h:11:22: note: expanded from macro 'CK_LIST_HEAD'
#define CK_LIST_HEAD LIST_HEAD
^
1 warning and 18 errors generated.
*** Error code 1
Stop.
make[2]: stopped in /usr/ports/net/miniupnpd/work/miniupnpd-2.0.20180503
*** Error code 1
Stop.
make[1]: stopped in /usr/ports/net/miniupnpd
*** Error code 1
Stop.
make: stopped in /usr/ports/net/miniupnpd
Command exit status: 1
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list