Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drive does not compile under 5.7 / gcc issues as well #5

Open
dm6tt opened this issue Nov 1, 2020 · 0 comments
Open

Drive does not compile under 5.7 / gcc issues as well #5

dm6tt opened this issue Nov 1, 2020 · 0 comments

Comments

@dm6tt
Copy link

dm6tt commented Nov 1, 2020

Hi guys,
I tried to compile the driver on
Linux kali 5.7.0-kali1-amd64 #1 SMP Debian 5.7.6-1kali2 (2020-07-01) x86_64 GNU/Linux

First issue: The gcc throws errors that I was able to fix with two switches in the Makefile.
gcc version 9.3.0 (Debian 9.3.0-15)

EXTRA_CFLAGS += -Wno-date-time        
EXTRA_CFLAGS += -Wno-uninitialized

The main issue are changes in the header files of the kernel that I'm not able to fix.
The changed data types:

/home/kali/rtl8192EU_WiFi_linux/os_dep/linux/rtw_proc.c:72:71: error: passing argument 4 of ‘proc_create_data’ from incompatible pointer type [-Werror=incompatible-pointer-types]
   72 |  entry = proc_create_data(name,  S_IFREG | S_IRUGO | S_IWUGO, parent, fops, data);
      |                                                                       ^~~~
      |                                                                       |
      |                                                                       const struct file_operations *
In file included from /home/kali/rtl8192EU_WiFi_linux/include/../os_dep/linux/rtw_proc.h:18,
                 from /home/kali/rtl8192EU_WiFi_linux/include/osdep_intf.h:128,
                 from /home/kali/rtl8192EU_WiFi_linux/include/drv_types.h:104,
                 from /home/kali/rtl8192EU_WiFi_linux/os_dep/linux/rtw_proc.c:17:
/usr/src/linux-headers-5.7.0-kali1-common/include/linux/proc_fs.h:74:31: note: expected ‘const struct proc_ops *’ but argument is of type ‘const struct file_operations *’
   74 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t,
      |                               ^~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[3]: *** [/usr/src/linux-headers-5.7.0-kali1-common/scripts/Makefile.build:272: /home/kali/rtl8192EU_WiFi_linux/os_dep/linux/rtw_proc.o] Error 1

Any idea / advice what happened here?
Any chance to get the driver comiled on newer kernel versions?

Thanks
Marcus

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant