[code:1]
[root@Lover bridged]# make
gcc -O2 -Wstrict-prototypes -fomit-frame-pointer -pipe -march=i686 -Wall -DLINUX -I/usr/src/linux-2.6.6/include br2684ctl.c -o br2684ctl -latm
br2684ctl.c:8:17: atm.h: 没有那个文件或目录
In file included from /usr/src/linux-2.6.6/include/linux/atmdev.h:12,
from br2684ctl.c:9:
/usr/src/linux-2.6.6/include/linux/atm.h:211: error: syntax error before "uint32_t"
/usr/src/linux-2.6.6/include/linux/atm.h:211: warning: no semicolon at end of struct or union
/usr/src/linux-2.6.6/include/linux/atm.h:211: warning: no semicolon at end of struct or union
/usr/src/linux-2.6.6/include/linux/atm.h:212: warning: type defaults to `int' in declaration of `sas_addr'
/usr/src/linux-2.6.6/include/linux/atm.h:212: warning: data definition has no type or storage class
/usr/src/linux-2.6.6/include/linux/atm.h:213: error: syntax error before '}' token
/usr/src/linux-2.6.6/include/linux/atm.h:217: error: parameter `addr' has incomplete type
In file included from /usr/src/linux-2.6.6/include/linux/atmbr2684.h:5,
from br2684ctl.c:10:
/usr/src/linux-2.6.6/include/linux/if.h:137: error: field `ifru_addr' has incomplete type
/usr/src/linux-2.6.6/include/linux/if.h:138: error: field `ifru_dstaddr' has incomplete type
/usr/src/linux-2.6.6/include/linux/if.h:139: error: field `ifru_broadaddr' has incomplete type
/usr/src/linux-2.6.6/include/linux/if.h:140: error: field `ifru_netmask' has incomplete type
/usr/src/linux-2.6.6/include/linux/if.h:141: error: field `ifru_hwaddr' has incomplete type
br2684ctl.c: In function `create_br':
br2684ctl.c:59: warning: implicit declaration of function `socket'
br2684ctl.c:59: error: `PF_ATMPVC' undeclared (first use in this function)
br2684ctl.c:59: error: (Each undeclared identifier is reported only once
br2684ctl.c:59: error: for each function it appears in.)
br2684ctl.c:59: error: `SOCK_DGRAM' undeclared (first use in this function)
br2684ctl.c: In function `assign_vcc':
br2684ctl.c:98: warning: implicit declaration of function `text2atm'
br2684ctl.c:98: warning: type-punning to incomplete type might break strict-aliasing rules
br2684ctl.c:98: error: `T2A_PVC' undeclared (first use in this function)
br2684ctl.c:113: error: `PF_ATMPVC' undeclared (first use in this function)
br2684ctl.c:113: error: `SOCK_DGRAM' undeclared (first use in this function)
br2684ctl.c:124: warning: implicit declaration of function `setsockopt'
br2684ctl.c:124: error: `SOL_SOCKET' undeclared (first use in this function)
br2684ctl.c:124: error: `SO_SNDBUF' undeclared (first use in this function)
br2684ctl.c:127: error: `SOL_ATM' undeclared (first use in this function)
br2684ctl.c:130: warning: implicit declaration of function `connect'
br2684ctl.c:130: warning: type-punning to incomplete type might break strict-aliasing rules
make: *** [br2684ctl] 错误 1
[root@Lover bridged]#[/code:1]