Issues with DAHDI 2.11.1 on debian

I’m new in Asterisk and i’m trying to install and configure my Digium card for Asterisk.
I installed dahdi 2.11.1 without errors and after reboot lights on my Digium tdm410 started to glow.
But i have no dahdi service! =(

sudo service dahdi start

gives

Failed to start dahdi.service: Unit dahdi.service failed to load: No such file or directory.

In the internet i found a topic, where people suggested to install previous version of dahdi first, and then install new version of dahdi (with make clean before make), but here i got another error:

/usr/src/dahdi-linux-complete-2.6.1+2.6.1$ sudo make
make -C linux all
make[1]: Entering directory '/usr/src/dahdi-linux-complete-2.6.1+2.6.1/linux’
make -C drivers/dahdi/firmware firmware-loaders
make[2]: Entering directory '/usr/src/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/firmware’
Attempting to download dahdi-fwload-vpmadt032-1.25.0.tar.gz
–2017-01-26 16:04:52-- http://downloads.digium.com/pub/telephony/firmware/releases/dahdi-fwload-vpmadt032-1.25.0.tar.gz
Resolving downloads.digium.com (downloads.digium.com)… 76.164.171.238, 2001:470:e0d4::ee
Connecting to downloads.digium.com (downloads.digium.com)|76.164.171.238|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 149360 (146K) [application/x-gzip]
Saving to: ‘dahdi-fwload-vpmadt032-1.25.0.tar.gz’

dahdi-fwload-vpmadt032-1 100%[=================================>] 145.86K 297KB/s in 0.5s

2017-01-26 16:04:53 (297 KB/s) - ‘dahdi-fwload-vpmadt032-1.25.0.tar.gz’ saved [149360/149360]

make[2]: Leaving directory '/usr/src/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/firmware’
make -C /lib/modules/3.16.0-4-amd64/build SUBDIRS=/usr/src/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi DAHDI_INCLUDE=/usr/src/dahdi-linux-complete-2.6.1+2.6.1/linux/include DAHDI_MODULES_EXTRA=" " HOTPLUG_FIRMWARE=yes modules DAHDI_BUILD_ALL=m
make[2]: Entering directory '/usr/src/linux-headers-3.16.0-4-amd64’
make[1]: Entering directory `/usr/src/linux-headers-3.16.0-4-amd64’
CC [M] /usr/src/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/dahdi-base.o
/usr/src/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/dahdi-base.c:91:2: warning: #warning “No CONFIG_BKL is an experimental configuration.” [-Wcpp]
#warning “No CONFIG_BKL is an experimental configuration.”
^
/usr/src/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/dahdi-base.c: In function ‘dahdi_proc_open’:
/usr/src/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/dahdi-base.c:902:2: error: implicit declaration of function ‘PDE’ [-Werror=implicit-function-declaration]
return single_open(file, dahdi_seq_show, PDE(inode)->data);
^
/usr/src/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/dahdi-base.c:902:53: error: invalid type argument of ‘->’ (have ‘int’)
return single_open(file, dahdi_seq_show, PDE(inode)->data);
^
/usr/src/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/dahdi-base.c: In function ‘_dahdi_assign_span’:
/usr/src/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/dahdi-base.c:6945:3: error: implicit declaration of function ‘create_proc_entry’ [-Werror=implicit-function-declaration]
span->proc_entry = create_proc_entry(tempfile, 0444,
^
/usr/src/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/dahdi-base.c:6945:20: warning: assignment makes pointer from integer without a cast [enabled by default]
span->proc_entry = create_proc_entry(tempfile, 0444,
^
/usr/src/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/dahdi-base.c:6952:19: error: dereferencing pointer to incomplete type
span->proc_entry->data = (void *)(long)span->spanno;
^
/usr/src/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/dahdi-base.c:6953:19: error: dereferencing pointer to incomplete type
span->proc_entry->proc_fops = &dahdi_proc_ops;
^
/usr/src/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/dahdi-base.c: In function ‘_dahdi_unassign_span’:
/usr/src/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/dahdi-base.c:7137:37: error: dereferencing pointer to incomplete type
remove_proc_entry(span->proc_entry->name, root_proc_entry);
^
cc1: some warnings being treated as errors
/usr/src/linux-headers-3.16.0-4-common/scripts/Makefile.build:262: recipe for target ‘/usr/src/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/dahdi-base.o’ failed
make[5]: *** [/usr/src/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/dahdi-base.o] Error 1
/usr/src/linux-headers-3.16.0-4-common/Makefile:1353: recipe for target ‘module/usr/src/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi’ failed
make[4]: *** [module/usr/src/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi] Error 2
Makefile:181: recipe for target ‘sub-make’ failed
make[3]: *** [sub-make] Error 2
Makefile:8: recipe for target ‘all’ failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/usr/src/linux-headers-3.16.0-4-amd64’
Makefile:86: recipe for target ‘modules’ failed
make[1]: *** [modules] Error 2
make[1]: Leaving directory '/usr/src/dahdi-linux-complete-2.6.1+2.6.1/linux’
Makefile:9: recipe for target ‘all’ failed
make: *** [all] Error 2

Can someone suggest me what to do?
Best regards.

reinstallation from this guide solved this problem:
https://wiki.asterisk.org/wiki/display/DAHDI/Quick+Start+From+Source

1 Like