我是个新手,安装无线网卡BCM43142编译错误,哪高手给指点指点,如何修改错误的地方。
cjr1976 25天前 224

root@localhost wireless]# make

KBUILD_NOPEDANTIC=1 make -C /lib/modules/`uname -r`/build M=`pwd`

make[1]: 进入目录“/usr/src/kernels/4.18.0-305.25.1.el8_4.x86_64”

CFG80211 API is prefered for this kernel version

Using CFG80211 API

  CC [M]  /usr/local/wireless/src/wl/sys/wl_linux.o

/usr/local/wireless/src/wl/sys/wl_linux.c: 在函数‘wl_pci_probe’中:

/usr/local/wireless/src/wl/sys/wl_linux.c:772:2: 警告:this ‘if’ clause does not guard... [-Wmisleading-indentation]

  if ((val & 0x0000ff00) != 0)

  ^~

/usr/local/wireless/src/wl/sys/wl_linux.c:774:3: 附注:...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’

   bar1_size = pci_resource_len(pdev, 2);

   ^~~~~~~~~

/usr/local/wireless/src/wl/sys/wl_linux.c: 在函数‘wl_init_timer’中:

/usr/local/wireless/src/wl/sys/wl_linux.c:2355:2: 错误:implicit declaration of function ‘init_timer’; did you mean ‘init_timers’? [-Werror=implicit-function-declaration]

  init_timer(&t->timer);

  ^~~~~~~~~~

  init_timers

/usr/local/wireless/src/wl/sys/wl_linux.c:2356:10: 错误:‘struct timer_list’没有名为‘data’的成员

  t->timer.data = (ulong) t;

          ^

/usr/local/wireless/src/wl/sys/wl_linux.c:2357:20: 错误:assignment to ‘void (*)(struct timer_list *)’ from incompatible pointer type ‘void (*)(ulong)’ {或称 ‘void (*)(long unsigned int)’} [-Werror=incompatible-pointer-types]

  t->timer.function = wl_timer;

                    ^

/usr/local/wireless/src/wl/sys/wl_linux.c: 在函数‘wl_monitor’中:

/usr/local/wireless/src/wl/sys/wl_linux.c:2918:10: 错误:‘struct net_device’没有名为‘last_rx’的成员

  skb->dev->last_rx = jiffies;

          ^~

cc1:有些警告被当作是错误

make[2]: *** [scripts/Makefile.build:316:/usr/local/wireless/src/wl/sys/wl_linux.o] 错误 1

make[1]: *** [Makefile:1563:_module_/usr/local/wireless] 错误 2

make[1]: 离开目录“/usr/src/kernels/4.18.0-305.25.1.el8_4.x86_64”

make: *** [Makefile:159:all] 错误 2


最新回复 (2)
  • 0 2
    你试试这个包http://de.archive.ubuntu.com/ubuntu/pool/restricted/b/bcmwl/bcmwl-kernel-source_6.30.223.271+bdcom-0ubuntu8_amd64.deb wget到本地 sudo dpkg -i bcmwl-kernel-source_6.30.223.271+bdcom-0ubuntu8_amd64.deb

    如果好用你就不用自己去编译了
    25天前 回复
  • 0 3
    你这个是在centos8上做的make吧
    25天前 收起回复
    cjr1976 : 是的。24天前回复
    cjr1976 : 我试了好多次都是没有成功。24天前回复
返回