| [Date Prev] [Date Next] | [Thread Prev] [Thread Next] | [Date Index] [Thread Index] |
compile problem
|
here is what i am getting:
(i am running redhat 5.2 w/ 2.2.7 kernel)
MAKING IN etherload
----------
make[1]: Entering directory `/home/nocol/nocol-4.2.1/etherload'
cc -O -DNOCOL -DLINUX2 -I/home/nocol/nocol-4.2.1/include -c bpf.c
cc -O -DNOCOL -DLINUX2 -I/home/nocol/nocol-4.2.1/include -c etherload.c
cc -O -DNOCOL -DLINUX2 -I/home/nocol/nocol-4.2.1/include -c dlpi.c
cc -O -DNOCOL -DLINUX2 -I/home/nocol/nocol-4.2.1/include -c main.c
cc -O -DNOCOL -DLINUX2 -I/home/nocol/nocol-4.2.1/include -c nit.c
cc -O -DNOCOL -DLINUX2 -I/home/nocol/nocol-4.2.1/include -c pfilt.c
cc -O -DNOCOL -DLINUX2 -I/home/nocol/nocol-4.2.1/include -c snoop.c
cc -O -DNOCOL -DLINUX2 -I/home/nocol/nocol-4.2.1/include -c linux.c
In file included from linux.c:34:
/usr/include/linux/in.h:109: parse error before `sa_family_t'
/usr/include/linux/in.h:109: warning: no semicolon at end of struct or union
/usr/include/linux/in.h:116: parse error before `}'
In file included from /usr/include/linux/netdevice.h:28,
from linux.c:35:
/usr/include/linux/if.h:111: field `ifru_addr' has incomplete type
/usr/include/linux/if.h:112: field `ifru_dstaddr' has incomplete type
/usr/include/linux/if.h:113: field `ifru_broadaddr' has incomplete type
/usr/include/linux/if.h:114: field `ifru_netmask' has incomplete type
/usr/include/linux/if.h:115: field `ifru_hwaddr' has incomplete type
linux.c: In function `setup_device':
linux.c:61: storage size of `sa' isn't known
linux.c:74: `AF_INET' undeclared (first use this function)
linux.c:74: (Each undeclared identifier is reported only once
linux.c:74: for each function it appears in.)
linux.c:74: `SOCK_PACKET' undeclared (first use this function)
linux.c:150: `SOL_SOCKET' undeclared (first use this function)
linux.c:150: `SO_RCVBUF' undeclared (first use this function)
linux.c: In function `getpkt':
linux.c:227: storage size of `from' isn't known
make[1]: *** [linux.o] Error 1
everything else seems to work fine... am i missing a compiler flag?
Russell Briggs
russb@frenzy.com
----- End forwarded message -----
|