Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 03 Mar 2019 04:05:04 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 236173] net/miniupnpd: build fails on FreeBSD 12.0
Message-ID:  <bug-236173-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D236173

            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@FreeBSD.org
          Reporter: igor.arabesc.pavlov@gmail.com
                CC: squat@squat.no
             Flags: maintainer-feedback?(squat@squat.no)
                CC: squat@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
=3D=3D=3D>  Cleaning for miniupnpd-2.0.20180503,1
=3D=3D=3D>  License BSD3CLAUSE accepted by the user
=3D=3D=3D>   miniupnpd-2.0.20180503,1 depends on file: /usr/local/sbin/pkg =
- found
=3D=3D=3D> Fetching all distfiles required by miniupnpd-2.0.20180503,1 for =
building
=3D=3D=3D>  Extracting for miniupnpd-2.0.20180503,1
=3D> SHA256 Checksum OK for miniupnpd-2.0.20180503.tar.gz.
=3D=3D=3D>  Patching for miniupnpd-2.0.20180503,1
=3D=3D=3D>SE accepted by the user
=3D=3D=3D>   miniupnpd-2.0.20180503,1 dep  Applying extra patch
/usr/ports/net/miniupnpd/files/enable_check_portinuse.patch
=3D=3D=3D>  Applying extra patch
/usr/ports/net/miniupnpd/files/enable_leasefile.patch
=3D=3D=3D>  Applying extra patch
/usr/ports/net/miniupnpd/files/pf_enable_filter_rules.patch
=3D=3D=3D>  Applying extra patch /usr/ports/net/miniupnpd/files/enable_igdv=
2.patch
=3D=3D=3D>  Applying FreeBSD patches for miniupnpd-2.0.20180503,1
/usr/bin/sed -i.bak -e 's|\(-lssl -lcrypto\)|$(LDFLAGS) \1|g'=20
/usr/ports/net/miniupnpd/work/miniupnpd-2.0.20180503/Makefile
=3D=3D=3D>  Configuring for miniupnpd-2.0.20180503,1
=3D=3D=3D>  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 =3D &xtp->xt_inp;
                            ^ ~~~~~~~~~~~~
portinuse.c:352:16: error: no member named 'xi_inp' in 'struct xinpcb'
                        inp =3D &xip->xi_inp;
                               ~~~  ^
portinuse.c:358:11: error: incomplete definition of type 'struct inpcb'
                if ((inp->inp_vflag & INP_IPV6) !=3D 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 =3D=3D (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 =3D=3D (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 =3D=3D (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 =3D=3D (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 =3D=3D INADDR_ANY ||
inp->inp_laddr.s_addr =3D=3D 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 =3D=3D INADDR_ANY ||
inp->inp_laddr.s_addr =3D=3D 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

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-236173-7788>