Dahdi fails: fatal error: linux/pci-aspm.h: No such file or directory

I’m trying to get dahdi to compile on fedora30 with a Digium A4B card
04:00.0 Network controller: Digium, Inc. Wildcard A4B 4-port analog card (PCI-Express) (rev 01)

Is this a dahdi problem or a kernel problem or something I’m doing?

The commands I used to download/compile this are:

git clone git://git.asterisk.org/team/sruffell/dahdi-linux
cd dahdi-linux
git checkout for-5.0
make

I have the following kernel packages installed for 5.5.16:

kernel-modules-extra-5.5.16-100.fc30.x86_64
kernel-5.5.16-100.fc30.x86_64
kernel-modules-5.5.16-100.fc30.x86_64
kernel-devel-5.5.16-100.fc30.x86_64
kernel-headers-5.5.16-100.fc30.x86_64
kernel-core-5.5.16-100.fc30.x86_64

Compile fails because pci-aspm.h is missing.

  CC [M]  /root/dahdi-linux/drivers/dahdi/oct612x/apilib/largmath/octapi_largmath.o
  CC [M]  /root/dahdi-linux/drivers/dahdi/oct612x/apilib/llman/octapi_llman.o
  CC [M]  /root/dahdi-linux/drivers/dahdi/oct612x/oct612x-user.o
In file included from /root/dahdi-linux/drivers/dahdi/oct612x/oct612x-user.c:28:
/root/dahdi-linux/include/dahdi/kernel.h:62:10: fatal error: linux/pci-aspm.h: No such file or directory
   62 | #include <linux/pci-aspm.h>
      |          ^~~~~~~~~~~~~~~~~~
compilation terminated.
make[3]: *** [scripts/Makefile.build:266: /root/dahdi-linux/drivers/dahdi/oct612x/oct612x-user.o] Error 1
make[2]: *** [scripts/Makefile.build:503: /root/dahdi-linux/drivers/dahdi/oct612x] Error 2
make[1]: *** [Makefile:1694: /root/dahdi-linux/drivers/dahdi] Error 2
make[1]: Leaving directory '/usr/src/kernels/5.5.16-100.fc30.x86_64'
make: *** [Makefile:74: modules] Error 2

Hi @gossamer.

The latest changes to support kernels up through 5.6 are currently on the “next” branch awaiting test by Sangoma.

You should be able to run:

git clone -b next git://git.asterisk.org/dahdi/linux dahdi-linux
cd dahdi-linux
make install
1 Like

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