[asterisk-users] dahdi: Unknown symbol kasprintf
Shaun Ruffell
sruffell at digium.com
Wed Dec 21 11:08:17 CST 2011
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
I cannot commit it to trunk yet though because I know that there are
some distros which have that command back ported (OpenSUSE 2.6.16
comes to mind) so those will need to be checked out.
Cheers,
Shaun
--
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
More information about the asterisk-users
mailing list