Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make error #29

Open
dbrianhendrix opened this issue Oct 2, 2022 · 12 comments
Open

make error #29

dbrianhendrix opened this issue Oct 2, 2022 · 12 comments

Comments

@dbrianhendrix
Copy link

I'm getting the same error as "make error on Rocky Linux #17". I'm not using Rocky but almost the same. I'm using Almalinux.

/home/brian/rtl8723du/os_dep/linux/os_intfs.c:1855:22: error: initialization of ‘u16 (*)(struct net_device *, struct sk_buff *, struct net_device , u16 ()(struct net_device *, struct sk_buff *, struct net_device ))’ {aka ‘short unsigned int ()(struct net_device *, struct sk_buff *, struct net_device , short unsigned int ()(struct net_device *, struct sk_buff *, struct net_device ))’} from incompatible pointer type ‘u16 ()(struct net_device *, struct sk_buff *, void , u16 ()(struct net_device *, struct sk_buff *, struct net_device ))’ {aka ‘short unsigned int ()(struct net_device *, struct sk_buff *, void , short unsigned int ()(struct net_device *, struct sk_buff *, struct net_device *))’} [-Werror=incompatible-pointer-types]
.ndo_select_queue = rtw_select_queue,
^~~~~~~~~~~~~~~~
/home/brian/rtl8723du/os_dep/linux/os_intfs.c:1855:22: note: (near initialization for ‘rtw_netdev_ops.ndo_select_queue’)
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:316: /home/brian/rtl8723du/os_dep/linux/os_intfs.o] Error 1
make[1]: *** [Makefile:1577: module/home/brian/rtl8723du] Error 2
make[1]: Leaving directory '/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64'
make: *** [Makefile:2466: modules] Error 2

You asked for output on the other issue -- here's the output for mine:

[brian@N0DBH rtl8723du]$ find /usr/src/ -name netdevice.h
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/uapi/linux/netdevice.h
[brian@N0DBH rtl8723du]$ grep -a 3 ndo_select_queue /usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h
grep: ndo_select_queue: No such file or directory
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: * Version: @(#)dev.h 1.0.10 08/12/93
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: * Moved to /usr/include/linux for NET3
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h:# define LL_MAX_HEADER 32
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h:#define NETDEV_HW_ADDR_T_SLAVE 3
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: RH_KABI_RESERVE(3)
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: RH_KABI_USE(3, int defer_hard_irqs_count)
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: RH_KABI_RESERVE(3)
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: * Each entry is a 32bit value. Upper part is the high-order bits
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: * For example, if 64 CPUs are possible, rps_cpu_mask = 0x3f,
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: * meaning we use 32-6=26 bits for the hash.
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: u32 mask;
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: u32 ents[0] ____cacheline_aligned_in_smp;
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h:extern u32 rps_cpu_mask;
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: u32 hash)
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: u32 val = hash & ~rps_cpu_mask;
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h:bool rps_may_expire_flow(struct net_device *dev, u16 rxq_index, u32 flow_id,
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: RH_KABI_RESERVE(3)
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h:#define MAX_PHYS_ITEM_ID_LEN 32
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: TC_SETUP_CLSU32,
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: u32 flags;
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: RH_KABI_RESERVE(3)
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: u32 start_offload_tcp_sn);
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: struct sock *sk, u32 seq,
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: RH_KABI_RESERVE(3)
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: * 3. Update dev->stats asynchronously and atomically, and define
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: * u16 rxq_index, u32 flow_id);
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: * int (*ndo_bridge_getlink)(struct sk_buff *skb, u32 pid, u32 seq,
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: * struct net_device *dev, u32 filter_mask,
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: * int queue_index, u32 maxrate);
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: * u32 flags);
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: * int (*ndo_xsk_wakeup)(struct net_device *dev, u32 queue_id, u32 flags);
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: u32 flow_id);
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: u32 pid, u32 seq,
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: u32 filter_mask,
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: u32 maxrate);
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: u32 flags))
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: u32 queue_id, u32 flags))
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: RH_KABI_USE(3, int (*ndo_fdb_get)(struct sk_buff *skb,
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: u16 vid, u32 portid, u32 seq,
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: RH_KABI_RESERVE(13)
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: RH_KABI_RESERVE(23)
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: RH_KABI_RESERVE(30)
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: RH_KABI_RESERVE(31)
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: RH_KABI_RESERVE(32)
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: RH_KABI_RESERVE(33)
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: RH_KABI_RESERVE(34)
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: RH_KABI_RESERVE(35)
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: RH_KABI_RESERVE(36)
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: RH_KABI_RESERVE(37)
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: RH_KABI_RESERVE(38)
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: RH_KABI_RESERVE(39)
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: RH_KABI_RESERVE(43)
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: * @IFF_L3MDEV_MASTER: device is an L3 master device
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: * @IFF_L3MDEV_SLAVE: device is enslaved to an L3 master device
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: * @IFF_L3MDEV_RX_HANDLER: only invoke the rx handler of L3 master device
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: IFF_ISATAP = 1<<3,
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: IFF_TEAM_PORT = 1<<13,
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: IFF_L3MDEV_MASTER = 1<<18,
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: IFF_L3MDEV_SLAVE = 1<<21,
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: IFF_RXFH_CONFIGURED = 1<<23,
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: IFF_L3MDEV_RX_HANDLER = 1<<29,
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: IFF_TX_SKB_NO_LINEAR = 1<<31,
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h:#define IFF_L3MDEV_MASTER IFF_L3MDEV_MASTER
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h:#define IFF_L3MDEV_SLAVE IFF_L3MDEV_SLAVE
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h:#define IFF_L3MDEV_RX_HANDLER IFF_L3MDEV_RX_HANDLER
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: * @operstate: RFC2863 operstate
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h:#ifdef CONFIG_NET_L3_MASTER_DEV
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: const struct l3mdev_ops *l3mdev_ops;
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: * and is not intended for 3rd party consumption
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h:#define GSO_MAX_SIZE 65536
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h:#define GSO_MAX_SEGS 65535
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: RH_KABI_USE(2, 3, struct list_head net_notifier_list)
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: RH_KABI_RESERVE(13)
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: RH_KABI_RESERVE(23)
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: RH_KABI_RESERVE(30)
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h:#define NETDEV_ALIGN 32
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h:int netdev_get_prio_tc_map(const struct net_device *dev, u32 prio)
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: u8 csum_cnt:3;
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: RH_KABI_RESERVE(3)
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: NETDEV_LAG_HASH_L34,
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: NETDEV_LAG_HASH_L23,
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: NETDEV_LAG_HASH_E23,
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: NETDEV_LAG_HASH_E34,
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: u32 mtu;
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: int fd, int expected_fd, u32 flags);
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h:u32 dev_xdp_prog_id(struct net_device dev, enum bpf_xdp_mode mode);
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: const u32 vlan_hdr_len = 4; /
VLAN_HLEN /
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: * Mark device as dormant (as per RFC2863).
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: * Mark device as under test (as per RFC2863).
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h:/
Both ethtool_ops interface and internal driver implementation use u32 */
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h:static_assert(NETIF_MSG_CLASS_COUNT <= 32);
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h:#define __NETIF_MSG_BIT(bit) ((u32)1 << (bit))
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h:static inline u32 netif_msg_init(int debug_value, int default_msg_enable_bits)
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: if (debug_value < 0 || debug_value >= (sizeof(u32) * 8))
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h:int skb_crc32c_csum_help(struct sk_buff *skb);
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h:static inline bool netif_has_l3_rx_handler(const struct net_device *dev)
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: return dev->priv_flags & IFF_L3MDEV_RX_HANDLER;
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h:static inline bool netif_is_l3_master(const struct net_device *dev)
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: return dev->priv_flags & IFF_L3MDEV_MASTER;
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h:static inline bool netif_is_l3_slave(const struct net_device *dev)
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: return dev->priv_flags & IFF_L3MDEV_SLAVE;
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h:__printf(3, 4)
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h:__printf(2, 3)
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h:__printf(2, 3)
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h:__printf(2, 3)
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h:__printf(2, 3)
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h:__printf(2, 3)
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h:__printf(2, 3)
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h:__printf(2, 3)
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: * 0001 802.3
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: * 8035 RARP
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h: * 8137 IPX

@lwfinger
Copy link
Owner

lwfinger commented Oct 3, 2022

As far as I can tell, your distro has backported some changes. As such, I cannot support your installation.

I think commenting out or deleting the line at 1721 should fix it, but if I did that, it would break every user of kernels between 3.14 and 5.1.

@dbrianhendrix
Copy link
Author

Not sure what line you actually mean -- line 1721 of:
/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h
is a commented section:

1718 struct net_device_extended_rh {
1719 };
1720
1721 /**
1722 * struct net_device - The DEVICE structure.
1723 *
1724 * Actually, this whole structure is a big mistake. It mixes I/O
1725 * data with strictly "high-level" data, and it has to know about
1726 * almost every data structure used in the INET module.

@lwfinger
Copy link
Owner

lwfinger commented Oct 3, 2022

The error was in os_dep/linux/os_intfs.c. That is where the offending line is located.

@dbrianhendrix
Copy link
Author

Line 1721 deleted . . . now getting this . . .

/home/brian/rtl8723du/os_dep/linux/os_intfs.c:1854:22: error: initialization of ‘u16 (*)(struct net_device *, struct sk_buff *, struct net_device , u16 ()(struct net_device *, struct sk_buff *, struct net_device ))’ {aka ‘short unsigned int ()(struct net_device *, struct sk_buff *, struct net_device , short unsigned int ()(struct net_device *, struct sk_buff *, struct net_device ))’} from incompatible pointer type ‘u16 ()(struct net_device *, struct sk_buff *, void )’ {aka ‘short unsigned int ()(struct net_device *, struct sk_buff *, void *)’} [-Werror=incompatible-pointer-types]
.ndo_select_queue = rtw_select_queue,
^~~~~~~~~~~~~~~~
/home/brian/rtl8723du/os_dep/linux/os_intfs.c:1854:22: note: (near initialization for ‘rtw_netdev_ops.ndo_select_queue’)
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:316: /home/brian/rtl8723du/os_dep/linux/os_intfs.o] Error 1
make[1]: *** [Makefile:1577: module/home/brian/rtl8723du] Error 2
make[1]: Leaving directory '/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64'
make: *** [Makefile:2466: modules] Error 2

@lwfinger
Copy link
Owner

lwfinger commented Oct 4, 2022

In file /usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64/include/linux/netdevice.h, find the section that looks like

  • u16 (*ndo_select_queue)(struct net_device *dev, struct sk_buff *skb,
  •                     struct net_device *sb_dev);
    

and post your result here. The above is from kernel 6.0.0, and yours will be different._

@dbrianhendrix
Copy link
Author

The section was quite big (I think) so I just uploaded the file. It's attached.
netdevice.h.txt

@lwfinger
Copy link
Owner

lwfinger commented Oct 4, 2022

All I needed was the "ndo_select_queue" section. In any case make the secion of os_dep/linux/os_intfs.c look like this:

static u16 rtw_select_queue(struct net_device *dev, struct sk_buff *skb
, struct net_device *sb_dev
, select_queue_fallback_t fallback)
{

@dbrianhendrix
Copy link
Author

Well, we got quite a bit further down the make list but still ending in an error 2:

/home/brian/rtl8723du/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_cfg80211_ch_switch_notify’:
/home/brian/rtl8723du/os_dep/linux/ioctl_cfg80211.c:458:3: error: too few arguments to function ‘cfg80211_ch_switch_started_notify’
cfg80211_ch_switch_started_notify(adapter->pnetdev, &chdef, 0);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/brian/rtl8723du/include/osdep_service_linux.h:98,
from /home/brian/rtl8723du/include/osdep_service.h:54,
from /home/brian/rtl8723du/include/drv_types.h:27,
from /home/brian/rtl8723du/os_dep/linux/ioctl_cfg80211.c:17:
./include/net/cfg80211.h:7789:6: note: declared here
void cfg80211_ch_switch_started_notify(struct net_device dev,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/brian/rtl8723du/os_dep/linux/ioctl_cfg80211.c: At top level:
/home/brian/rtl8723du/os_dep/linux/ioctl_cfg80211.c:10392:3: error: ‘struct cfg80211_ops’ has no member named ‘mgmt_frame_register’
.mgmt_frame_register = cfg80211_rtw_mgmt_frame_register,
^~~~~~~~~~~~~~~~~~~
/home/brian/rtl8723du/os_dep/linux/ioctl_cfg80211.c:10392:25: error: initialization of ‘int (
)(struct wiphy *, struct wireless_dev , u64)’ {aka ‘int ()(struct wiphy *, struct wireless_dev , long long unsigned int)’} from incompatible pointer type ‘void ()(struct wiphy *, struct wireless_dev , u16, bool)’ {aka ‘void ()(struct wiphy *, struct wireless_dev *, short unsigned int, _Bool)’} [-Werror=incompatible-pointer-types]
.mgmt_frame_register = cfg80211_rtw_mgmt_frame_register,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/brian/rtl8723du/os_dep/linux/ioctl_cfg80211.c:10392:25: note: (near initialization for ‘rtw_cfg80211_ops.mgmt_tx_cancel_wait’)
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:316: /home/brian/rtl8723du/os_dep/linux/ioctl_cfg80211.o] Error 1
make[1]: *** [Makefile:1577: module/home/brian/rtl8723du] Error 2
make[1]: Leaving directory '/usr/src/kernels/4.18.0-372.26.1.el8_6.x86_64'
make: *** [Makefile:2466: modules] Error 2

@lwfinger
Copy link
Owner

lwfinger commented Oct 4, 2022

I am sorry, but I have bad news for you. I have a number of projects going at the moment, and I have given as much time as I can for your problems. You have two options: 1. Figure out how to fix the build problems with kernel 4.18, or 2. switch to another PI distro with a kernel v5.4 or later. The reason that I support 5.4 and newer is that was a period of rapid changes in the kernel networking software, which caused many changes in the drivers. I find that it takes too much time to backport beyond that version.

Sorry again.

@dbrianhendrix
Copy link
Author

Good news!

I installed 5.4.215-1.el8.elrepo.x86_64 to the Almalinix 8.6 successfully and make / make install worked on the first try! Rebooted and I'm now on wireless!

Thanks for your assistance!

@lwfinger
Copy link
Owner

lwfinger commented Oct 4, 2022

I did a push that I did not intend to do.

Do another 'git pull' and it should work.

@dbrianhendrix
Copy link
Author

I don't think I need to do another pull, do I? As I mentioned above, I'm now working with an upgrade to 5.4.215-1.el8.elrepo.x86_64 kernel on Almalinix 8.6. The make and make install worked without error, and reboot showed wireless device and I connected!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants