chenhaiq / mt7610u_wifi_sta_v3002_dpo_20130916

Modified usb wifi driver for TP_link TL-WDN5200
MIT License
132 stars 116 forks source link

Make : error 2 #46

Open jeromecst opened 6 years ago

jeromecst commented 6 years ago

Getting this error after typing "make" My card is TU2H V1 My linux version : Linux version 4.13.0-43-generic (buildd@lcy01-amd64-029) (gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.9)) #48~16.04.1-Ubuntu SMP Thu May 17 12:56:46 UTC 2018 The error itself : make make -C tools make[1]: Entering directory '/home/jojo/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/tools' gcc -g bin2h.c -o bin2h make[1]: Leaving directory '/home/jojo/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/tools' /home/jojo/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/tools/bin2h chipset = mt7650u chipset = mt7630u chipset = mt7610u cp -f os/linux/Makefile.6 /home/jojo/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/Makefile make -C /lib/modules/4.13.0-43-generic/build SUBDIRS=/home/jojo/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux modules make[1]: Entering directory '/usr/src/linux-headers-4.13.0-43-generic' CC [M] /home/jojo/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../os/linux/sta_ioctl.o In file included from ./include/linux/bitmap.h:8:0, from ./include/linux/cpumask.h:11, from ./arch/x86/include/asm/cpumask.h:4, from ./arch/x86/include/asm/msr.h:10, from ./arch/x86/include/asm/processor.h:20, from ./arch/x86/include/asm/cpufeature.h:4, from ./arch/x86/include/asm/thread_info.h:63, from ./include/linux/thread_info.h:37, from ./arch/x86/include/asm/preempt.h:6, from ./include/linux/preempt.h:80, from ./include/linux/spinlock.h:50, from ./include/linux/seqlock.h:35, from ./include/linux/time.h:5, from ./include/linux/stat.h:18, from ./include/linux/module.h:10, from /home/jojo/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/include/os/rt_linux.h:31, from /home/jojo/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/include/rtmp_os.h:44, from /home/jojo/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/include/rtmp_comm.h:75, from /home/jojo/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../os/linux/sta_ioctl.c:30: In function ‘memcpy’, inlined from ‘rt_ioctl_iwaplist’ at /home/jojo/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../os/linux/sta_ioctl.c:696:2: ./include/linux/string.h:305:4: error: call to ‘__read_overflow2’ declared with attribute error: detected read beyond size of object passed as 2nd parameter __read_overflow2(); ^ scripts/Makefile.build:316: recipe for target '/home/jojo/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../os/linux/sta_ioctl.o' failed make[2]: *** [/home/jojo/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../os/linux/sta_ioctl.o] Error 1 Makefile:1550: recipe for target '_module_/home/jojo/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux' failed make[1]: *** [_module_/home/jojo/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-4.13.0-43-generic' Makefile:393: recipe for target 'LINUX' failed make: *** [LINUX] Error 2