[asterisk-users] dahdi versions before 2.5 compilation error and ubuntu

Shaun Ruffell sruffell at digium.com
Sat Apr 14 16:02:32 CDT 2012


On Sat, Apr 14, 2012 at 01:36:02PM -0700, bilal ghayyad wrote:
> Hi All;
> 
> It look like DAHDI versions that before 2.5 have a problem to be
> compiled on ubuntu, can someone check below and advise me how to
> fix this?
> 
> The output of the uname -a is:
> 
> Linux House 3.0.0-17-server #30-Ubuntu SMP Thu Mar 8 22:15:30 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
> 
> I am trying to install DAHDI on ubuntu and I faced a problem if I
> am compiling versions before 2.5, but if I tried 2.5 and newer
> then it is working fine. 

Why not use DAHDI 2.5.0.2 then? What reason do you have for staying
on 2.4?

> The error is:
> 
> make[2]: Entering directory `/usr/src/linux-headers-3.0.0-17-server'
>   CC [M]  /usr/src/dahdi-linux-complete-2.4.0+2.4.0/linux/drivers/dahdi/dahdi-base.o
> /usr/src/dahdi-linux-complete-2.4.0+2.4.0/linux/drivers/dahdi/dahdi-base.c:52:28: fatal error: linux/smp_lock.h: No such file or directory
> compilation terminated.
> make[3]: *** [/usr/src/dahdi-linux-complete-2.4.0+2.4.0/linux/drivers/dahdi/dahdi-base.o] Error 1
> make[2]: *** [_module_/usr/src/dahdi-linux-complete-2.4.0+2.4.0/linux/drivers/dahdi] Error 2
> make[2]: Leaving directory `/usr/src/linux-headers-3.0.0-17-server'
> make[1]: *** [modules] Error 2
> make[1]: Leaving directory `/usr/src/dahdi-linux-complete-2.4.0+2.4.0/linux'
> make: *** [all] Error 2

You are attempting to build dahdi-linux 2.4.0. The problem that you
are describing was addressed in commit r9721 "dahdi: Experimentally
remove dependency on the Big Kernel Lock." [1] and is in 2.4.1. So I
believe you should be good to go with dahdi-linux 2.4.1.2.

[1] http://svnview.digium.com/svn/dahdi?view=revision&revision=9721

Keep in mind that the 2.4 branch isn't actively maintained so
whether or not it continues to get back ported patches as the linux
kernel interfaces change is going to be ad-hoc at best.

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