Dahdi Kernel Module
Does anyone know if there are any plans to update the dahdi-linux kernel module code? It no longer compiles with recent kernels, and the last release of dahdi-linux appears to have been around March of 2016. I am currently running 4.6.3-300.fc24.x86_64 (on a Fedora system obviously) and the dahdi-linux-complete-2.11.1+2.11.1 release builds and runs under this kernel, but if I try to build it under any Fedora kernel more recent than this, I get:
[root@worldsys dahdi-linux-master]# make make -C drivers/dahdi/firmware firmware-loaders make[1]: Entering directory
‘/local/src/dahdi-linux-master/drivers/dahdi/firmware’
make[1]: Leaving directory
‘/local/src/dahdi-linux-master/drivers/dahdi/firmware’
make -C /lib/modules/4.11.12-100.fc24.x86_64/build SUBDIRS=/local/src/dahdi-linux-master/drivers/dahdi DAHDI_INCLUDE=/local/src/dahdi-linux-master/include DAHDI_MODULES_EXTRA=” ”
HOTPLUG_FIRMWARE=yes modules DAHDI_BUILD_ALL=m make[1]: Entering directory ‘/usr/src/kernels/4.11.12-100.fc24.x86_64’
CC [M] /local/src/dahdi-linux-master/drivers/dahdi/dahdi-base.o
/local/src/dahdi-linux-master/drivers/dahdi/dahdi-base.c: In function
‘dahdi_ioctl_iomux’:
/local/src/dahdi-linux-master/drivers/dahdi/dahdi-base.c:5954:7: error:
implicit declaration of function ‘signal_pending’
[-Werror=implicit-function-declaration]
if (signal_pending(current)) {
^~~~~~~~~~~~~~
cc1: some warnings being treated as errors scripts/Makefile.build:294: recipe for target
‘/local/src/dahdi-linux-master/drivers/dahdi/dahdi-base.o’ failed make[2]: *** [/local/src/dahdi-linux-master/drivers/dahdi/dahdi-base.o]
Error 1
Makefile:1496: recipe for target
‘_module_/local/src/dahdi-linux-master/drivers/dahdi’ failed make[1]: *** [_module_/local/src/dahdi-linux-master/drivers/dahdi] Error 2
make[1]: Leaving directory ‘/usr/src/kernels/4.11.12-100.fc24.x86_64’
(This particular run was using the master download from github, but the results are the same if I try to build the 2.11.1+2.11.1 release from Digium’s downloads site).
If I can’t find a way around this, my only options are to junk a $600
telephony card (I shudder to think how much it would cost to replace it now with one that has a maintained driver) or keep running a non-updateable kernel.
Thanks,
–Greg
2 thoughts on - Dahdi Kernel Module
https://issues.asterisk.org/jira/browse/DAHLIN-354
I’ve patched my builds here:
https://messinet.com/rpms/browser/dahdi-linux-kmod/dahdi-linux-kmod.spec
It looks like you’re using F24, so you might be able to rebuild using the SRPMs https://messinet.com/pub/fedora/linux/updates/26/SRPMS/
Thanks very much for that. I’ve downloaded it, and when I get some free time later this week, I’ll try it out.
–Greg