# Zaptel compile error

**URL:** <https://community.asterisk.org/t/zaptel-compile-error/24979>\
**Category:** Asterisk Support\
**Created:** [January 14, 2009, 6:08pm UTC](https://community.asterisk.org/t/zaptel-compile-error/24979 "2009-01-14T18:08:28Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![ruben23](https://avatars.discourse-cdn.com/v4/letter/r/ccd318/32.png) [@ruben23](https://community.asterisk.org/u/ruben23)\
**Post date:** [January 14, 2009, 6:08pm UTC](https://community.asterisk.org/t/zaptel-compile-error/24979/1 "2009-01-14T18:08:28Z")

</div>

hi when i try to compile zaptel-1.2.16 got this error…

/sys/devices/platform/uevent  
/sys/fs  
find: autoconf.h: No such file or directory  
[root@vici3trglobal zaptel-1.2.16]# make clean  
grep: /lib/modules/2.6.18-53.el5/build/include/linux/autoconf.h: No such file or directory  
rm -f torisatool makefw tor2fw.h radfw.h  
rm -f ztcfg torisatool makefw ztmonitor ztspeed zttest fxotune zttool  
rm -f patgen pattest patlooptest hdlcstress hdlctest hdlcgen hdlcverify timertest  
rm -f \*.o ztcfg tzdriver sethdlc sethdlc-new  
rm -f zonedata.lo tonezone.lo [libtonezone.so](http://libtonezone.so) \*.lo  
make -C /lib/modules/2.6.18-53.el5/build SUBDIRS=/usr/src/asterisk/zaptel-1.2.16 clean  
make: \*\*\* /lib/modules/2.6.18-53.el5/build: No such file or directory. Stop.  
make: \*\*\* [clean] Error 2

---

<div class="post-metadata">

**Author:** ![ruben23](https://avatars.discourse-cdn.com/v4/letter/r/ccd318/32.png) [@ruben23](https://community.asterisk.org/u/ruben23)\
**Post date:** [January 14, 2009, 6:29pm UTC](https://community.asterisk.org/t/zaptel-compile-error/24979/2 "2009-01-14T18:29:19Z")

</div>

hi anyone can help and have idea…

---

<div class="post-metadata">

**Author:** ![james.zhu](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/james.zhu/32/1862_2.png) [@james.zhu](https://community.asterisk.org/u/james.zhu)\
**Post date:** [January 15, 2009, 6:31am UTC](https://community.asterisk.org/t/zaptel-compile-error/24979/3 "2009-01-15T06:31:15Z")

</div>

hello,  
there is no such file under that dir, you have to install that, you run:  
locate file name to get the file and copy that into that dir.  
regards!  
James.zhu

---

<div class="post-metadata">

**Author:** ![sander4000](https://avatars.discourse-cdn.com/v4/letter/s/85f322/32.png) [@sander4000](https://community.asterisk.org/u/sander4000)\
**Post date:** [January 15, 2009, 8:53am UTC](https://community.asterisk.org/t/zaptel-compile-error/24979/4 "2009-01-15T08:53:44Z")

</div>

make sure that you have your kernel headers installed or source files, it seems you did not install them on your system. don’t know what distro you are using ? debian redhat centos??

---

<div class="post-metadata">

**Author:** ![ruben23](https://avatars.discourse-cdn.com/v4/letter/r/ccd318/32.png) [@ruben23](https://community.asterisk.org/u/ruben23)\
**Post date:** [January 15, 2009, 9:51am UTC](https://community.asterisk.org/t/zaptel-compile-error/24979/5 "2009-01-15T09:51:53Z")

</div>

hi im suing centos distro…how am i going to copy the file needed…

---

<div class="post-metadata">

**Author:** ![sander4000](https://avatars.discourse-cdn.com/v4/letter/s/85f322/32.png) [@sander4000](https://community.asterisk.org/u/sander4000)\
**Post date:** [January 15, 2009, 9:55am UTC](https://community.asterisk.org/t/zaptel-compile-error/24979/6 "2009-01-15T09:55:00Z")

</div>

yum install kernel-devel  
this should do the trick

---

<div class="post-metadata">

**Author:** ![ruben23](https://avatars.discourse-cdn.com/v4/letter/r/ccd318/32.png) [@ruben23](https://community.asterisk.org/u/ruben23)\
**Post date:** [January 15, 2009, 10:12am UTC](https://community.asterisk.org/t/zaptel-compile-error/24979/7 "2009-01-15T10:12:12Z")

</div>

hi i already install all the development packages of centos including the kernel headers…  
Problem is i got this error when i make on zaptel directory…

man.o  
LD [M] /usr/src/asterisk/zaptel-1.2.16/wct4xxp/wct4xxp.o  
CC [M] /usr/src/asterisk/zaptel-1.2.16/wctc4xxp/base.o  
LD [M] /usr/src/asterisk/zaptel-1.2.16/wctc4xxp/wctc4xxp.o  
Compile xpp (version trunk-r3495)  
CC [M] /usr/src/asterisk/zaptel-1.2.16/xpp/card\_fxo.o  
In file included from /usr/src/asterisk/zaptel-1.2.16/xpp/xpd.h:26,  
from /usr/src/asterisk/zaptel-1.2.16/xpp/card\_fxo.c:27:  
/usr/src/asterisk/zaptel-1.2.16/xpp/xdefs.h:105: 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.16/xpp/card\_fxo.o] Error 1  
make[2]: \*\*\* [/usr/src/asterisk/zaptel-1.2.16/xpp] Error 2  
make[1]: \*\*\* [_module_/usr/src/asterisk/zaptel-1.2.16] Error 2  
make[1]: Leaving directory `/usr/src/kernels/2.6.18-92.1.22.el5-i686’  
make: \*\*\* [all] Error 2

what am i going to do…

---

<div class="post-metadata">

**Author:** ![ruben23](https://avatars.discourse-cdn.com/v4/letter/r/ccd318/32.png) [@ruben23](https://community.asterisk.org/u/ruben23)\
**Post date:** [January 15, 2009, 10:13am UTC](https://community.asterisk.org/t/zaptel-compile-error/24979/8 "2009-01-15T10:13:05Z")

</div>

i guess this is the same error i got when compiling zaptel…1.2

---

<div class="post-metadata">

**Author:** ![ruben23](https://avatars.discourse-cdn.com/v4/letter/r/ccd318/32.png) [@ruben23](https://community.asterisk.org/u/ruben23)\
**Post date:** [January 15, 2009, 1:27pm UTC](https://community.asterisk.org/t/zaptel-compile-error/24979/9 "2009-01-15T13:27:08Z")

</div>

help please…im stock on zaptel compile ☹

---

<div class="post-metadata">

**Author:** ![bwilks](https://avatars.discourse-cdn.com/v4/letter/b/e274bd/32.png) [@bwilks](https://community.asterisk.org/u/bwilks)\
**Post date:** [January 16, 2009, 12:20pm UTC](https://community.asterisk.org/t/zaptel-compile-error/24979/10 "2009-01-16T12:20:51Z")

</div>

Hi,

Post back here the output from this;

ls /usr/src/

---

<div class="post-metadata">

**Author:** ![david55](https://avatars.discourse-cdn.com/v4/letter/d/e19adc/32.png) [@david55](https://community.asterisk.org/u/david55)\
**Post date:** [January 16, 2009, 1:08pm UTC](https://community.asterisk.org/t/zaptel-compile-error/24979/11 "2009-01-16T13:08:44Z")

</div>

kernel-devel is not the same as the kernel headers. Traditionally on Linux, if you wanted to build anything kernel related, you would install the full kernel sources. Recently, at least with RedHat, you only install a stripped down version of the kernel source directory, after the kernel has been built.
