Greška prilikom make naredbe

Na sveže instaliranom Debianu sam hteo da instaliram drajver za Wi-Fi karticu, ali prilikom komande make mi izbacuje sledeće:

[email protected]:~/Downloads/rtl8187L_linux_1041.0209.2012$ make
make[1]: Entering directory '/usr/src/linux-headers-3.16.0-4-amd64'
Makefile:10: *** mixed implicit and normal rules: deprecated syntax
make[1]: Entering directory `/usr/src/linux-headers-3.16.0-4-amd64'
  CC [M]  /home/nikola/Downloads/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.o
/home/nikola/Downloads/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.c:153:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rtl8187_usb_probe’
 static int __devinit rtl8187_usb_probe(struct usb_interface *intf,
  ^
/home/nikola/Downloads/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.c:155:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rtl8187_usb_disconnect’
 static void __devexit rtl8187_usb_disconnect(struct usb_interface *intf);
  ^
/home/nikola/Downloads/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.c:168:12: error: ‘rtl8187_usb_probe’ undeclared here (not in a function)
  .probe  = rtl8187_usb_probe,   
  ^
/home/nikola/Downloads/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.c:169:16: error: ‘rtl8187_usb_disconnect’ undeclared here (not in a function)
  .disconnect = rtl8187_usb_disconnect,   
  ^
/home/nikola/Downloads/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.c: In function ‘rtl8180_proc_module_init’:
/home/nikola/Downloads/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.c:427:2: error: implicit declaration of function ‘create_proc_entry’ [-Werror=implicit-function-declaration]
  rtl8180_proc=create_proc_entry(RTL8187_MODULE_NAME, S_IFDIR, init_net.proc_net);
  ^
/home/nikola/Downloads/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.c:427:14: warning: assignment makes pointer from integer without a cast
  rtl8180_proc=create_proc_entry(RTL8187_MODULE_NAME, S_IFDIR, init_net.proc_net);
  ^
/home/nikola/Downloads/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.c: In function ‘rtl8180_proc_init_one’:
/home/nikola/Downloads/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.c:461:16: warning: assignment makes pointer from integer without a cast
  priv->dir_dev = create_proc_entry(dev->name,
  ^
/home/nikola/Downloads/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.c:479:2: error: implicit declaration of function ‘create_proc_read_entry’ [-Werror=implicit-function-declaration]
  e = create_proc_read_entry("stats-rx", S_IFREG | S_IRUGO,
  ^
/home/nikola/Downloads/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.c:479:4: warning: assignment makes pointer from integer without a cast
  e = create_proc_read_entry("stats-rx", S_IFREG | S_IRUGO,
  ^
/home/nikola/Downloads/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.c:489:4: warning: assignment makes pointer from integer without a cast
  e = create_proc_read_entry("stats-tx", S_IFREG | S_IRUGO,
  ^
/home/nikola/Downloads/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.c:518:4: warning: assignment makes pointer from integer without a cast
  e = create_proc_read_entry("registers", S_IFREG | S_IRUGO,
  ^
/home/nikola/Downloads/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.c: In function ‘rtl8180_tx’:
/home/nikola/Downloads/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.c:1382:12: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  u8 seg = ((u32)txbuf % 4);
  ^
/home/nikola/Downloads/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.c: In function ‘rtl8187_usb_initendpoints’:
/home/nikola/Downloads/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.c:1588:14: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  seg_size = (u32)ptrcontext->transfer_buffer % 4;
  ^
/home/nikola/Downloads/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.c: At top level:
/home/nikola/Downloads/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.c:3762:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rtl8187_usb_probe’
 static int __devinit rtl8187_usb_probe(struct usb_interface *intf,
  ^
/home/nikola/Downloads/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.c:3862:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rtl8187_usb_disconnect’
 static void __devexit rtl8187_usb_disconnect(struct usb_interface *intf)
  ^
cc1: some warnings being treated as errors
/usr/src/linux-headers-3.16.0-4-common/scripts/Makefile.build:262: recipe for target '/home/nikola/Downloads/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.o' failed
make[4]: *** [/home/nikola/Downloads/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.o] Error 1
/usr/src/linux-headers-3.16.0-4-common/Makefile:1352: recipe for target '_module_/home/nikola/Downloads/rtl8187L_linux_1041.0209.2012/rtl8187' failed
make[3]: *** [_module_/home/nikola/Downloads/rtl8187L_linux_1041.0209.2012/rtl8187] Error 2
Makefile:181: recipe for target 'sub-make' failed
make[2]: *** [sub-make] Error 2
Makefile:8: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-3.16.0-4-amd64'
Makefile:15: recipe for target 'all' failed
make: *** [all] Error 2
[email protected]:~/Downloads/rtl8187L_linux_1041.0209.2012$ sudo make install
[sudo] password for nikola:
kernel/drivers/net/wireless/rtl818x/rtl8187/rtl8187.ko: kernel/drivers/misc/eeprom/eeprom_93cx6.ko kernel/net/mac80211/mac80211.ko kernel/net/wireless/cfg80211.ko kernel/net/rfkill/rfkill.ko kernel/drivers/usb/core/usbcore.ko kernel/drivers/usb/common/usb-common.ko
kernel/drivers/net/wireless/rtl818x/rtl8187/rtl8187.ko: kernel/drivers/misc/eeprom/eeprom_93cx6.ko kernel/net/mac80211/mac80211.ko kernel/net/wireless/cfg80211.ko kernel/net/rfkill/rfkill.ko kernel/drivers/usb/core/usbcore.ko kernel/drivers/usb/common/usb-common.ko
make[1]: Entering directory '/home/nikola/Downloads/rtl8187L_linux_1041.0209.2012/rtl8187'
make -C /lib/modules/3.16.0-4-amd64/build M=/home/nikola/Downloads/rtl8187L_linux_1041.0209.2012/rtl8187 CC=gcc modules
make[2]: Entering directory '/usr/src/linux-headers-3.16.0-4-amd64'
Makefile:10: *** mixed implicit and normal rules: deprecated syntax
make[1]: Entering directory `/usr/src/linux-headers-3.16.0-4-amd64'
  CC [M]  /home/nikola/Downloads/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.o
/home/nikola/Downloads/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.c:153:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rtl8187_usb_probe’
 static int __devinit rtl8187_usb_probe(struct usb_interface *intf,
  ^
/home/nikola/Downloads/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.c:155:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rtl8187_usb_disconnect’
 static void __devexit rtl8187_usb_disconnect(struct usb_interface *intf);
  ^
/home/nikola/Downloads/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.c:168:12: error: ‘rtl8187_usb_probe’ undeclared here (not in a function)
  .probe  = rtl8187_usb_probe,   
  ^
/home/nikola/Downloads/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.c:169:16: error: ‘rtl8187_usb_disconnect’ undeclared here (not in a function)
  .disconnect = rtl8187_usb_disconnect,   
  ^
/home/nikola/Downloads/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.c: In function ‘rtl8180_proc_module_init’:
/home/nikola/Downloads/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.c:427:2: error: implicit declaration of function ‘create_proc_entry’ [-Werror=implicit-function-declaration]
  rtl8180_proc=create_proc_entry(RTL8187_MODULE_NAME, S_IFDIR, init_net.proc_net);
  ^
/home/nikola/Downloads/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.c:427:14: warning: assignment makes pointer from integer without a cast
  rtl8180_proc=create_proc_entry(RTL8187_MODULE_NAME, S_IFDIR, init_net.proc_net);
  ^
/home/nikola/Downloads/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.c: In function ‘rtl8180_proc_init_one’:
/home/nikola/Downloads/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.c:461:16: warning: assignment makes pointer from integer without a cast
  priv->dir_dev = create_proc_entry(dev->name,
  ^
/home/nikola/Downloads/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.c:479:2: error: implicit declaration of function ‘create_proc_read_entry’ [-Werror=implicit-function-declaration]
  e = create_proc_read_entry("stats-rx", S_IFREG | S_IRUGO,
  ^
/home/nikola/Downloads/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.c:479:4: warning: assignment makes pointer from integer without a cast
  e = create_proc_read_entry("stats-rx", S_IFREG | S_IRUGO,
  ^
/home/nikola/Downloads/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.c:489:4: warning: assignment makes pointer from integer without a cast
  e = create_proc_read_entry("stats-tx", S_IFREG | S_IRUGO,
  ^
/home/nikola/Downloads/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.c:518:4: warning: assignment makes pointer from integer without a cast
  e = create_proc_read_entry("registers", S_IFREG | S_IRUGO,
  ^
/home/nikola/Downloads/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.c: In function ‘rtl8180_tx’:
/home/nikola/Downloads/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.c:1382:12: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  u8 seg = ((u32)txbuf % 4);
  ^
/home/nikola/Downloads/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.c: In function ‘rtl8187_usb_initendpoints’:
/home/nikola/Downloads/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.c:1588:14: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  seg_size = (u32)ptrcontext->transfer_buffer % 4;
  ^
/home/nikola/Downloads/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.c: At top level:
/home/nikola/Downloads/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.c:3762:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rtl8187_usb_probe’
 static int __devinit rtl8187_usb_probe(struct usb_interface *intf,
  ^
/home/nikola/Downloads/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.c:3862:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rtl8187_usb_disconnect’
 static void __devexit rtl8187_usb_disconnect(struct usb_interface *intf)
  ^
cc1: some warnings being treated as errors
/usr/src/linux-headers-3.16.0-4-common/scripts/Makefile.build:262: recipe for target '/home/nikola/Downloads/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.o' failed
make[5]: *** [/home/nikola/Downloads/rtl8187L_linux_1041.0209.2012/rtl8187/r8187_core.o] Error 1
/usr/src/linux-headers-3.16.0-4-common/Makefile:1352: recipe for target '_module_/home/nikola/Downloads/rtl8187L_linux_1041.0209.2012/rtl8187' failed
make[4]: *** [_module_/home/nikola/Downloads/rtl8187L_linux_1041.0209.2012/rtl8187] Error 2
Makefile:181: recipe for target 'sub-make' failed
make[3]: *** [sub-make] Error 2
Makefile:8: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/usr/src/linux-headers-3.16.0-4-amd64'
Makefile:56: recipe for target 'modules' failed
make[1]: *** [modules] Error 2
make[1]: Leaving directory '/home/nikola/Downloads/rtl8187L_linux_1041.0209.2012/rtl8187'
Makefile:23: recipe for target 'install' failed
make: *** [install] Error 2

Jel zna neko šta sam sad upropastio? :frowning:

Pogrešan drajver, za matori kernel…piše ti u readme fajlu kad raspakuješ arhivu:

[CODE]Release Date: 2008-12-05, ver 1037
RTL8187L Linux driver version 1037
–This driver supports RealTek RTL8187L Wireless LAN NIC for
2.6 kernel:
Fedora Core 2/3/4/5/6/7, Debian 3.1, Mandrake 10.2/Mandriva 2006,
SUSE 9.3/10.1/10.2, Gentoo 3.1, etc, Ubuntu8.04/8.10.
2.4 kernel:
Redhat 9.2, etc

  • Support Client mode for either infrastructure or adhoc mode
  • Support WEP, WPAPSK and WPA2PSK connection [/CODE]

@Dragan Hvala. Pretpostavljam da onda ne može da se nađe odgovarajući drajver, pošto je ovo sa Realtek-ovog sajta? Ovo mi je za eksternu karticu, laptop ima Broadcom BCM43142, za njega, ako sam dobro pročitao, ne postoji drajver.

Debian – Details of package broadcom-sta-dkms in jessie
Koju verziju Debiana si instalirao?

Džesi. Radi ovo, hvala puno.