[Bug 285764] net-mgmt/andwatch unknown type(s) error: ethernet.h, packet.c, andwatch.h
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 285764] net-mgmt/andwatch unknown type(s) error: ethernet.h, packet.c, andwatch.h"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 285764] net-mgmt/andwatch unknown type(s) error: ethernet.h, packet.c, andwatch.h"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 285764] net-mgmt/andwatch unknown type(s) error: ethernet.h, packet.c, andwatch.h"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 285764] net-mgmt/andwatch unknown type(s) error: ethernet.h, packet.c, andwatch.h"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 285764] net-mgmt/andwatch unknown type(s) error: ethernet.h, packet.c, andwatch.h"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 285764] net-mgmt/andwatch unknown type(s) error: ethernet.h, packet.c, andwatch.h"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 285764] net-mgmt/andwatch unknown type(s) error: ethernet.h, packet.c, andwatch.h"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 285764] net-mgmt/andwatch unknown type(s) error: ethernet.h, packet.c, andwatch.h"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 285764] net-mgmt/andwatch unknown type(s) error: ethernet.h, packet.c, andwatch.h"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 285764] net-mgmt/andwatch unknown type(s) error: ethernet.h, packet.c, andwatch.h"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 285764] net-mgmt/andwatch unknown type(s) error: ethernet.h, packet.c, andwatch.h"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 29 Mar 2025 22:51:48 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=285764
Bug ID: 285764
Summary: net-mgmt/andwatch unknown type(s) error: ethernet.h,
packet.c, andwatch.h
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: Individual Port(s)
Assignee: ports-bugs@FreeBSD.org
Reporter: milios@ccsys.com
CC: dennypage@me.com
Flags: maintainer-feedback?(dennypage@me.com)
CC: dennypage@me.com
Created attachment 259170
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=259170&action=edit
git -C /usr/ports diff
i suspect it's because i'm on 13.5 rather than 14.x
attached patch works for me, untested on 14.x
error was as follows:
===> Cleaning for andwatch-2.1.0
===> License BSD2CLAUSE accepted by the user
===> andwatch-2.1.0 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by andwatch-2.1.0 for building
===> Extracting for andwatch-2.1.0
=> SHA256 Checksum OK for dennypage-andwatch-v2.1.0_GH0.tar.gz.
===> Patching for andwatch-2.1.0
/usr/bin/sed -i.bak -e "/LIB_DIR/s,/var/lib,/var/db,"
/usr/ports/net-mgmt/andwatch/work/andwatch-2.1.0/andwatch.h
/usr/bin/sed -i.bak -e 's/$(CC)/$(CC) $(CFLAGS) $(LDFLAGS)/'
/usr/ports/net-mgmt/andwatch/work/andwatch-2.1.0/Makefile
===> andwatch-2.1.0 depends on shared library: libpcap.so - found
(/usr/lib/libpcap.so)
===> andwatch-2.1.0 depends on shared library: libsqlite3.so - found
(/usr/local/lib/libsqlite3.so)
===> andwatch-2.1.0 depends on shared library: libcurl.so - found
(/usr/local/lib/libcurl.so)
===> Configuring for andwatch-2.1.0
===> Building for andwatch-2.1.0
--- andwatchd.o ---
--- util.o ---
--- db.o ---
--- pcap.o ---
--- packet.o ---
--- notify.o ---
--- andwatch-query.o ---
--- andwatch-query-ma.o ---
--- andwatch-update-ma.o ---
--- andwatchd.o ---
cc -O2 -pipe -march=opteron-sse3 -I/usr/local/include
-fstack-protector-strong -fno-strict-aliasing -c andwatchd.c -o andwatchd.o
--- util.o ---
cc -O2 -pipe -march=opteron-sse3 -I/usr/local/include
-fstack-protector-strong -fno-strict-aliasing -c util.c -o util.o
--- db.o ---
cc -O2 -pipe -march=opteron-sse3 -I/usr/local/include
-fstack-protector-strong -fno-strict-aliasing -c db.c -o db.o
--- pcap.o ---
cc -O2 -pipe -march=opteron-sse3 -I/usr/local/include
-fstack-protector-strong -fno-strict-aliasing -c pcap.c -o pcap.o
--- packet.o ---
cc -O2 -pipe -march=opteron-sse3 -I/usr/local/include
-fstack-protector-strong -fno-strict-aliasing -c packet.c -o packet.o
--- notify.o ---
cc -O2 -pipe -march=opteron-sse3 -I/usr/local/include
-fstack-protector-strong -fno-strict-aliasing -c notify.c -o notify.o
--- andwatch-query-ma.o ---
cc -O2 -pipe -march=opteron-sse3 -I/usr/local/include
-fstack-protector-strong -fno-strict-aliasing -c andwatch-query-ma.c -o
andwatch-query-ma.o
--- andwatch-query.o ---
cc -O2 -pipe -march=opteron-sse3 -I/usr/local/include
-fstack-protector-strong -fno-strict-aliasing -c andwatch-query.c -o
andwatch-query.o
--- andwatch-update-ma.o ---
cc -O2 -pipe -march=opteron-sse3 -I/usr/local/include
-fstack-protector-strong -fno-strict-aliasing -c andwatch-update-ma.c -o
andwatch-update-ma.o
--- packet.o ---
In file included from packet.c:33:
/usr/include/net/ethernet.h:59:2: error: unknown type name 'u_char'; did you
mean 'char'?
59 | u_char ether_dhost[ETHER_ADDR_LEN];
| ^
/usr/include/net/ethernet.h:60:2: error: unknown type name 'u_char'; did you
mean 'char'?
60 | u_char ether_shost[ETHER_ADDR_LEN];
| ^
/usr/include/net/ethernet.h:61:2: error: unknown type name 'u_short'; did you
mean 'short'?
61 | u_short ether_type;
| ^
/usr/include/net/ethernet.h:68:2: error: unknown type name 'u_char'; did you
mean 'char'?
68 | u_char octet[ETHER_ADDR_LEN];
| ^
/usr/include/net/ethernet.h:85:2: error: unknown type name 'uint8_t'
85 | uint8_t evl_dhost[ETHER_ADDR_LEN];
| ^
/usr/include/net/ethernet.h:86:2: error: unknown type name 'uint8_t'
86 | uint8_t evl_shost[ETHER_ADDR_LEN];
| ^
/usr/include/net/ethernet.h:87:2: error: unknown type name 'uint16_t'
87 | uint16_t evl_encap_proto;
| ^
/usr/include/net/ethernet.h:88:2: error: unknown type name 'uint16_t'
88 | uint16_t evl_tag;
| ^
/usr/include/net/ethernet.h:89:2: error: unknown type name 'uint16_t'
89 | uint16_t evl_proto;
| ^
In file included from packet.c:35:
/usr/include/netinet/ip6.h:76:4: error: unknown type name 'u_int32_t'
76 | u_int32_t ip6_un1_flow; /* 20 bits of flow-ID
*/
| ^
--- util.o ---
In file included from util.c:37:
In file included from ./andwatch.h:36:
/usr/include/net/ethernet.h:59:2: error: unknown type name 'u_char'; did you
mean 'char'?
59 | u_char ether_dhost[ETHER_ADDR_LEN];
| ^
--- packet.o ---
/usr/include/netinet/ip6.h:77:4: error: unknown type name 'u_int16_t'
77 | u_int16_t ip6_un1_plen; /* payload length */
| ^
--- util.o ---
/usr/include/net/ethernet.h:60:2: error: unknown type name 'u_char'; did you
mean 'char'?
60 | u_char ether_shost[ETHER_ADDR_LEN];
| ^
--- packet.o ---
/usr/include/netinet/ip6.h:78:4: error: unknown type name 'u_int8_t'
78 | u_int8_t ip6_un1_nxt; /* next header */
| ^
--- util.o ---
/usr/include/net/ethernet.h:61:2: error: unknown type name 'u_short'; did you
mean 'short'?
61 | u_short ether_type;
| ^
--- packet.o ---
/usr/include/netinet/ip6.h:79:4: error: unknown type name 'u_int8_t'
79 | u_int8_t ip6_un1_hlim; /* hop limit */
| ^
--- util.o ---
/usr/include/net/ethernet.h:68:2: error: unknown type name 'u_char'; did you
mean 'char'?
68 | u_char octet[ETHER_ADDR_LEN];
| ^
--- packet.o ---
/usr/include/netinet/ip6.h:81:3: error: unknown type name 'u_int8_t'
81 | u_int8_t ip6_un2_vfc; /* 4 bits version, top 4 bits
class */
| ^
--- util.o ---
/usr/include/net/ethernet.h:85:2: error: unknown type name 'uint8_t'
--- packet.o ---
/usr/include/netinet/ip6.h:119:2: error: unknown type name 'u_int8_t'
--- util.o ---
85 | uint8_t evl_dhost[ETHER_ADDR_LEN];
| ^
--- packet.o ---
119 | u_int8_t ip6e_nxt;
| ^
--- util.o ---
/usr/include/net/ethernet.h:86:2: error: unknown type name 'uint8_t'
86 | uint8_t evl_shost[ETHER_ADDR_LEN];
| ^
--- packet.o ---
/usr/include/netinet/ip6.h:120:2: error: unknown type name 'u_int8_t'
120 | u_int8_t ip6e_len;
| ^
--- util.o ---
/usr/include/net/ethernet.h:87:2: error: unknown type name 'uint16_t'
87 | uint16_t evl_encap_proto;
| ^
--- packet.o ---
/usr/include/netinet/ip6.h:126:2: error: unknown type name 'u_int8_t'
126 | u_int8_t ip6h_nxt; /* next header */
| ^
--- util.o ---
/usr/include/net/ethernet.h:88:2: error: unknown type name 'uint16_t'
88 | uint16_t evl_tag;
| ^
--- packet.o ---
/usr/include/netinet/ip6.h:127:2: error: unknown type name 'u_int8_t'
127 | u_int8_t ip6h_len; /* length in units of 8 octets */
| ^
--- util.o ---
/usr/include/net/ethernet.h:89:2: error: unknown type name 'uint16_t'
89 | uint16_t evl_proto;
| ^
--- packet.o ---
/usr/include/netinet/ip6.h:134:2: error: unknown type name 'u_int8_t'
134 | u_int8_t ip6d_nxt; /* next header */
| ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
--- db.o ---
In file included from db.c:37:
In file included from ./andwatch.h:36:
/usr/include/net/ethernet.h:59:2: error: unknown type name 'u_char'; did you
mean 'char'?
59 | u_char ether_dhost[ETHER_ADDR_LEN];
| ^
/usr/include/net/ethernet.h:60:2: error: unknown type name 'u_char'; did you
mean 'char'?
60 | u_char ether_shost[ETHER_ADDR_LEN];
| ^
/usr/include/net/ethernet.h:61:2: error: unknown type name 'u_short'; did you
mean 'short'?
61 | u_short ether_type;
| ^
/usr/include/net/ethernet.h:68:2: error: unknown type name 'u_char'; did you
mean 'char'?
68 | u_char octet[ETHER_ADDR_LEN];
| ^
/usr/include/net/ethernet.h:85:2: error: unknown type name 'uint8_t'
85 | uint8_t evl_dhost[ETHER_ADDR_LEN];
| ^
/usr/include/net/ethernet.h:86:2: error: unknown type name 'uint8_t'
86 | uint8_t evl_shost[ETHER_ADDR_LEN];
| ^
/usr/include/net/ethernet.h:87:2: error: unknown type name 'uint16_t'
87 | uint16_t evl_encap_proto;
| ^
/usr/include/net/ethernet.h:88:2: error: unknown type name 'uint16_t'
88 | uint16_t evl_tag;
| ^
/usr/include/net/ethernet.h:89:2: error: unknown type name 'uint16_t'
89 | uint16_t evl_proto;
| ^
--- util.o ---
9 errors generated.
*** [util.o] Error code 1
make: stopped in /usr/ports/net-mgmt/andwatch/work/andwatch-2.1.0
--- db.o ---
9 errors generated.
--- packet.o ---
20 errors generated.
--- db.o ---
*** [db.o] Error code 1
make: stopped in /usr/ports/net-mgmt/andwatch/work/andwatch-2.1.0
--- packet.o ---
*** [packet.o] Error code 1
make: stopped in /usr/ports/net-mgmt/andwatch/work/andwatch-2.1.0
3 errors
make: stopped in /usr/ports/net-mgmt/andwatch/work/andwatch-2.1.0
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1
Stop.
make: stopped in /usr/ports/net-mgmt/andwatch
--
You are receiving this mail because:
You are the assignee for the bug.