lwfinger / rtl8188eu

Repository for stand-alone RTL8188EU driver.
Other
1.67k stars 592 forks source link

Error compiling branch 4.1.8-9499 #86

Open nikosft opened 9 years ago

nikosft commented 9 years ago

I receive the following error:

/home/fotiou/Programs/rtl8188eu/os_dep/ioctl_cfg80211.c:4839:41: error: dereferencing pointer to incomplete type
  struct ieee80211_channel *chan = params->chan;
                                         ^
/home/fotiou/Programs/rtl8188eu/os_dep/ioctl_cfg80211.c:4840:24: error: dereferencing pointer to incomplete type
  const u8 *buf = params->buf;
                        ^
/home/fotiou/Programs/rtl8188eu/os_dep/ioctl_cfg80211.c:4841:21: error: dereferencing pointer to incomplete type
  size_t len = params->len;
                     ^
/home/fotiou/Programs/rtl8188eu/os_dep/ioctl_cfg80211.c: At top level:
/home/fotiou/Programs/rtl8188eu/os_dep/ioctl_cfg80211.c:5363:2: warning: initialization from incompatible pointer type [enabled by default]
  .mgmt_tx = cfg80211_rtw_mgmt_tx,
  ^
/home/fotiou/Programs/rtl8188eu/os_dep/ioctl_cfg80211.c:5363:2: warning: (near initialization for ‘rtw_cfg80211_ops.mgmt_tx’) [enabled by default]
make[2]: *** [/home/fotiou/Programs/rtl8188eu/os_dep/ioctl_cfg80211.o] Error 1
make[1]: *** [_module_/home/fotiou/Programs/rtl8188eu] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.13.0-43-generic'
make: *** [modules] Error 2

uname -a

Linux netbook-linux 3.13.0-43-generic #72-Ubuntu SMP Mon Dec 8 19:35:44 UTC 2014 i686 i686 i686 GNU/Linux
lwfinger commented 9 years ago

When I compiled against kernel 3.13, I got one harmless warning that I fixed. I did not get any errors.

Ubuntu has been backporting changes in the API so that one cannot determine the necessary calls from the kernel version alone, the way you can from every other distro. I suspect this is what is happening here. The last instance of such improper API changes took me several hours to determine what was wrong. Sorry, but I will not do that again. Complain to Ubuntu.

nikosft commented 9 years ago

is this true for any debian-based distribution or just specific to ubuntu (I am using Mint)? I can live with another distribution.