Zaptel error: previous declaration of âboolâ was here

Im trying to install zaptel-1.2.22 but im experiencing an error. im using centos 5.2 with kernel 2.6.18-92.1.6.el5

Below is the error that i experienced.

In file included from /usr/src/asterisk/zaptel-1.2.22/xpp/xpd.h:26,
from /usr/src/asterisk/zaptel-1.2.22/xpp/card_fxo.c:27:
/usr/src/asterisk/zaptel-1.2.22/xpp/xdefs.h:106: error: conflicting types for âboolâ
include/linux/types.h:36: error: previous declaration of âboolâ was here
make[3]: *** [/usr/src/asterisk/zaptel-1.2.22/xpp/card_fxo.o] Error 1
make[2]: *** [/usr/src/asterisk/zaptel-1.2.22/xpp] Error 2
make[1]: *** [module/usr/src/asterisk/zaptel-1.2.22] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.18-92.1.6.el5-i686’
make: *** [modules] Error 2

Thanks,

Jojo

I’m having the same issue with zaptel-1.4.11 and CentOS 5.1 - kernel version 2.6.18-92.1.6.el5.centos.plusPAE.

sorry - hit submit twice

same problem on CentOS 5.2; kernel 2.6.18-92.1.6.el5; with zaptel zaptel-1.4.11…

And after some research… you can simply fix by applying the following diff file:

bugs.digium.com/file_download.ph … 0&type=bug

Thanks to the Digium team for the bugfix post !

thanks much

after upgrading to centos 5.2 (don’t know why I did it PBX was working fine) now I have this message when I try to run make

CC [M] /usr/src/zaptel-1.4.11/kernel/xpp/card_fxo.o
In file included from /usr/src/zaptel-1.4.11/kernel/xpp/xpd.h:26,
from /usr/src/zaptel-1.4.11/kernel/xpp/card_fxo.c:27:
/usr/src/zaptel-1.4.11/kernel/xpp/xdefs.h:117: error: conflicting types for âboolâ
include/linux/types.h:36: error: previous declaration of âboolâ was here
make[4]: *** [/usr/src/zaptel-1.4.11/kernel/xpp/card_fxo.o] Error 1
make[3]: *** [/usr/src/zaptel-1.4.11/kernel/xpp] Error 2
make[2]: *** [module/usr/src/zaptel-1.4.11/kernel] Error 2
make[2]: Leaving directory /usr/src/kernels/2.6.18-92.1.6.el5-i686' make[1]: *** [modules] Error 2 make[1]: Leaving directory/usr/src/zaptel-1.4.11’
make: *** [all] Error 2

Now I know there is a patch just don’t know how to apply it

patch -p0 <

Can someone help me please.

Thanks in advance.

how can i apply the diff file???

  1. Open the URL copy the text in zaptel source directory ( example : /usr/src/asterisk/zaptel-1.4.11 )

i.e. copy all the data from bugs.digium.com/file_download.ph … 0&type=bug and place it in zaptel.patch thru vi editor

  1. Apply the patch using following command you are done.

patch -p1 < zaptel.patch

it will prompt for which file to patch then u type : kernel/xpp/xdefs.h
and enter

Ok, perfect, thanks

modify
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19)
to
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18)
in
/usr/src/zaptel/kernel/xpp/xdefs.h
/usr/src/zaptel/kernel/xpp/xbus-core.c
/usr/src/zaptel/kernel/xpp/xpp_usb.c