I had an issue installing dahdi where the new linux kernal was causing a mismatch error. I installed dahdi by using the dahdi-linux-complete from the asterisk documentation.
It compiled everything how I wanted it and I was able to it up to start with boot using
systemclt start dahdi,
systemctl enable dahdi
On the cmd: make it through up mis match error’s this is how I fixed them. I worked from root
cmd: sudo su.
nano /usr/src/dahdi-linux-complete-3.4.0+3.4.0/linux/drivers/dahdi/xpp/xbus-sysfs.c
clt “f” (Find function in nano)
paste in “int astribank_match”
add
int astribank_match(struct device *dev, const struct device_driver *drv)
clt “f” (Find function in nano)
paste in “int xpd_match”
add
int xpd_match(const struct device *dev, const struct device_driver *drv)
nano /usr/src/dahdi-linux-complete-3.4.0+3.4.0/linux/drivers/dahdi/dahdi-sysfs.c
clt “f” (Find function in nano)
paste in “static int span_match”
add
static int span_match(struct device *dev, const struct device_driver *drv)
sudo nano /usr/src/dahdi-linux-complete-3.4.0+3.4.0/linux/drivers/dahdi/dahdi-sysfs-chan.c
clt “f” (Find function in nano)
paste in “static int chan_match”
add
static int chan_match(struct device *dev, const struct device_driver *drv)
hope this helps