[Home]

Summary:DAHLIN-00123: Dahdi Development Tools have incorrect headers
Reporter:bestbill (bestbill)Labels:
Date Opened:2009-07-08 12:07:11Date Closed:2009-08-20 15:13:49
Priority:MajorRegression?No
Status:Closed/CompleteComponents:dahdi (the module)
Versions:2.1.0.4 Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:When Trying to build the Rhino RCB4FXO card driver (rcbfx.ko),
using CentOS 5 with the AsteriskNow Release 1.5.0-i386.
It failed with many errors and warnings.
I had to remove dahdi-linux.i386, dahdi-linux-devel.i386, dahdi-linux-kmod-base.i686, dahdi-tools.i386, kmod-dahdi-linux.i686

and download dahdi-linux-complete-2.1.0.4+2.1.0.2.tar.gz and make all && make install && make config to replace the files in /usr/include/dahdi.

The kernel.h file was trying to include 2 files that where missing:
  /usr/include/dahdi/kernel.h:39:26: error: dahdi_config.h: No such file or directory
  /usr/include/dahdi/kernel.h:99:19: error: ecdis.h: No such file or directory


****** ADDITIONAL INFORMATION ******

I am building an Asterisk server using AsteriskNow on a CentOS release 5.3 (Final).
I am having trouble making the rcbfx.ko.

I have done a Yum Update to get the latest kernel drivers and am currently configured with:

   [root@sonic dahdi]# yum list installed | grep dahdi
   asterisk14-dahdi.i386                    1.4.25.1-1_centos5            installed
   dahdi-firmware.noarch                    2.0.0-1_centos5               installed
   dahdi-firmware-oct6114-064.noarch        1.05.01-1_centos5             installed
   dahdi-firmware-oct6114-128.noarch        1.05.01-1_centos5             installed
   dahdi-firmware-tc400m.noarch             MR6.12-1_centos5              installed
   dahdi-firmware-vpmadt032.noarch          1.07-1_centos5                installed
   dahdi-linux.i386                         2.1.0.4-1_centos5             installed
   dahdi-linux-devel.i386                   2.1.0.4-1_centos5             installed
   dahdi-linux-kmod-base.i686               2.1.0.4-1_centos5.2.6.18_128.1.1.el5
   dahdi-linux-kmod-base.i686               2.1.0.4-1_centos5.2.6.18_128.1.16.el5
   dahdi-tools.i386                         2.1.0.2-2_centos5             installed
   kmod-dahdi-linux.i686                    2.1.0.4-1_centos5.2.6.18_128.1.1.el5
   kmod-dahdi-linux.i686                    2.1.0.4-1_centos5.2.6.18_128.1.16.el5

and:

   [root@sonic dahdi]# yum list installed | grep asterisk
   asterisk-sounds-core-en-ulaw.noarch      1.4.15-1_centos5              installed
   asterisk-sounds-extra-en-gsm.noarch      1.4.9-1_centos5               installed
   asterisk-sounds-moh-fpm-ulaw.noarch      0.0-3_centos5                 installed
   asterisk14.i386                          1.4.25.1-1_centos5            installed
   asterisk14-core.i386                     1.4.25.1-1_centos5            installed
   asterisk14-dahdi.i386                    1.4.25.1-1_centos5            installed
   asterisk14-doc.i386                      1.4.25.1-1_centos5            installed
   asterisk14-voicemail.i386                1.4.25.1-1_centos5            installed
   asterisknow-version.noarch               1.5.0-1_centos5               installed

When trying to compile for a R4FXO-EC, I get the following errors during make:

[root@sonic rhino-linux-0.99.1]# DAHDI_DIR="/usr" make
make -C /lib/modules/2.6.18-128.1.16.el5/build ARCH=i386 SUBDIRS=/root/rhino-linux-0.99.1/drivers/rhino RHINO_INCLUDE=/root/rhino-linux-0.99.1/include DAHDI_INCLUDE=/usr/include DAHDI_SRC=/usr/drivers/dahdi modules

make[1]: Entering directory `/usr/src/kernels/2.6.18-128.1.16.el5-i686'
CC [M]  /root/rhino-linux-0.99.1/drivers/rhino/rcbfx/rcbfx_base.o
In file included from /root/rhino-linux-0.99.1/drivers/rhino/rcbfx/rcbfx.h:72,
                    from /root/rhino-linux-0.99.1/drivers/rhino/rcbfx/rcbfx_base.c:75:
/usr/include/dahdi/kernel.h:39:26: error: dahdi_config.h: No such file or directory
/usr/include/dahdi/kernel.h:99:19: error: ecdis.h: No such file or directory
In file included from /root/rhino-linux-0.99.1/drivers/rhino/rcbfx/rcbfx.h:72,
                    from /root/rhino-linux-0.99.1/drivers/rhino/rcbfx/rcbfx_base.c:75:
/usr/include/dahdi/kernel.h:283: error: expected specifier-qualifier-list before âecho_can_disable_detector_state_tâ
make[3]: *** [/root/rhino-linux-0.99.1/drivers/rhino/rcbfx/rcbfx_base.o] Error 1
make[2]: *** [/root/rhino-linux-0.99.1/drivers/rhino/rcbfx] Error 2
make[1]: *** [_module_/root/rhino-linux-0.99.1/drivers/rhino] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.18-128.1.16.el5-i686'
make: *** [modules] Error 2

I do not have dahdi_config.h or ecdis.h anywhere on my system.
Comments:By: Shaun Ruffell (sruffell) 2009-07-08 12:50:55

dahdi_config.h is moved the the /usr/include/dahdi folder in later versions, but those files are in the linux/drivers/dahdi folder for that version.  You should be able to copy them into your drivers/rhino directory if you can't update the the latest version of DAHDI.

By: James Finstrom (jfinstrom) 2009-07-08 13:19:11

I posted a quick note to Qwell in IRC. I am not sure this is with dahdi but with the -revel package in AsteriskNOW. Our robot builds fine but it is source based so in source it should be all good. on a packaged system it is up to the .h files included by the packager... I think Qwell is reviewing this in his spec file

By: Shaun Ruffell (sruffell) 2009-07-08 13:27:43

Ok...it also looks like there is a problem if trying to build dahdi drivers out of the dahdi tree with 2.1.0.4.

By: Jason Parker (jparker) 2009-08-20 15:13:49

This would have been fixed with the release of 2.2.0.2 packages.