Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] DAHDI compile problem


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
dsc3507 at yahoo.com
Guest





PostPosted: Wed Feb 26, 2014 2:51 am    Post subject: [asterisk-users] DAHDI compile problem Reply with quote

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.

Doug [url=http://www.crompton.com/][/url]
Back to top
sruffell at digium.com
Guest





PostPosted: Wed Feb 26, 2014 11:24 am    Post subject: [asterisk-users] DAHDI compile problem Reply with quote

On Tue, Feb 25, 2014 at 11:50:41PM -0800, Doug wrote:
Quote:
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

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
dsc3507 at yahoo.com
Guest





PostPosted: Wed Feb 26, 2014 12:21 pm    Post subject: [asterisk-users] DAHDI compile problem Reply with quote

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


Thank you,

Doug[url=http://www.crompton.com/][/url]



On Wednesday, February 26, 2014 11:19 AM, Shaun Ruffell <sruffell@digium.com> wrote:

Quote:
On Tue, Feb 25, 2014 at 11:50:41PM -0800, Doug wrote:
Quote:
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



Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services