[root@viasmb r8152-2.09.0]# ll total 228 -rw-rw-r-- 1 1000 1000 2367 Jul 14 2017 50-usb-realtek-net.rules -rw-rw-r-- 1 1000 1000 16024 Aug 21 2017 compatibility.h -rw-rw-r-- 1 1000 1000 902 Jul 14 2017 Makefile -rw-rw-r-- 1 1000 1000 198939 Aug 22 2017 r8152.c -rw-rw-r-- 1 1000 1000 377 Aug 21 2017 ReadMe.txt [root@viasmb r8152-2.09.0]# [root@viasmb r8152-2.09.0]# [root@viasmb r8152-2.09.0]# make make -C /lib/modules/2.6.18-419.el5/build SUBDIRS=/usr/src/r8152-2.09.0 modules make[1]: Entering directory `/usr/src/kernels/2.6.18-419.el5-x86_64' CC [M] /usr/src/r8152-2.09.0/r8152.o In file included from /usr/src/r8152-2.09.0/r8152.c:30: /usr/src/r8152-2.09.0/compatibility.h: In function ¡®tcp_v6_check¡¯: /usr/src/r8152-2.09.0/compatibility.h:57: warning: passing argument 1 of ¡®csum_ipv6_magic¡¯ discards qualifiers from pointer target type /usr/src/r8152-2.09.0/compatibility.h:57: warning: passing argument 2 of ¡®csum_ipv6_magic¡¯ discards qualifiers from pointer target type /usr/src/r8152-2.09.0/compatibility.h: At top level: /usr/src/r8152-2.09.0/compatibility.h:98: error: redefinition of ¡®skb_frag_size¡¯ include/linux/skbuff.h:140: error: previous definition of ¡®skb_frag_size¡¯ was here /usr/src/r8152-2.09.0/compatibility.h:113: error: redefinition of ¡®vlan_get_protocol¡¯ include/linux/if_vlan.h:425: error: previous definition of ¡®vlan_get_protocol¡¯ was here In file included from /usr/src/r8152-2.09.0/r8152.c:30: /usr/src/r8152-2.09.0/compatibility.h:152:1: warning: "netdev_mc_count" redefined In file included from /usr/src/r8152-2.09.0/r8152.c:15: include/linux/netdevice.h:188:1: warning: this is the location of the previous definition In file included from /usr/src/r8152-2.09.0/r8152.c:30: /usr/src/r8152-2.09.0/compatibility.h:153:1: warning: "netdev_mc_empty" redefined In file included from /usr/src/r8152-2.09.0/r8152.c:15: include/linux/netdevice.h:189:1: warning: this is the location of the previous definition In file included from /usr/src/r8152-2.09.0/r8152.c:30: /usr/src/r8152-2.09.0/compatibility.h:155:1: warning: "netif_printk" redefined In file included from /usr/src/r8152-2.09.0/r8152.c:15: include/linux/netdevice.h:1406:1: warning: this is the location of the previous definition In file included from /usr/src/r8152-2.09.0/r8152.c:30: /usr/src/r8152-2.09.0/compatibility.h:161:1: warning: "netif_emerg" redefined In file included from /usr/src/r8152-2.09.0/r8152.c:15: include/linux/netdevice.h:1418:1: warning: this is the location of the previous definition In file included from /usr/src/r8152-2.09.0/r8152.c:30: /usr/src/r8152-2.09.0/compatibility.h:163:1: warning: "netif_alert" redefined In file included from /usr/src/r8152-2.09.0/r8152.c:15: include/linux/netdevice.h:1420:1: warning: this is the location of the previous definition In file included from /usr/src/r8152-2.09.0/r8152.c:30: /usr/src/r8152-2.09.0/compatibility.h:165:1: warning: "netif_crit" redefined In file included from /usr/src/r8152-2.09.0/r8152.c:15: include/linux/netdevice.h:1422:1: warning: this is the location of the previous definition In file included from /usr/src/r8152-2.09.0/r8152.c:30: /usr/src/r8152-2.09.0/compatibility.h:167:1: warning: "netif_err" redefined In file included from /usr/src/r8152-2.09.0/r8152.c:15: include/linux/netdevice.h:1424:1: warning: this is the location of the previous definition In file included from /usr/src/r8152-2.09.0/r8152.c:30: /usr/src/r8152-2.09.0/compatibility.h:169:1: warning: "netif_warn" redefined In file included from /usr/src/r8152-2.09.0/r8152.c:15: include/linux/netdevice.h:1426:1: warning: this is the location of the previous definition In file included from /usr/src/r8152-2.09.0/r8152.c:30: /usr/src/r8152-2.09.0/compatibility.h:171:1: warning: "netif_notice" redefined In file included from /usr/src/r8152-2.09.0/r8152.c:15: include/linux/netdevice.h:1428:1: warning: this is the location of the previous definition In file included from /usr/src/r8152-2.09.0/r8152.c:30: /usr/src/r8152-2.09.0/compatibility.h:173:1: warning: "netif_info" redefined In file included from /usr/src/r8152-2.09.0/r8152.c:15: include/linux/netdevice.h:1430:1: warning: this is the location of the previous definition /usr/src/r8152-2.09.0/compatibility.h:186: error: redefinition of ¡®netdev_alloc_skb_ip_align¡¯ include/linux/skbuff.h:1385: error: previous definition of ¡®netdev_alloc_skb_ip_align¡¯ was here /usr/src/r8152-2.09.0/compatibility.h: In function ¡®usb_autopm_put_interface_async¡¯: /usr/src/r8152-2.09.0/compatibility.h:221: error: ¡®struct usb_device¡¯ has no member named ¡®last_busy¡¯ /usr/src/r8152-2.09.0/compatibility.h:222: error: ¡®struct usb_interface¡¯ has no member named ¡®pm_usage_cnt¡¯ /usr/src/r8152-2.09.0/compatibility.h:223: error: ¡®struct usb_device¡¯ has no member named ¡®autosuspend_disabled¡¯ /usr/src/r8152-2.09.0/compatibility.h:223: error: ¡®struct usb_device¡¯ has no member named ¡®autosuspend_delay¡¯ /usr/src/r8152-2.09.0/compatibility.h: In function ¡®usb_autopm_get_interface_async¡¯: /usr/src/r8152-2.09.0/compatibility.h:235: error: ¡®struct usb_device¡¯ has no member named ¡®autoresume_disabled¡¯ /usr/src/r8152-2.09.0/compatibility.h:238: error: ¡®struct usb_interface¡¯ has no member named ¡®pm_usage_cnt¡¯ /usr/src/r8152-2.09.0/compatibility.h: At top level: /usr/src/r8152-2.09.0/compatibility.h:253: error: redefinition of ¡®__skb_queue_splice¡¯ include/linux/skbuff.h:699: error: previous definition of ¡®__skb_queue_splice¡¯ was here /usr/src/r8152-2.09.0/compatibility.h:266: error: redefinition of ¡®skb_queue_splice¡¯ include/linux/skbuff.h:717: error: previous definition of ¡®skb_queue_splice¡¯ was here /usr/src/r8152-2.09.0/compatibility.h:274: error: redefinition of ¡®__skb_queue_head_init¡¯ include/linux/skbuff.h:660: error: previous definition of ¡®__skb_queue_head_init¡¯ was here /usr/src/r8152-2.09.0/compatibility.h:281: error: redefinition of ¡®skb_queue_splice_init¡¯ include/linux/skbuff.h:733: error: previous definition of ¡®skb_queue_splice_init¡¯ was here /usr/src/r8152-2.09.0/compatibility.h:312: error: redefinition of ¡®struct napi_struct¡¯ In file included from /usr/src/r8152-2.09.0/r8152.c:30: /usr/src/r8152-2.09.0/compatibility.h:333:1: warning: "DMA_BIT_MASK" redefined In file included from include/linux/dmaengine.h:29, from include/linux/skbuff.h:31, from include/linux/if_ether.h:114, from include/linux/netdevice.h:29, from /usr/src/r8152-2.09.0/r8152.c:15: include/linux/dma-mapping.h:16:1: warning: this is the location of the previous definition /usr/src/r8152-2.09.0/compatibility.h:340: error: redefinition of ¡®skb_cow_head¡¯ include/linux/skbuff.h:1437: error: previous definition of ¡®skb_cow_head¡¯ was here /usr/src/r8152-2.09.0/compatibility.h:358: error: redefinition of ¡®skb_copy_from_linear_data¡¯ include/linux/skbuff.h:1645: error: previous definition of ¡®skb_copy_from_linear_data¡¯ was here In file included from /usr/src/r8152-2.09.0/r8152.c:30: /usr/src/r8152-2.09.0/compatibility.h:367:1: warning: "INIT_DELAYED_WORK" redefined In file included from include/linux/aio.h:5, from include/linux/sched.h:276, from include/linux/module.h:9, from /usr/src/r8152-2.09.0/r8152.c:14: include/linux/workqueue.h:65:1: warning: this is the location of the previous definition /usr/src/r8152-2.09.0/compatibility.h:372: error: redefinition of ¡®kmemdup¡¯ include/linux/slab.h:208: error: previous definition of ¡®kmemdup¡¯ was here /usr/src/r8152-2.09.0/r8152.c: In function ¡®rtl8152_set_mac_address¡¯: /usr/src/r8152-2.09.0/r8152.c:1154: error: implicit declaration of function ¡®usb_autopm_get_interface¡¯ /usr/src/r8152-2.09.0/r8152.c:1168: error: implicit declaration of function ¡®usb_autopm_put_interface¡¯ /usr/src/r8152-2.09.0/r8152.c: In function ¡®rtl8152_get_stats¡¯: /usr/src/r8152-2.09.0/r8152.c:1209: error: dereferencing pointer to incomplete type /usr/src/r8152-2.09.0/r8152.c: In function ¡®read_bulk_callback¡¯: /usr/src/r8152-2.09.0/r8152.c:1243: error: implicit declaration of function ¡®usb_mark_last_busy¡¯ /usr/src/r8152-2.09.0/r8152.c: In function ¡®alloc_all_mem¡¯: /usr/src/r8152-2.09.0/r8152.c:1436: error: ¡®struct net_device¡¯ has no member named ¡®dev¡¯ /usr/src/r8152-2.09.0/r8152.c:1436: error: implicit declaration of function ¡®dev_to_node¡¯ /usr/src/r8152-2.09.0/r8152.c:1436: error: ¡®struct net_device¡¯ has no member named ¡®dev¡¯ /usr/src/r8152-2.09.0/r8152.c:1510: warning: passing argument 6 of ¡®usb_fill_int_urb¡¯ from incompatible pointer type /usr/src/r8152-2.09.0/r8152.c: In function ¡®r8152_csum_workaround¡¯: /usr/src/r8152-2.09.0/r8152.c:1569: error: too few arguments to function ¡®skb_checksum_help¡¯ /usr/src/r8152-2.09.0/r8152.c: In function ¡®r8152_tx_agg_fill¡¯: /usr/src/r8152-2.09.0/r8152.c:1805: error: ¡®struct net_device¡¯ has no member named ¡®stats¡¯ /usr/src/r8152-2.09.0/r8152.c: In function ¡®rx_bottom¡¯: /usr/src/r8152-2.09.0/r8152.c:1888: warning: unused variable ¡®napi¡¯ /usr/src/r8152-2.09.0/r8152.c: In function ¡®r8153_init¡¯: /usr/src/r8152-2.09.0/r8152.c:6222: error: implicit declaration of function ¡®usb_enable_lpm¡¯ /usr/src/r8152-2.09.0/r8152.c: In function ¡®rtl8152_probe¡¯: /usr/src/r8152-2.09.0/r8152.c:7783: warning: assignment discards qualifiers from pointer target type /usr/src/r8152-2.09.0/r8152.c:7815: error: ¡®struct usb_interface¡¯ has no member named ¡®needs_remote_wakeup¡¯ /usr/src/r8152-2.09.0/r8152.c: At top level: /usr/src/r8152-2.09.0/r8152.c:7927: error: unknown field ¡®reset_resume¡¯ specified in initializer /usr/src/r8152-2.09.0/r8152.c:7927: warning: initialization from incompatible pointer type /usr/src/r8152-2.09.0/r8152.c:7928: warning: initialization from incompatible pointer type /usr/src/r8152-2.09.0/r8152.c:7929: warning: initialization from incompatible pointer type /usr/src/r8152-2.09.0/r8152.c:7930: error: unknown field ¡®supports_autosuspend¡¯ specified in initializer /usr/src/r8152-2.09.0/r8152.c:7930: warning: initialization makes pointer from integer without a cast make[2]: *** [/usr/src/r8152-2.09.0/r8152.o] Error 1 make[1]: *** [_module_/usr/src/r8152-2.09.0] Error 2 make[1]: Leaving directory `/usr/src/kernels/2.6.18-419.el5-x86_64' make: *** [modules] Error 2 [root@viasmb r8152-2.09.0]# [root@viasmb r8152-2.09.0]# [root@viasmb r8152-2.09.0]# [root@viasmb r8152-2.09.0]# make install make -C /lib/modules/2.6.18-419.el5/build SUBDIRS=/usr/src/r8152-2.09.0 INSTALL_MOD_DIR=kernel/drivers/net/usb modules_install make[1]: Entering directory `/usr/src/kernels/2.6.18-419.el5-x86_64' DEPMOD 2.6.18-419.el5 make[1]: Leaving directory `/usr/src/kernels/2.6.18-419.el5-x86_64' modprobe r8152 FATAL: Module r8152 not found. make: *** [install] Error 1 [root@viasmb r8152-2.09.0]# [root@viasmb r8152-2.09.0]# [root@viasmb r8152-2.09.0]#