Dahdi 2.6.1+2.6.1 Compile Fails

Home » Asterisk Users » Dahdi 2.6.1+2.6.1 Compile Fails
Asterisk Users 3 Comments

I am trying to compile a dahdi module from checkout:
svn co http://svn.asterisk.org/svn/dahdi/linux-complete/tags/2.6.1+2.6.1
with ubuntu 3.5.0-17-generic and gcc 4.7.2

Error on compile is:
error: ‘NULL’ undeclared (first use in this function)

This is identical to the error reported in this patch fix:

How would I apply the patch included in the above url?

[eric@pepper ~/src/asterisk-complete/asterisk/dahdi/2.6.1+2.6.1] $ patch

3 thoughts on - Dahdi 2.6.1+2.6.1 Compile Fails

  • Thanks Adolphe

    Seems I have that already:
    [eric@pepper ~] $ dpkg -l linux-headers-`uname -r`
    ||/ Name Version Architecture Description
    ii linux-headers-3.5.0-17-gene 3.5.0-17.28 i386
    Linux kernel headers for version 3.5.0 on 32 bit x86 SMP
    [eric@pepper ~] $ uname -r Linux pepper 3.5.0-17-generic

  • You’ll need to use………….the -p or –strip option^^

    But in your case, both you and DAHTOOL-60-f17.diff will need to be in the
    2.6.1+2.6.1/tools/ directory before you issue:

    patch -p1 < DAHTOOL-60-f17.diff