I am using Centos 5.4, with kernel 2.6.18-308.1.1.el5.i386 & by yum update, kernel update to 2.6.18-348.1.1.el5PAE.
When i try to install dahdi by rpm, i got error at ‘make all’ command.
Output in terminal is as follows
make -C linux all
make[1]: Entering directory /usr/src/asterisk/dahdi-linux-complete-2.2.1.1+2.2.1.1/linux' make -C drivers/dahdi/firmware firmware-loaders make[2]: Entering directory
/usr/src/asterisk/dahdi-linux-complete-2.2.1.1+2.2.1.1/linux/drivers/dahdi/firmware’
make[2]: Leaving directory /usr/src/asterisk/dahdi-linux-complete-2.2.1.1+2.2.1.1/linux/drivers/dahdi/firmware' make -C /lib/modules/2.6.18-348.1.1.el5PAE/build SUBDIRS=/usr/src/asterisk/dahdi-linux-complete-2.2.1.1+2.2.1.1/linux/drivers/dahdi DAHDI_INCLUDE=/usr/src/asterisk/dahdi-linux-complete-2.2.1.1+2.2.1.1/linux/include DAHDI_MODULES_EXTRA=" " HOTPLUG_FIRMWARE=yes modules DAHDI_BUILD_ALL=m make[2]: Entering directory
/usr/src/kernels/2.6.18-348.1.1.el5-PAE-i686’
CC [M] /usr/src/asterisk/dahdi-linux-complete-2.2.1.1+2.2.1.1/linux/drivers/dahdi/xpp/card_bri.o
In file included from /usr/src/asterisk/dahdi-linux-complete-2.2.1.1+2.2.1.1/linux/drivers/dahdi/xpp/xpd.h:26,
from /usr/src/asterisk/dahdi-linux-complete-2.2.1.1+2.2.1.1/linux/drivers/dahdi/xpp/card_bri.c:29:
/usr/src/asterisk/dahdi-linux-complete-2.2.1.1+2.2.1.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/asterisk/dahdi-linux-complete-2.2.1.1+2.2.1.1/linux/drivers/dahdi/xpp/card_bri.o] Error 1
make[3]: *** [/usr/src/asterisk/dahdi-linux-complete-2.2.1.1+2.2.1.1/linux/drivers/dahdi/xpp] Error 2
make[2]: *** [module /usr/src/asterisk/dahdi-linux-complete-2.2.1.1+2.2.1.1/linux/drivers/dahdi] Error 2
make[2]: Leaving directory /usr/src/kernels/2.6.18-348.1.1.el5-PAE-i686' make[1]: *** [modules] Error 2 make[1]: Leaving directory
/usr/src/asterisk/dahdi-linux-complete-2.2.1.1+2.2.1.1/linux’
make: *** [all] Error 2
When i try to find out answer from google i found links
https://issues.asterisk.org/jira/browse/DAHLIN-312?page=com.atlassian.jira.plugin.system.issuetabpanels:changehistory-tabpanel
https://issues.asterisk.org/jira/browse/ANOW-170
both links shows same problem, but i cant get it all.
In simple language how i solve this & install asterisk local disk?
In previous kernel i run asterisk from DRBD-heartbeat’s distributed disk. can i do this with latest kernel?
david55
February 13, 2013, 8:03am
2
Preferred approach:
Type “man patch”. Read and apply. and apply the gained kmowledge.
Fallback approach.
Download the second attachment to the first issue. Change directory to drivers/dahdi/xpp. Type “patch < name-of-downloaded-patch-file”. Start the build again.