DAHDI Compile Problem

Home » Asterisk Users » DAHDI Compile Problem
Asterisk Users 2 Comments

I am having trouble compiling dahdi-linux-complete-2.9.0+2.9.0.1 on a Raspbien 3.10.25+ kernel. I get the following error –

/usr/src/dahdi-linux-complete-2.9.0+2.9.0.1/linux/drivers/dahdi/dahdi-base.c:570:2: error: implicit declaration of function kzalloc [-Werror=implicit-function-declaration]

/usr/src/dahdi-linux-complete-2.9.0+2.9.0.1/linux/drivers/dahdi/dahdi-base.c:1391:2: error: implicit declaration of function kmalloc [-Werror=implicit-function-declaration]

as well as a lot of warnings like –

/usr/src/dahdi-linux-complete-2.9.0+2.9.0.1/linux/drivers/dahdi/dahdi-base.c:570:6: warning: assignment makes pointer from integer without a cast [enabled by default]

I am obviously missing something. Can anyone help?

2 thoughts on - DAHDI Compile Problem

  • Odd…if it is only kzalloc, kmalloc, etc.. I wonder if it is resolved if you include linux/slab.h in include/dahdi/kernel.h. Something like:

    diff –git a/include/dahdi/kernel.h b/include/dahdi/kernel.h
    index f2f9ec5..c19aec5 100644
    — a/include/dahdi/kernel.h
    +++ b/include/dahdi/kernel.h
    @@ -43,6 +43,7 @@
    #include #include #include +#include

    #ifdef CONFIG_DAHDI_NET
    #include

    Does that resolve it for you?