Zaptel compile error

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 *.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

hi anyone can help and have idea…

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

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??

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

yum install kernel-devel
this should do the trick

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…

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

help please…im stock on zaptel compile :frowning:

Hi,

Post back here the output from this;

ls /usr/src/

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.