error: conflicting types for 'bool' when compiling DAHDI after CentOS upgrade

« Go Back

Q: I upgraded my Asterisk server from one CentOS 5.x version to another (e.g., CentOS 5.8 to 5.9). I'm attempting to compile DAHDI-Linux-Complete 2.6.1+2.6.1 (or DAHDI-Linux 2.6.1) from source code. I'm getting the following error:

In file included from /usr/src/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/xpp/xpd.h:26,
                 from /usr/src/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/xpp/card_bri.c:29:
/usr/src/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/xpp/xdefs.h:152: error: conflicting types for 'bool'
include/linux/types.h:36: error: previous declaration of 'bool' was here
make[4]: *** [/usr/src/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/xpp/card_bri.o] Error 1
make[3]: *** [/usr/src/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/xpp] Error 2
make[2]: *** [_module_/usr/src/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi] Error 2
make[2]: Leaving directory `/usr/src/kernels/2.6.18-348.el5-i686'
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/src/dahdi-linux-complete-2.6.1+2.6.1/linux'
make: *** [all] Error 2


A: This is a known issue (DAHLIN-312) for DAHDI-Linux 2.6.1.

This is corrected in DAHDI-Linux 2.6.2-rc1 (release candidate). Until DAHDI-Linux 2.6.2 is released -- and is incorporated into a new version of DAHDI-Linux-Complete -- the workaround is to use DAHDI-Linux 2.6.2-rc1 with DAHDI-Tools 2.6.1.

You can compile and install DAHDI-Linux 2.6.2-rc1 and DAHDI-Tools 2.6.1 separately with commands like the following, which are similar to (and derived from) the DAHDI installation steps in the Asterisk / DAHDI / Libpri Quick Start Installation guide:

~ # cd /usr/src
/usr/src # wget
/usr/src # tar -xzf dahdi-linux-2.6.2-rc1.tar.gz
/usr/src # cd dahdi-linux-2.6.2-rc1
/usr/src/dahdi-linux-2.6.2-rc1 # make
/usr/src/dahdi-linux-2.6.2-rc1 # make install
/usr/src/dahdi-linux-2.6.2-rc1 # cd ..
/usr/src # wget
/usr/src # tar -xzf dahdi-tools-2.6.1.tar.gz
/usr/src # cd dahdi-tools-2.6.1
/usr/src/dahdi-tools-2.6.1 # ./configure
/usr/src/dahdi-tools-2.6.1 # make
/usr/src/dahdi-tools-2.6.1 # make install
and optionally, to setup the system init scripts (usually for a first-time installation of DAHDI on a server):
/usr/src/dahdi-tools-2.6.1 # make config
Article Details
Asterisk; Cards

Knowledgebase Home | Product