-
Notifications
You must be signed in to change notification settings - Fork 139
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
unable to compile cause of error: implicit declaration of function ‘strlcpy’; did you mean ‘strncpy’? #161
Comments
full console message
|
You need to install the
I am not familiar with What kernal version and gcc version is in use? |
cachyos is arch linux based distro after installed bc, the full console message:
|
Okay, you are on the bleeding edge. I need to work on a test system to get it up to kernel 6.11 and gcc 14. I don't think this will take long once I am ready to start but first... I am curious why you are not using the in-kernel rtw88 rtw88_8821cu driver? I've been working on a small team that has been making big improvements to the rtw88 driver since late last year, Did you try the adapter before installing this driver? To try it, simply uninstall this driver, which will blacklist the rtw88_8821cu driver so that the don't conflict. I could use a report so I would appreciate it if you test rtw88_8821cu. |
i use a debian/ubuntu based distros before. it has not driver at that time. so, i found your project. thanks. and i installed cachyos several days ago. it doesn't auto install driver for the rtl 8821cu usb wifi + bluetooth card. (Chipset: Realtek RTL8811AU.) so, i think it may not have driver in the distro until now. i didn't find it in repo. |
Kernel 6.11 has the driver unless it is specifically not being compiled, which I doubt. We would also need to check to make sure the firmware files are in place. The quickest way to see if rtw88_8821au is installed is to first remove the driver in this repo and reboot with the adapter in a port.: $ sudo sh remove-driver.sh $ sudo lsmod | grep rtw88 Post the result. |
i asked the company before. the chipset is Realtek RTL8811AU. this driver (https://github.com/lwfinger/rtw88), i tried again, it's not working for me. it has not 8811au driver in fact, i've tried several times before, i found only yours works.
|
There is the rtw88 driver for rtl8821/11cu chips. I am seeing some inconsistency in the thread here. We need to verify what chip your adapter uses. Run and post the results of: $ lsusb |
|
oh. sorry. i think i made a very big mistake. the wireless card which does not installed driver is my internal bcm43142 . you are right. i am using in-kernel driver right now. sorry. |
That confirms the chip in your adapter as rtl8821cu or rtl8811cu. The rtw88_8821cu driver that was showing with
See if it does what you need it to do. Using the in-kernel drivers is preferable to out-of-kernel drivers. Let me know. FYI: A few minutes ago I compiled the driver in this repo on Ubuntu 24.04 with kernel 6.11 and gcc 14. I was expecting to see what you posted but it was a clean compile. That leaves me stumped. |
yes, it works. i unplug the usb adapter just now. i found my mistake. sorry.
cachyos or arch linux may has something different. i can compile this driver with ubuntu based bodhi linux and it works well. |
after installed bluez and bluez-utils and blueman, then "systemctl start bluetooth", bluetooth is working now. |
Great! I think you learned a few things today and I hope you continue to have success. The in-kernel rtw88 driver for your adapter should be in good shape as long as you are using a 6.11 or later kernel. 6.12 will have additional improvements. As long as rtw88_8821cu works for you, it is the in-kernel maintained driver so you should not use this out-of-kernel driver. Glad to see BT is working as well. I do think cachyos or arch linux has something different that is causing the compile problem but I need to move on to help others and will leave the Arch Linux troubleshooting to others. Cheers |
Thanks for the info but I was aware of this change with strlcpy and have a fix worked up... however, since he was using kernel 6.11 I wanted to see if he would be satisfied with rtww88_8821cu. I guess we will see. I have sort of lost track of when the various patches have gone in but it seems like rtw88_8821cu should be in good enough shape for most use cases. What are your thoughts? It is interesting that strlcpy errored on Arch but not on Ubuntu with the same level of kernel and compiler. |
It should work. Maybe slower than normal. |
6.11.1-2-cachyos
it has some other warnings. only one error.
The text was updated successfully, but these errors were encountered: