v4l2loopback-dkms compilation fails on apt-get upgrade in Ubuntu 22.04

Bug #2078961 reported by michaelfsp
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
v4l2loopback (Ubuntu)
New
Undecided
Unassigned

Bug Description

michael@kolmogorov:~/git/pycbm$ sudo apt install --reinstall v4l2loopback-dkms
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 29.5 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 v4l2loopback-dkms all 0.12.7-2ubuntu2~22.04.1 [29.5 kB]
Fetched 29.5 kB in 0s (133 kB/s)
(Reading database ... 876311 files and directories currently installed.)
Preparing to unpack .../v4l2loopback-dkms_0.12.7-2ubuntu2~22.04.1_all.deb ...
Unpacking v4l2loopback-dkms (0.12.7-2ubuntu2~22.04.1) over (0.12.7-2ubuntu2~22.04.1) ...
Setting up v4l2loopback-dkms (0.12.7-2ubuntu2~22.04.1) ...
Loading new v4l2loopback-0.12.7 DKMS files...
Building for 6.5.0-35-generic 6.8.0-40-generic
Building initial module for 6.5.0-35-generic
Done.

v4l2loopback.ko:
Running module version sanity check.
 - Original module
 - Installation
   - Installing to /lib/modules/6.5.0-35-generic/updates/dkms/

depmod....
Building initial module for 6.8.0-40-generic
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/v4l2loopback-dkms.0.crash'
Error! Bad return status for module build on kernel: 6.8.0-40-generic (x86_64)
Consult /var/lib/dkms/v4l2loopback/0.12.7/build/make.log for more information.
dpkg: error processing package v4l2loopback-dkms (--configure):
 installed v4l2loopback-dkms package post-installation script subprocess returned error exit status 10
Errors were encountered while processing:
 v4l2loopback-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)
100 michael@kolmogorov:~/git/pycbm$ bat /var/lib/dkms/v4l2loopback/0.12.7/build/make.log
───────┬─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── │ File: /var/lib/dkms/v4l2loopback/0.12.7/build/make.log
───────┼─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── 1 │ DKMS make.log for v4l2loopback-0.12.7 for kernel 6.8.0-40-generic (x86_64)
   2 │ Wed 04 Sep 2024 17:28:42 WEST
   3 │ Building v4l2-loopback driver...
   4 │ make -C /lib/modules/6.8.0-40-generic/build M=/var/lib/dkms/v4l2loopback/0.12.7/build modules CC=x86_64-linux-gnu-gcc-12
   5 │ make[1]: Entering directory '/usr/src/linux-headers-6.8.0-40-generic'
   6 │ CC [M] /var/lib/dkms/v4l2loopback/0.12.7/build/v4l2loopback.o
   7 │ /var/lib/dkms/v4l2loopback/0.12.7/build/v4l2loopback.c: In function ‘vidioc_querycap’:
   8 │ /var/lib/dkms/v4l2loopback/0.12.7/build/v4l2loopback.c:727:9: error: implicit declaration of function ‘strlcpy’; did you mean ‘strscpy’? [-Werror=implicit-function-declaration]
   9 │ 727 | strlcpy(cap->driver, "v4l2 loopback", sizeof(cap->driver));
  10 │ | ^~~~~~~
  11 │ | strscpy
  12 │ cc1: some warnings being treated as errors
  13 │ make[3]: *** [scripts/Makefile.build:243: /var/lib/dkms/v4l2loopback/0.12.7/build/v4l2loopback.o] Error 1
  14 │ make[2]: *** [/usr/src/linux-headers-6.8.0-40-generic/Makefile:1926: /var/lib/dkms/v4l2loopback/0.12.7/build] Error 2
  15 │ make[1]: *** [Makefile:240: __sub-make] Error 2
  16 │ make[1]: Leaving directory '/usr/src/linux-headers-6.8.0-40-generic'
  17 │ make: *** [Makefile:43: v4l2loopback.ko] Error 2
───────┴───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: v4l2loopback-dkms 0.12.7-2ubuntu2~22.04.1
ProcVersionSignature: Ubuntu 6.5.0-35.35~22.04.1-generic 6.5.13
Uname: Linux 6.5.0-35-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia zfs
ApportVersion: 2.20.11-0ubuntu82.6
Architecture: amd64
CasperMD5CheckResult: unknown
Date: Wed Sep 4 17:38:36 2024
InstallationDate: Installed on 2017-07-26 (2596 days ago)
InstallationMedia: Ubuntu 16.04.2 LTS "Xenial Xerus" - Release amd64 (20170215.2)
PackageArchitecture: all
RebootRequiredPkgs: Error: path contained symlinks.
SourcePackage: v4l2loopback
UpgradeStatus: Upgraded to jammy on 2024-03-17 (171 days ago)

Revision history for this message
michaelfsp (michael-fsp) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.