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

bilal ghayyad bilmar_gh at yahoo.com
Sat Apr 14 15:36:02 CDT 2012


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. 

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


Regards
Bilal



More information about the asterisk-users mailing list