Does anyone have the zaptel modules built for Debian 2.4.24 kernel? When I try to compile I get : ./gendigits gcc -I/include -O2 -DMODULE -D__KERNEL__ -DEXPORT_SYMTAB -Wall -I. -Wstrict-prototypes -fo mit-frame-pointer -DSTANDALONE_ZAPATA -c zaptel.c In file included from /usr/include/asm/smp.h:18, from /usr/include/linux/smp.h:17, from /usr/include/linux/sched.h:23, from /usr/include/linux/module.h:10, from zaptel.c:44: /usr/include/asm/mpspec.h:6:25: mach_mpspec.h: No such file or directory In file included from /usr/include/asm/smp.h:18, from /usr/include/linux/smp.h:17, from /usr/include/linux/sched.h:23, from /usr/include/linux/module.h:10, from zaptel.c:44: /usr/include/asm/mpspec.h:8: error: `MAX_MP_BUSSES' undeclared here (not in a function) /usr/include/asm/mpspec.h:9: error: `MAX_MP_BUSSES' undeclared here (not in a function) /usr/include/asm/mpspec.h:10: error: `MAX_MP_BUSSES' undeclared here (not in a function) /usr/include/asm/mpspec.h:12: error: `MAX_MP_BUSSES' undeclared here (not in a function) /usr/include/asm/mpspec.h:19: error: `MAX_APICS' undeclared here (not in a function) /usr/include/asm/mpspec.h:20: error: `MAX_MP_BUSSES' undeclared here (not in a function) /usr/include/asm/mpspec.h:20: error: conflicting types for `mp_bus_id_to_type' /usr/include/asm/mpspec.h:8: error: previous declaration of `mp_bus_id_to_type' /usr/include/asm/mpspec.h:22: error: `MAX_IRQ_SOURCES' undeclared here (not in a function) /usr/include/asm/mpspec.h:24: error: `MAX_MP_BUSSES' undeclared here (not in a function) /usr/include/asm/mpspec.h:24: error: conflicting types for `mp_bus_id_to_pci_bus' /usr/include/asm/mpspec.h:12: error: previous declaration of `mp_bus_id_to_pci_bus' /usr/include/asm/mpspec.h:54: error: `MAX_APICS' undeclared here (not in a function) In file included from /usr/include/asm/smp.h:20, from /usr/include/linux/smp.h:17, from /usr/include/linux/sched.h:23, from /usr/include/linux/module.h:10, from zaptel.c:44: /usr/include/asm/io_apic.h:120: error: `MAX_IRQ_SOURCES' undeclared here (not in a functio n) /usr/include/asm/io_apic.h:120: error: conflicting types for `mp_irqs' /usr/include/asm/mpspec.h:22: error: previous declaration of `mp_irqs' make[2]: *** [zaptel.o] Error 1 make[2]: Leaving directory `/usr/src/modules/zaptel' make[1]: *** [binary-modules] Error 2 make[1]: Leaving directory `/usr/src/modules/zaptel' make: *** [kdist_image] Error 2 I'm too tired to fight with this. If someone has the modules for this kernel, can you tar them up and send them to me? Tim -->>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< >> Tim Sailer >< Coastal Internet, Inc. << >> Network and Systems Operations >< PO Box 726 << >> http://www.buoy.com >< Moriches, NY 11955 << >> tps@buoy.com >< (631) 399-2910 (888) 924-3728 << >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
do you have the kernel source installed? -----Original Message----- From: Tim Sailer [mailto:tps@buoy.com] Sent: Thursday, February 05, 2004 10:33 PM To: asterisk-users@lists.digium.com Subject: [Asterisk-Users] zaptel on Debian Does anyone have the zaptel modules built for Debian 2.4.24 kernel? When I try to compile I get : ./gendigits gcc -I/include -O2 -DMODULE -D__KERNEL__ -DEXPORT_SYMTAB -Wall -I. -Wstrict-prototypes -fo mit-frame-pointer -DSTANDALONE_ZAPATA -c zaptel.c In file included from /usr/include/asm/smp.h:18, from /usr/include/linux/smp.h:17, from /usr/include/linux/sched.h:23, from /usr/include/linux/module.h:10, from zaptel.c:44: /usr/include/asm/mpspec.h:6:25: mach_mpspec.h: No such file or directory In file included from /usr/include/asm/smp.h:18, from /usr/include/linux/smp.h:17, from /usr/include/linux/sched.h:23, from /usr/include/linux/module.h:10, from zaptel.c:44: /usr/include/asm/mpspec.h:8: error: `MAX_MP_BUSSES' undeclared here (not in a function) /usr/include/asm/mpspec.h:9: error: `MAX_MP_BUSSES' undeclared here (not in a function) /usr/include/asm/mpspec.h:10: error: `MAX_MP_BUSSES' undeclared here (not in a function) /usr/include/asm/mpspec.h:12: error: `MAX_MP_BUSSES' undeclared here (not in a function) /usr/include/asm/mpspec.h:19: error: `MAX_APICS' undeclared here (not in a function) /usr/include/asm/mpspec.h:20: error: `MAX_MP_BUSSES' undeclared here (not in a function) /usr/include/asm/mpspec.h:20: error: conflicting types for `mp_bus_id_to_type' /usr/include/asm/mpspec.h:8: error: previous declaration of `mp_bus_id_to_type' /usr/include/asm/mpspec.h:22: error: `MAX_IRQ_SOURCES' undeclared here (not in a function) /usr/include/asm/mpspec.h:24: error: `MAX_MP_BUSSES' undeclared here (not in a function) /usr/include/asm/mpspec.h:24: error: conflicting types for `mp_bus_id_to_pci_bus' /usr/include/asm/mpspec.h:12: error: previous declaration of `mp_bus_id_to_pci_bus' /usr/include/asm/mpspec.h:54: error: `MAX_APICS' undeclared here (not in a function) In file included from /usr/include/asm/smp.h:20, from /usr/include/linux/smp.h:17, from /usr/include/linux/sched.h:23, from /usr/include/linux/module.h:10, from zaptel.c:44: /usr/include/asm/io_apic.h:120: error: `MAX_IRQ_SOURCES' undeclared here (not in a functio n) /usr/include/asm/io_apic.h:120: error: conflicting types for `mp_irqs' /usr/include/asm/mpspec.h:22: error: previous declaration of `mp_irqs' make[2]: *** [zaptel.o] Error 1 make[2]: Leaving directory `/usr/src/modules/zaptel' make[1]: *** [binary-modules] Error 2 make[1]: Leaving directory `/usr/src/modules/zaptel' make: *** [kdist_image] Error 2 I'm too tired to fight with this. If someone has the modules for this kernel, can you tar them up and send them to me? Tim -->>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><< >> Tim Sailer >< Coastal Internet, Inc.<<>> Network and Systems Operations >< PO Box 726<<>> http://www.buoy.com >< Moriches, NY 11955<<>> tps@buoy.com >< (631) 399-2910 (888) 924-3728<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<_______________________________________________ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
On Thu, Feb 05, 2004 at 10:52:00PM -0500, Sean Cheesman wrote:> do you have the kernel source installed?Yup, in usr/src/linux . Tim -->>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< >> Tim Sailer >< Coastal Internet, Inc. << >> Network and Systems Operations >< PO Box 726 << >> http://www.buoy.com >< Moriches, NY 11955 << >> tps@buoy.com >< (631) 399-2910 (888) 924-3728 << >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
On Thu, 5 Feb 2004, Tim Sailer wrote:> Does anyone have the zaptel modules built for Debian 2.4.24 kernel?Someone here is running * on debian? I tried to follow every "howto" page I found, but all ended with the same problem: Mar 3 02:21:51 WARNING[16384]: chan_zap.c:673 zt_open: Unable to specify channel 1: No such device or address Mar 3 02:21:51 ERROR[16384]: chan_zap.c:5324 mkintf: Unable to open channel 1: No such device or address here = 0, tmp->channel = 1, channel = 1 Mar 3 02:21:51 ERROR[16384]: chan_zap.c:7397 setup_zap: Unable to register channel '1' Mar 3 02:21:51 WARNING[16384]: loader.c:313 ast_load_resource: chan_zap.so: load_module failed, returning -1 == Unregistered channel type 'Tor' == Unregistered channel type 'Zap' -- Unregistered channel 1 Mar 3 02:21:51 WARNING[16384]: loader.c:408 load_modules: Loading module chan_zap.so failed! Recompiled kernel to latest (?) 2.4.24 uname -a Linux mail 2.4.24 #5 SMP Tue Mar 2 17:31:13 BRT 2004 i686 GNU/Linux Howto pages I found: http://users.pandora.be/Asterisk-PBX/InstallAsterisk.htm http://www.ntgos.com/Projects/Asterisk/Debian_Howto http://www.voip-info.org/tiki-index.php?page=Linux+Debian Any clues?
On Thu, 5 Feb 2004 22:32:34 -0500, Tim Sailer <tps@buoy.com> wrote:>Does anyone have the zaptel modules built for Debian 2.4.24 kernel? > >When I try to compile I get : > >./gendigits >gcc -I/include -O2 -DMODULE -D__KERNEL__ -DEXPORT_SYMTAB -Wall -I. -Wstrict-prototypes -fo >mit-frame-pointer -DSTANDALONE_ZAPATA -c zaptel.c >In file included from /usr/include/asm/smp.h:18, > from /usr/include/linux/smp.h:17, > from /usr/include/linux/sched.h:23, > from /usr/include/linux/module.h:10, > from zaptel.c:44: >/usr/include/asm/mpspec.h:6:25: mach_mpspec.h: No such file or directory >In file included from /usr/include/asm/smp.h:18, > from /usr/include/linux/smp.h:17, > from /usr/include/linux/sched.h:23, > from /usr/include/linux/module.h:10, > from zaptel.c:44: >/usr/include/asm/mpspec.h:8: error: `MAX_MP_BUSSES' undeclared here (not in a function) >/usr/include/asm/mpspec.h:9: error: `MAX_MP_BUSSES' undeclared here (not in a function) >/usr/include/asm/mpspec.h:10: error: `MAX_MP_BUSSES' undeclared here (not in a function) >/usr/include/asm/mpspec.h:12: error: `MAX_MP_BUSSES' undeclared here (not in a function) >/usr/include/asm/mpspec.h:19: error: `MAX_APICS' undeclared here (not in a function) >/usr/include/asm/mpspec.h:20: error: `MAX_MP_BUSSES' undeclared here (not in a function) >/usr/include/asm/mpspec.h:20: error: conflicting types for `mp_bus_id_to_type' >/usr/include/asm/mpspec.h:8: error: previous declaration of `mp_bus_id_to_type' >/usr/include/asm/mpspec.h:22: error: `MAX_IRQ_SOURCES' undeclared here (not in a function) >/usr/include/asm/mpspec.h:24: error: `MAX_MP_BUSSES' undeclared here (not in a function) >/usr/include/asm/mpspec.h:24: error: conflicting types for `mp_bus_id_to_pci_bus' >/usr/include/asm/mpspec.h:12: error: previous declaration of `mp_bus_id_to_pci_bus' >/usr/include/asm/mpspec.h:54: error: `MAX_APICS' undeclared here (not in a function) >In file included from /usr/include/asm/smp.h:20, > from /usr/include/linux/smp.h:17, > from /usr/include/linux/sched.h:23, > from /usr/include/linux/module.h:10, > from zaptel.c:44: >/usr/include/asm/io_apic.h:120: error: `MAX_IRQ_SOURCES' undeclared here (not in a functio >n) >/usr/include/asm/io_apic.h:120: error: conflicting types for `mp_irqs' >/usr/include/asm/mpspec.h:22: error: previous declaration of `mp_irqs' >make[2]: *** [zaptel.o] Error 1 >make[2]: Leaving directory `/usr/src/modules/zaptel' >make[1]: *** [binary-modules] Error 2 >make[1]: Leaving directory `/usr/src/modules/zaptel' >make: *** [kdist_image] Error 2 > > >I'm too tired to fight with this. If someone has the modules for this kernel, >can you tar them up and send them to me? > >TimTim, I got the same errors after I compiled version 2.4.25 of the kernel. I went in and recompiled the kernel without SMP support and it fixed the problem for me. Francois
On Thu, 5 Feb 2004, Tim Sailer wrote:> Does anyone have the zaptel modules built for Debian 2.4.24 kernel?After trying and trying to compile and make Asterisk run on a Debian box, I gave up and picked another HD with RH 9 on it. No headaches. Only 1 build was necessary to build and run *. I found good "howto" pages on Debian, but I can't tell what happened that kept me away from Debian... the pages I used are http://users.pandora.be/Asterisk-PBX/InstallAsterisk.htm http://www.ntgos.com/Projects/Asterisk/Debian_Howto
Hermann Wecke wrote:> After trying and trying to compile and make Asterisk run on a Debian > box, I gave up and picked another HD with RH 9 on it. No headaches. Only 1 > build was necessary to build and run *.The problem I found with debian is how they decided how to do the linux header files for everyone in /usr/include/linux either libc6-dev or linux-kernel-headers packages... The fix for me since I roll my own kernels, after a lot of buggering about and head banging on the desk, the solution was rather simple... cd /usr/src ln -s linux-2.4.25 linux then just build the cvs zaptel modules as per documents... of course a couple of `uname -a` in the Makefile would have saved me all the headaches but anyways, 6 hours later and all the wiser... -- Best regards, Duane http://www.cacert.org - Free Security Certificates http://www.nodedb.com - Think globally, network locally http://www.sydneywireless.com - Telecommunications Freedom http://happysnapper.com.au - Sell your photos over the net!
On Fri, 2004-03-05 at 20:47, Duane wrote:> The fix for me since I roll my own kernels, after a lot of buggering > about and head banging on the desk, the solution was rather simple... > > cd /usr/src > ln -s linux-2.4.25 linuxIf you build your own software, the above is recommended. I do this routinely on my systems. Many software packages built from source expect the linux source code/headers in /usr/src/linux. -joe -- Innovation Software Group, LLC - http://www.innovationsw.com Custom Internet and Computer Solutions Linux, UNIX, Java Training
Hello! On Sat, 6 Mar 2004, Duane wrote:> Hermann Wecke wrote: > > After trying and trying to compile and make Asterisk run on a Debian > > box, I gave up and picked another HD with RH 9 on it. No headaches. Only 1 > > build was necessary to build and run *.I guess using of "/lib/modules/$(shell uname -r)/build" is the best method for Makefile as it is recommended by kernel developers and saves against a lot of headaches. YMMV, e.g. I have had specified /lib/modules/2.4.22-ac2-ow1-xattr-acl-0.8.60-byg/build directly when compile NVIDIA drivers under another kernel. -- WBR, Yury Bokhoncovich, Senior System Administrator, NOC of F1 Group. Phone: +7 (3832) 106228, ext.140, E-mail: byg@center-f1.ru. Unix is like a wigwam -- no Gates, no Windows, and an Apache inside.
if you do a apt-get install asterisk you can get it all ready compiled and everything ondibian. I just did that last night. hth ----- Original Message ----- From: "Yury Bokhoncovich" <byg@center-f1.ru> To: <asterisk-users@lists.digium.com> Cc: "Duane" <digium@aus-biz.com> Sent: Thursday, March 11, 2004 11:03 PM Subject: Re: [Asterisk-Users] zaptel on Debian> Hello! > > On Sat, 6 Mar 2004, Duane wrote: > > > Hermann Wecke wrote: > > > After trying and trying to compile and make Asterisk run on a Debian > > > box, I gave up and picked another HD with RH 9 on it. No headaches.Only 1> > > build was necessary to build and run *. > > I guess using of "/lib/modules/$(shell uname -r)/build" is the best method > for Makefile as it is recommended by kernel developers and saves against a > lot of headaches. YMMV, e.g. I have had specified > /lib/modules/2.4.22-ac2-ow1-xattr-acl-0.8.60-byg/build > directly when compile NVIDIA drivers under another kernel. > > -- > WBR, Yury Bokhoncovich, Senior System Administrator, NOC of F1 Group. > Phone: +7 (3832) 106228, ext.140, E-mail: byg@center-f1.ru. > Unix is like a wigwam -- no Gates, no Windows, and an Apache inside. > > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users