I know that this subject has been treated in the past! As a matter of fact reading some old messages about compiling zaptel I made a couple of tests after the first compiling failure to understand why I can't compile on a specific machine, but I do not know how to handle the results. The machine has SUSE 9.3, and an updated kernel (2.6.11.4-21.7-default; as shown below). YAST (the graphical updater/installer/ect) tells me I have an installed kernel version 2.6.11.4-21.7-i586. It tells me furthermore that the kernel sources are in sync with the compiled kernel. Now I tried to compile zaptel both with the simple 'make' as well as with the make linux26. I get errors in the two cases. Simple make: aaberga@epsilon-hq:~/asterisk sources/zaptel-1.0.9> uname -r 2.6.11.4-21.7-default aaberga@epsilon-hq:~/asterisk sources/zaptel-1.0.9> make clean rm -f torisatool makefw tor2fw.h rm -f zttool rm -f *.o ztcfg tzdriver sethdlc sethdlc-new rm -f zonedata.lo tonezone.lo libtonezone.so.1.0 *.lo rm -f *.ko *.mod.c .*o.cmd rm -f gendigits tones.h rm -f libtonezone* rm -f tor2ee rm -f core aaberga@epsilon-hq:~/asterisk sources/zaptel-1.0.9> make cc -I. -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA - DZAPTEL_CONFIG=\"/etc/zaptel.conf\" -c -o gendigits.o gendigits.c cc -o gendigits gendigits.o -lm ./gendigits cc -I. -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA - DZAPTEL_CONFIG=\"/etc/zaptel.conf\" makefw.c -o makefw ./makefw tormenta2.rbt tor2fw > tor2fw.h Loaded 69900 bytes from file cc -I. -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA - DZAPTEL_CONFIG=\"/etc/zaptel.conf\" -c -o ztcfg.o ztcfg.c cc -c -fPIC -I. -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA - DZAPTEL_CONFIG=\"/etc/zaptel.conf\" -DBUILDING_TONEZONE -o zonedata.lo zonedata.c cc -c -fPIC -I. -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA - DZAPTEL_CONFIG=\"/etc/zaptel.conf\" -DBUILDING_TONEZONE -o tonezone.lo tonezone.c ar rcs libtonezone.a zonedata.lo tonezone.lo cc -o ztcfg ztcfg.o -lm -L. libtonezone.a cc -I. -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA - DZAPTEL_CONFIG=\"/etc/zaptel.conf\" -c -o torisatool.o torisatool.c cc -o torisatool torisatool.o cc -I. -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA - DZAPTEL_CONFIG=\"/etc/zaptel.conf\" -c -o ztmonitor.o ztmonitor.c cc -o ztmonitor ztmonitor.o cc -c ztspeed.c cc -o ztspeed ztspeed.o make -C /lib/modules/`uname -r`/build SUBDIRS=/home/aaberga/asterisk sources/zaptel-1.0.9 modules make[1]: Entering directory `/usr/src/linux-2.6.11.4-21.7-obj/i386/default' make -C ../../../linux-2.6.11.4-21.7 O=../linux-2.6.11.4-21.7-obj/i386/ default sources/zaptel-1.0.9 make[3]: *** No rule to make target `sources/zaptel-1.0.9'. Stop. make[2]: *** [sources/zaptel-1.0.9] Error 2 make[1]: *** [sources/zaptel-1.0.9] Error 2 make[1]: Leaving directory `/usr/src/linux-2.6.11.4-21.7-obj/i386/default' make: *** [linux26] Error 2 aaberga@epsilon-hq:~/asterisk sources/zaptel-1.0.9> make linux26: aaberga@epsilon-hq:~/asterisk sources/zaptel-1.0.9> uname -r 2.6.11.4-21.7-default aaberga@epsilon-hq:~/asterisk sources/zaptel-1.0.9> make clean rm -f torisatool makefw tor2fw.h rm -f zttool rm -f *.o ztcfg tzdriver sethdlc sethdlc-new rm -f zonedata.lo tonezone.lo libtonezone.so.1.0 *.lo rm -f *.ko *.mod.c .*o.cmd rm -f gendigits tones.h rm -f libtonezone* rm -f tor2ee rm -f core aaberga@epsilon-hq:~/asterisk sources/zaptel-1.0.9> make linux26 cc -I. -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA - DZAPTEL_CONFIG=\"/etc/zaptel.conf\" -c -o gendigits.o gendigits.c cc -o gendigits gendigits.o -lm ./gendigits cc -I. -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA - DZAPTEL_CONFIG=\"/etc/zaptel.conf\" makefw.c -o makefw ./makefw tormenta2.rbt tor2fw > tor2fw.h Loaded 69900 bytes from file cc -I. -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA - DZAPTEL_CONFIG=\"/etc/zaptel.conf\" -c -o ztcfg.o ztcfg.c cc -c -fPIC -I. -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA - DZAPTEL_CONFIG=\"/etc/zaptel.conf\" -DBUILDING_TONEZONE -o zonedata.lo zonedata.c cc -c -fPIC -I. -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA - DZAPTEL_CONFIG=\"/etc/zaptel.conf\" -DBUILDING_TONEZONE -o tonezone.lo tonezone.c ar rcs libtonezone.a zonedata.lo tonezone.lo cc -o ztcfg ztcfg.o -lm -L. libtonezone.a cc -I. -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA - DZAPTEL_CONFIG=\"/etc/zaptel.conf\" -c -o torisatool.o torisatool.c cc -o torisatool torisatool.o cc -I. -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA - DZAPTEL_CONFIG=\"/etc/zaptel.conf\" -c -o ztmonitor.o ztmonitor.c cc -o ztmonitor ztmonitor.o cc -c ztspeed.c cc -o ztspeed ztspeed.o make -C /lib/modules/`uname -r`/build SUBDIRS=/home/aaberga/asterisk sources/zaptel-1.0.9 modules make[1]: Entering directory `/usr/src/linux-2.6.11.4-21.7-obj/i386/default' make -C ../../../linux-2.6.11.4-21.7 O=../linux-2.6.11.4-21.7-obj/i386/ default sources/zaptel-1.0.9 make[3]: *** No rule to make target `sources/zaptel-1.0.9'. Stop. make[2]: *** [sources/zaptel-1.0.9] Error 2 make[1]: *** [sources/zaptel-1.0.9] Error 2 make[1]: Leaving directory `/usr/src/linux-2.6.11.4-21.7-obj/i386/default' make: *** [linux26] Error 2 aaberga@epsilon-hq:~/asterisk sources/zaptel-1.0.9> The error is the same, afaik. What I can't understand is why the make is entering in the directory '/ usr/src/linux-2.6.11.4-21.7-obj/i386/default'; I am by far not expert, but I would expect it to go fiddle with a '586' directory. Anyways I can not go further than this step; so I am asking for help. Thanks and best regards Aldo
Aldo Bergamini wrote:> >The error is the same, afaik. > >What I can't understand is why the make is entering in the directory '/ >usr/src/linux-2.6.11.4-21.7-obj/i386/default'; I am by far not expert, >but I would expect it to go fiddle with a '586' directory. > > > >Just a guess, your simlink is pointing to the incorrect linux source directory. Go into /usr/src/linux and do a ls -l, see where the linux simlink is pointing to. If it's incorrect, then do a rm linux and delete it. Recreate with a ln -s /usr/src/yourlinuxversionhere Doug
Aldo Bergamini wrote:> What I can't understand is why the make is entering in the directory '/ > usr/src/linux-2.6.11.4-21.7-obj/i386/default'; I am by far not expert, > but I would expect it to go fiddle with a '586' directory.I build on SUSE 9.3 all the time, it's my favorite distro :-) Be sure you have read README.SuSE in the kernel sources directory; it outlines the steps you must take to prepare the kernel sources for building external modules. Hint: you have to do more than just install the kernel-sources package.