#1146542 ddcci-dkms: module fails to build for Linux 7.2: error: implicit declaration of function 'strncpy'

Package:
ddcci-dkms
Source:
ddcci-dkms
Submitter:
Andreas Beckmann
Date:
2026-10-17 12:07:03 UTC
Severity:
normal
Tags:
#1146542#5
Date:
2026-09-02 20:49:05 UTC
From:
To:
Hi,

ddcci-dkms fails to build a module for Linux 7.2 in experimental:

DKMS (dkms-3.2.2) make.log for ddcci/0.4.5 for kernel 7.2-amd64 (x86_64)
Wed Sep  2 19:35:21 UTC 2026

Building module(s)
# command: make -j14 KERNELRELEASE=7.2-amd64 KVER=7.2-amd64 -C /var/lib/dkms/ddcci/0.4.5/build
make: Entering directory '/var/lib/dkms/ddcci/0.4.5/build'
make -C "ddcci"
make[1]: Entering directory '/var/lib/dkms/ddcci/0.4.5/build/ddcci'
make -C "/lib/modules/7.2-amd64/build" M="/var/lib/dkms/ddcci/0.4.5/build/ddcci" modules
make[2]: Entering directory '/usr/src/linux-headers-7.2-amd64'
make[3]: Entering directory '/var/lib/dkms/ddcci/0.4.5/build/ddcci'
  CC [M]  ddcci.o
ddcci.c: In function 'ddcci_attr_prot_show':
ddcci.c:772:17: error: implicit declaration of function 'strncpy' [-Wimplicit-function-declaration]
  772 |                 strncpy(buf, device->prot, PAGE_SIZE);
      |                 ^~~~~~~
ddcci.c:29:1: note: include '<string.h>' or provide a declaration of 'strncpy'
   28 | #include <linux/ddcci.h>
  +++ |+#include <string.h>
   29 |
ddcci.c:772:17: warning: incompatible implicit declaration of built-in function 'strncpy' [-Wbuiltin-declaration-mismatch]
  772 |                 strncpy(buf, device->prot, PAGE_SIZE);
      |                 ^~~~~~~
ddcci.c:772:17: note: include '<string.h>' or provide a declaration of 'strncpy'
ddcci.c: In function 'ddcci_attr_type_show':
ddcci.c:794:17: warning: incompatible implicit declaration of built-in function 'strncpy' [-Wbuiltin-declaration-mismatch]
  794 |                 strncpy(buf, device->type, PAGE_SIZE);
      |                 ^~~~~~~
ddcci.c:794:17: note: include '<string.h>' or provide a declaration of 'strncpy'
ddcci.c: In function 'ddcci_attr_model_show':
ddcci.c:816:17: warning: incompatible implicit declaration of built-in function 'strncpy' [-Wbuiltin-declaration-mismatch]
  816 |                 strncpy(buf, device->model, PAGE_SIZE);
      |                 ^~~~~~~
ddcci.c:816:17: note: include '<string.h>' or provide a declaration of 'strncpy'
ddcci.c: In function 'ddcci_attr_vendor_show':
ddcci.c:838:17: warning: incompatible implicit declaration of built-in function 'strncpy' [-Wbuiltin-declaration-mismatch]
  838 |                 strncpy(buf, device->vendor, PAGE_SIZE);
      |                 ^~~~~~~
ddcci.c:838:17: note: include '<string.h>' or provide a declaration of 'strncpy'
ddcci.c: In function 'ddcci_attr_module_show':
ddcci.c:860:17: warning: incompatible implicit declaration of built-in function 'strncpy' [-Wbuiltin-declaration-mismatch]
  860 |                 strncpy(buf, device->module, PAGE_SIZE);
      |                 ^~~~~~~
ddcci.c:860:17: note: include '<string.h>' or provide a declaration of 'strncpy'
make[5]: *** [/usr/src/linux-headers-7.2-common/scripts/Makefile.build:294: ddcci.o] Error 1
make[4]: *** [/usr/src/linux-headers-7.2-common/Makefile:2211: .] Error 2
make[3]: *** [/usr/src/linux-headers-7.2-common/Makefile:260: __sub-make] Error 2
make[3]: Leaving directory '/var/lib/dkms/ddcci/0.4.5/build/ddcci'
make[2]: *** [/usr/src/linux-headers-7.2-common/Makefile:260: __sub-make] Error 2
make[2]: Leaving directory '/usr/src/linux-headers-7.2-amd64'
make[1]: *** [Makefile:38: ddcci.ko] Error 2
make[1]: Leaving directory '/var/lib/dkms/ddcci/0.4.5/build/ddcci'
make: *** [Makefile:28: ddcci] Error 2
make: Leaving directory '/var/lib/dkms/ddcci/0.4.5/build'

# exit code: 2
# elapsed time: 00:00:02
----------------------------------------------------------------


Andreas

#1146542#14
Date:
2026-10-07 16:14:38 UTC
From:
To:
kernel 7.2  has reached stable and ddcci-dkms is broken now

seems like upstream on gitlab haven't been updated in a year and
developer hasn't been active on platform for several months

although, repo has merge request with fix, which should work

see
https://gitlab.com/ddcci-driver-linux/ddcci-driver-linux/-/merge_requests/21

#1146542#19
Date:
2026-10-17 12:04:46 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
ddcci-driver-linux, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1146542@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Jakob Haufe <sur5r@debian.org> (supplier of updated ddcci-driver-linux package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Sat, 17 Oct 2026 13:34:16 +0200
Source: ddcci-driver-linux
Architecture: source
Version: 0.4.5-2
Distribution: unstable
Urgency: medium
Maintainer: Jakob Haufe <sur5r@debian.org>
Changed-By: Jakob Haufe <sur5r@debian.org>
Closes: 1076575 1146542
Changes:
 ddcci-driver-linux (0.4.5-2) unstable; urgency=medium
 .
   * Adopt package (Closes: #1076575)
   * Add patch for Linux 7.2 compatibility (Closes: #1146542)
Checksums-Sha1:
 a08d5d13aba245e17f0a33a9ff0d9b91fa99e3a5 2003 ddcci-driver-linux_0.4.5-2.dsc
 08d0dd1a505c9065d436504af74b49d3ede597c6 6300 ddcci-driver-linux_0.4.5-2.debian.tar.xz
 004fcc9865480582b8188b60c92d9abfd8e571a5 5492 ddcci-driver-linux_0.4.5-2_source.buildinfo
Checksums-Sha256:
 990af14d3ecba1286639bad88470b9181346feebce1d9ad58873bb0b206f03f8 2003 ddcci-driver-linux_0.4.5-2.dsc
 0c699327fb48d1197605c476126bd6544a817cafbd84a5ef2263c58d8237ccc3 6300 ddcci-driver-linux_0.4.5-2.debian.tar.xz
 ec49cd29bb65341fc5c0eece0aea5ccafc9b79c4e70c3dbad7cbb32d2c65db7b 5492 ddcci-driver-linux_0.4.5-2_source.buildinfo
Files:
 360f086fb05125c656f15c5aab7219a0 2003 kernel optional ddcci-driver-linux_0.4.5-2.dsc
 18e814d5e30ef423d3f7a5f8c6520c87 6300 kernel optional ddcci-driver-linux_0.4.5-2.debian.tar.xz
 f13c0140be5ec0e5e7fe5aafd3e1d2be 5492 kernel optional ddcci-driver-linux_0.4.5-2_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEe/X2rDZDH11A3BN6TPKyGPVNrj0FAmrTYZgACgkQTPKyGPVN
rj32dw//YyPgW+uLyvdmf98rNZfqBen+iNfWhoKCgl3wqTnhMUdLSlFXD7hkqz/k
F8T4Xna+wvW9e/doaUyeIHd48kKM05ZTEFTezAg4wpglE6rrmuOo4JsWe26uMtBp
wKaRSOBKxalA+qzSiEIOizsbrTYJr4wOYNc6R5DNsCffU/S1ap3ZpmzLyUTgIb0s
jSub5nqXQZZQdYQMJ0RBaCrR1PoSPtpD5ILY4GVQBd6wg7s2clcuYNR9qPcYUcZ9
6IGI9rwlSAlkjPb2oK+BVKy0F14mMYxrz17QzZUEjfLN9hkOktCS5YfMrZbgdFNV
iV2tkJAZxXULf+So3gapEg6EMUt71QPhGFKqhyxal7uEWGwTVHkoTM9QAFsdq0hh
jZX6lu9W0Ap7VVH1Y0pc2eeZM480NP7CwDSWr7w/vs1lJ79nN6DqCmiNsMk7IbTa
nJg0XyAmahJWjDSAupBWhMtjhLLSy8iRETpCo2OyumVP/Dy8PZaknI/xNuLYzeCn
+OKmuHFpxORqj5J8GwPJApYWxe71A0tNJKV5Sv+CF7GHsrEKDEO0sxaEQMvibz2Q
7uVslzKEoi+pcuO/WBtjPfUfnoyjA5dgU8cfFvJg5qp5vrw1TsjnZcbAtijihuZu
U4mhkEeKNZ1aOV1cxk5ktByeVN+zRA7K2RNitmF1VxLnfUX9ASA=
=6i04
-----END PGP SIGNATURE-----