-
Notifications
You must be signed in to change notification settings - Fork 46
Open
Description
Hello,
Got a not-so-pretty build fail on freebsd 10.3 w.r.t. header files:
% make
Making all in src
make all-am
gcc -DHAVE_CONFIG_H -I. -g -O2 -MT ipreasm.o -MD -MP -MF .deps/ipreasm.Tpo -c -o ipreasm.o ipreasm.c
In file included from ipreasm.c:17:0:
/usr/include/netinet/ip.h:51:2: error: unknown type name 'u_char'
u_char ip_hl:4, /* header length */
^
/usr/include/netinet/ip.h:55:2: error: unknown type name 'u_char'
u_char ip_v:4, /* version */
^
/usr/include/netinet/ip.h:58:2: error: unknown type name 'u_char'
u_char ip_tos; /* type of service */
^
/usr/include/netinet/ip.h:59:2: error: unknown type name 'u_short'
u_short ip_len; /* total length */
^
/usr/include/netinet/ip.h:60:2: error: unknown type name 'u_short'
u_short ip_id; /* identification */
^
/usr/include/netinet/ip.h:61:2: error: unknown type name 'u_short'
u_short ip_off; /* fragment offset field */
^
/usr/include/netinet/ip.h:66:2: error: unknown type name 'u_char'
u_char ip_ttl; /* time to live */
^
/usr/include/netinet/ip.h:67:2: error: unknown type name 'u_char'
u_char ip_p; /* protocol */
^
/usr/include/netinet/ip.h:68:2: error: unknown type name 'u_short'
u_short ip_sum; /* checksum */
^
/usr/include/netinet/ip.h:69:17: error: field 'ip_src' has incomplete type
struct in_addr ip_src,ip_dst; /* source and dest address */
^
/usr/include/netinet/ip.h:69:24: error: field 'ip_dst' has incomplete type
struct in_addr ip_src,ip_dst; /* source and dest address */
^
/usr/include/netinet/ip.h:55:9: error: duplicate member 'ip_v'
u_char ip_v:4, /* version */
^
/usr/include/netinet/ip.h:56:3: error: duplicate member 'ip_hl'
ip_hl:4; /* header length */
^
/usr/include/netinet/ip.h:166:2: error: unknown type name 'u_char'
u_char ipt_code; /* IPOPT_TS */
^
/usr/include/netinet/ip.h:167:2: error: unknown type name 'u_char'
u_char ipt_len; /* size of structure (variable) */
^
/usr/include/netinet/ip.h:168:2: error: unknown type name 'u_char'
u_char ipt_ptr; /* index of current entry */
^
/usr/include/netinet/ip.h:170:2: error: unknown type name 'u_char'
u_char ipt_flg:4, /* flags, see below */
^
/usr/include/netinet/ip.h:174:2: error: unknown type name 'u_char'
u_char ipt_oflw:4, /* overflow counter */
/usr/include/netinet/ip.h:178:3: error: unknown type name 'uint32_t'
uint32_t ipt_time[1]; /* network format */
^
/usr/include/netinet/ip.h:180:19: error: field 'ipt_addr' has incomplete type
struct in_addr ipt_addr;
^
/usr/include/netinet/ip.h:181:4: error: unknown type name 'uint32_t'
uint32_t ipt_time; /* network format */
^
/usr/include/netinet/ip.h:174:9: error: duplicate member 'ipt_oflw'
u_char ipt_oflw:4, /* overflow counter */
^
/usr/include/netinet/ip.h:175:3: error: duplicate member 'ipt_flg'
ipt_flg:4; /* flags, see below */
^
/usr/include/netinet/ip.h:215:17: error: field 'ippseudo_src' has incomplete type
struct in_addr ippseudo_src; /* source internet address */
^
/usr/include/netinet/ip.h:216:17: error: field 'ippseudo_dst' has incomplete type
struct in_addr ippseudo_dst; /* destination internet address */
^
/usr/include/netinet/ip.h:217:2: error: unknown type name 'u_char'
u_char ippseudo_pad; /* pad, must be zero */
^
/usr/include/netinet/ip.h:218:2: error: unknown type name 'u_char'
u_char ippseudo_p; /* protocol */
^
/usr/include/netinet/ip.h:219:2: error: unknown type name 'u_short'
u_short ippseudo_len; /* protocol length */
^
In file included from ipreasm.c:18:0:
/usr/include/netinet/udp.h:42:2: error: unknown type name 'u_short'
u_short uh_sport; /* source port */
^
/usr/include/netinet/udp.h:43:2: error: unknown type name 'u_short'
u_short uh_dport; /* destination port */
^
/usr/include/netinet/udp.h:44:2: error: unknown type name 'u_short'
u_short uh_ulen; /* udp length */
^
/usr/include/netinet/udp.h:45:2: error: unknown type name 'u_short'
u_short uh_sum; /* udp checksum */
^
*** Error code 1
Metadata
Metadata
Assignees
Labels
No labels