dahdi-dkms FTBS with linux 6.5 on jammy

Bug #2041215 reported by Andrea Righi
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
dahdi-linux (Ubuntu)
New
Undecided
Unassigned
Jammy
Fix Committed
Undecided
Unassigned

Bug Description

[Impact]

/var/lib/dkms/dahdi/2.11.1~dfsg-1ubuntu12~22.04.2/build/drivers/dahdi/wctdm24xxp/base.c:228:27: error: macro "DEFINE_SEMAPHORE" requires 2 arguments, but only 1 given
  228 | DEFINE_SEMAPHORE(ifacelock);
      | ^

[Test case]

  $ sudo apt install dahdi-dkms

[Fix]

Backport the required changes from mantic to support the new linux 6.5 ABI.

[Regression potential]

Systems that are using dahdi-dkms (i.e., telephony devices) may experience regressions, especially if they are running the new 6.5 kernel.

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: dahdi-dkms 1:2.11.1~dfsg-1ubuntu12~22.04.2
ProcVersionSignature: User Name 6.5.0-9.9~22.04.2-generic 6.5.3
Uname: Linux 6.5.0-9-generic x86_64
NonfreeKernelModules: wl
ApportVersion: 2.20.11-0ubuntu82.5
Architecture: amd64
CasperMD5CheckResult: unknown
CloudArchitecture: x86_64
CloudID: nocloud
CloudName: unknown
CloudPlatform: nocloud
CloudSubPlatform: config-disk (/dev/vdb)
Date: Thu Oct 26 14:08:18 2023
PackageArchitecture: all
SourcePackage: dahdi-linux
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Andrea Righi (arighi) wrote :
Revision history for this message
Andrea Righi (arighi) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "dahdi-linux-support-linux-6.5-jammy.debdiff" seems to be a debdiff. The ubuntu-sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. If the attachment isn't a patch, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are member of the ~ubuntu-sponsors, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issue please contact him.]

tags: added: patch
Revision history for this message
Timo Aaltonen (tjaalton) wrote : Please test proposed package

Hello Andrea, or anyone else affected,

Accepted dahdi-linux into jammy-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/dahdi-linux/1:2.11.1~dfsg-1ubuntu12~22.04.3 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-jammy to verification-done-jammy. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-jammy. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in dahdi-linux (Ubuntu Jammy):
status: New → Fix Committed
Revision history for this message
Sudip Mukherjee (sudipmuk) wrote :

I can confirm that the dahdi-dkms package in jammy-proposed has fixed the bug for me.

Test done:

1. Modify grub defauls to disable grub hidden timeout, and increase timeout
2. Install linux-generic to have both the kernel in the system
3. reboot to 5.15.0-102-generic kernel
3. Enable jammy-proposed
4. Install digimend-dkms, confirm that the modules builds for both the kernels 5.15.0-102-generic and 6.5.0-21-generic
5. Try modproble of one of the module and check with lsmod

$ sudo modprobe dahdi_dynamic_loc

$ lsmod | grep dahdi
dahdi_dynamic_loc 16384 0
dahdi_dynamic 20480 1 dahdi_dynamic_loc
dahdi 258048 1 dahdi_dynamic

$ uname -r
5.15.0-102-generic

Reboot to 6.5.0-21-generic and try the same

$ sudo modprobe dahdi_dynamic_loc

$ lsmod | grep dahdi
dahdi_dynamic_loc 12288 0
dahdi_dynamic 20480 1 dahdi_dynamic_loc
dahdi_transcode 16384 0
dahdi_dummy 12288 0
dahdi 286720 3 dahdi_dummy,dahdi_transcode,dahdi_dynamic

$ uname -r
6.5.0-21-generic

Test result: the errors with dahdi-dkms has been fixed.

Package tested:

$ dpkg -l | grep dahdi
ii dahdi-dkms 1:2.11.1~dfsg-1ubuntu12~22.04.3 all DAHDI telephony interface (dkms kernel driver)
ii dahdi-linux 1:2.11.1~dfsg-1ubuntu12~22.04.3 all DAHDI telephony interface - Linux userspace parts

tags: added: verification-done verification-done-jammy
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.