vendor-reset icon indicating copy to clipboard operation
vendor-reset copied to clipboard

Build Error: strlcpy removed in kernel 6.8.0-rc1

Open GaM3r2Xtreme opened this issue 1 year ago • 3 comments

Current arch package "linux 6.8.1.arch1-1" seems to break when dkms hook attempts to rebuild vendor-reset from AUR package "vendor-reset-dkms-git r114.4b466e9-1". There weren't any build issues experienced with a previous version of the arch "linux 6.7.9.arch1-1" package.

After digging into make log files and searching the web, it looks like the kernel function 'strlcpy' has been removed and replaced by 'strscpy'. I was able to compile vendor-reset after replacing the function call in atom.c and running "dkms install --no-depmod vendor-reset/r114.4b466e9 -k 6.8.1-arch1-1".

Make log file dump, and a tracing page about the kernel change below: https://pastebin.com/XUCt98Fm https://review.lttng.org/c/lttng-modules/+/11701

GaM3r2Xtreme avatar Mar 25 '24 01:03 GaM3r2Xtreme

I'm on gentoo (6.8.5) and your replacement of an L with an S let me build it too, thank you :)

RayOfLight1 avatar Apr 11 '24 23:04 RayOfLight1

proxmox 6.8.4-3-pve

replace

dkms install .

Sign command: /lib/modules/6.8.4-3-pve/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub
Creating symlink /var/lib/dkms/vendor-reset/0.1.1/source -> /usr/src/vendor-reset-0.1.1

Building module:
Cleaning build area...
make -j16 KERNELRELEASE=6.8.4-3-pve KDIR=/lib/modules/6.8.4-3-pve/build....
Signing module /var/lib/dkms/vendor-reset/0.1.1/build/vendor-reset.ko
Cleaning build area...

vendor-reset.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/6.8.4-3-pve/updates/dkms/
depmod....

Slawka avatar May 16 '24 18:05 Slawka

Thanks for the above, this resolved my issue and can see a PR has been merged to correct it

https://github.com/gnif/vendor-reset/pull/79

ezrahill avatar Aug 12 '24 12:08 ezrahill