LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 913|回复: 1

spca5xx 在2.6.14-rc2-mm2下编译的问题。。。

[复制链接]
发表于 2005-10-14 15:11:57 | 显示全部楼层 |阅读模式
  1. make
  2.    Building SPCA5XX driver for 2.5/2.6 kernel.
  3.    Remember: you must have read/write access to your kernel source tree.
  4. make -C /lib/modules/`uname -r`/build SUBDIRS=/root/spca5xx-20050701 modules
  5. make[1]: Entering directory `/usr/src/linux-2.6.14-rc2-mm2'
  6.   CC [M]  /root/spca5xx-20050701/drivers/usb/spcadecoder.o
  7. In file included from /root/spca5xx-20050701/drivers/usb/spcadecoder.h:5,
  8.                  from /root/spca5xx-20050701/drivers/usb/spcadecoder.c:35:
  9. /root/spca5xx-20050701/drivers/usb/spca5xx.h:23:5: warning: "LINUX_VERSION_CODE" is not defined
  10. /root/spca5xx-20050701/drivers/usb/spca5xx.h:23:26: warning: "KERNEL_VERSION" is not defined
  11. /root/spca5xx-20050701/drivers/usb/spca5xx.h:23:40: missing binary operator before token "("
  12. /root/spca5xx-20050701/drivers/usb/spca5xx.h:44:5: warning: "LINUX_VERSION_CODE" is not defined
  13. /root/spca5xx-20050701/drivers/usb/spca5xx.h:44:26: warning: "KERNEL_VERSION" is not defined
  14. /root/spca5xx-20050701/drivers/usb/spca5xx.h:44:40: missing binary operator before token "("
  15. /root/spca5xx-20050701/drivers/usb/spca5xx.h:51:27: linux/tqueue.h: No such file or directory
  16. /root/spca5xx-20050701/drivers/usb/spca5xx.h:54:5: warning: "LINUX_VERSION_CODE" is not defined
  17. /root/spca5xx-20050701/drivers/usb/spca5xx.h:54:27: warning: "KERNEL_VERSION" is not defined
  18. /root/spca5xx-20050701/drivers/usb/spca5xx.h:54:41: missing binary operator before token "("
  19. In file included from /root/spca5xx-20050701/drivers/usb/spcadecoder.h:5,
  20.                  from /root/spca5xx-20050701/drivers/usb/spcadecoder.c:35:
  21. /root/spca5xx-20050701/drivers/usb/spca5xx.h:455: error: field `task' has incomplete type
  22. make[2]: *** [/root/spca5xx-20050701/drivers/usb/spcadecoder.o] Error 1
  23. make[1]: *** [_module_/root/spca5xx-20050701] Error 2
  24. make[1]: Leaving directory `/usr/src/linux-2.6.14-rc2-mm2'
  25. make: *** [default] Error 2
复制代码
 楼主| 发表于 2005-10-16 08:12:05 | 显示全部楼层
change add :
#include <linux/version.h>

--
Michel Xhaard
http://mxhaard.free.fr
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表