Hi, I've been trying to bring our Asterisk server to the latest version. I've grabbed the latest CVS and upon trying to compile zaptel, I get the following errors: gcc -I. -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA -c -o gendigits.o gendigits.c gcc -o gendigits gendigits.o -lm ./gendigits gcc -I/usr/src/linux-2.4/include -O6 -DMODULE -D__KERNEL__ -DEXPORT_SYMTAB -I/usr/src/linux/drivers/net -Wall -I. -Wstrict-prototypes -fomit-frame-pointer -I/usr/src/linux/drivers/net/wan -I /usr/src/linux/include -I/usr/src/linux/include/net -DSTANDALONE_ZAPATA -c zaptel.c In file included from /usr/src/linux/include/linux/module.h:11, from zaptel.c:44: /usr/src/linux/include/linux/spinlock.h:218:1: warning: "read_unlock" redefined In file included from /usr/src/linux/include/linux/spinlock.h:59, from /usr/src/linux/include/linux/module.h:11, from zaptel.c:44: /usr/include/asm/spinlock.h:200:1: warning: this is the location of the previous definition In file included from /usr/src/linux/include/linux/module.h:11, from zaptel.c:44: /usr/src/linux/include/linux/spinlock.h:220:1: warning: "write_unlock" redefined In file included from /usr/src/linux/include/linux/spinlock.h:59, from /usr/src/linux/include/linux/module.h:11, from zaptel.c:44: /usr/include/asm/spinlock.h:201:1: warning: this is the location of the previous definition In file included from /usr/src/linux/include/linux/prefetch.h:13, from /usr/src/linux/include/linux/list.h:6, from /usr/src/linux/include/linux/module.h:12, from zaptel.c:44: /usr/include/asm/processor.h:75: error: `CONFIG_NR_CPUS' undeclared here (not in a function) In file included from zaptel.c:44: /usr/src/linux/include/linux/module.h:21:34: linux/modversions.h: No such file or directory In file included from /usr/include/asm/smp.h:17, from /usr/src/linux/include/linux/smp.h:14, from /usr/src/linux/include/linux/sched.h:23, from /usr/src/linux/include/linux/mm.h:4, from /usr/src/linux/include/linux/slab.h:14, from /usr/src/linux/include/linux/proc_fs.h:5, from zaptel.c:45: /usr/include/asm/mpspec.h:205: error: `CONFIG_NR_CPUS' undeclared here (not in a function) In file included from /usr/include/asm/smp.h:21, from /usr/src/linux/include/linux/smp.h:14, from /usr/src/linux/include/linux/sched.h:23, from /usr/src/linux/include/linux/mm.h:4, from /usr/src/linux/include/linux/slab.h:14, from /usr/src/linux/include/linux/proc_fs.h:5, from zaptel.c:45: /usr/include/asm/apic.h:88: error: `CONFIG_NR_CPUS' undeclared here (not in a function) In file included from /usr/src/linux/include/linux/smp.h:14, from /usr/src/linux/include/linux/sched.h:23, from /usr/src/linux/include/linux/mm.h:4, from /usr/src/linux/include/linux/slab.h:14, from /usr/src/linux/include/linux/proc_fs.h:5, from zaptel.c:45: /usr/include/asm/smp.h:66: error: `CONFIG_NR_CPUS' undeclared here (not in a function) /usr/include/asm/smp.h:66: confused by earlier errors, bailing out make: *** [zaptel.o] Error 1 The server is running Gentoo: Linux pbx 2.4.25_pre7-gss-r2 #2 SMP Tue Apr 13 20:29:53 EST 2004 i686 Intel(R) Celeron(R) CPU 2.40GHz GenuineIntel GNU/Linux Has anyone seen this before? -- jeremy bogan [ jeremy@segpub.com.au ] segment publishing - design.develop.host
On a side note: When poking around, I noticed in the zaptel Makefile that there is a section talking about ztdummy automatically being included on 2.6 kernels. Is this correct? On to the main topic: Any ideas for troubleshooting this? [root@OpenVZ zaptel-1.2.1]# /etc/rc.d/init.d/zaptel start Loading zaptel framework: FATAL: Error inserting zaptel (/lib/modules/2.6.8-022stab050.1/extra/zaptel.ko): Invalid module format [FAILED] Waiting for zap to come online...Error: missing /dev/zap! [root@OpenVZ libpri-1.2.1]# modprobe ztdummy WARNING: Error inserting zaptel (/lib/modules/2.6.8-022stab050.1/extra/zaptel.ko): Invalid module format WARNING: Error inserting zaptel (/lib/modules/2.6.8-022stab050.1/extra/zaptel.ko): Invalid module format FATAL: Error inserting ztdummy (/lib/modules/2.6.8-022stab050.1/extra/ztdummy.ko): Invalid module format FATAL: Error running install command for ztdummy ---- Mike Hammett Intelligent Computing Solutions http://www.ics-il.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060112/07ed1a44/attachment.htm
[root@OpenVZ ~]# which modprobe /sbin/modprobe [root@OpenVZ ~]# modprobe --version module-init-tools version 3.1-pre5 [root@OpenVZ ~]# dmesg | tail zaptel: version magic '2.6.8-022stab061.1 686 4KSTACKS gcc-3.4' should be '2.6.8-022stab061.1 686 4KSTACKS gcc-3.3' zaptel: version magic '2.6.8-022stab061.1 686 4KSTACKS gcc-3.4' should be '2.6.8-022stab061.1 686 4KSTACKS gcc-3.3' zaptel: version magic '2.6.8-022stab061.1 686 4KSTACKS gcc-3.4' should be '2.6.8-022stab061.1 686 4KSTACKS gcc-3.3' ztdummy: version magic '2.6.8-022stab061.1 686 4KSTACKS gcc-3.4' should be '2.6.8-022stab061.1 686 4KSTACKS gcc-3.3' zaptel: version magic '2.6.8-022stab061.1 686 4KSTACKS gcc-3.4' should be '2.6.8-022stab061.1 686 4KSTACKS gcc-3.3' zaptel: version magic '2.6.8-022stab061.1 686 4KSTACKS gcc-3.4' should be '2.6.8-022stab061.1 686 4KSTACKS gcc-3.3' ztdummy: version magic '2.6.8-022stab061.1 686 4KSTACKS gcc-3.4' should be '2.6.8-022stab061.1 686 4KSTACKS gcc-3.3' zaptel: version magic '2.6.8-022stab061.1 686 4KSTACKS gcc-3.4' should be '2.6.8-022stab061.1 686 4KSTACKS gcc-3.3' zaptel: version magic '2.6.8-022stab061.1 686 4KSTACKS gcc-3.4' should be '2.6.8-022stab061.1 686 4KSTACKS gcc-3.3' ztdummy: version magic '2.6.8-022stab061.1 686 4KSTACKS gcc-3.4' should be '2.6.8-022stab061.1 686 4KSTACKS gcc-3.3' It looks like my gcc versions are different from the one that made the kernel and the one that made the zaptel stuff. So then of the zt lines, do I only need: install ztdummy /sbin/modprobe --ignore-install ztdummy && /sbin/ztcfg ---- Mike Hammett Intelligent Computing Solutions http://www.ics-il.com ----- Original Message ----- From: <asterisk-users-request@lists.digium.com> To: <asterisk-users@lists.digium.com> Sent: Friday, January 13, 2006 4:49 AM Subject: Asterisk-Users Digest, Vol 18, Issue 82> ------------------------------ > > Message: 12 > Date: Fri, 13 Jan 2006 11:52:20 +0200 > From: Tzafrir Cohen <tzafrir@cohens.org.il> > Subject: Re: [Asterisk-Users] Zaptel issues > To: Asterisk Users Mailing List - Non-Commercial Discussion > <asterisk-users@lists.digium.com> > Message-ID: <20060113095220.GB4729@gadot.org.il> > Content-Type: text/plain; charset=us-ascii > > On Thu, Jan 12, 2006 at 09:39:18AM -0600, Mike Hammett wrote: >> On a side note: When poking around, I noticed in the zaptel Makefile >> that there is a section talking about ztdummy automatically being >> included on 2.6 kernels. Is this correct? >> >> On to the main topic: Any ideas for troubleshooting this? >> >> [root@OpenVZ zaptel-1.2.1]# /etc/rc.d/init.d/zaptel start >> Loading zaptel framework: FATAL: Error inserting zaptel >> (/lib/modules/2.6.8-022stab050.1/extra/zaptel.ko): Invalid module format >> [FAILED] >> Waiting for zap to come online...Error: missing /dev/zap! >> >> >> [root@OpenVZ libpri-1.2.1]# modprobe ztdummy >> WARNING: Error inserting zaptel >> (/lib/modules/2.6.8-022stab050.1/extra/zaptel.ko): Invalid module format >> WARNING: Error inserting zaptel >> (/lib/modules/2.6.8-022stab050.1/extra/zaptel.ko): Invalid module format >> FATAL: Error inserting ztdummy >> (/lib/modules/2.6.8-022stab050.1/extra/ztdummy.ko): Invalid module format >> FATAL: Error running install command for ztdummy > > Could you please provide the output of following: > > which modprobe > modprobe --version > > To make things simpler, do away with the stuff that the zaptel install > puts in /etc/modprobe.d/zaptel (or /etc/modprobe.conf ). > > (ztdummy needs no ztcfg run after it) > > Also, please provide the latest relevant kernel log messages: > > dmesg | tail > > -- > Tzafrir Cohen | tzafrir@jbr.cohens.org.il | VIM is > http://tzafrir.org.il | | a Mutt's > tzafrir@cohens.org.il | | best > ICQ# 16849755 | | friend > >
Yeah, recompiling the kernel is a bit over my head, but I don't want to install an older gcc, so I'll just have to await some hand-holding from the people that put my kernel together (OpenVZ). ---- Mike Hammett Intelligent Computing Solutions http://www.ics-il.com ----- Original Message ----- From: <asterisk-users-request@lists.digium.com> To: <asterisk-users@lists.digium.com> Sent: Monday, January 23, 2006 8:02 PM Subject: Asterisk-Users Digest, Vol 18, Issue 143> Send Asterisk-Users mailing list submissions to > asterisk-users@lists.digium.com > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.digium.com/mailman/listinfo/asterisk-users > or, via email, send a message with subject or body 'help' to > asterisk-users-request@lists.digium.com > > You can reach the person managing the list at > asterisk-users-owner@lists.digium.com > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Asterisk-Users digest..." > > > ------------------------------ > > Message: 15 > Date: Mon, 23 Jan 2006 22:35:28 -0300 > From: Facundo Ameal <fameal@gmail.com> > Subject: Re: [Asterisk-Users] Zaptel issues > To: Asterisk Users Mailing List - Non-Commercial Discussion > <asterisk-users@lists.digium.com> > Message-ID: <a563d36f0601231735v63b3c3a8s@mail.gmail.com> > Content-Type: text/plain; charset=ISO-8859-1 > > I think you have comiled your kernel with a version of gcc and zaptel > with another one, Compile zaptel drivers with gcc-3.3 and you will > solve it, otherwise, you cas recompile your kernel with the new > version of gcc. > > i also had that problem. > > 2006/1/23, Mike Hammett <asterisk-users@ics-il.net>: >> [root@OpenVZ ~]# which modprobe >> /sbin/modprobe >> [root@OpenVZ ~]# modprobe --version >> module-init-tools version 3.1-pre5 >> [root@OpenVZ ~]# dmesg | tail >> zaptel: version magic '2.6.8-022stab061.1 686 4KSTACKS gcc-3.4' should be >> '2.6.8-022stab061.1 686 4KSTACKS gcc-3.3' >> zaptel: version magic '2.6.8-022stab061.1 686 4KSTACKS gcc-3.4' should be >> '2.6.8-022stab061.1 686 4KSTACKS gcc-3.3' >> zaptel: version magic '2.6.8-022stab061.1 686 4KSTACKS gcc-3.4' should be >> '2.6.8-022stab061.1 686 4KSTACKS gcc-3.3' >> ztdummy: version magic '2.6.8-022stab061.1 686 4KSTACKS gcc-3.4' should >> be >> '2.6.8-022stab061.1 686 4KSTACKS gcc-3.3' >> zaptel: version magic '2.6.8-022stab061.1 686 4KSTACKS gcc-3.4' should be >> '2.6.8-022stab061.1 686 4KSTACKS gcc-3.3' >> zaptel: version magic '2.6.8-022stab061.1 686 4KSTACKS gcc-3.4' should be >> '2.6.8-022stab061.1 686 4KSTACKS gcc-3.3' >> ztdummy: version magic '2.6.8-022stab061.1 686 4KSTACKS gcc-3.4' should >> be >> '2.6.8-022stab061.1 686 4KSTACKS gcc-3.3' >> zaptel: version magic '2.6.8-022stab061.1 686 4KSTACKS gcc-3.4' should be >> '2.6.8-022stab061.1 686 4KSTACKS gcc-3.3' >> zaptel: version magic '2.6.8-022stab061.1 686 4KSTACKS gcc-3.4' should be >> '2.6.8-022stab061.1 686 4KSTACKS gcc-3.3' >> ztdummy: version magic '2.6.8-022stab061.1 686 4KSTACKS gcc-3.4' should >> be >> '2.6.8-022stab061.1 686 4KSTACKS gcc-3.3' >> >> >> It looks like my gcc versions are different from the one that made the >> kernel and the one that made the zaptel stuff. >> >> So then of the zt lines, do I only need: >> >> install ztdummy /sbin/modprobe --ignore-install ztdummy && /sbin/ztcfg >> >> >> >> ---- >> Mike Hammett >> Intelligent Computing Solutions >> http://www.ics-il.com >> >> >> ----- Original Message ----- >> From: <asterisk-users-request@lists.digium.com> >> To: <asterisk-users@lists.digium.com> >> Sent: Friday, January 13, 2006 4:49 AM >> Subject: Asterisk-Users Digest, Vol 18, Issue 82 >> >> >> > ------------------------------ >> > >> > Message: 12 >> > Date: Fri, 13 Jan 2006 11:52:20 +0200 >> > From: Tzafrir Cohen <tzafrir@cohens.org.il> >> > Subject: Re: [Asterisk-Users] Zaptel issues >> > To: Asterisk Users Mailing List - Non-Commercial Discussion >> > <asterisk-users@lists.digium.com> >> > Message-ID: <20060113095220.GB4729@gadot.org.il> >> > Content-Type: text/plain; charset=us-ascii >> > >> > On Thu, Jan 12, 2006 at 09:39:18AM -0600, Mike Hammett wrote: >> >> On a side note: When poking around, I noticed in the zaptel Makefile >> >> that there is a section talking about ztdummy automatically being >> >> included on 2.6 kernels. Is this correct? >> >> >> >> On to the main topic: Any ideas for troubleshooting this? >> >> >> >> [root@OpenVZ zaptel-1.2.1]# /etc/rc.d/init.d/zaptel start >> >> Loading zaptel framework: FATAL: Error inserting zaptel >> >> (/lib/modules/2.6.8-022stab050.1/extra/zaptel.ko): Invalid module >> >> format >> >> [FAILED] >> >> Waiting for zap to come online...Error: missing /dev/zap! >> >> >> >> >> >> [root@OpenVZ libpri-1.2.1]# modprobe ztdummy >> >> WARNING: Error inserting zaptel >> >> (/lib/modules/2.6.8-022stab050.1/extra/zaptel.ko): Invalid module >> >> format >> >> WARNING: Error inserting zaptel >> >> (/lib/modules/2.6.8-022stab050.1/extra/zaptel.ko): Invalid module >> >> format >> >> FATAL: Error inserting ztdummy >> >> (/lib/modules/2.6.8-022stab050.1/extra/ztdummy.ko): Invalid module >> >> format >> >> FATAL: Error running install command for ztdummy >> > >> > Could you please provide the output of following: >> > >> > which modprobe >> > modprobe --version >> > >> > To make things simpler, do away with the stuff that the zaptel install >> > puts in /etc/modprobe.d/zaptel (or /etc/modprobe.conf ). >> > >> > (ztdummy needs no ztcfg run after it) >> > >> > Also, please provide the latest relevant kernel log messages: >> > >> > dmesg | tail >> > >> > -- >> > Tzafrir Cohen | tzafrir@jbr.cohens.org.il | VIM is >> > http://tzafrir.org.il | | a Mutt's >> > tzafrir@cohens.org.il | | best >> > ICQ# 16849755 | | friend >> > >> > >> >> _______________________________________________ >> --Bandwidth and Colocation provided by Easynews.com -- >> >> Asterisk-Users mailing list >> To UNSUBSCRIBE or update options visit: >> http://lists.digium.com/mailman/listinfo/asterisk-users >> > > > -- > Facundo Ameal. > fameal<at>gmail<dot>com > Linux User #395088 > > Open your mind, use open source. > >