Public bug reported:
In kernel 6.19 some socket APIs have changed and invoking a kernel bind
requires a cast of the address structure to a (struct sockaddr_unsized*)
instead of a (struct sockaddr*)
Following build error
========================================================================
Building module(s)
# command: make -j16 KERNELRELEASE=6.19.0-9-generic -C
/lib/modules/6.19.0-9-generic/build M=/var/lib/dkms/lime-forensics/1.10.1/build
make: Entering directory '/usr/src/linux-headers-6.19.0-9-generic'
make[1]: Entering directory '/var/lib/dkms/lime-forensics/1.10.1/build'
warning: the compiler differs from the one used to build the kernel
The kernel was built by: x86_64-linux-gnu-gcc (Ubuntu 15.2.0-14ubuntu1) 15.2.0
You are using: gcc (Ubuntu 15.2.0-12ubuntu1) 15.2.0
CC [M] tcp.o
CC [M] disk.o
CC [M] main.o
CC [M] hash.o
CC [M] deflate.o
tcp.c: In function ‘setup_tcp’:
tcp.c:86:29: error: passing argument 2 of ‘kernel_bind’ from incompatible
pointer type [-Wincompatible-pointer-types]
86 | r = kernel_bind(control,(struct sockaddr*) &saddr,sizeof(saddr));
| ^~~~~~~~~~~~~~~~~~~~~~~~~
| |
| struct sockaddr *
In file included from
/usr/src/linux-headers-6.19.0-9-generic/include/net/scm.h:6,
from
/usr/src/linux-headers-6.19.0-9-generic/include/linux/netlink.h:9,
from
/usr/src/linux-headers-6.19.0-9-generic/include/uapi/linux/neighbour.h:6,
from
/usr/src/linux-headers-6.19.0-9-generic/include/linux/netdevice.h:44,
from
/usr/src/linux-headers-6.19.0-9-generic/include/net/sock.h:46,
from tcp.c:32:
/usr/src/linux-headers-6.19.0-9-generic/include/linux/net.h:347:63: note:
expected ‘struct sockaddr_unsized *’ but argument is of type ‘struct sockaddr *’
347 | int kernel_bind(struct socket *sock, struct sockaddr_unsized *addr, int
addrlen);
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
disk.c:45:5: warning: no previous prototype for ‘setup_disk’
[-Wmissing-prototypes]
45 | int setup_disk(char *path, int dio) {
| ^~~~~~~~~~
disk.c:77:6: warning: no previous prototype for ‘cleanup_disk’
[-Wmissing-prototypes]
77 | void cleanup_disk(void) {
| ^~~~~~~~~~~~
make[3]: ***
[/usr/src/linux-headers-6.19.0-9-generic/scripts/Makefile.build:289: tcp.o]
Error 1
make[3]: *** Waiting for unfinished jobs....
deflate.c:38:12: warning: no previous prototype for ‘deflate_begin_stream’
[-Wmissing-prototypes]
38 | extern int deflate_begin_stream(void *out, size_t outlen)
| ^~~~~~~~~~~~~~~~~~~~
deflate.c:65:5: warning: no previous prototype for ‘deflate_end_stream’
[-Wmissing-prototypes]
65 | int deflate_end_stream(void)
| ^~~~~~~~~~~~~~~~~~
deflate.c:72:9: warning: no previous prototype for ‘deflate’
[-Wmissing-prototypes]
72 | ssize_t deflate(const void *in, size_t inlen)
| ^~~~~~~
hash.c:53:5: warning: no previous prototype for ‘ldigest_init’
[-Wmissing-prototypes]
53 | int ldigest_init(void) {
| ^~~~~~~~~~~~
hash.c:97:5: warning: no previous prototype for ‘ldigest_update’
[-Wmissing-prototypes]
97 | int ldigest_update(void *v, size_t is) {
| ^~~~~~~~~~~~~~
hash.c:142:5: warning: no previous prototype for ‘ldigest_final’
[-Wmissing-prototypes]
142 | int ldigest_final(void) {
| ^~~~~~~~~~~~~
hash.c:172:5: warning: no previous prototype for ‘ldigest_write_tcp’
[-Wmissing-prototypes]
172 | int ldigest_write_tcp(void) {
| ^~~~~~~~~~~~~~~~~
hash.c:189:5: warning: no previous prototype for ‘ldigest_write_disk’
[-Wmissing-prototypes]
189 | int ldigest_write_disk(void) {
| ^~~~~~~~~~~~~~~~~~
hash.c:215:6: warning: no previous prototype for ‘ldigest_clean’
[-Wmissing-prototypes]
215 | void ldigest_clean(void) {
| ^~~~~~~~~~~~~
make[2]: *** [/usr/src/linux-headers-6.19.0-9-generic/Makefile:2069: .] Error 2
make[1]: *** [/usr/src/linux-headers-6.19.0-9-generic/Makefile:248: __sub-make]
Error 2
make[1]: Leaving directory '/var/lib/dkms/lime-forensics/1.10.1/build'
make: *** [Makefile:248: __sub-make] Error 2
make: Leaving directory '/usr/src/linux-headers-6.19.0-9-generic'
# exit code: 2
# elapsed time: 00:00:01
----------------------------------------------------------------
========================================================================
** Affects: lime-forensics (Ubuntu)
Importance: Medium
Assignee: Alessio Faina (alessiofaina)
Status: In Progress
** Affects: lime-forensics (Ubuntu Resolute)
Importance: Medium
Assignee: Alessio Faina (alessiofaina)
Status: In Progress
** Changed in: lime-forensics (Ubuntu)
Assignee: (unassigned) => Alessio Faina (alessiofaina)
** Changed in: lime-forensics (Ubuntu)
Importance: Undecided => Medium
** Changed in: lime-forensics (Ubuntu)
Status: New => In Progress
** Also affects: lime-forensics (Ubuntu Resolute)
Importance: Medium
Assignee: Alessio Faina (alessiofaina)
Status: In Progress
** Description changed:
- In kernel 6.19 some socket APIs have changed and during invoking a
- kernel bind requires a cast of the address structure to a (struct
- sockaddr_unsized*) instead of a (struct sockaddr*)
+ In kernel 6.19 some socket APIs have changed and invoking a kernel bind
+ requires a cast of the address structure to a (struct sockaddr_unsized*)
+ instead of a (struct sockaddr*)
Following build error
========================================================================
Building module(s)
# command: make -j16 KERNELRELEASE=6.19.0-9-generic -C
/lib/modules/6.19.0-9-generic/build M=/var/lib/dkms/lime-forensics/1.10.1/build
make: Entering directory '/usr/src/linux-headers-6.19.0-9-generic'
make[1]: Entering directory '/var/lib/dkms/lime-forensics/1.10.1/build'
warning: the compiler differs from the one used to build the kernel
- The kernel was built by: x86_64-linux-gnu-gcc (Ubuntu 15.2.0-14ubuntu1)
15.2.0
- You are using: gcc (Ubuntu 15.2.0-12ubuntu1) 15.2.0
- CC [M] tcp.o
- CC [M] disk.o
- CC [M] main.o
- CC [M] hash.o
- CC [M] deflate.o
+ The kernel was built by: x86_64-linux-gnu-gcc (Ubuntu 15.2.0-14ubuntu1)
15.2.0
+ You are using: gcc (Ubuntu 15.2.0-12ubuntu1) 15.2.0
+ CC [M] tcp.o
+ CC [M] disk.o
+ CC [M] main.o
+ CC [M] hash.o
+ CC [M] deflate.o
tcp.c: In function ‘setup_tcp’:
tcp.c:86:29: error: passing argument 2 of ‘kernel_bind’ from incompatible
pointer type [-Wincompatible-pointer-types]
- 86 | r = kernel_bind(control,(struct sockaddr*) &saddr,sizeof(saddr));
- | ^~~~~~~~~~~~~~~~~~~~~~~~~
- | |
- | struct sockaddr *
+ 86 | r = kernel_bind(control,(struct sockaddr*) &saddr,sizeof(saddr));
+ | ^~~~~~~~~~~~~~~~~~~~~~~~~
+ | |
+ | struct sockaddr *
In file included from
/usr/src/linux-headers-6.19.0-9-generic/include/net/scm.h:6,
- from
/usr/src/linux-headers-6.19.0-9-generic/include/linux/netlink.h:9,
- from
/usr/src/linux-headers-6.19.0-9-generic/include/uapi/linux/neighbour.h:6,
- from
/usr/src/linux-headers-6.19.0-9-generic/include/linux/netdevice.h:44,
- from
/usr/src/linux-headers-6.19.0-9-generic/include/net/sock.h:46,
- from tcp.c:32:
+ from
/usr/src/linux-headers-6.19.0-9-generic/include/linux/netlink.h:9,
+ from
/usr/src/linux-headers-6.19.0-9-generic/include/uapi/linux/neighbour.h:6,
+ from
/usr/src/linux-headers-6.19.0-9-generic/include/linux/netdevice.h:44,
+ from
/usr/src/linux-headers-6.19.0-9-generic/include/net/sock.h:46,
+ from tcp.c:32:
/usr/src/linux-headers-6.19.0-9-generic/include/linux/net.h:347:63: note:
expected ‘struct sockaddr_unsized *’ but argument is of type ‘struct sockaddr *’
- 347 | int kernel_bind(struct socket *sock, struct sockaddr_unsized *addr,
int addrlen);
- | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
+ 347 | int kernel_bind(struct socket *sock, struct sockaddr_unsized *addr,
int addrlen);
+ | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
disk.c:45:5: warning: no previous prototype for ‘setup_disk’
[-Wmissing-prototypes]
- 45 | int setup_disk(char *path, int dio) {
- | ^~~~~~~~~~
+ 45 | int setup_disk(char *path, int dio) {
+ | ^~~~~~~~~~
disk.c:77:6: warning: no previous prototype for ‘cleanup_disk’
[-Wmissing-prototypes]
- 77 | void cleanup_disk(void) {
- | ^~~~~~~~~~~~
+ 77 | void cleanup_disk(void) {
+ | ^~~~~~~~~~~~
make[3]: ***
[/usr/src/linux-headers-6.19.0-9-generic/scripts/Makefile.build:289: tcp.o]
Error 1
make[3]: *** Waiting for unfinished jobs....
deflate.c:38:12: warning: no previous prototype for ‘deflate_begin_stream’
[-Wmissing-prototypes]
- 38 | extern int deflate_begin_stream(void *out, size_t outlen)
- | ^~~~~~~~~~~~~~~~~~~~
+ 38 | extern int deflate_begin_stream(void *out, size_t outlen)
+ | ^~~~~~~~~~~~~~~~~~~~
deflate.c:65:5: warning: no previous prototype for ‘deflate_end_stream’
[-Wmissing-prototypes]
- 65 | int deflate_end_stream(void)
- | ^~~~~~~~~~~~~~~~~~
+ 65 | int deflate_end_stream(void)
+ | ^~~~~~~~~~~~~~~~~~
deflate.c:72:9: warning: no previous prototype for ‘deflate’
[-Wmissing-prototypes]
- 72 | ssize_t deflate(const void *in, size_t inlen)
- | ^~~~~~~
+ 72 | ssize_t deflate(const void *in, size_t inlen)
+ | ^~~~~~~
hash.c:53:5: warning: no previous prototype for ‘ldigest_init’
[-Wmissing-prototypes]
- 53 | int ldigest_init(void) {
- | ^~~~~~~~~~~~
+ 53 | int ldigest_init(void) {
+ | ^~~~~~~~~~~~
hash.c:97:5: warning: no previous prototype for ‘ldigest_update’
[-Wmissing-prototypes]
- 97 | int ldigest_update(void *v, size_t is) {
- | ^~~~~~~~~~~~~~
+ 97 | int ldigest_update(void *v, size_t is) {
+ | ^~~~~~~~~~~~~~
hash.c:142:5: warning: no previous prototype for ‘ldigest_final’
[-Wmissing-prototypes]
- 142 | int ldigest_final(void) {
- | ^~~~~~~~~~~~~
+ 142 | int ldigest_final(void) {
+ | ^~~~~~~~~~~~~
hash.c:172:5: warning: no previous prototype for ‘ldigest_write_tcp’
[-Wmissing-prototypes]
- 172 | int ldigest_write_tcp(void) {
- | ^~~~~~~~~~~~~~~~~
+ 172 | int ldigest_write_tcp(void) {
+ | ^~~~~~~~~~~~~~~~~
hash.c:189:5: warning: no previous prototype for ‘ldigest_write_disk’
[-Wmissing-prototypes]
- 189 | int ldigest_write_disk(void) {
- | ^~~~~~~~~~~~~~~~~~
+ 189 | int ldigest_write_disk(void) {
+ | ^~~~~~~~~~~~~~~~~~
hash.c:215:6: warning: no previous prototype for ‘ldigest_clean’
[-Wmissing-prototypes]
- 215 | void ldigest_clean(void) {
- | ^~~~~~~~~~~~~
+ 215 | void ldigest_clean(void) {
+ | ^~~~~~~~~~~~~
make[2]: *** [/usr/src/linux-headers-6.19.0-9-generic/Makefile:2069: .] Error
2
make[1]: *** [/usr/src/linux-headers-6.19.0-9-generic/Makefile:248:
__sub-make] Error 2
make[1]: Leaving directory '/var/lib/dkms/lime-forensics/1.10.1/build'
make: *** [Makefile:248: __sub-make] Error 2
make: Leaving directory '/usr/src/linux-headers-6.19.0-9-generic'
# exit code: 2
# elapsed time: 00:00:01
----------------------------------------------------------------
========================================================================
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2143984
Title:
lime-forensics DKMS fails to build for kernel 6.19 and 7.0
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lime-forensics/+bug/2143984/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs