Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I downloaded source codes of DAHDI 2.6.1 and Linux Kernel 3.8.0-29-generic.

When I typed 'sudo apt-get install linux-headers-$(uname -r)' to install linux kernel header I got the message shown below:

Reading package lists... Done

Building dependency tree

Reading state information... Done

linux-headers-3.8.0-29-generic is already the newest version.

0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.

I am facing problem when I try to compile and install DAHDI on my UBUNTU Server. It displays me the messages displayed below:

/home/asteriskpbx/src/asterisk-complete/dahdi/2.6.1+2.6.1/linux/drivers/dahdi/wctdm.c:2604:22: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'wctdm_init_one'

/home/asteriskpbx/src/asterisk-complete/dahdi/2.6.1+2.6.1/linux/drivers/dahdi/wctdm.c:289:22: warning: 'ifaces' defined but not used [-Wunused-variable]

/home/asteriskpbx/src/asterisk-complete/dahdi/2.6.1+2.6.1/linux/drivers/dahdi/wctdm.c:2592:13: warning: 'wctdm-reset_tdm' defined but not used [-Wunused-function]

And so on... At the end of compilation messages, it displays:

cc1: some warnings being treated as errors
make[3] : *** [/home/asteriskpbx/src/asterisk-complete/dahdi/2.6.1+2.6.1/linux/drivers/dahdi/wctdm.o] Error 1
make[2] : *** [_module_/home/asteriskpbx/src/asterisk-complete/dahdi/2.6.1+2.6.1/linux/drivers/dahdi] Error 2
make[2] : Leaving directory '/usr/src/linux-headers-3.8.0-29-generic'
make[1] : *** [modules] Error 2
make[1] : Leaving directory '/home/asteriskpbx/src/asterisk-complete/dahdi/2.6.1+2.6.1/linux'
make: *** [all] Error 2

I am a newbie in this regard. Kindly help me figuring the problem out, and also guide me to the solution of the problem. It's a bit urgent!

Regards,

Nazish Kanwal

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.