rtl8812AU_8821AU_linux icon indicating copy to clipboard operation
rtl8812AU_8821AU_linux copied to clipboard

error: initialization from incompatible pointer type [-Werror]

Open philm001 opened this issue 8 years ago • 7 comments

I am receiving this compile error in the file ioctl_cfg80211.c on line 5971.

Specifically, .del_station = cfg80211_rtw_del_station

philm001 avatar Feb 22 '17 13:02 philm001

Hi @philm001 , did you solve the problem?

kevin0932 avatar Jun 23 '17 11:06 kevin0932

... kernel version ?

ptpt52 avatar Jun 26 '17 06:06 ptpt52

Hello,

I am also receiving this error but for another pointer:

/home/MYUSERNAME/Downloads/rtl8812AU_8821AU_linux/os_dep/linux/os_intfs.c:809:2: error: initialization from incompatible pointer type [-Werror]
  .ndo_select_queue = rtw_select_queue,
  ^
/home/MYUSERNAME/Downloads/rtl8812AU_8821AU_linux/os_dep/linux/os_intfs.c:809:2: error: (near initialization for ‘rtw_netdev_ops.<anonymous>.ndo_select_queue’) [-Werror]

Compiling on CentOS 7 with kernel version 3.10.0-514.21.1.el7.x86_64.

mariavd avatar Jul 01 '17 11:07 mariavd

I get the same (originally reported) error:

/var/lib/dkms/rtl8812au/4.3.14/build/os_dep/linux/ioctl_cfg80211.c:5971:2: error: initialization from incompatible pointer type [-Werror]
  .del_station = cfg80211_rtw_del_station,
  ^
/var/lib/dkms/rtl8812au/4.3.14/build/os_dep/linux/ioctl_cfg80211.c:5971:2: error: (near initialization for ‘rtw_cfg80211_ops.del_station’) [-Werror]
cc1: all warnings being treated as errors

This is on a Linux Min 17.3 system, which is based on Ubuntu 14.04, with

$ uname -r
3.19.0-32-generic
$ gcc --version
gcc (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4

bhmevik avatar Jul 02 '17 16:07 bhmevik

Following the tip in Issue 176, I commented out the line EXTRA_CFLAGS += -Werror in Makefile and ran sudo make -f Makefile.dkms install again, and then it worked. Plugging in the nic, everything seems to work, and I was able to connect to the wireless network.

bhmevik avatar Jul 02 '17 16:07 bhmevik

Confirmed. we encountered this in another fork (astsam's fork) few weeks back too, sorry for not paying attention here earlier.

kimocoder avatar Jul 02 '17 16:07 kimocoder

bump

pedro2555 avatar Apr 12 '20 12:04 pedro2555