Error install dahdi complite 3.4.0

hi i try install dahdi-complete-3.4.0+3.4.0 but appears error

what Operating Environment?
kernel ?

Hi kernel 5.14.0-570.28.1.el9_6.x86_64 Alma 9

there is known issue with this kernel version .

The people at Redhat are doing an odd work, by merging changes from newer kernels into the 5.14.0 kernel used by CentOS 9 and derivatives. The result is dahdi is no longer able to compile successfully on some newer versions because the structure of the kernel source is changed, but the installation script still see it as 5.14.0.

For now these are the working tested kernels:

5.14.0-362
5.14.0-378

if someone knows how to fix it i would appreciate it !

Hey reach out tru my email I will help you configure dahdi. mejorleads@gmail

there a 5 files to change

drivers/dahdi/wctdm24xxp/base.c
drivers/dahdi/voicebus/voicebus.c
drivers/dahdi/xpp/xbus-sysfs.c
drivers/dahdi/dahdi-sysfs.c
drivers/dahdi/dahdi-sysfs-chan.c

look for
#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 4, 0)
or
#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 3, 0)
and change it to
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 14, 0)

make clean 
make

the reason

Linux kernel evolves APIs
        ↓
Distributions (e.g., RHEL) backport newer APIs to older kernel versions
        ↓
Kernel reports a lower version (5.14) but uses newer signatures (from 6.4)
        ↓
Out-of-tree modules like DAHDI check only LINUX_VERSION_CODE
        ↓
Wrong code path is selected → compile-time errors

i see all the work was done already in the master just follow

cd /usr/local/src
git clone https://github.com/asterisk/dahdi-linux
cd dahdi-linux
make
sudo make install

cd /usr/local/src
git clone https://github.com/asterisk/dahdi-tools
cd dahdi-tools
autoreconf -i
./configure
make
sudo make install
sudo make config

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.