[asterisk-users] dahdi: Unknown symbol kasprintf

Vieri rentorbuy at yahoo.com
Wed Dec 21 11:21:27 CST 2011



--- On Wed, 12/21/11, Shaun Ruffell <sruffell at digium.com> wrote:

> From: Shaun Ruffell <sruffell at digium.com>
> Subject: Re: [asterisk-users] dahdi: Unknown symbol kasprintf
> To: "Asterisk Users Mailing List - Non-Commercial Discussion" <asterisk-users at lists.digium.com>
> Date: Wednesday, December 21, 2011, 12:08 PM
> On Wed, Dec 21, 2011 at 08:45:32AM
> -0800, Vieri wrote:
> > 
> > --- On Wed, 12/21/11, Russ Meyerriecks <rmeyerriecks at digium.com>
> wrote:
> > 
> > > > When I compile dahdi I see these warnings:
> > > > 
> > > > WARNING: "kasprintf"
> [dahdi-linux-2.5.0.2/drivers/dahdi/wctdm24xxp/wctdm24xxp.ko]
> undefined!
> > > > WARNING: "kasprintf"
> [dahdi-linux-2.5.0.2/drivers/dahdi/dahdi.ko] undefined!
> > > >  
> > > > And "modinfo dahdi" shows that the driver
> was built for a
> > > > 2.6.17 kernel,  SMP mod_unload 586 4KSTACKS
> gcc-4.1
> > > 
> > > What distro are you running?
> > 
> > A somewhat outdated Gentoo box. I couldn't wait longer
> so I'm in
> > the process of doing a new, clean system
> installation.
> > 
> > Thanks anyway for replying.
> > 
> > I just hope that dahdi and asterisk will compile and
> run fine with gcc 4.5 and kernel 3.0.
> 
> I know this is too late for you but...
> 
> Looks like kasprintf was first added to the kernel in
> 2.6.18, not
> prior to 2.6.12 like DAHDI currently believes.  The
> following
> command on a checkout of the current trunk of DAHDI should
> allow you
> to build against the 2.6.17 kernel.
> 
>   $ curl "https://github.com/sruffell/dahdi-linux/commit/cbd536aea83.patch"
> | patch -p1

Thanks for the information. It will be useful for other systems I need to upgrade.

Vieri




More information about the asterisk-users mailing list