Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 900158 - net-wireless/rtl8192eu-0_pre20220825 doesn't compile with kernel 6.1
Summary: net-wireless/rtl8192eu-0_pre20220825 doesn't compile with kernel 6.1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Alexander
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-07 12:42 UTC by Pacho Ramos
Modified: 2023-03-13 13:48 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pacho Ramos gentoo-dev 2023-03-07 12:42:01 UTC
I get:
  CC [M]  /var/tmp/portage/net-wireless/rtl8192eu-0_pre20220825/work/rtl8192eu-linux-driver-e39c4e7a66b05fab6eceb2bb251d399c003fb544/os_dep/linux/mlme_linux.o
  CC [M]  /var/tmp/portage/net-wireless/rtl8192eu-0_pre20220825/work/rtl8192eu-linux-driver-e39c4e7a66b05fab6eceb2bb251d399c003fb544/os_dep/linux/recv_linux.o
/var/tmp/portage/net-wireless/rtl8192eu-0_pre20220825/work/rtl8192eu-linux-driver-e39c4e7a66b05fab6eceb2bb251d399c003fb544/os_dep/osdep_service.c: In function 'rtw_random32':
/var/tmp/portage/net-wireless/rtl8192eu-0_pre20220825/work/rtl8192eu-linux-driver-e39c4e7a66b05fab6eceb2bb251d399c003fb544/os_dep/osdep_service.c:1622:16: error: implicit declaration of function 'prandom_u32'; did you mean 'prandom_u32_max'? [-Werror=implicit-function-declaration]
 1622 |         return prandom_u32();
      |                ^~~~~~~~~~~
      |                prandom_u32_max
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:250: /var/tmp/portage/net-wireless/rtl8192eu-0_pre20220825/work/rtl8192eu-linux-driver-e39c4e7a66b05fab6eceb2bb251d399c003fb544/os_dep/osdep_service.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/var/tmp/portage/net-wireless/rtl8192eu-0_pre20220825/work/rtl8192eu-linux-driver-e39c4e7a66b05fab6eceb2bb251d399c003fb544/os_dep/linux/os_intfs.c: In function 'rtw_os_ndev_register':
/var/tmp/portage/net-wireless/rtl8192eu-0_pre20220825/work/rtl8192eu-linux-driver-e39c4e7a66b05fab6eceb2bb251d399c003fb544/os_dep/linux/os_intfs.c:1676:9: error: too many arguments to function 'netif_napi_add'
 1676 |         netif_napi_add(ndev, &adapter->napi, rtw_recv_napi_poll, RTL_NAPI_WEIGHT);
      |         ^~~~~~~~~~~~~~
In file included from /var/tmp/portage/net-wireless/rtl8192eu-0_pre20220825/work/rtl8192eu-linux-driver-e39c4e7a66b05fab6eceb2bb251d399c003fb544/include/osdep_service_linux.h:30,
                 from /var/tmp/portage/net-wireless/rtl8192eu-0_pre20220825/work/rtl8192eu-linux-driver-e39c4e7a66b05fab6eceb2bb251d399c003fb544/include/osdep_service.h:45,
                 from /var/tmp/portage/net-wireless/rtl8192eu-0_pre20220825/work/rtl8192eu-linux-driver-e39c4e7a66b05fab6eceb2bb251d399c003fb544/include/drv_types.h:27,
                 from /var/tmp/portage/net-wireless/rtl8192eu-0_pre20220825/work/rtl8192eu-linux-driver-e39c4e7a66b05fab6eceb2bb251d399c003fb544/os_dep/linux/os_intfs.c:17:
./include/linux/netdevice.h:2569:1: note: declared here
 2569 | netif_napi_add(struct net_device *dev, struct napi_struct *napi,
      | ^~~~~~~~~~~~~~
make[2]: *** [scripts/Makefile.build:250: /var/tmp/portage/net-wireless/rtl8192eu-0_pre20220825/work/rtl8192eu-linux-driver-e39c4e7a66b05fab6eceb2bb251d399c003fb544/os_dep/linux/os_intfs.o] Error 1
make[1]: *** [Makefile:2005: /var/tmp/portage/net-wireless/rtl8192eu-0_pre20220825/work/rtl8192eu-linux-driver-e39c4e7a66b05fab6eceb2bb251d399c003fb544] Error 2
make[1]: Leaving directory '/usr/src/linux-6.1.15-gentoo'
Comment 1 Pacho Ramos gentoo-dev 2023-03-07 12:46:24 UTC
Bumping the snapshot solves it:
--- rtl8192eu-0_pre20220825.ebuild	2023-01-15 13:46:45.695953817 +0100
+++ rtl8192eu-0_pre20230218.ebuild	2023-03-07 13:43:18.201116948 +0100
@@ -1,10 +1,10 @@
 # Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=7
+EAPI=8
 inherit linux-mod
 
-COMMIT="e39c4e7a66b05fab6eceb2bb251d399c003fb544"
+COMMIT="9557ed2796f864b4d73abad8a4a3b0772254b59f"
 
 DESCRIPTION="Realtek 8192EU driver module for Linux kernel"
 HOMEPAGE="https://github.com/Mange/rtl8192eu-linux-driver"
Comment 2 Alexander 2023-03-13 13:48:38 UTC
Ebuid updated, thank you.