Ошибки при сборке с использованием "make" - PullRequest
0 голосов
/ 24 сентября 2019

Мне нужно установить некоторые драйверы на мой Linux linux, поэтому я нашел их на официальном сайте, затем я скачал их, открыл каталог и набрал "make"

root@kali:/mnt/hgfs/SharedFolder/mt7610u_wifi_sta_v3002_dpo_20130916# make
make -C tools
make[1]: Entering directory '/mnt/hgfs/SharedFolder/mt7610u_wifi_sta_v3002_dpo_20130916/tools'
gcc -g bin2h.c -o bin2h
make[1]: Leaving directory '/mnt/hgfs/SharedFolder/mt7610u_wifi_sta_v3002_dpo_20130916/tools'
/mnt/hgfs/SharedFolder/mt7610u_wifi_sta_v3002_dpo_20130916/tools/bin2h
chipset = mt7650u
chipset = mt7630u
chipset = mt7610u
cp -f os/linux/Makefile.6 /mnt/hgfs/SharedFolder/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/Makefile
make -C /lib/modules/5.2.0-kali2-amd64/build SUBDIRS=/mnt/hgfs/SharedFolder/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux modules
make[1]: Entering directory '/usr/src/linux-headers-5.2.0-kali2-amd64'
/usr/src/linux-headers-5.2.0-kali2-common/Makefile:213: ================= WARNING ================
/usr/src/linux-headers-5.2.0-kali2-common/Makefile:214: 'SUBDIRS' will be removed after Linux 5.3
/usr/src/linux-headers-5.2.0-kali2-common/Makefile:215: Please use 'M=' or 'KBUILD_EXTMOD' instead
/usr/src/linux-headers-5.2.0-kali2-common/Makefile:216: ==========================================
  CC [M]  /mnt/hgfs/SharedFolder/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../sta/sta_cfg.o
/mnt/hgfs/SharedFolder/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../sta/sta_cfg.c: In function ‘Set_EncrypType_Proc’:
/mnt/hgfs/SharedFolder/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../sta/sta_cfg.c:789:5: warning: this ‘else’ clause does not guard... [-Wmisleading-indentation]
  789 |     else
      |     ^~~~
/mnt/hgfs/SharedFolder/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../sta/sta_cfg.c:792:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘else’
  792 |  if (pAd->StaCfg.BssType == BSS_ADHOC)
      |  ^~
In file included from /mnt/hgfs/SharedFolder/mt7610u_wifi_sta_v3002_dpo_20130916/include/rt_config.h:66,
                 from /mnt/hgfs/SharedFolder/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../sta/sta_cfg.c:28:
/mnt/hgfs/SharedFolder/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../sta/sta_cfg.c: In function ‘RTMPQueryInformation’:
/mnt/hgfs/SharedFolder/mt7610u_wifi_sta_v3002_dpo_20130916/include/chlist.h:98:41: warning: taking address of packed member of ‘struct _NDIS_WLAN_BSSID_EX’ may result in an unaligned pointer value [-Waddress-of-packed-member]
   98 |    RTMP_MapChannelID2KHZ(_ch, (UINT32 *)&(_khz))
      |                                         ^~~~~~~
/mnt/hgfs/SharedFolder/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../sta/sta_cfg.c:3429:17: note: in expansion of macro ‘MAP_CHANNEL_ID_TO_KHZ’
 3429 |                 MAP_CHANNEL_ID_TO_KHZ(pAd->ScanTab.BssEntry[i].Channel, pBss->Configuration.DSConfig);
      |                 ^~~~~~~~~~~~~~~~~~~~~
/mnt/hgfs/SharedFolder/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../sta/sta_cfg.c: In function ‘RTMPIoctlShow’:
/mnt/hgfs/SharedFolder/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../sta/sta_cfg.c:5401:85: error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time]
 5401 |             snprintf(extra, size, "Driver version-%s, %s %s\n", STA_DRIVER_VERSION, __DATE__, __TIME__ );
      |                                                                                     ^~~~~~~~
/mnt/hgfs/SharedFolder/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../sta/sta_cfg.c:5401:95: error: macro "__TIME__" might prevent reproducible builds [-Werror=date-time]
 5401 |             snprintf(extra, size, "Driver version-%s, %s %s\n", STA_DRIVER_VERSION, __DATE__, __TIME__ );
      |                                                                                               ^~~~~~~~
/mnt/hgfs/SharedFolder/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../sta/sta_cfg.c: In function ‘RtmpIoctl_rt_ioctl_siwfreq’:
/mnt/hgfs/SharedFolder/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../sta/sta_cfg.c:5647:5: warning: this ‘else’ clause does not guard... [-Wmisleading-indentation]
 5647 |     else
      |     ^~~~
/mnt/hgfs/SharedFolder/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../sta/sta_cfg.c:5650:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘else’
 5650 |  return NDIS_STATUS_SUCCESS;
      |  ^~~~~~
/mnt/hgfs/SharedFolder/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../sta/sta_cfg.c: In function ‘RtmpIoctl_rt_ioctl_giwrate’:
/mnt/hgfs/SharedFolder/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../sta/sta_cfg.c:7518:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
 7518 |     if (rate_index >= rate_count)
      |     ^~
/mnt/hgfs/SharedFolder/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../sta/sta_cfg.c:7521:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 7521 |  *(ULONG *)pData = ralinkrate[rate_index] * 500000;
      |  ^
cc1: some warnings being treated as errors
make[4]: *** [/usr/src/linux-headers-5.2.0-kali2-common/scripts/Makefile.build:284: /mnt/hgfs/SharedFolder/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../sta/sta_cfg.o] Error 1
make[3]: *** [/usr/src/linux-headers-5.2.0-kali2-common/Makefile:1610: _module_/mnt/hgfs/SharedFolder/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux] Error 2
make[2]: *** [Makefile:179: sub-make] Error 2
make[1]: *** [Makefile:8: all] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.2.0-kali2-amd64'
make: *** [Makefile:394: LINUX] Error 2

Ну, я действительно не знаюне знаю, что делать, у меня новое ядро, новые linux-заголовки и т. д. Пожалуйста, помогите!Это мой первый вопрос, так что не знаю, как правильно задавать вопросы.

...