chenhaiq / mt7610u_wifi_sta_v3002_dpo_20130916

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

ERROR IN COMPILE SRC #49

Open gianfelicevincenzo opened 5 years ago

gianfelicevincenzo commented 5 years ago
CC [M]  /home/vincenzogianfelice/src/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../sta/auth.o
In file included from /home/vincenzogianfelice/src/mt7610u_wifi_sta_v3002_dpo_20130916/include/rtmp_os.h:44:0,
                 from /home/vincenzogianfelice/src/mt7610u_wifi_sta_v3002_dpo_20130916/include/rtmp_comm.h:75,
                 from /home/vincenzogianfelice/src/mt7610u_wifi_sta_v3002_dpo_20130916/include/rt_config.h:33,
                 from /home/vincenzogianfelice/src/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../os/linux/rt_profile.c:28:
/home/vincenzogianfelice/src/mt7610u_wifi_sta_v3002_dpo_20130916/include/os/rt_linux.h:77:0: warning: "EXT_BUILD_CHANNEL_LIST" redefined
 #define EXT_BUILD_CHANNEL_LIST  /* must define with CRDA */

<command-line>:0:0: note: this is the location of the previous definition
In file included from /home/vincenzogianfelice/src/mt7610u_wifi_sta_v3002_dpo_20130916/include/os/rt_linux.h:98:0,
                 from /home/vincenzogianfelice/src/mt7610u_wifi_sta_v3002_dpo_20130916/include/rtmp_os.h:44,
                 from /home/vincenzogianfelice/src/mt7610u_wifi_sta_v3002_dpo_20130916/include/rtmp_comm.h:75,
                 from /home/vincenzogianfelice/src/mt7610u_wifi_sta_v3002_dpo_20130916/include/rt_config.h:33,
                 from /home/vincenzogianfelice/src/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../os/linux/rt_profile.c:28:
/home/vincenzogianfelice/src/mt7610u_wifi_sta_v3002_dpo_20130916/include/cfg80211.h:35:49: error: ‘IEEE80211_NUM_BANDS’ undeclared here (not in a function)
  struct ieee80211_supported_band Cfg80211_bands[IEEE80211_NUM_BANDS];
                                                 ^~~~~~~~~~~~~~~~~~~
In file included from /home/vincenzogianfelice/src/mt7610u_wifi_sta_v3002_dpo_20130916/include/rtmp_os.h:44:0,
                 from /home/vincenzogianfelice/src/mt7610u_wifi_sta_v3002_dpo_20130916/include/rtmp_comm.h:75,
                 from /home/vincenzogianfelice/src/mt7610u_wifi_sta_v3002_dpo_20130916/include/rt_config.h:33,
                 from /home/vincenzogianfelice/src/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../sta/auth_rsp.c:28:
/home/vincenzogianfelice/src/mt7610u_wifi_sta_v3002_dpo_20130916/include/os/rt_linux.h:77:0: warning: "EXT_BUILD_CHANNEL_LIST" redefined
 #define EXT_BUILD_CHANNEL_LIST  /* must define with CRDA */

<command-line>:0:0: note: this is the location of the previous definition
In file included from /home/vincenzogianfelice/src/mt7610u_wifi_sta_v3002_dpo_20130916/include/os/rt_linux.h:98:0,
                 from /home/vincenzogianfelice/src/mt7610u_wifi_sta_v3002_dpo_20130916/include/rtmp_os.h:44,
                 from /home/vincenzogianfelice/src/mt7610u_wifi_sta_v3002_dpo_20130916/include/rtmp_comm.h:75,
                 from /home/vincenzogianfelice/src/mt7610u_wifi_sta_v3002_dpo_20130916/include/rt_config.h:33,
                 from /home/vincenzogianfelice/src/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../sta/auth_rsp.c:28:
/home/vincenzogianfelice/src/mt7610u_wifi_sta_v3002_dpo_20130916/include/cfg80211.h:35:49: error: ‘IEEE80211_NUM_BANDS’ undeclared here (not in a function)
  struct ieee80211_supported_band Cfg80211_bands[IEEE80211_NUM_BANDS];
                                                 ^~~~~~~~~~~~~~~~~~~
In file included from /home/vincenzogianfelice/src/mt7610u_wifi_sta_v3002_dpo_20130916/include/rtmp_os.h:44:0,
                 from /home/vincenzogianfelice/src/mt7610u_wifi_sta_v3002_dpo_20130916/include/rtmp_comm.h:75,
                 from /home/vincenzogianfelice/src/mt7610u_wifi_sta_v3002_dpo_20130916/include/rt_config.h:33,
                 from /home/vincenzogianfelice/src/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../sta/auth.c:28:
/home/vincenzogianfelice/src/mt7610u_wifi_sta_v3002_dpo_20130916/include/os/rt_linux.h:77:0: warning: "EXT_BUILD_CHANNEL_LIST" redefined
 #define EXT_BUILD_CHANNEL_LIST  /* must define with CRDA */

<command-line>:0:0: note: this is the location of the previous definition
In file included from /home/vincenzogianfelice/src/mt7610u_wifi_sta_v3002_dpo_20130916/include/os/rt_linux.h:98:0,
                 from /home/vincenzogianfelice/src/mt7610u_wifi_sta_v3002_dpo_20130916/include/rtmp_os.h:44,
                 from /home/vincenzogianfelice/src/mt7610u_wifi_sta_v3002_dpo_20130916/include/rtmp_comm.h:75,
                 from /home/vincenzogianfelice/src/mt7610u_wifi_sta_v3002_dpo_20130916/include/rt_config.h:33,
                 from /home/vincenzogianfelice/src/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../sta/auth.c:28:
/home/vincenzogianfelice/src/mt7610u_wifi_sta_v3002_dpo_20130916/include/cfg80211.h:35:49: error: ‘IEEE80211_NUM_BANDS’ undeclared here (not in a function)
  struct ieee80211_supported_band Cfg80211_bands[IEEE80211_NUM_BANDS];
                                                 ^~~~~~~~~~~~~~~~~~~
/home/vincenzogianfelice/src/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../os/linux/rt_profile.c: In function ‘announce_802_3_packet’:
/home/vincenzogianfelice/src/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../os/linux/rt_profile.c:341:16: warning: unused variable ‘pAd’ [-Wunused-variable]
  RTMP_ADAPTER *pAd = (RTMP_ADAPTER *)pAdSrc;
                ^~~
In file included from /home/vincenzogianfelice/src/mt7610u_wifi_sta_v3002_dpo_20130916/include/rtmp_os.h:44:0,
                 from /home/vincenzogianfelice/src/mt7610u_wifi_sta_v3002_dpo_20130916/include/rtmp_comm.h:75,
                 from /home/vincenzogianfelice/src/mt7610u_wifi_sta_v3002_dpo_20130916/include/rt_config.h:33,
                 from /home/vincenzogianfelice/src/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../os/linux/rt_profile.c:28:
/home/vincenzogianfelice/src/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../os/linux/rt_profile.c: In function ‘STA_MonPktSend’:
/home/vincenzogianfelice/src/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../os/linux/rt_profile.c:450:35: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long unsigned int’ [-Wformat=]
         DBGPRINT(RT_DEBUG_ERROR, ("%s : Size is too large! (%d)\n", __FUNCTION__, pRxBlk->DataSize + sizeof(wlan_ng_prism2_header)));
                                   ^
/home/vincenzogianfelice/src/mt7610u_wifi_sta_v3002_dpo_20130916/include/os/rt_linux.h:669:16: note: in definition of macro ‘DBGPRINT_RAW’
         printk Fmt;               \
                ^~~
/home/vincenzogianfelice/src/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../os/linux/rt_profile.c:450:9: note: in expansion of macro ‘DBGPRINT’
         DBGPRINT(RT_DEBUG_ERROR, ("%s : Size is too large! (%d)\n", __FUNCTION__, pRxBlk->DataSize + sizeof(wlan_ng_prism2_header)));
         ^~~~~~~~
/usr/src/linux-headers-4.9.0-9-common/scripts/Makefile.build:309: set di istruzioni per l'obiettivo "/home/vincenzogianfelice/src/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../os/linux/rt_profile.o" non riuscito
make[4]: *** [/home/vincenzogianfelice/src/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../os/linux/rt_profile.o] Errore 1
make[4]: *** Attesa per i processi non terminati....
/usr/src/linux-headers-4.9.0-9-common/scripts/Makefile.build:309: set di istruzioni per l'obiettivo "/home/vincenzogianfelice/src/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../sta/auth_rsp.o" non riuscito
make[4]: *** [/home/vincenzogianfelice/src/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../sta/auth_rsp.o] Errore 1
In file included from /home/vincenzogianfelice/src/mt7610u_wifi_sta_v3002_dpo_20130916/include/rtmp_os.h:44:0,
                 from /home/vincenzogianfelice/src/mt7610u_wifi_sta_v3002_dpo_20130916/include/rtmp_comm.h:75,
                 from /home/vincenzogianfelice/src/mt7610u_wifi_sta_v3002_dpo_20130916/include/rt_config.h:33,
                 from /home/vincenzogianfelice/src/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../sta/assoc.c:28:
/home/vincenzogianfelice/src/mt7610u_wifi_sta_v3002_dpo_20130916/include/os/rt_linux.h:77:0: warning: "EXT_BUILD_CHANNEL_LIST" redefined
 #define EXT_BUILD_CHANNEL_LIST  /* must define with CRDA */

<command-line>:0:0: note: this is the location of the previous definition
In file included from /home/vincenzogianfelice/src/mt7610u_wifi_sta_v3002_dpo_20130916/include/os/rt_linux.h:98:0,
                 from /home/vincenzogianfelice/src/mt7610u_wifi_sta_v3002_dpo_20130916/include/rtmp_os.h:44,
                 from /home/vincenzogianfelice/src/mt7610u_wifi_sta_v3002_dpo_20130916/include/rtmp_comm.h:75,
                 from /home/vincenzogianfelice/src/mt7610u_wifi_sta_v3002_dpo_20130916/include/rt_config.h:33,
                 from /home/vincenzogianfelice/src/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../sta/assoc.c:28:
/home/vincenzogianfelice/src/mt7610u_wifi_sta_v3002_dpo_20130916/include/cfg80211.h:35:49: error: ‘IEEE80211_NUM_BANDS’ undeclared here (not in a function)
  struct ieee80211_supported_band Cfg80211_bands[IEEE80211_NUM_BANDS];
                                                 ^~~~~~~~~~~~~~~~~~~
/usr/src/linux-headers-4.9.0-9-common/scripts/Makefile.build:309: set di istruzioni per l'obiettivo "/home/vincenzogianfelice/src/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../sta/auth.o" non riuscito
make[4]: *** [/home/vincenzogianfelice/src/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../sta/auth.o] Errore 1
/home/vincenzogianfelice/src/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../sta/assoc.c: In function ‘PeerAssocRspAction’:
/home/vincenzogianfelice/src/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../sta/assoc.c:1164:5: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
     PFRAME_802_11 pFrame =  (PFRAME_802_11) (Elem->Msg);
     ^~~~~~~~~~~~~
/home/vincenzogianfelice/src/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../sta/assoc.c: In function ‘AssocPostProc’:
/home/vincenzogianfelice/src/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../sta/assoc.c:1450:4: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
    PUCHAR pVIE;
    ^~~~~~
/usr/src/linux-headers-4.9.0-9-common/scripts/Makefile.build:309: set di istruzioni per l'obiettivo "/home/vincenzogianfelice/src/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../sta/assoc.o" non riuscito
make[4]: *** [/home/vincenzogianfelice/src/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../sta/assoc.o] Errore 1
/usr/src/linux-headers-4.9.0-9-common/Makefile:1544: set di istruzioni per l'obiettivo "_module_/home/vincenzogianfelice/src/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux" non riuscito
make[3]: *** [_module_/home/vincenzogianfelice/src/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux] Errore 2
Makefile:152: set di istruzioni per l'obiettivo "sub-make" non riuscito
make[2]: *** [sub-make] Errore 2
Makefile:8: set di istruzioni per l'obiettivo "all" non riuscito
make[1]: *** [all] Errore 2
make[1]: uscita dalla directory "/usr/src/linux-headers-4.9.0-9-amd64"
Makefile:403: set di istruzioni per l'obiettivo "LINUX" non riuscito
make: *** [LINUX] Errore 2

On Debian9 (x64) gcc version 6.3.0 20170516 KERNEL : 4.9.168-1+deb9u2 (2019-05-13)