郁闷
昨天重做了ML编译好内核后(2.6.6)
编译猫的驱动提示找不到atm.h,
但是atm.h在那个目录里面能找到呀
就是不知道为什么-_-b
[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]# 换成2.6.7内核,试试重装linux-atm 问题依旧 up UP! 编译内核后执行 make mrproper 了 :?: no 执行了也没用 我是执行了 make mrproper 之后,安装vmware 就找不到内核源码了 :neutral: 汗……
12543122我用的不是虚拟机 ~-_-b 可是也要内核源码 :oops: 汗……
内核是我自己编译的,
难到会没有源码吗~? UP◎ UP! UP!
页:
[1]
2