[Bug 286539] net-mgmt/nfdump: port doesn't build on 14.3-STABLE

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 03 May 2025 06:47:40 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=286539

            Bug ID: 286539
           Summary: net-mgmt/nfdump: port doesn't build on 14.3-STABLE
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: pi@FreeBSD.org
          Reporter: zarychtam@plan-b.pwste.edu.pl
             Flags: maintainer-feedback?(pi@FreeBSD.org)
          Assignee: pi@FreeBSD.org

This port is not ready for FreeBSD 14.3 yet. I am pasting below the excerpt
from poudriere build log:

In file included from nfpcapd.c:44:
/usr/include/netinet/in_systm.h:53:9: error: unknown type name 'u_int16_t'
   53 | typedef u_int16_t n_short;              /* short as received from the
net */
      |         ^
/usr/include/netinet/in_systm.h:54:9: error: unknown type name 'u_int32_t'
   54 | typedef u_int32_t n_long;               /* long as received from the
net */
      |         ^
/usr/include/netinet/in_systm.h:56:9: error: unknown type name 'u_int32_t'
   56 | typedef u_int32_t n_time;               /* ms since 00:00 UTC, byte rev
*/
      |         ^
3 errors generated.
--- nfpcapd-packet_bpf.o ---
In file included from packet_bpf.c:40:
/usr/include/net/bpf.h:50:9: error: unknown type name 'int32_t'; did you mean
'__int32_t'?
   50 | typedef int32_t   bpf_int32;
      |         ^
/usr/include/sys/_types.h:47:15: note: '__int32_t' declared here
   47 | typedef int                     __int32_t;
      |                                 ^
In file included from packet_bpf.c:40:
/usr/include/net/bpf.h:51:9: error: unknown type name 'u_int32_t'; did you mean
'__int32_t'?
   51 | typedef u_int32_t bpf_u_int32;
      |         ^
/usr/include/sys/_types.h:47:15: note: '__int32_t' declared here
   47 | typedef int                     __int32_t;
      |                                 ^
In file included from packet_bpf.c:40:
/usr/include/net/bpf.h:52:9: error: unknown type name 'int64_t'; did you mean
'__int64_t'?
   52 | typedef int64_t   bpf_int64;
      |         ^
/usr/include/sys/_types.h:50:16: note: '__int64_t' declared here
   50 | typedef long                    __int64_t;
      |                                 ^
In file included from packet_bpf.c:40:
/usr/include/net/bpf.h:53:9: error: unknown type name 'u_int64_t'; did you mean
'__int64_t'?
   53 | typedef u_int64_t bpf_u_int64;
      |         ^
/usr/include/sys/_types.h:50:16: note: '__int64_t' declared here
   50 | typedef long                    __int64_t;
      |                                 ^
In file included from packet_bpf.c:40:
/usr/include/net/bpf.h:71:2: error: unknown type name 'u_int'
   71 |         u_int bf_len;
      |         ^
/usr/include/net/bpf.h:79:2: error: unknown type name 'u_int'
   79 |         u_int bs_recv;          /* number of packets received */
      |         ^
/usr/include/net/bpf.h:80:2: error: unknown type name 'u_int'
   80 |         u_int bs_drop;          /* number of packets dropped */
      |         ^
/usr/include/net/bpf.h:95:2: error: unknown type name 'u_short'; did you mean
'short'?
   95 |         u_short bv_major;
      |         ^
/usr/include/net/bpf.h:96:2: error: unknown type name 'u_short'; did you mean
'short'?
   96 |         u_short bv_minor;
      |         ^
/usr/include/net/bpf.h:120:2: error: unknown type name 'size_t'; did you mean
'__size_t'?
  120 |         size_t   bz_buflen;     /* Size of zero-copy buffers. */
      |         ^
/usr/include/sys/_types.h:91:20: note: '__size_t' declared here
   91 | typedef __uint64_t      __size_t;       /* sizeof() */
      |                         ^
In file included from packet_bpf.c:40:
/usr/include/net/bpf.h:206:2: error: unknown type name 'u_short'; did you mean
'short'?
  206 |         u_short         bh_hdrlen;      /* length of bpf header (this
struct
      |         ^
/usr/include/net/bpf.h:211:17: error: field has incomplete type 'struct
timeval'
  211 |         struct timeval  bh_tstamp;      /* time stamp */
      |                         ^
/usr/include/net/bpf.h:211:9: note: forward declaration of 'struct timeval'
  211 |         struct timeval  bh_tstamp;      /* time stamp */
      |                ^
/usr/include/net/bpf.h:214:2: error: unknown type name 'u_short'; did you mean
'short'?
  214 |         u_short         bh_hdrlen;      /* length of bpf header (this
struct
      |         ^
/usr/include/net/bpf.h:234:11: error: unknown type name 'u_int'
  234 |         volatile u_int  bzh_kernel_gen; /* Kernel generation number. */
      |                  ^
/usr/include/net/bpf.h:235:11: error: unknown type name 'u_int'
  235 |         volatile u_int  bzh_kernel_len; /* Length of data in the
buffer. */
      |                  ^
/usr/include/net/bpf.h:236:11: error: unknown type name 'u_int'
  236 |         volatile u_int  bzh_user_gen;   /* User generation number. */
      |                  ^
/usr/include/net/bpf.h:237:2: error: unknown type name 'u_int'
  237 |         u_int _bzh_pad[5];
      |         ^
/usr/include/net/bpf.h:364:2: error: unknown type name 'u_short'; did you mean
'short'?
  364 |         u_short         code;
      |         ^
/usr/include/net/bpf.h:365:2: error: unknown type name 'u_char'; did you mean
'char'?
  365 |         u_char          jt;
      |         ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
--- nfpcapd-nfpcapd.o ---
*** [nfpcapd-nfpcapd.o] Error code 1

make[2]: stopped in
/wrkdirs/usr/ports/net-mgmt/nfdump/work/nfdump-1.7.4/src/nfpcapd
--- nfpcapd-packet_bpf.o ---
*** [nfpcapd-packet_bpf.o] Error code 1

make[2]: stopped in
/wrkdirs/usr/ports/net-mgmt/nfdump/work/nfdump-1.7.4/src/nfpcapd
2 errors

make[2]: stopped in
/wrkdirs/usr/ports/net-mgmt/nfdump/work/nfdump-1.7.4/src/nfpcapd

make[1]: stopped in /wrkdirs/usr/ports/net-mgmt/nfdump/work/nfdump-1.7.4

make: stopped in /wrkdirs/usr/ports/net-mgmt/nfdump/work/nfdump-1.7.4
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

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