Cannot rebuild dahdi-2.5.0.1+dfsg-1ubuntu2 (dahdi-linux) because it cannot find asm/system.h
I am installing Asterisk 1.8 + dahdi + wanpipe (which I will be installing manually) in ubuntu 12.04LTS. So I begin by doing
apt-get install asterisk asterisk-dahdi asterisk-dev asterisk-mysql mysql-server curl asterisk-mp3 unzip
apt-get install build-essential libncurses5-dev flex bison libtool automake autoconf
So, I decided to find out if dkms knows of dahdi (in reality, when I was compiling wanpipe, it barked about not finding dahdi):
dpkg -l |grep dahdi
ii asterisk-dahdi 1:1.8.22.
ii dahdi 1:2.4.1-1ubuntu2 utilities for using the DAHDI kernel modules
ii dahdi-dkms 1:2.5.0.
ii dahdi-linux 1:2.5.0.
ii dahdi-source 1:2.5.0.
dkms status
dahdi, 2.5.0.1+
Let's check if it is all well:
modprobe dahdi_dummy
FATAL: Module dahdi_dummy not found.
Not good, so we will try installing it manually:
DAHDI_VERSION=`dkms status | grep dahdi | head -n 1 | awk '{ print $2}' | tr -d :` && dkms build -m dahdi -v ${DAHDI_VERSION}
Kernel preparation unnecessary for this kernel. Skipping...
Building module:
cleaning build area....
(make modules KERNVER=
Error! Bad return status for module build on kernel: 3.5.0-36-generic (x86_64)
Consult /var/lib/
In /var/lib/
/opvxd115.o
CC [M] /var/lib/
/voicebus.o
CC [M] /var/lib/
/GpakCust.o
CC [M] /var/lib/
/GpakApi.o
CC [M] /var/lib/
/voicebus_net.o
CC [M] /var/lib/
/vpmoct.o
LD [M] /var/lib/
/dahdi_voicebus.o
CC [M] /var/lib/
base.o
/var/lib/
46: fatal error: asm/system.h: No such file or directory
compilation terminated.
make[3]: *** [/var/lib/
xxp/base.o] Error 1
make[2]: *** [/var/lib/
xxp] Error 2
make[1]: *** [_module_
hdi] Error 2
make[1]: Leaving directory `/usr/src/
make: *** [modules] Error 2
make -C /lib/modules/
dfsg-1ubuntu2/
-1ubuntu2/
DI_BUILD_ALL=m
make[1]: Entering directory `/usr/src/
CC [M] /var/lib/
base.o
/var/lib/
46: fatal error: asm/system.h: No such file or directory
compilation terminated.
make[3]: *** [/var/lib/
xxp/base.o] Error 1
make[2]: *** [/var/lib/
xxp] Error 2
make[1]: *** [_module_
hdi] Error 2
make[1]: Leaving directory `/usr/src/
make: *** [modules] Error 2
make -C drivers/
which reminds me of https:/
Any suggestions?
Question information
- Language:
- English Edit question
- Status:
- Open
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Raubvogel for more information if necessary.