You are not logged in.

#1 2024-03-17 11:00:51

archqt
Member
Registered: 2015-04-29
Posts: 200

Error on 2 modules after update (v4l2loopback and akvcam) [SOLVED]

Hi,
i did an update this morning and i have 2 errors of compilation on modules

pikaur -S linux-headers
(3/3) Install DKMS modules
==> dkms install --no-depmod akvcam/1.2.5 -k 6.8.1-arch1-1
Error! Bad return status for module build on kernel: 6.8.1-arch1-1 (x86_64)
Consult /var/lib/dkms/akvcam/1.2.5/build/make.log for more information.
==> WARNING: `dkms install --no-depmod akvcam/1.2.5 -k 6.8.1-arch1-1' exited 10
==> dkms install --no-depmod v4l2loopback/0.12.7 -k 6.8.1-arch1-1
Error! Bad return status for module build on kernel: 6.8.1-arch1-1 (x86_64)
Consult /var/lib/dkms/v4l2loopback/0.12.7/build/make.log for more information.
==> WARNING: `dkms install --no-depmod v4l2loopback/0.12.7 -k 6.8.1-arch1-1' exited 10

Here is the compilation errors, weird as it says a member is missing in the structure

DKMS make.log for akvcam-1.2.5 for kernel 6.8.1-arch1-1 (x86_64)
dim. 17 mars 2024 11:55:45 CET
make -C /usr/lib/modules/6.8.1-arch1-1/build M=/var/lib/dkms/akvcam/1.2.5/build  modules
make[1] : on entre dans le répertoire « /usr/lib/modules/6.8.1-arch1-1/build »
  CC [M]  /var/lib/dkms/akvcam/1.2.5/build/module.o
  CC [M]  /var/lib/dkms/akvcam/1.2.5/build/attributes.o
  CC [M]  /var/lib/dkms/akvcam/1.2.5/build/buffers.o
  CC [M]  /var/lib/dkms/akvcam/1.2.5/build/controls.o
  CC [M]  /var/lib/dkms/akvcam/1.2.5/build/device.o
  CC [M]  /var/lib/dkms/akvcam/1.2.5/build/driver.o
  CC [M]  /var/lib/dkms/akvcam/1.2.5/build/file_read.o
  CC [M]  /var/lib/dkms/akvcam/1.2.5/build/format.o
  CC [M]  /var/lib/dkms/akvcam/1.2.5/build/frame.o
  CC [M]  /var/lib/dkms/akvcam/1.2.5/build/frame_filter.o
  CC [M]  /var/lib/dkms/akvcam/1.2.5/build/ioctl.o
  CC [M]  /var/lib/dkms/akvcam/1.2.5/build/list.o
  CC [M]  /var/lib/dkms/akvcam/1.2.5/build/log.o
  CC [M]  /var/lib/dkms/akvcam/1.2.5/build/map.o
  CC [M]  /var/lib/dkms/akvcam/1.2.5/build/rbuffer.o
/var/lib/dkms/akvcam/1.2.5/build/buffers.c: Dans la fonction « akvcam_buffers_new »:
/var/lib/dkms/akvcam/1.2.5/build/buffers.c:92:16: erreur: « struct vb2_queue » n'a pas de membre nommé « min_buffers_needed »
   92 |     self->queue.min_buffers_needed = AKVCAM_BUFFERS_MIN;
      |                ^
/var/lib/dkms/akvcam/1.2.5/build/buffers.c: Dans la fonction « akvcam_buffers_count »:
/var/lib/dkms/akvcam/1.2.5/build/buffers.c:130:23: erreur: « const struct vb2_queue » n'a pas de membre nommé « min_buffers_needed »
  130 |     return self->queue.min_buffers_needed;
      |                       ^
/var/lib/dkms/akvcam/1.2.5/build/buffers.c: Dans la fonction « akvcam_buffers_set_count »:
/var/lib/dkms/akvcam/1.2.5/build/buffers.c:135:16: erreur: « struct vb2_queue » n'a pas de membre nommé « min_buffers_needed »
  135 |     self->queue.min_buffers_needed = nbuffers;
      |                ^
/var/lib/dkms/akvcam/1.2.5/build/buffers.c: Dans la fonction « akvcam_buffers_count »:
/var/lib/dkms/akvcam/1.2.5/build/buffers.c:131:1: erreur: le contrôle a atteint la fin d'une fonction non « void » [-Werror=return-type]
  131 | }
      | ^
cc1 : certains avertissements sont traités comme des erreurs
make[3]: *** [scripts/Makefile.build:243: /var/lib/dkms/akvcam/1.2.5/build/buffers.o] Error 1
make[3]: *** Attente des tâches non terminées....
make[2]: *** [/usr/lib/modules/6.8.1-arch1-1/build/Makefile:1921: /var/lib/dkms/akvcam/1.2.5/build] Error 2
make[1]: *** [Makefile:240: __sub-make] Error 2
make[1] : on quitte le répertoire « /usr/lib/modules/6.8.1-arch1-1/build »
make: *** [Makefile:44: all] Error 2

The second compilation errors, and weird again as strlcpy is installed on my system

DKMS make.log for v4l2loopback-0.12.7 for kernel 6.8.1-arch1-1 (x86_64)
dim. 17 mars 2024 11:55:47 CET
Building v4l2-loopback driver...
make -C /usr/lib/modules/6.8.1-arch1-1/build M=/var/lib/dkms/v4l2loopback/0.12.7/build modules
make[1] : on entre dans le répertoire « /usr/lib/modules/6.8.1-arch1-1/build »
  CC [M]  /var/lib/dkms/v4l2loopback/0.12.7/build/v4l2loopback.o
/var/lib/dkms/v4l2loopback/0.12.7/build/v4l2loopback.c: Dans la fonction « vidioc_querycap »:
/var/lib/dkms/v4l2loopback/0.12.7/build/v4l2loopback.c:717:9: erreur: déclaration implicite de la fonction « strlcpy »; vouliez-vous utiliser « strscpy » ? [-Werror=implicit-function-declaration]
  717 |         strlcpy(cap->driver, "v4l2 loopback", sizeof(cap->driver));
      |         ^~~~~~~
      |         strscpy
cc1 : certains avertissements sont traités comme des erreurs
make[3]: *** [scripts/Makefile.build:243: /var/lib/dkms/v4l2loopback/0.12.7/build/v4l2loopback.o] Error 1
make[2]: *** [/usr/lib/modules/6.8.1-arch1-1/build/Makefile:1921: /var/lib/dkms/v4l2loopback/0.12.7/build] Error 2
make[1]: *** [Makefile:240: __sub-make] Error 2
make[1] : on quitte le répertoire « /usr/lib/modules/6.8.1-arch1-1/build »
make: *** [Makefile:43: v4l2loopback.ko] Error 2

Thanks

Last edited by archqt (2024-05-22 09:42:45)

Offline

#2 2024-03-17 11:06:16

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,447

Re: Error on 2 modules after update (v4l2loopback and akvcam) [SOLVED]

This isn't weird, major kernel version updates often lead to changes in the API that make third party modules incompatible. You need to check for updates to those two modules to make them compatible with 6.8
and: https://github.com/umlaeute/v4l2loopback/issues/575 suggests this is already fixed in the git tree so just reinstall v4l2loopback-dkms-git

akvcam doesn't look like it's fixed yet and they generally only claim support for LTS kernels.

Last edited by V1del (2024-03-17 11:08:23)

Offline

#3 2024-03-17 11:49:13

loqs
Member
Registered: 2014-03-06
Posts: 18,140

Re: Error on 2 modules after update (v4l2loopback and akvcam) [SOLVED]

Offline

#4 2024-03-17 13:22:08

archqt
Member
Registered: 2015-04-29
Posts: 200

Re: Error on 2 modules after update (v4l2loopback and akvcam) [SOLVED]

Thanks guys

Offline

Board footer

Powered by FluxBB