LinuxSir.cn,穿越时空的Linuxsir!

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

M3F-PCI64C-2网卡驱动驱动无法通过编译.

[复制链接]
发表于 2008-3-18 23:00:09 | 显示全部楼层 |阅读模式
Debian unstable/kernel-2.6.24-1-686/gcc-4.2.3
lspci可以看到该网卡。
执行./confgure会输出以下警告(正常部分略过):

  1. ./configure: line 20096: lanai-gcc: command not found
  2. configure: WARNING: linux/compile.h: present but cannot be compiled
  3. configure: WARNING: linux/compile.h:     check for missing prerequisite headers?
  4. configure: WARNING: linux/compile.h: see the Autoconf documentation
  5. configure: WARNING: linux/compile.h:     section "Present But Cannot Be Compiled"
  6. configure: WARNING: linux/compile.h: proceeding with the preprocessor's result
  7. configure: WARNING: linux/compile.h: in the future, the compiler will take precedence
  8. configure: WARNING:     ## ------------------------------------------ ##
  9. configure: WARNING:     ## Report this to the AC_PACKAGE_NAME lists.  ##
  10. configure: WARNING:     ## ------------------------------------------ ##
  11. configure: WARNING: linux/slab.h: present but cannot be compiled
  12. configure: WARNING: linux/slab.h:     check for missing prerequisite headers?
  13. configure: WARNING: linux/slab.h: see the Autoconf documentation
  14. configure: WARNING: linux/slab.h:     section "Present But Cannot Be Compiled"
  15. configure: WARNING: linux/slab.h: proceeding with the preprocessor's result
  16. configure: WARNING: linux/slab.h: in the future, the compiler will take precedence
  17. configure: WARNING:     ## ------------------------------------------ ##
  18. configure: WARNING:     ## Report this to the AC_PACKAGE_NAME lists.  ##
  19. configure: WARNING:     ## ------------------------------------------ ##
复制代码

然后执行make,输出以下错误(正常部分略过):

  1. Makefile:196: Makefile.overrides: No such file or directory
  2. /lib/modules/2.6.24-1-686/build/scripts/Makefile.build:41: /lib/modules/2.6.24-1-686/build/scripts/basic/Makefile: No such file or directory
  3. make[2]: *** No rule to make target `/lib/modules/2.6.24-1-686/build/scripts/basic/Makefile'.  Stop.
  4. make[1]: *** [scripts_basic] Error 2
  5. /lib/modules/2.6.24-1-686/build/scripts/Makefile.build:41: /lib/modules/2.6.24-1-686/build/scripts/basic/Makefile: No such file or directory
  6. make[2]: *** No rule to make target `/lib/modules/2.6.24-1-686/build/scripts/basic/Makefile'.  Stop.
  7. make[1]: *** [scripts_basic] Error 2
  8. Makefile:1975: dependencies: No such file or directory
  9. Makefile:1976: Makefile.generated: No such file or directory
  10. Makefile:1988: Makefile.overrides.targets: No such file or directory
  11. /lib/modules/2.6.24-1-686/build/scripts/Makefile.build:41: /lib/modules/2.6.24-1-686/build/scripts/basic/Makefile: No such file or directory
  12. make[2]: *** No rule to make target `/lib/modules/2.6.24-1-686/build/scripts/basic/Makefile'.  Stop.
  13. make[1]: *** [scripts_basic] Error 2
  14. /lib/modules/2.6.24-1-686/build/scripts/Makefile.build:41: /lib/modules/2.6.24-1-686/build/scripts/basic/Makefile: No such file or directory
  15. make[2]: *** No rule to make target `/lib/modules/2.6.24-1-686/build/scripts/basic/Makefile'.  Stop.
  16. make[1]: *** [scripts_basic] Error 2
  17. mkdir binary
  18. mkdir binary/.gm_uninstalled_apps
  19. mkdir binary/.gm_uninstalled_apps/sbin
  20. /root/gm-2.1.28_Linux/drivers/linux/kbuild/gm_instance_k.c: In function ‘gm_map_board_region’:
  21. /root/gm-2.1.28_Linux/drivers/linux/kbuild/gm_instance_k.c:2836: warning: ‘rl.length’ may be used uninitialized in this function
  22. /root/gm-2.1.28_Linux/drivers/linux/kbuild/gm_instance_k.c:2836: warning: ‘rl.offset’ may be used uninitialized in this function
  23. /root/gm-2.1.28_Linux/drivers/linux/kbuild/gm_arch_k.c: In function ‘gm_linux_create_instance’:
  24. /root/gm-2.1.28_Linux/drivers/linux/kbuild/gm_arch_k.c:2993: error: ‘SA_SHIRQ’ undeclared (first use in this function)
  25. /root/gm-2.1.28_Linux/drivers/linux/kbuild/gm_arch_k.c:2993: error: (Each undeclared identifier is reported only once
  26. /root/gm-2.1.28_Linux/drivers/linux/kbuild/gm_arch_k.c:2993: error: for each function it appears in.)
  27. /root/gm-2.1.28_Linux/drivers/linux/kbuild/gm_arch_k.c: At top level:
  28. /root/gm-2.1.28_Linux/drivers/linux/kbuild/gm_arch_k.c:3300: error: unknown field ‘name’ specified in initializer
  29. /root/gm-2.1.28_Linux/drivers/linux/kbuild/gm_arch_k.c: In function ‘gm_linux_init_module’:
  30. /root/gm-2.1.28_Linux/drivers/linux/kbuild/gm_arch_k.c:3891: error: implicit declaration of function ‘pci_module_init’
  31. /root/gm-2.1.28_Linux/drivers/linux/kbuild/gm_arch_k.c: In function ‘gm_arch_nonmsi_intr_flags’:
  32. /root/gm-2.1.28_Linux/drivers/linux/kbuild/gm_arch_k.c:4778: warning: ‘pci_find_slot’ is deprecated (declared at include/linux/pci.h:493)
  33. make[2]: *** [/root/gm-2.1.28_Linux/drivers/linux/kbuild/gm_arch_k.o] Error 1
  34. make[1]: *** [_module_/root/gm-2.1.28_Linux/drivers/linux/kbuild] Error 2
  35. make: *** [kbuild] Error 2

复制代码


求助于大家,谢谢。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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