FS#78013 - [sysdig-dkms] from linux kernel 6.2.* fails to dkms compile

Attached to Project: Community Packages
Opened by unknowndev (unknowndev) - Monday, 27 March 2023, 10:18 GMT
Last edited by Massimiliano Torromeo (mtorromeo) - Monday, 27 March 2023, 22:02 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Massimiliano Torromeo (mtorromeo)
Architecture x86_64
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Starting with linux zen 6.2.*, sysdig-dkms gives an error when executing dkms install, resulting in sysdig not being available.

Additional info:
* package version(s)

sysdig version: 0.31.4-1
sysdig-dkms version: 0.31.4-1

* config and/or log files etc.
dkms log:

DKMS make.log for scap-4.0.0+driver for kernel 6.2.7-zen1-1-zen (x86_64)
Mon Mar 27 18:14:17 CST 2023
CC [M] /var/lib/dkms/scap/4.0.0+driver/build/main.o
CC [M] /var/lib/dkms/scap/4.0.0+driver/build/flags_table.o
CC [M] /var/lib/dkms/scap/4.0.0+driver/build/fillers_table.o
CC [M] /var/lib/dkms/scap/4.0.0+driver/build/ppm_events.o
/var/lib/dkms/scap/4.0.0+driver/build/main.c: In function 'scap_init':
/var/lib/dkms/scap/4.0.0+driver/build/main.c:2790:30: error: assignment to 'char * (*)(const struct device *, umode_t *)' {aka 'char * (*)(const struct device *, short unsigned int *)'} from incompatible pointer type 'char * (*)(struct device *, umode_t *)' {aka 'char * (*)(struct device *, short unsigned int *)'} [-Werror=incompatible-pointer-types]
2790 | g_ppm_class->devnode = ppm_devnode;
| ^
cc1: some warnings being treated as errors
make[1]: *** [scripts/Makefile.build:252: /var/lib/dkms/scap/4.0.0+driver/build/main.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:2019: /var/lib/dkms/scap/4.0.0+driver/build] Error 2

Steps to reproduce:
pacman -S sysdig{,-dkms}
This task depends upon

Closed by  Massimiliano Torromeo (mtorromeo)
Monday, 27 March 2023, 22:02 GMT
Reason for closing:  Fixed
Additional comments about closing:  sysdig-dkms-0.31.4-2
Comment by Christian Heusel (gromit) - Monday, 27 March 2023, 10:25 GMT Comment by loqs (loqs) - Monday, 27 March 2023, 19:03 GMT
Switching to using the driver supplied by the current falcosecurity libs (0.10.5) which is compatible with linux 6.2 should resolve the issue although it sets the version to scap-0.0.0-local.

Loading...