Hi,
I’m a new user of asterisk and tried to use the “make” command on the dahdi package but got these error :
my kernel is :
6.14.0 - 32 generic
on ubuntu 24.04.3 LTS
Hi,
I’m a new user of asterisk and tried to use the “make” command on the dahdi package but got these error :
Which was the immediately preceding thread in the DAHDI category
Hi,
thank you for the reply.
it seem to be the same error but not on the same line/file and the same kernel.
I tried to fix it by adding CFLAG on the MakeFile to downgrade the error to be a warning but without success…
EDIT
__________
I tried to replace the entire linux folder with the current last released version on github and got the follow error :
make
make -C linux all
make[1]: Entering directory ‘/usr/src/dahdi-linux-complete-3.4.0+3.4.0/linux’
make -C drivers/dahdi/firmware firmware-loaders
make[2]: Entering directory ‘/usr/src/dahdi-linux-complete-3.4.0+3.4.0/linux/drivers/dahdi/firmware’
Attempting to download dahdi-fwload-vpmadt032-1.25.0.tar.gz
–2025-09-26 13:45:54-- http://downloads.digium.com/pub/telephony/firmware/releases/dahdi-fwload-vpmadt032-1.25.0.tar.gz
Resolving downloads.digium.com (downloads.digium.com)… 165.22.184.19, 2604:a880:400:d0::14:9001
Connecting to downloads.digium.com (downloads.digium.com)|165.22.184.19|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 149360 (146K) [application/octet-stream]
Saving to: ‘dahdi-fwload-vpmadt032-1.25.0.tar.gz’
dahdi-fwload-vpmadt032-1.25.0 100%[=================================================>] 145.86K 327KB/s in 0.4s
2025-09-26 13:45:56 (327 KB/s) - ‘dahdi-fwload-vpmadt032-1.25.0.tar.gz’ saved [149360/149360]
make[2]: Leaving directory ‘/usr/src/dahdi-linux-complete-3.4.0+3.4.0/linux/drivers/dahdi/firmware’
make -C /lib/modules/6.14.0-32-generic/build M=/usr/src/dahdi-linux-complete-3.4.0+3.4.0/linux/drivers/dahdi DAHDI_INCLUDE=/usr/src/dahdi-linux-complete-3.4.0+3.4.0/linux/include DAHDI_MODULES_EXTRA=" " HOTPLUG_FIRMWARE=yes modules DAHDI_BUILD_ALL=m
make[2]: Entering directory ‘/usr/src/linux-headers-6.14.0-32-generic’
make[3]: Entering directory ‘/usr/src/dahdi-linux-complete-3.4.0+3.4.0/linux/drivers/dahdi’
warning: the compiler differs from the one used to build the kernel
The kernel was built by: x86_64-linux-gnu-gcc-13 (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0
You are using: gcc-13 (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0
CC [M] oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_adpcm_chan.o
CC [M] oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_channel.o
CC [M] oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_chip_open.o
CC [M] oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_chip_stats.o
CC [M] oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_conf_bridge.o
CC [M] oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_debug.o
CC [M] oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_events.o
CC [M] oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_interrupts.o
CC [M] oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_memory.o
CC [M] oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_miscellaneous.o
CC [M] oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_mixer.o
CC [M] oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_phasing_tsst.o
CC [M] oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_playout_buf.o
CC [M] oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_remote_debug.o
CC [M] oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_tlv.o
CC [M] oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_tone_detection.o
CC [M] oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_tsi_cnct.o
CC [M] oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_tsst.o
CC [M] oct612x/apilib/bt/octapi_bt0.o
CC [M] oct612x/apilib/largmath/octapi_largmath.o
CC [M] oct612x/apilib/llman/octapi_llman.o
CC [M] oct612x/oct612x-user.o
LD [M] oct612x/oct612x.o
CC [M] wct4xxp/base.o
CC [M] wct4xxp/vpm450m.o
LD [M] wct4xxp/wct4xxp.o
CC [M] wctc4xxp/base.o
LD [M] wctc4xxp/wctc4xxp.o
CC [M] wctdm24xxp/base.o
CC [M] wctdm24xxp/xhfc.o
LD [M] wctdm24xxp/wctdm24xxp.o
CC [M] wcte12xp/base.o
LD [M] wcte12xp/wcte12xp.o
CC [M] voicebus/voicebus.o
CC [M] voicebus/GpakCust.o
CC [M] voicebus/GpakApi.o
CC [M] voicebus/voicebus_net.o
CC [M] voicebus/vpmoct.o
LD [M] voicebus/dahdi_voicebus.o
CC [M] wcb4xxp/base.o
LD [M] wcb4xxp/wcb4xxp.o
CC [M] xpp/xbus-core.o
CC [M] xpp/xbus-sysfs.o
CC [M] xpp/xbus-pcm.o
CC [M] xpp/xframe_queue.o
CC [M] xpp/xpp_dahdi.o
CC [M] xpp/xproto.o
CC [M] xpp/card_global.o
CC [M] xpp/dahdi_debug.o
LD [M] xpp/xpp.o
CC [M] xpp/card_fxs.o
LD [M] xpp/xpd_fxs.o
CC [M] xpp/card_fxo.o
LD [M] xpp/xpd_fxo.o
CC [M] xpp/card_pri.o
LD [M] xpp/xpd_pri.o
CC [M] xpp/card_bri.o
LD [M] xpp/xpd_bri.o
CC [M] xpp/card_echo.o
LD [M] xpp/xpd_echo.o
CC [M] xpp/xpp_usb.o
VERIFY xpp/init_card_1_30
VERIFY xpp/init_card_2_30
VERIFY xpp/init_card_3_30
VERIFY xpp/init_card_4_30
HOSTCC xpp/print_fxo_modes.o
HOSTLD xpp/print_fxo_modes
GEN xpp/init_fxo_modes
CHECK xpp/init_card_2_30
CC [M] opvxa1200/base.o
LD [M] opvxa1200/opvxa1200.o
CC [M] dahdi-base.o
CC [M] dahdi-sysfs.o
CC [M] dahdi-sysfs-chan.o
CC [M] dahdi-version.o
LD [M] dahdi.o
CC [M] dahdi_dynamic.o
CC [M] dahdi_dynamic_loc.o
CC [M] dahdi_dynamic_eth.o
CC [M] dahdi_dynamic_ethmf.o
CC [M] dahdi_transcode.o
CC [M] wcte13xp-base.o
CC [M] wcxb_spi.o
CC [M] wcxb.o
CC [M] wcxb_flash.o
LD [M] wcte13xp.o
CC [M] wcte43x-base.o
LD [M] wcte43x.o
CC [M] wcaxx-base.o
LD [M] wcaxx.o
CC [M] wctdm.o
CC [M] wct1xxp.o
CC [M] wcte11xp.o
CC [M] wcfxo.o
CC [M] dahdi_echocan_jpah.o
CC [M] dahdi_echocan_sec.o
CC [M] dahdi_echocan_sec2.o
CC [M] dahdi_echocan_kb1.o
CC [M] dahdi_echocan_mg2.o
CC [M] vpmadt032_loader/dahdi_vpmadt032_loader.o
make[5]: *** No rule to make target ‘vpmadt032_loader/vpmadt032_x86_64.o’, needed by ‘dahdi_vpmadt032_loader.o’. Stop.
make[4]: *** [/usr/src/linux-headers-6.14.0-32-generic/Makefile:1997: .] Error 2
make[3]: *** [/usr/src/linux-headers-6.14.0-32-generic/Makefile:251: __sub-make] Error 2
make[3]: Leaving directory ‘/usr/src/dahdi-linux-complete-3.4.0+3.4.0/linux/drivers/dahdi’
make[2]: *** [Makefile:251: __sub-make] Error 2
make[2]: Leaving directory ‘/usr/src/linux-headers-6.14.0-32-generic’
make[1]: *** [Makefile:74: modules] Error 2
make[1]: Leaving directory ‘/usr/src/dahdi-linux-complete-3.4.0+3.4.0/linux’
make: *** [Makefile:8: all] Error 2
After a whole day to try to fix it it seems to be unfixable currently to make dahdi work on debian latest kernel…
Maybe someone can suggest a linux distro that work ?
You’re absolutely correct, the latest Kernel (6) is unconfigurable. Stick to Kernel (5)
Use phreaknet.sh to install.
cd /usr/src
wget https://docs.phreaknet.org/phreaknet.sh
chmod 755 phreaknet.sh
./phreaknet.sh make
./phreaknet.sh dahdi –drivers –force
That will install dahdi 3.4.0
Isn’t there already a Debian package that does all this for you?
DKMS handles binary compatibility, but not source compatibility. The problems people are getting are that DAHDI won’t compile against the current headers. All that DKMS does is to attempt to compile against the headers for the running kernel. If a driver won’t compile against those headers, it can’t help. (It also deals with signing the driver to keep secure boot happy.
What where your exact steps to configure and what kernel version do you have currently?
As far as I am aware Kernel 6 and Dahdi don’t jive. What is the output of : modprobe dahdi_dummy
/usr/sbin/dahdi_cfg -vvvvvvvvvvvvv
what do you get when you run: service dahdi status?
No extra steps. Just run ./phreaknet.sh dahdi –drivers –force
I’m on Debian 12 uname -r gives 6.1.0-37-amd64
modprobe dahdi_dummy gives no output
root@asterisk3:~# service dahdi status
● dahdi.service - LSB: DAHDI kernel modules
Loaded: loaded (/etc/init.d/dahdi; generated)
Active: active (exited) since Mon 2025-09-22 08:35:28 CDT; 5 days ago
Docs: man:systemd-sysv-generator(8)
Process: 668 ExecStart=/etc/init.d/dahdi start (code=exited, status=0/SUCCE>
CPU: 80ms
Sep 22 08:35:25 asterisk3 systemd[1]: Starting dahdi.service - LSB: DAHDI kerne>
Sep 22 08:35:25 asterisk3 dahdi[668]: Loading DAHDI hardware modules:
Sep 22 08:35:28 asterisk3 dahdi[726]: D: auto '/sys/bus/dahdi_devices/devices/w>
Sep 22 08:35:28 asterisk3 dahdi[789]: auto-assign /sys/bus/dahdi_devices/device>
Sep 22 08:35:28 asterisk3 dahdi[794]: using ‘/etc/dahdi/assigned-spans.conf’
Sep 22 08:35:28 asterisk3 dahdi[833]: Waiting for spans to become assigned: done
Sep 22 08:35:28 asterisk3 dahdi[668]: Running dahdi_cfg: .
Sep 22 08:35:28 asterisk3 systemd[1]: Started dahdi.service - LSB: DAHDI kernel
dahdi-cfg -vvvvv give information on the 52 configured channels.
And Asterisk CLI dahdi show version
DAHDI Version 3.4.0 Echo Canceller: HWEC, MG2
Great Postback it’s important to write back with the fix, as others might be helped by your success. Good luck!
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.