[asterisk-users] DAHDI compile problem

Doug dsc3507 at yahoo.com
Wed Feb 26 11:21:36 CST 2014


Yes it did. Compiled all the way through. I guess that change should go in the release!

Thank you,

 
Doug




On Wednesday, February 26, 2014 11:19 AM, Shaun Ruffell <sruffell at digium.com> wrote:
 
On Tue, Feb 25, 2014 at 11:50:41PM -0800, Doug wrote:
>> 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?  I have the
>> kernel source and  I have configured it and actually compiled it
>> successfully. The  /lib/modules/3.10.25+/build  and source links
>> are pointing to the kernel source.
>
>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 <linux/cdev.h>
>   #include <linux/module.h>
>   #include <linux/ioctl.h>
>  +#include <linux/slab.h>
>  
>   #ifdef CONFIG_DAHDI_NET
>   #include <linux/hdlc.h>
>
>Does that resolve it for you?
>
>-- 
>Shaun Ruffell
>Digium, Inc. | Linux Kernel Developer
>445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
>Check us out at: www.digium.com & www.asterisk.org
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20140226/fc3c5967/attachment.html>


More information about the asterisk-users mailing list