最近igb编译驱动发现了这个问题:

zacha@Superman:~/igb/igb-5.7.2/src$ make
#@+ echo "*** The target kernel has CONFIG_MODULE_SIG_ALL enabled, but" ; echo "*** the signing key cannot be found. Module signing has been" ; echo "*** disabled for this build." ; make  ccflags-y="" -C "/lib/modules/4.15.0-142-generic/build" CONFIG_IGB=m CONFIG_MODULE_SIG=n CONFIG_MODULE_SIG_ALL= M="/home/zacha/igb/igb-5.7.2/src"   modules
make -C /home/zacha/yulong810/kernel M=/home/zacha/igb/igb-5.7.2/src CROSS_COMPILE=arm-linux-gnueabihf- ARCH=arm
make[1]: Entering directory '/home/zacha/yulong810/kernel'CC [M]  /home/zacha/igb/igb-5.7.2/src/igb_main.o
/home/zacha/igb/igb-5.7.2/src/igb_main.c: In function ‘igb_get_os_driver_version’:
/home/zacha/igb/igb-5.7.2/src/igb_main.c:10044:7: error: implicit declaration of function ‘isdigit’ [-Werror=implicit-function-declaration]if(!isdigit(*c) && *c != '.')^~~~~~~
cc1: some warnings being treated as errors
scripts/Makefile.build:303: recipe for target '/home/zacha/igb/igb-5.7.2/src/igb_main.o' failed
make[2]: *** [/home/zacha/igb/igb-5.7.2/src/igb_main.o] Error 1
Makefile:1519: recipe for target '_module_/home/zacha/igb/igb-5.7.2/src' failed
make[1]: *** [_module_/home/zacha/igb/igb-5.7.2/src] Error 2
make[1]: Leaving directory '/home/zacha/yulong810/kernel'
Makefile:88: recipe for target 'default' failed
make: *** [default] Error 2

网上也有解决方法:
https://github.com/geerlingguy/raspberry-pi-pcie-devices/issues/3可以参考一下

在igb_main.c 加上 #include <linux/ctype.h>
然后编译通过 ,生成igb.ko

zacha@Superman:~/igb/igb-5.7.2/src$ make
#@+ echo "*** The target kernel has CONFIG_MODULE_SIG_ALL enabled, but" ; echo "*** the signing key cannot be found. Module signing has been" ; echo "*** disabled for this build." ; make  ccflags-y="" -C "/lib/modules/4.15.0-142-generic/build" CONFIG_IGB=m CONFIG_MODULE_SIG=n CONFIG_MODULE_SIG_ALL= M="/home/zacha/igb/igb-5.7.2/src"   modules
make -C /home/zacha/yulong810/kernel M=/home/zacha/igb/igb-5.7.2/src CROSS_COMPILE=arm-linux-gnueabihf- ARCH=arm
make[1]: Entering directory '/home/zacha/yulong810/kernel'CC [M]  /home/zacha/igb/igb-5.7.2/src/igb_main.oCC [M]  /home/zacha/igb/igb-5.7.2/src/e1000_api.oCC [M]  /home/zacha/igb/igb-5.7.2/src/igb_ethtool.oCC [M]  /home/zacha/igb/igb-5.7.2/src/igb_hwmon.oCC [M]  /home/zacha/igb/igb-5.7.2/src/e1000_mbx.oCC [M]  /home/zacha/igb/igb-5.7.2/src/e1000_mac.oCC [M]  /home/zacha/igb/igb-5.7.2/src/e1000_manage.oCC [M]  /home/zacha/igb/igb-5.7.2/src/e1000_nvm.oCC [M]  /home/zacha/igb/igb-5.7.2/src/igb_param.oCC [M]  /home/zacha/igb/igb-5.7.2/src/e1000_phy.oCC [M]  /home/zacha/igb/igb-5.7.2/src/igb_procfs.oCC [M]  /home/zacha/igb/igb-5.7.2/src/igb_vmdq.oCC [M]  /home/zacha/igb/igb-5.7.2/src/e1000_82575.oCC [M]  /home/zacha/igb/igb-5.7.2/src/e1000_i210.oCC [M]  /home/zacha/igb/igb-5.7.2/src/igb_debugfs.oCC [M]  /home/zacha/igb/igb-5.7.2/src/igb_ptp.oCC [M]  /home/zacha/igb/igb-5.7.2/src/kcompat.oLD [M]  /home/zacha/igb/igb-5.7.2/src/igb.oBuilding modules, stage 2.MODPOST 1 modulesCC      /home/zacha/igb/igb-5.7.2/src/igb.mod.oLD [M]  /home/zacha/igb/igb-5.7.2/src/igb.ko
make[1]: Leaving directory '/home/zacha/yulong810/kernel'

【igb驱动交叉编译】igb_main.c:10044:7: error: implicit declaration of function ‘isdigit’相关推荐

  1. 解决gcc报错:error: implicit declaration of function ‘inet_addr’ [-Werror=implicit-function-declaration]

    此文首发于我的个人博客:解决gcc报错 error implicit declaration of function 'inet_addr' [-Werror=implicit-function-de ...

  2. Debian 6.0安装igb驱动

    1,解压驱动        tar  zxvf igb-5.1.2.tar.gz        cd igb-5.1.2/src 2,安装编译环境:        apt-get install bu ...

  3. error: previous declaration of '****' was here

    /home/dic/dic_dao.h:111: error: previous declaration of 'dic_get_organization_dao' was here make: ** ...

  4. Linux Intel网卡IGB驱动修改mac地址

    实然心血来潮,想研究一下Intel网卡mac地址是怎么设置的.本文使用IGB驱动,适合于i211等网卡. MAC地址对于网络来说十分重要,观察过几个网络驱动,发现在Linux内核中,MAC来龙去脉无非 ...

  5. Centos7更新igb驱动后还是加载原来的驱动

    最近在Centos7系统中遇到一个问题,我先将/lib/modules/3.10.0-1062.el7.x86_64/kernel/drivers/net/ethernet/intel/igb/目录下 ...

  6. 解决“error #147 declaration is incompatible with xxx xxx (declared at line xx)”问题

    今天分享一个很奇怪的问题,为什么说奇怪,因为今天分享的这个错误是我在移植代码时候遇到的,在其他人的工程中可以正常运行,而我自己的就运行报错,于是来给大家分享一下,说不定有小伙伴知道呢~ 错误问题 首先 ...

  7. error C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. 的解决方法

    vs2013编译出错信息:错误    1    error C4996: 'fopen': This function or variable may be unsafe. Consider usin ...

  8. Error: could not find function ... in R

    Error: could not find function ... in R 目录 Error: could not find function ... in R 问题: 解决: 完整错误: 问题: ...

  9. 解决VS2013中出现类似于error C4996: 'scanf': This function or variable may be unsafe的安全检查错误

    我用的是visual studio 2019,提示出错.用下面第5种办法,完美解决问题... ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ...

最新文章

  1. [Black Watch 入群题]PWN 栈劫持的利用
  2. html5新知识点,Html5基本知识点
  3. 大白话说Java泛型:入门、使用、原理
  4. 【Python爬虫学习笔记11】Queue线程安全队列和GIL全局解释器锁
  5. 初一模拟赛总结(2019.4.13)
  6. python3.6.2用pyinstaller3.4报错_OceanBase 2.2 版本体验:用 BenchmarkSQL 跑 TPC-C
  7. index 生成创建index的脚本
  8. Spring Boot 学习之Controller
  9. 【刷题】BZOJ 5154 [Tjoi2014]匹配
  10. ASP.NET MVC 4 (二)控制器
  11. Java中JSON的解析方式
  12. unity shader shaderLab 手册
  13. 苹果手机连wifi很慢-解决方案
  14. 开源网络情报系统释放数据黄金价值
  15. angular-----Activated路由
  16. MySQL数据库 各种指令操作大杂烩(DML增删改、DQL查询、SQL...)
  17. QUECTEL上海移远4G通讯CAT4模组EC20CEFAG模块串口调试指南之03EC20模组基础串口指令说明
  18. [python运维] 使用python3制作一个mysql压测小工具!
  19. QT中用到hwnd的句柄
  20. 面经 | 我是如何通过校招拿到京东的Offer的。

热门文章

  1. three.js 纹理贴图
  2. 十一、【TF2】Callback 回调函数
  3. EXCEL对单元格中包含某些字符串,进行if条件判断,模糊查找
  4. Logistic回归分类算法详解
  5. hp服务器装系统用usb启动不了怎么办,惠普电脑u盘装不了GHOST系统怎么办
  6. 瀑布图 matlab 二维,Matlab中二维统计分析图和三维立体图
  7. 高德KDD2020论文解读|混合时空图卷积网络:更精准的时空预测模型
  8. 解决群晖 docker 人人影视 no data 的问题
  9. Adobe Flex是什么玩意儿?
  10. 2019秋内推字节跳动第一题