Package Details: dahdi 3.1.0-2

Git Clone URL: https://aur.archlinux.org/dahdi.git (read-only, click to copy)
Package Base: dahdi
Description: DAHDI drivers for Asterisk
Upstream URL: http://www.asterisk.org
Licenses: GPL2
Conflicts: zaptel
Submitter: net147
Maintainer: alerque
Last Packager: alerque
Votes: 23
Popularity: 0.000000
First Submitted: 2008-10-17 02:43 (UTC)
Last Updated: 2021-12-27 11:11 (UTC)

Latest Comments

1 2 3 Next › Last »

captaincoder commented on 2022-05-04 10:52 (UTC) (edited on 2022-05-04 10:55 (UTC) by captaincoder)

@alerque I get the following error when building the package:

CC [M]  /home/me/local/dahdi/src/dahdi-linux-complete-3.1.0+3.1.0/linux/drivers/dahdi/wct4xxp/base.o
/home/me/local/dahdi/src/dahdi-linux-complete-3.1.0+3.1.0/linux/drivers/dahdi/wct4xxp/base.c:45:10: fatal error: stdbool.h: No such file or directory
45 | #include <stdbool.h>
   |          ^~~~~~~~~~~
compilation terminated.

I tried several machines, same error. I had a go at debugging the make process, but this is far outside my comfort zone. As far as I could tell the compiler is invoked with -nostdinc. This seems problematic to me when the source includes stdbool. But i failed to determine why this option is generated or how to disable it. Any assistance would be greatly appreciated.

asiplas commented on 2019-01-06 19:25 (UTC) (edited on 2019-01-06 19:27 (UTC) by asiplas)

@atomopawn it seems some of this has been fixed in 3.0.0

diff -r dahdi-linux-complete-2.11.1+2.11.1/linux/drivers/dahdi/dahdi_dynamic.c dahdi-linux-complete-3.0.0+3.0.0/linux/drivers/dahdi/dahdi_dynamic.c
470c470
<       if (atomic_read(&d->kref.refcount) > 2) {
---
>       if (refcount_read(&d->kref.refcount) > 2) {
diff -r dahdi-linux-complete-2.11.1+2.11.1/linux/drivers/dahdi/wcaxx-base.c dahdi-linux-complete-3.0.0+3.0.0/linux/drivers/dahdi/wcaxx-base.c
52a53,56
> #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0)
> #include <linux/sched/signal.h>
> #endif /* 4.11.0 */
> 

atomopawn commented on 2017-06-04 23:20 (UTC)

Kernel v4 made two changes that now break this module: 1. atomic_read no longer works on variables that have become refcount_t types. Instead, use refcount_read. 2. To access signal_pending, you can't just include <linux/sched.h> anymore. You now have to include <linux/sched/signal.h>.

hitn commented on 2017-04-22 23:10 (UTC)

Yep, right. Build fails. I patched the patch. Maybe the maintainer could include it? --- Makefile.orig 2013-06-07 21:29:37.000000000 +0200 +++ Makefile 2017-04-23 00:00:00.000000000 +0200 @@ -7,7 +7,7 @@ all: $(MAKE) -C linux all - (cd tools && [ -f config.status ] || ./configure --with-dahdi=../linux) + (cd tools && [ -f config.status ] || ./configure --with-dahdi=$(dir $(abspath $(lastword $(MAKEFILE_LIST))))linux --sbindir=/usr/bin) $(MAKE) -C tools all clean:

Enverex commented on 2016-05-19 13:21 (UTC)

Build failing for me... CC dahdi_la-dahdi.lo dahdi.c:46:24: fatal error: dahdi/user.h: No such file or directory #include <dahdi/user.h>

mbroemme commented on 2015-02-10 19:28 (UTC)

@magicrhesus: I like the package a lot but it doesn't include all drivers (only those from Digium). I've created two new packages: https://aur.archlinux.org/packages/dahdi-linux/ https://aur.archlinux.org/packages/dahdi-tools/ They include all drivers from Digium, OpenVox, Allo and Yeastar for their PCI(e) cards and their FXS/FXO modules. Also I've splitted it in two packages as recommended by Digium and kernel modules are installed in extramodules directory so that recompile is not needed on minor kernel upgrades. I will maintain the patches and packages as I own some of the cards and use them with your Asterisk package.

mbroemme commented on 2015-02-09 23:22 (UTC)

@magicrhesus: It looks like it is not possible to install the package anymore on latest Arch Linux. It fails with: error: failed to commit transaction (conflicting files) dahdi: /lib exists in filesystem dahdi: /usr/sbin exists in filesystem Errors occurred, no packages were upgraded. The 'Makefile.patch' is not enough anymore, I've changed the PKGBUILD a bit. I've removed Makefile.patch completely and added in build() section before make the following: sed 's,./configure --with-dahdi=../linux,./configure --with-dahdi=../linux --sbindir=/usr/bin,' -i Makefile sed 's,$(prefix)/sbin,$(prefix)/bin,' -i tools/xpp/Makefile In package() section I've added at the end: mv "${pkgdir}/lib/firmware" "${pkgdir}/usr/lib" mv "${pkgdir}/lib/modules" "${pkgdir}/usr/lib" rmdir "${pkgdir}/lib" PS: What is the reason for keeping 'dahdi.service' as it is not packaged anymore?