View previous topic :: View next topic |
Author |
Message |
squirrelsoup Tux's lil' helper
Joined: 29 Dec 2016 Posts: 98
|
Posted: Fri Mar 24, 2017 6:21 pm Post subject: [SOLVED] rtl8812au Dlink Wifi failed |
|
|
Hello, i am trying to build the rtl8812au driver for Dlink from this guide: https://wiki.gentoo.org/wiki/AC1200_Wireless_Adapters
the driver installed without any problems the first time and was working fine, however after recent kernel upgrade, and building the 8812au.ko module again, the compile fails:
i did not post the entire make output to avoid spamming:
Code: | # make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.10.4-gentoo/build M=/root/rtl8812au-master modules
make[1]: Entering directory '/usr/src/linux-4.10.4-gentoo'
CC [M] /root/rtl8812au-master/core/rtw_cmd.o
CC [M] /root/rtl8812au-master/core/rtw_security.o
CC [M] /root/rtl8812au-master/core/rtw_debug.o
CC [M] /root/rtl8812au-master/core/rtw_io.o
CC [M] /root/rtl8812au-master/core/rtw_ioctl_query.o
CC [M] /root/rtl8812au-master/core/rtw_ioctl_set.o
CC [M] /root/rtl8812au-master/core/rtw_ieee80211.o
CC [M] /root/rtl8812au-master/core/rtw_mlme.o
CC [M] /root/rtl8812au-master/core/rtw_mlme_ext.o
CC [M] /root/rtl8812au-master/core/rtw_wlan_util.o
CC [M] /root/rtl8812au-master/core/rtw_vht.o
CC [M] /root/rtl8812au-master/core/rtw_pwrctrl.o
CC [M] /root/rtl8812au-master/core/rtw_rf.o
CC [M] /root/rtl8812au-master/core/rtw_recv.o
CC [M] /root/rtl8812au-master/core/rtw_sta_mgt.o
CC [M] /root/rtl8812au-master/core/rtw_ap.o
CC [M] /root/rtl8812au-master/core/rtw_xmit.o
CC [M] /root/rtl8812au-master/core/rtw_p2p.o
CC [M] /root/rtl8812au-master/core/rtw_tdls.o
CC [M] /root/rtl8812au-master/core/rtw_br_ext.o
CC [M] /root/rtl8812au-master/core/rtw_iol.o
CC [M] /root/rtl8812au-master/core/rtw_sreset.o
CC [M] /root/rtl8812au-master/core/efuse/rtw_efuse.o
CC [M] /root/rtl8812au-master/os_dep/osdep_service.o
CC [M] /root/rtl8812au-master/os_dep/linux/os_intfs.o
/root/rtl8812au-master/os_dep/linux/os_intfs.c: In function 'create_proc_read_entry':
/root/rtl8812au-master/os_dep/linux/os_intfs.c:327:9: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
read: read_proc
^
/root/rtl8812au-master/os_dep/linux/os_intfs.c:327:9: note: (near initialization for 'fops.read')
/root/rtl8812au-master/os_dep/linux/os_intfs.c: In function 'create_proc_read_write_entry':
/root/rtl8812au-master/os_dep/linux/os_intfs.c:339:9: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
read: read_proc,
^
/root/rtl8812au-master/os_dep/linux/os_intfs.c:339:9: note: (near initialization for 'fops.read')
/root/rtl8812au-master/os_dep/linux/os_intfs.c:340:10: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
write: write_proc
^
/root/rtl8812au-master/os_dep/linux/os_intfs.c:340:10: note: (near initialization for 'fops.write')
/root/rtl8812au-master/os_dep/linux/os_intfs.c: In function 'rtw_proc_init_one':
/root/rtl8812au-master/os_dep/linux/os_intfs.c:389:75: error: passing argument 4 of 'create_proc_read_entry' from incompatible pointer type [-Werror=incompatible-pointer-types]
entry = create_proc_read_entry("ver_info", S_IFREG | S_IRUGO, rtw_proc, proc_get_drv_version, dev);
^
/root/rtl8812au-master/os_dep/linux/os_intfs.c:321:38: note: expected 'ssize_t (**)(struct file *, char *, ssize_t, loff_t *) {aka long int (**)(struct file *, char *, long int, long long int *)}' but argument is of type 'int (*)(char *, char **, off_t, int, int *, void *) {aka int (*)(char *, char **, long int, int, int *, void *)}'
static inline struct proc_dir_entry *create_proc_read_entry(const char *name,
^
/root/rtl8812au-master/os_dep/linux/os_intfs.c:438:17: error: passing argument 4 of 'create_proc_read_write_entry' from incompatible pointer type [-Werror=incompatible-pointer-types]
dir_dev, proc_get_write_reg, dev, proc_set_write_reg);
^
/root/rtl8812au-master/os_dep/linux/os_intfs.c:333:38: note: expected 'ssize_t (**)(struct file *, char *, ssize_t, loff_t *) {aka long int (**)(struct file *, char *, long int, long long int *)}' but argument is of type 'int (*)(char *, char **, off_t, int, int *, void *) {aka int (*)(char *, char **, long int, int, int *, void *)}'
static inline struct proc_dir_entry *create_proc_read_write_entry(const char *name,
^
/root/rtl8812au-master/os_dep/linux/os_intfs.c:438:42: error: passing argument 6 of 'create_proc_read_write_entry' from incompatible pointer type [-Werror=incompatible-pointer-types]
dir_dev, proc_get_write_reg, dev, proc_set_write_reg);
/root/rtl8812au-master/os_dep/linux/os_intfs.c:333:38: note: expected 'ssize_t (**)(struct file *, char *, ssize_t, loff_t *) {aka long int (**)(struct file *, char *, long int, long long int *)}' but argument is of type 'int (*)(char *, char **, off_t, int, int *, void *) {aka int (*)(char *, char **, long int, int, int *, void *)}'
static inline struct proc_dir_entry *create_proc_read_write_entry(const char *name,
^
/root/rtl8812au-master/os_dep/linux/os_intfs.c:671:39: error: passing argument 6 of 'create_proc_read_write_entry' from incompatible pointer type [-Werror=incompatible-pointer-types]
dir_dev, proc_get_sreset, dev, proc_set_sreset);
^
/root/rtl8812au-master/os_dep/linux/os_intfs.c:333:38: note: expected 'ssize_t (**)(struct file *, const char *, ssize_t, loff_t *) {aka long int (**)(struct file *, const char *, long int, long long int *)}' but argument is of type 'int (*)(struct file *, const char *, long unsigned int, void *)'
static inline struct proc_dir_entry *create_proc_read_write_entry(const char *name,
^
/root/rtl8812au-master/os_dep/linux/os_intfs.c: At top level:
/root/rtl8812au-master/os_dep/linux/os_intfs.c:1053:22: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
.ndo_select_queue = rtw_select_queue,
^
/root/rtl8812au-master/os_dep/linux/os_intfs.c:1053:22: note: (near initialization for 'rtw_netdev_ops.ndo_select_queue')
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:295: /root/rtl8812au-master/os_dep/linux/os_intfs.o] Error 1
make[1]: *** [Makefile:1490: _module_/root/rtl8812au-master] Error 2
make[1]: Leaving directory '/usr/src/linux-4.10.4-gentoo'
make: *** [Makefile:1051: modules] Error 2
|
Last edited by squirrelsoup on Fri Mar 24, 2017 8:19 pm; edited 1 time in total |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54236 Location: 56N 3W
|
Posted: Fri Mar 24, 2017 7:02 pm Post subject: |
|
|
squirrelsoup,
What's wrong with the in kernel driver?
Code: | error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types] | Says that you have a warning being treated as an error.
The build has failed for that warning. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
squirrelsoup Tux's lil' helper
Joined: 29 Dec 2016 Posts: 98
|
Posted: Fri Mar 24, 2017 7:26 pm Post subject: |
|
|
yes that seems very strange, because the first time it build successfully, but after kernel upgrade i get this warning ending up in error.
*edit*
on kernel 4.10.4-gentoo, using the:
The rtltek 8812au USB driver (kernel 4.3.14) is available from https://github.com/abperiasamy/rtl8812AU_8821AU_linux. --> fails to build
The Realtek 8812au USB driver (kernel 3.10) is available from https://github.com/gnab/rtl8812au. --> successfully build
wireless works again. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|