Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 895868 - dev-util/scap-driver-0.29.3: build failure with kernel 6.2
Summary: dev-util/scap-driver-0.29.3: build failure with kernel 6.2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Holger Hoffstätte
URL:
Whiteboard:
Keywords: PullRequest, UPSTREAM
Depends on:
Blocks:
 
Reported: 2023-02-22 12:39 UTC by Holger Hoffstätte
Modified: 2023-02-22 16:58 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 Holger Hoffstätte 2023-02-22 12:39:40 UTC
The scap-driver for sysdig no longer builds on kernel 6.2:

  CC [M]  /tmp/portage/dev-util/scap-driver-0.29.3/work/libs-e5c53d648f3c4694385bbe488e7d47eaa36c229a_build/driver/src/main.o
/tmp/portage/dev-util/scap-driver-0.29.3/work/libs-e5c53d648f3c4694385bbe488e7d47eaa36c229a_build/driver/src/main.c: In function 'scap_init':
/tmp/portage/dev-util/scap-driver-0.29.3/work/libs-e5c53d648f3c4694385bbe488e7d47eaa36c229a_build/driver/src/main.c:2501: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]
 2501 |         g_ppm_class->devnode = ppm_devnode;
      |                              ^
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:252: /tmp/portage/dev-util/scap-driver-0.29.3/work/libs-e5c53d648f3c4694385bbe488e7d47eaa36c229a_build/driver/src/main.o] Error 1
make[1]: *** [Makefile:2021: /tmp/portage/dev-util/scap-driver-0.29.3/work/libs-e5c53d648f3c4694385bbe488e7d47eaa36c229a_build/driver/src] Error 2
make[1]: Leaving directory '/tmp/linux-6.2.0'
Comment 1 Larry the Git Cow gentoo-dev 2023-02-22 16:16:51 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=20da12d7933ae81dd5eba4bb9e0eb7ffa808203b

commit 20da12d7933ae81dd5eba4bb9e0eb7ffa808203b
Author:     Holger Hoffstätte <holger@applied-asynchrony.com>
AuthorDate: 2023-02-22 12:44:17 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-02-22 16:14:47 +0000

    dev-util/scap-driver: fix build wth kernel 6.2
    
    Closes: https://bugs.gentoo.org/895868
    Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com>
    Closes: https://github.com/gentoo/gentoo/pull/29719
    Signed-off-by: Sam James <sam@gentoo.org>

 .../files/0.29.3-fix-kmod-build-on-6.2+.patch      | 44 ++++++++++++++++
 dev-util/scap-driver/scap-driver-0.29.3-r1.ebuild  | 59 ++++++++++++++++++++++
 2 files changed, 103 insertions(+)