Attempting to do a make on FreeBSD 4.10 and get the following errors
from cfgfile.c:14:
/usr/include/netinet/in.h:235: syntax error before `in_addr_t'
/usr/include/netinet/in.h:287: syntax error before `u_char'
In file included from /usr/include/netinet/in.h:487,
from options.h:10,
from cfgfile.c:14:
/usr/include/netinet6/in6.h:122: syntax error before `u_int8_t'
/usr/include/netinet6/in6.h:144: syntax error before `u_int8_t'
/usr/include/netinet6/in6.h:149: syntax error before `u_int32_t'
/usr/include/netinet6/in6.h:612: syntax error before `*'
/usr/include/netinet6/in6.h:614: syntax error before `*'
/usr/include/netinet6/in6.h:614: warning: data definition has no type or storage class
/usr/include/netinet6/in6.h:615: syntax error before `u_int8_t'
/usr/include/netinet6/in6.h:616: syntax error before `u_int8_t'
/usr/include/netinet6/in6.h:631: syntax error before `u_int8_t'
/usr/include/netinet6/in6.h:636: syntax error before `u_int8_t'
/usr/include/netinet6/in6.h:638: syntax error before `u_int8_t'
*** Error code 1
Stop in /tmp/iftop-0.16.
*** Error code 1
Stop in /tmp/iftop-0.16.
*** Error code 1
Stop in /tmp/iftop-0.16.
dummynet# uname -a
FreeBSD dummynet.ctqa.net 4.10-RELEASE FreeBSD 4.10-RELEASE #0: Tue May 25 22:47:12 GMT 200
4 root@perseus.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
dummynet#
Can anyone help?
TIA
Mike Mallory
On Mon, Aug 09, 2004 at 01:40:20PM -0400, Mike.Mallory@CipherTrust.com wrote:
Attempting to do a make on FreeBSD 4.10 and get the following errors
from cfgfile.c:14:
/usr/include/netinet/in.h:235: syntax error before `in_addr_t'
/usr/include/netinet/in.h:287: syntax error before `u_char'
In file included from /usr/include/netinet/in.h:487,
Try this patch:
*** options.h.old 2004-08-09 20:40:22.000000000 +0100 --- options.h 2004-08-09 20:40:41.000000000 +0100 *************** *** 6,11 **** --- 6,12 ---- #ifndef __OPTIONS_H_ /* include guard */ #define __OPTIONS_H_
+ #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h>
Paul