Error on Compiling Zaptel

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Error on Compiling Zaptel

Postby ruben23 » Wed Jan 14, 2009 1:02 pm

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
ruben23
 
Posts: 1161
Joined: Thu Jul 31, 2008 10:35 am
Location: Davao City, Philippines

Postby mflorell » Wed Jan 14, 2009 1:28 pm

What Linux kernel version?
mflorell
Site Admin
 
Posts: 18406
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby ruben23 » Wed Jan 14, 2009 1:29 pm

im using centos 5 with linux kernel version 2.6.18-53.el5
ruben23
 
Posts: 1161
Joined: Thu Jul 31, 2008 10:35 am
Location: Davao City, Philippines

Postby ruben23 » Wed Jan 14, 2009 1:46 pm

what possible step i could make to correct this error...?
ruben23
 
Posts: 1161
Joined: Thu Jul 31, 2008 10:35 am
Location: Davao City, Philippines

Postby mflorell » Wed Jan 14, 2009 2:33 pm

I'm not a CentOS expert(and i don't really like it either), but looks like you need to install Kernel sources.
mflorell
Site Admin
 
Posts: 18406
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby gardo » Wed Jan 14, 2009 2:52 pm

You need to have the development packages installed. This includes the following:

autoconf
automake
gcc
make
kernel-devel
glibc-devel

Try reinstalling CentOS and customize your installation by choosing the development packages. You can also install them via yum if you don't want to reinstall.
http://goautodial.com
Empowering the next generation contact centers
gardo
 
Posts: 1926
Joined: Fri Sep 15, 2006 10:24 am
Location: Manila, 1004

Postby ruben23 » Thu Jan 15, 2009 5:12 am

all develop packages are installed then in zaptel directory i make clean then after make this is the output- i guess its still the same error:

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


And if i may ask would it be ok if i go for 1.4 version for asterisk,zaptel,libbpri but my problem is how about the patching procedure on 1.2 version is it still applicable on 1.4 version...this is the procedure i see for patching for 1.2 ver.

cd ../asterisk-1.2.17
cd apps
wget http://www.eflo.net/files/meetme_volume ... 2.16.patch
patch -p1 < ./meetme_volume_control_1.2.16.patch
- File to patch: app_meetme.c
cd ../
wget http://www.eflo.net/files/cli_chan_conc ... iter.patch
patch -p1 < ./cli_chan_concise_delimiter.patch
- File to patch: cli.c
make clean
make
make install
make samples
ruben23
 
Posts: 1161
Joined: Thu Jul 31, 2008 10:35 am
Location: Davao City, Philippines

Postby ruben23 » Thu Jan 15, 2009 8:30 am

anyone help im stock on zaptel compile... :(
ruben23
 
Posts: 1161
Joined: Thu Jul 31, 2008 10:35 am
Location: Davao City, Philippines

zaptel

Postby arvindsandilya24 » Thu Jan 15, 2009 9:12 am

First of all download and install 'autoconf' on centos.
After that reboot the system and then again compile the zaptel .
I have faced this type of problem when compiling zaptel.

Thanks & regards
Arvind
arvindsandilya24
 
Posts: 192
Joined: Sun Oct 12, 2008 4:33 am

Postby gardo » Thu Jan 15, 2009 11:09 am

try upgrading your zaptel sources to 1.2.27. previous versions have issues with centos 5.2.

ruben23 wrote:all develop packages are installed then in zaptel directory i make clean then after make this is the output- i guess its still the same error:

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


And if i may ask would it be ok if i go for 1.4 version for asterisk,zaptel,libbpri but my problem is how about the patching procedure on 1.2 version is it still applicable on 1.4 version...this is the procedure i see for patching for 1.2 ver.

cd ../asterisk-1.2.17
cd apps
wget http://www.eflo.net/files/meetme_volume ... 2.16.patch
patch -p1 < ./meetme_volume_control_1.2.16.patch
- File to patch: app_meetme.c
cd ../
wget http://www.eflo.net/files/cli_chan_conc ... iter.patch
patch -p1 < ./cli_chan_concise_delimiter.patch
- File to patch: cli.c
make clean
make
make install
make samples
http://goautodial.com
Empowering the next generation contact centers
gardo
 
Posts: 1926
Joined: Fri Sep 15, 2006 10:24 am
Location: Manila, 1004

Postby ruben23 » Thu Jan 15, 2009 2:51 pm

hi this solve my problem able to compile it with no error....upgrading my zaptel-1.2.16 with zaptel -1.2.27

thanks gardo...for the guidance...
ruben23
 
Posts: 1161
Joined: Thu Jul 31, 2008 10:35 am
Location: Davao City, Philippines


Return to Support

Who is online

Users browsing this forum: Google [Bot] and 54 guests