rtlwifi-linux / rtlwifi-next

GNU General Public License v2.0
70 stars 39 forks source link

Compile error in Ubuntu 17.10 #6

Open emont01 opened 7 years ago

emont01 commented 7 years ago

This applies to Ubuntu 17.10 machine upgraded from 16.10. When running make, it produces the following error:

make -C /lib/modules/4.13.0-16-generic/build M=/home/eivar/TOOLS/rtlwifi-next modules
make[1]: Entering directory '/usr/src/linux-headers-4.13.0-16-generic'
  CC [M]  /home/eivar/TOOLS/rtlwifi-next/rtl8188ee/trx.o
/home/eivar/TOOLS/rtlwifi-next/rtl8188ee/trx.c: In function ‘rtl88ee_rx_query_desc’:
/home/eivar/TOOLS/rtlwifi-next/rtl8188ee/trx.c:447:22: error: ‘RX_FLAG_40MHZ’ undeclared (first use in this function)
   rx_status->flag |= RX_FLAG_40MHZ;
                      ^~~~~~~~~~~~~
/home/eivar/TOOLS/rtlwifi-next/rtl8188ee/trx.c:447:22: note: each undeclared identifier is reported only once for each function it appears in
/home/eivar/TOOLS/rtlwifi-next/rtl8188ee/trx.c:450:22: error: ‘RX_FLAG_HT’ undeclared (first use in this function); did you mean ‘RX_FLAG_40MHZ’?
   rx_status->flag |= RX_FLAG_HT;
                      ^~~~~~~~~~
                      RX_FLAG_40MHZ
scripts/Makefile.build:302: recipe for target '/home/eivar/TOOLS/rtlwifi-next/rtl8188ee/trx.o' failed
make[3]: *** [/home/eivar/TOOLS/rtlwifi-next/rtl8188ee/trx.o] Error 1
scripts/Makefile.build:575: recipe for target '/home/eivar/TOOLS/rtlwifi-next/rtl8188ee' failed
make[2]: *** [/home/eivar/TOOLS/rtlwifi-next/rtl8188ee] Error 2
Makefile:1546: recipe for target '_module_/home/eivar/TOOLS/rtlwifi-next' failed
make[1]: *** [_module_/home/eivar/TOOLS/rtlwifi-next] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.13.0-16-generic'
Makefile:100: recipe for target 'all' failed
make: *** [all] Error 2

I was able to compile and install without problems before

juampifer commented 7 years ago

Same error Ubuntu 17.10 upgraded from 17.04

mcraveiro commented 7 years ago

Hi,

This issue is related to #3 I believe. I also bumped into this problem. I tried doing a quick hack to get the driver to compile, available as a PR [0]. The code is highly experimental (and most likely incorrect) but feedback is appreciated.

[0] https://github.com/rtlwifi-linux/rtlwifi-next/pull/7