Hi,
I’m trying to install Asterisk from source, but I cannot get the Zaptel driver module to compile on my dual Xeon server.
I appears it is wanting the source code for the SMP kernel which is not in the Debian repository.
Can anyone help me?
Cheers,
Rob.
Hi,
Done some digging, and I have arrived at the conclusion that I have to re-compile my kernel, having set it up for SMP with Menuconfig. Once I do that then I will have my SMP kernel source for this. Does this sound like a logical way forward?
Cheers,
Rob.
What does uname -r show ?
I have never had a problem with the smp kernel for debian and zaptel
Hi,
The command uname -r brings up 2.6.8-3-686-smp.
Any ideas why it does not compile?
Regards,
Robert
might be helpful to post more than ‘it doesn’t compile’.
Hi,
Output reproduced below.
Sorry about that.
Rob.
LNGBLYNC0001:/usr/src/zaptel-1.2.8# make install
cc -I. -Iinclude -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA -DZAPTE L_CONFIG="/etc/zaptel.conf" -DHOTPLUG_FIRMWARE -c -o gendigits.o gendigits.c
cc -o gendigits gendigits.o -lm
./gendigits > tones.h
cc -I. -Iinclude -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA -DZAPTE L_CONFIG="/etc/zaptel.conf" -DHOTPLUG_FIRMWARE makefw.c -o makefw
./makefw tormenta2.rbt tor2fw > tor2fw.h
Loaded 69900 bytes from file
./makefw pciradio.rbt radfw > radfw.h
Loaded 42096 bytes from file
ZAPTELVERSION=“1.2.8” build_tools/make_version_h > version.h.tmp
if cmp -s version.h.tmp version.h ; then echo; else
mv version.h.tmp version.h ;
fi
rm -f version.h.tmp
cc -I. -Iinclude -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA -DZAPTE L_CONFIG="/etc/zaptel.conf" -DHOTPLUG_FIRMWARE -c -o ztcfg.o ztcfg.c
cc -c -fPIC -I. -Iinclude -O4 -g -Wall -DBUILDING_TONEZONE -DBUILDING_TONEZONE -o zonedata.lo zonedata.c
cc -c -fPIC -I. -Iinclude -O4 -g -Wall -DBUILDING_TONEZONE -DBUILDING_TONEZONE -o tonezone.lo tonezone.c
ar rcs libtonezone.a zonedata.lo tonezone.lo
cc -o ztcfg ztcfg.o libtonezone.a -lm
cc -I. -Iinclude -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA -DZAPTEL_CONFIG="/etc/zaptel.conf" -DHOTPLUG_FIRMWARE -c -o torisatool.o torisatool.c
cc -o torisatool torisatool.o
cc -I. -Iinclude -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA -DZAPTEL_CONFIG="/etc/zaptel.conf" -DHOTPLUG_FIRMWARE -c -o ztmonitor.o ztmonitor.c
cc -o ztmonitor ztmonitor.o
cc -o ztspeed.o -c ztspeed.c
cc -o ztspeed ztspeed.o
cc -I. -Iinclude -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA -DZAPTEL_CONFIG="/etc/zaptel.conf" -DHOTPLUG_FIRMWARE zttest.c -o zttest
cc -I. -Iinclude -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA -DZAPTEL_CONFIG="/etc/zaptel.conf" -DHOTPLUG_FIRMWARE -c -o fxotune.o fxotune.c
cc -o fxotune fxotune.o -lm
/lib/modules/2.6.8-3-686-smp/build
make -C /lib/modules/2.6.8-3-686-smp/build SUBDIRS=/usr/src/zaptel-1.2.8 modules
/usr/src/kernel-headers-2.6.8-3-686-smp/scripts/gcc-version.sh: /usr/src/kernel-headers-2.6.8-3-686-smp/scripts/gcc-version.sh: No such file or directory
make[1]: Entering directory /usr/src/kernel-headers-2.6.8-3-686-smp' make[2]: scripts/Makefile.build: No such file or directory make[2]: *** No rule to make target
scripts/Makefile.build’. Stop.
make[1]: *** [module/usr/src/zaptel-1.2.8] Error 2
make[1]: Leaving directory `/usr/src/kernel-headers-2.6.8-3-686-smp’
make: *** [linux26] Error 2
LNGBLYNC0001:/usr/src/zaptel-1.2.8#
you sure you have the kernel development stuff installed?
what does ‘rpm -qav | grep kernel’
show you?
Hi,
That does not work in Debian. I have got my kernel headers in /usr/src, and in /usr/src/linux (just to be sure) and it still does not like it.
LNGBLYNC0001:/usr/src# ls
asterisk-1.2.11 kernel-headers-2.6.8-2 libpri-1.2.3 zaptel-1.2.8.tar.gz
asterisk-1.2.11.tar.gz kernel-headers-2.6.8-2-686-smp libpri-1.2.3.tar.gz
asterisk-addons-1.2.4.tar.gz kernel-headers-2.6.8-3 linux
asterisk-sounds-1.2.1.tar.gz kernel-headers-2.6.8-3-686-smp zaptel-1.2.8
LNGBLYNC0001:/usr/src#
I am really confused. What version of gcc should I be using?
Rob.
Hi,
Got it to compile; I had not installed the kernel-kbuild-2.6-3 package.
Got everything working now, or rather compiled and running. Now start the game of configuring.
Thanks to those that responded.
Rob.