Eric Bullen
2005-Jul-11 17:29 UTC
[Asterisk-Users] Zaptel won't compile under Fedora Core 4
I hope someone can offer me some help with this. Basically, the current CVS
version of Zaptel will not compile under Fedora Core 4. I have closely
followed the directions in
http://www.voip-info.org/tiki-index.php?page=Asterisk+Fedora+Core+3 using
the versions given in the FC4 distro with no luck. Here's the output when I
run "make linux26". Any help would be great. TIA.
orion:/asterisk_source/zaptel# 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
orion:/asterisk_source/zaptel# 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
cc -I. -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA
-DZAPTEL_CONFIG=\"/etc/zaptel.conf\" -c -o zttool.o zttool.c
cc -o zttool zttool.o -lnewt
make -C /lib/modules/`uname -r`/build SUBDIRS=/asterisk_source/zaptel
modules
make[1]: Entering directory `/usr/src/kernels/2.6.12-1.1390_FC4-i686'
WARNING: Symbol version dump /usr/src/kernels/2.6.12-
1.1390_FC4-i686/Module.symvers
is missing; modules will have no dependencies and modversions.
CC [M] /asterisk_source/zaptel/zaptel.o
In file included from /asterisk_source/zaptel/zaptel.c:40:
/asterisk_source/zaptel/zconfig.h:10:27: error: linux/version.h: No such
file or directory
/asterisk_source/zaptel/zconfig.h:66:41: error: missing binary operator
before token "("
In file included from /asterisk_source/zaptel/zaptel.c:82:
/asterisk_source/zaptel/zaptel.h:47:41: error: missing binary operator
before token "("
/asterisk_source/zaptel/zaptel.c: In function 'zt_chan_write':
/asterisk_source/zaptel/zaptel.c:1737: warning: ignoring return value of
'copy_from_user', declared with attribute warn_unused_result
/asterisk_source/zaptel/zaptel.c: In function 'zt_ctl_open':
/asterisk_source/zaptel/zaptel.c:1766: error: 'MOD_INC_USE_COUNT'
undeclared
(first use in this function)
/asterisk_source/zaptel/zaptel.c:1766: error: (Each undeclared identifier is
reported only once
/asterisk_source/zaptel/zaptel.c:1766: error: for each function it appears
in.)
/asterisk_source/zaptel/zaptel.c: In function 'zt_chan_open':
/asterisk_source/zaptel/zaptel.c:1775: error: 'MOD_INC_USE_COUNT'
undeclared
(first use in this function)
/asterisk_source/zaptel/zaptel.c: In function 'zt_ctl_release':
/asterisk_source/zaptel/zaptel.c:1784: error: 'MOD_DEC_USE_COUNT'
undeclared
(first use in this function)
/asterisk_source/zaptel/zaptel.c: In function 'zt_chan_release':
/asterisk_source/zaptel/zaptel.c:1793: error: 'MOD_DEC_USE_COUNT'
undeclared
(first use in this function)
/asterisk_source/zaptel/zaptel.c: In function 'zt_timing_open':
/asterisk_source/zaptel/zaptel.c:2122: error: 'MOD_INC_USE_COUNT'
undeclared
(first use in this function)
/asterisk_source/zaptel/zaptel.c: In function 'zt_timer_release':
/asterisk_source/zaptel/zaptel.c:2159: error: 'MOD_DEC_USE_COUNT'
undeclared
(first use in this function)
/asterisk_source/zaptel/zaptel.c: In function 'zt_specchan_open':
/asterisk_source/zaptel/zaptel.c:2190: error: 'MOD_INC_USE_COUNT'
undeclared
(first use in this function)
/asterisk_source/zaptel/zaptel.c: In function 'zt_specchan_release':
/asterisk_source/zaptel/zaptel.c:2214: error: 'MOD_DEC_USE_COUNT'
undeclared
(first use in this function)
/asterisk_source/zaptel/zaptel.c: In function 'ioctl_load_zone':
/asterisk_source/zaptel/zaptel.c:2384: warning: ignoring return value of
'copy_from_user', declared with attribute warn_unused_result
/asterisk_source/zaptel/zaptel.c: In function 'zt_common_ioctl':
/asterisk_source/zaptel/zaptel.c:2736: warning: ignoring return value of
'copy_from_user', declared with attribute warn_unused_result
/asterisk_source/zaptel/zaptel.c:2796: warning: ignoring return value of
'copy_to_user', declared with attribute warn_unused_result
/asterisk_source/zaptel/zaptel.c:2799: warning: ignoring return value of
'copy_from_user', declared with attribute warn_unused_result
/asterisk_source/zaptel/zaptel.c:2881: warning: ignoring return value of
'copy_from_user', declared with attribute warn_unused_result
/asterisk_source/zaptel/zaptel.c:2911: warning: ignoring return value of
'copy_to_user', declared with attribute warn_unused_result
/asterisk_source/zaptel/zaptel.c: In function 'zt_chanandpseudo_ioctl':
/asterisk_source/zaptel/zaptel.c:3633: warning: ignoring return value of
'copy_from_user', declared with attribute warn_unused_result
/asterisk_source/zaptel/zaptel.c:3643: warning: ignoring return value of
'copy_to_user', declared with attribute warn_unused_result
/asterisk_source/zaptel/zaptel.c:3646: warning: ignoring return value of
'copy_from_user', declared with attribute warn_unused_result
/asterisk_source/zaptel/zaptel.c:3705: warning: ignoring return value of
'copy_to_user', declared with attribute warn_unused_result
/asterisk_source/zaptel/zaptel.c:3709: warning: ignoring return value of
'copy_from_user', declared with attribute warn_unused_result
make[2]: *** [/asterisk_source/zaptel/zaptel.o] Error 1
make[1]: *** [_module_/asterisk_source/zaptel] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.12-1.1390_FC4-i686'
make: *** [linux26] Error 2
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.digium.com/pipermail/asterisk-users/attachments/20050711/afad51c8/attachment.htm
Gonzalo Servat
2005-Jul-11 18:04 UTC
[Asterisk-Users] Zaptel won't compile under Fedora Core 4
On 7/12/05, Eric Bullen <barnabus.pinklehorn@gmail.com> wrote:> I hope someone can offer me some help with this. Basically, the current CVS > version of Zaptel will not compile under Fedora Core 4. I have closely > followed the directions in > http://www.voip-info.org/tiki-index.php?page=Asterisk+Fedora+Core+3 > using the versions given in the FC4 distro with no luck. Here's the output > when I run "make linux26". Any help would be great. TIA.[...snip...]> In file included from /asterisk_source/zaptel/zaptel.c:40: > /asterisk_source/zaptel/zconfig.h:10:27: error: > linux/version.h: No such file or directoryTry installing kernel-source and/or glibc-kernheaders RPMs from the FC4 CDs. Regards, Gonzalo
Trevor Peirce
2005-Jul-12 10:39 UTC
[Asterisk-Users] Zaptel won't compile under Fedora Core 4
Eric Bullen wrote:> I hope someone can offer me some help with this. Basically, the > current CVS version of Zaptel will not compile under Fedora Core 4. I > have closely followed the directions in > http://www.voip-info.org/tiki-index.php?page=Asterisk+Fedora+Core+3 > using the versions given in the FC4 distro with no luck. Here's the > output when I run "make linux26". Any help would be great. TIA.I had similar errors when trying to compile a wireless nic driver on FC4. You need to download and install the kernel-devel RPM.
Bates, Curtis
2005-Jul-12 12:39 UTC
[Asterisk-Users] Zaptel won't compile under Fedora Core 4
Which version of Zaptel are you using? I am using version 1.09 and having issues, I did not have issues with 1.08. -----Original Message----- From: Eric Bullen [mailto:barnabus.pinklehorn@gmail.com] Sent: Tuesday, July 12, 2005 12:36 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [Asterisk-Users] Zaptel won't compile under Fedora Core 4 On 7/11/05, Tzafrir Cohen < tzafrir@cohens.org.il> wrote: On Tue, Jul 12, 2005 at 11:04:16AM +1000, Gonzalo Servat wrote:> On 7/12/05, Eric Bullen < barnabus.pinklehorn@gmail.com> wrote: > > I hope someone can offer me some help with this. Basically, the current CVS > > version of Zaptel will not compile under Fedora Core 4. I have closely > > followed the directions in > > http://www.voip-info.org/tiki-index.php?page=Asterisk+Fedora+Core+3 <http://www.voip-info.org/tiki-index.php?page=Asterisk+Fedora+Core+3> > > using the versions given in the FC4 distro with no luck. Here's the output > > when I run "make linux26". Any help would be great. TIA. > > [...snip...] > > > In file included from /asterisk_source/zaptel/zaptel.c:40: > > /asterisk_source/zaptel/zconfig.h:10:27: error: > > linux/version.h: No such file or directory > > Try installing kernel-source and/or glibc-kernheaders RPMs from the FC4 CDs.kernel-glibcheaders is the part of the kernel headers that user-space programs need. Not any good reference for any kernel module to build with. linux/version.h is generated as part of the configuration process of the kernel configuration process ("make {,menu,x,g}config") of the kernel source. What version of zaptel do you try to build? For what kernel version? Your distro's default or your one you've built yourself? That did the trick- I untarred the kernel source, ran "make oldconfig && make", and got the linux/version.h file. Then did a "ln -s kernels/linux-2.6.12 linux-2.6" in the /usr/src dir. Once that was done, went to the zaptel dir and it compiled beautifully. Thank you so much. To answer your question, I am running the latest version in CVS using "cvs update -d -r v1-0", and kernel 2.6.12. I ended up building my own kernel (not installed) to get this to work (not sure if I could do it the other way). Thanks again for the help, and hopefully my notes will help others. -Eric ------------------------------------------------------------------------------------- A.G. Edwards & Sons' outgoing and incoming e-mails are electronically archived and subject to review and/or disclosure to someone other than the recipient. ------------------------------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050712/a6b99eb5/attachment.htm
Bates, Curtis
2005-Jul-14 07:12 UTC
[Asterisk-Users] Zaptel won't compile under Fedora Core 4
My fault. The kernel and kernel-dev packages got out of sync. All is better now. -----Original Message----- From: Bates, Curtis Sent: Tuesday, July 12, 2005 2:39 PM To: Eric Bullen; Asterisk Users Mailing List - Non-Commercial Discussion Subject: RE: [Asterisk-Users] Zaptel won't compile under Fedora Core 4 Which version of Zaptel are you using? I am using version 1.09 and having issues, I did not have issues with 1.08. -----Original Message----- From: Eric Bullen [mailto:barnabus.pinklehorn@gmail.com] Sent: Tuesday, July 12, 2005 12:36 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [Asterisk-Users] Zaptel won't compile under Fedora Core 4 On 7/11/05, Tzafrir Cohen < tzafrir@cohens.org.il> wrote: On Tue, Jul 12, 2005 at 11:04:16AM +1000, Gonzalo Servat wrote:> On 7/12/05, Eric Bullen < barnabus.pinklehorn@gmail.com> wrote: > > I hope someone can offer me some help with this. Basically, the current CVS > > version of Zaptel will not compile under Fedora Core 4. I have closely > > followed the directions in > > http://www.voip-info.org/tiki-index.php?page=Asterisk+Fedora+Core+3 <http://www.voip-info.org/tiki-index.php?page=Asterisk+Fedora+Core+3> > > using the versions given in the FC4 distro with no luck. Here's the output > > when I run "make linux26". Any help would be great. TIA. > > [...snip...] > > > In file included from /asterisk_source/zaptel/zaptel.c:40: > > /asterisk_source/zaptel/zconfig.h:10:27: error: > > linux/version.h: No such file or directory > > Try installing kernel-source and/or glibc-kernheaders RPMs from the FC4 CDs.kernel-glibcheaders is the part of the kernel headers that user-space programs need. Not any good reference for any kernel module to build with. linux/version.h is generated as part of the configuration process of the kernel configuration process ("make {,menu,x,g}config") of the kernel source. What version of zaptel do you try to build? For what kernel version? Your distro's default or your one you've built yourself? That did the trick- I untarred the kernel source, ran "make oldconfig && make", and got the linux/version.h file. Then did a "ln -s kernels/linux-2.6.12 linux-2.6" in the /usr/src dir. Once that was done, went to the zaptel dir and it compiled beautifully. Thank you so much. To answer your question, I am running the latest version in CVS using "cvs update -d -r v1-0", and kernel 2.6.12. I ended up building my own kernel (not installed) to get this to work (not sure if I could do it the other way). Thanks again for the help, and hopefully my notes will help others. -Eric ------------------------------------------------------------------------------------- A.G. Edwards & Sons' outgoing and incoming e-mails are electronically archived and subject to review and/or disclosure to someone other than the recipient. ------------------------------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050714/d489de5a/attachment.htm