BK [address only for mailing lists]
2003-Jun-22 09:27 UTC
[Asterisk-Users] Please Help: Trying to build Asterisk - bazillions of errors
Hi I followed the instructions on the Asterisk website for download and building Asterisk. I checked out a fresh copy from the CVS tree as described and that went smooth, but when I try to build as described, I get a truckload of errors and I have absolutely no clue what this all means. Can anybody please give me some hints or perhaps provide a link to a pre-compiled version? thanks in advance and apologies for the incredibly long error log ... [root@fj zaptel]# make clean ; make install rm -f torisatool makefw tor2fw.h rm -f zttool rm -f *.o ztcfg tzdriver sethdlc rm -f zonedata.lo tonezone.lo libtonezone.so.1.0 *.lo rm -f gendigits tones.h rm -f libtonezone* rm -f tor2ee rm -f core cc -I. -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA -c -o gendigits.o gendigits.c cc -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 -DECHO_CAN_MARK2 -DCONFIG_ZAPATA_PPP -DTORMENTA_BASE=0xd0000 -DDEFAULT_TONE_ZONE=0 -DSTANDALONE_ZAPATA -c zaptel.c In file included from /usr/include/linux/prefetch.h:13, from /usr/include/linux/list.h:6, from /usr/include/linux/module.h:11, from zaptel.c:35: /usr/include/asm/processor.h:55: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function) /usr/include/asm/processor.h:55: requested alignment is not a constant In file included from /usr/include/linux/module.h:20, from zaptel.c:35: /usr/include/linux/modversions.h:1:2: #error "=======================================================" /usr/include/linux/modversions.h:2:2: #error "You should not include /usr/include/{linux,asm}/ header" /usr/include/linux/modversions.h:3:2: #error "files directly for the compilation of kernel modules." /usr/include/linux/modversions.h:4:2: #error "" /usr/include/linux/modversions.h:5:2: #error "glibc now uses kernel header files from a well-defined" /usr/include/linux/modversions.h:6:2: #error "working kernel version (as recommended by Linus Torvalds)" /usr/include/linux/modversions.h:7:2: #error "These files are glibc internal and may not match the" /usr/include/linux/modversions.h:8:2: #error "currently running kernel. They should only be" /usr/include/linux/modversions.h:9:2: #error "included via other system header files - user space" /usr/include/linux/modversions.h:10:2: #error "programs should not directly include <linux/*.h> or" /usr/include/linux/modversions.h:11:2: #error "<asm/*.h> as well." /usr/include/linux/modversions.h:12:2: #error "" /usr/include/linux/modversions.h:13:2: #error "To build kernel modules please do the following:" /usr/include/linux/modversions.h:14:2: #error "" /usr/include/linux/modversions.h:15:2: #error " o Have the kernel sources installed" /usr/include/linux/modversions.h:16:2: #error "" /usr/include/linux/modversions.h:17:2: #error " o Make sure that the symbolic link" /usr/include/linux/modversions.h:18:2: #error " /lib/modules/`uname -r`/build exists and points to" /usr/include/linux/modversions.h:19:2: #error " the matching kernel source directory" /usr/include/linux/modversions.h:20:2: #error "" /usr/include/linux/modversions.h:21:2: #error " o Now copy /boot/vmlinuz.version.h to" /usr/include/linux/modversions.h:22:2: #error " /lib/modules/`uname -r`/build/include/linux/version.h" /usr/include/linux/modversions.h:23:2: #error "" /usr/include/linux/modversions.h:24:2: #error " o When compiling, make sure to use the following" /usr/include/linux/modversions.h:25:2: #error " compiler option to use the correct include files:" /usr/include/linux/modversions.h:26:2: #error "" /usr/include/linux/modversions.h:27:2: #error " -I/lib/modules/`uname -r`/build/include" /usr/include/linux/modversions.h:28:2: #error "" /usr/include/linux/modversions.h:29:2: #error " instead of" /usr/include/linux/modversions.h:30:2: #error "" /usr/include/linux/modversions.h:31:2: #error " -I/usr/include/linux" /usr/include/linux/modversions.h:32:2: #error "" /usr/include/linux/modversions.h:33:2: #error " Please adjust the Makefile accordingly." /usr/include/linux/modversions.h:34:2: #error "=======================================================" In file included from /usr/include/linux/module.h:297, from zaptel.c:35: /usr/include/linux/version.h:2:2: #error "=======================================================" /usr/include/linux/version.h:3:2: #error "You should not include /usr/include/{linux,asm}/ header" /usr/include/linux/version.h:4:2: #error "files directly for the compilation of kernel modules." /usr/include/linux/version.h:5:2: #error "" /usr/include/linux/version.h:6:2: #error "glibc now uses kernel header files from a well-defined" /usr/include/linux/version.h:7:2: #error "working kernel version (as recommended by Linus Torvalds)" /usr/include/linux/version.h:8:2: #error "These files are glibc internal and may not match the" /usr/include/linux/version.h:9:2: #error "currently running kernel. They should only be" /usr/include/linux/version.h:10:2: #error "included via other system header files - user space" /usr/include/linux/version.h:11:2: #error "programs should not directly include <linux/*.h> or" /usr/include/linux/version.h:12:2: #error "<asm/*.h> as well." /usr/include/linux/version.h:13:2: #error "" /usr/include/linux/version.h:14:2: #error "To build kernel modules please do the following:" /usr/include/linux/version.h:15:2: #error "" /usr/include/linux/version.h:16:2: #error " o Have the kernel sources installed" /usr/include/linux/version.h:17:2: #error "" /usr/include/linux/version.h:18:2: #error " o Make sure that the symbolic link" /usr/include/linux/version.h:19:2: #error " /lib/modules/`uname -r`/build exists and points to" /usr/include/linux/version.h:20:2: #error " the matching kernel source directory" /usr/include/linux/version.h:21:2: #error "" /usr/include/linux/version.h:22:2: #error " o Now copy /boot/vmlinuz.version.h to" /usr/include/linux/version.h:23:2: #error " /lib/modules/`uname -r`/build/include/linux/version.h" /usr/include/linux/version.h:24:2: #error "" /usr/include/linux/version.h:25:2: #error " o When compiling, make sure to use the following" /usr/include/linux/version.h:26:2: #error " compiler option to use the correct include files:" /usr/include/linux/version.h:27:2: #error "" /usr/include/linux/version.h:28:2: #error " -I/lib/modules/`uname -r`/build/include" /usr/include/linux/version.h:29:2: #error "" /usr/include/linux/version.h:30:2: #error " instead of" /usr/include/linux/version.h:31:2: #error "" /usr/include/linux/version.h:32:2: #error " -I/usr/include/linux" /usr/include/linux/version.h:33:2: #error "" /usr/include/linux/version.h:34:2: #error " Please adjust the Makefile accordingly." /usr/include/linux/version.h:35:2: #error "=======================================================" In file included from zaptel.c:35: /usr/include/linux/module.h:299: parse error before "UTS_RELEASE" In file included from zaptel.c:39: /usr/include/linux/version.h:2:2: #error "=======================================================" /usr/include/linux/version.h:3:2: #error "You should not include /usr/include/{linux,asm}/ header" /usr/include/linux/version.h:4:2: #error "files directly for the compilation of kernel modules." /usr/include/linux/version.h:5:2: #error "" /usr/include/linux/version.h:6:2: #error "glibc now uses kernel header files from a well-defined" /usr/include/linux/version.h:7:2: #error "working kernel version (as recommended by Linus Torvalds)" /usr/include/linux/version.h:8:2: #error "These files are glibc internal and may not match the" /usr/include/linux/version.h:9:2: #error "currently running kernel. They should only be" /usr/include/linux/version.h:10:2: #error "included via other sstem header files - user space" /usr/include/linux/version.h:11:2: #error "programs should not directly include <linux/*.h> or" /usr/include/linux/version.h:12:2: #error "<asm/*.h> as well." /usr/include/linux/version.h:13:2: #error "" /usr/include/linux/version.h:14:2: #error "To build kernel modules please do the following:" /usr/include/linux/version.h:15:2: #error "" /usr/include/linux/version.h:16:2: #error " o Have the kernel sources installed" /usr/include/linux/version.h:17:2: #error "" /usr/include/linux/version.h:18:2: #error " o Make sure that the symbolic link" /usr/include/linux/version.h:19:2: #error " /lib/modules/`uname -r`/build exists and points to" /usr/include/linux/version.h:20:2: #error " the matching kernel source directory" /usr/include/linux/version.h:21:2: #error "" /usr/include/linux/version.h:22:2: #error " o Now copy /boot/vmlinuz.version.h to" /usr/include/linux/version.h:23:2: #error " /lib/modules/`uname -r`/build/include/linux/version.h" /usr/include/linux/version.h:24:2: #error "" /usr/include/linux/version.h:25:2: #error " o When compiling, make sure to use the following" /usr/include/linux/version.h:26:2: #error " compiler option to use the correct include files:" /usr/include/linux/version.h:27:2: #error "" /usr/include/linux/version.h:28:2: #error " -I/lib/modules/`uname -r`/build/include" /usr/include/linux/version.h:29:2: #error "" /usr/include/linux/version.h:30:2: #error " instead of" /usr/include/linux/version.h:31:2: #error "" /usr/include/linux/version.h:32:2: #error " -I/usr/include/linux" /usr/include/linux/version.h:33:2: #error "" /usr/include/linux/version.h:34:2: #error " Please adjust the Makefile accordingly." /usr/include/linux/version.h:35:2: #error "=======================================================" In file included from zaptel.c:49: /usr/include/linux/netdevice.h:165: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function) /usr/include/linux/netdevice.h:165: requested alignment is not a constant In file included from /usr/include/asm/hardirq.h:6, from /usr/include/linux/interrupt.h:46, from /usr/include/linux/netdevice.h:455, from zaptel.c:49: /usr/include/linux/irq.h:65: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function) /usr/include/linux/irq.h:65: requested alignment is not a constant In file included from /usr/include/linux/interrupt.h:46, from /usr/include/linux/netdevice.h:455, from zaptel.c:49: /usr/include/asm/hardirq.h:16: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function) /usr/include/asm/hardirq.h:16: requested alignment is not a constant In file included from /usr/include/linux/netdevice.h:455, from zaptel.c:49: /usr/include/linux/interrupt.h:129: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function) /usr/include/linux/interrupt.h:129: requested alignment is not a constant In file included from zaptel.c:49: /usr/include/linux/netdevice.h:507: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function) /usr/include/linux/netdevice.h:507: requested alignment is not a constant zaptel.c:89: parse error before "config_must_be_included_before_module" zaptel.c:89: warning: type defaults to `int' in declaration of `config_must_be_included_before_module' zaptel.c:89: warning: data definition has no type or storage class zaptel.c:90: parse error before "config_must_be_included_before_module" zaptel.c:90: warning: type defaults to `int' in declaration of `config_must_be_included_before_module' zaptel.c:90: warning: data definition has no type or storage class zaptel.c:91: parse error before "config_must_be_included_before_module" zaptel.c:91: warning: type defaults to `int' in declaration of `config_must_be_included_before_module' zaptel.c:91: warning: data definition has no type or storage class zaptel.c:92: parse error before "config_must_be_included_before_module" zaptel.c:92: warning: type defaults to `int' in declaration of `config_must_be_included_before_module' zaptel.c:92: warning: data definition has no type or storage class zaptel.c:93: parse error before "config_must_be_included_before_module" zaptel.c:93: warning: type defaults to `int' in declaration of `config_must_be_included_before_module' zaptel.c:93: warning: data definition has no type or storage class zaptel.c:94: parse error before "config_must_be_included_before_module" zaptel.c:94: warning: type defaults to `int' in declaration of `config_must_be_included_before_module' zaptel.c:94: warning: data definition has no type or storage class zaptel.c:99: parse error before "config_must_be_included_before_module" zaptel.c:99: warning: type defaults to `int' in declaration of `config_must_be_included_before_module' zaptel.c:99: warning: data definition has no type or storage class zaptel.c:100: parse error before "config_must_be_included_before_module" zaptel.c:100: warning: type defaults to `int' in declaration of `config_must_be_included_before_module' zaptel.c:100: warning: data definition has no type or storage class zaptel.c:102: parse error before "config_must_be_included_before_module" zaptel.c:102: warning: type defaults to `int' in declaration of `config_must_be_included_before_module' zaptel.c:102: warning: data definition has no type or storage class zaptel.c:103: parse error before "config_must_be_included_before_module" zaptel.c:103: warning: type defaults to `int' in declaration of `config_must_be_included_before_module' zaptel.c:103: warning: data definition has no type or storage class zaptel.c:104: parse error before "config_must_be_included_before_module" zaptel.c:104: warning: type defaults to `int' in declaration of `config_must_be_included_before_module' zaptel.c:104: warning: data definition has no type or storage class zaptel.c:105: parse error before "config_must_be_included_before_module" zaptel.c:105: warning: type defaults to `int' in declaration of `config_must_be_included_before_module' zaptel.c:105: warning: data definition has no type or storage class zaptel.c:106: parse error before "config_must_be_included_before_module" zaptel.c:106: warning: type defaults to `int' in declaration of `config_must_be_included_before_module' zaptel.c:106: warning: data definition has no type or storage class zaptel.c:107: parse error before "config_must_be_included_before_module" zaptel.c:107: warning: type defaults to `int' in declaration of `config_must_be_included_before_module' zaptel.c:107: warning: data definition has no type or storage class zaptel.c:108: parse error before "config_must_be_included_before_module" zaptel.c:108: warning: type defaults to `int' in declaration of `config_must_be_included_before_module' zaptel.c:108: warning: data definition has no type or storage class zaptel.c:109: parse error before "config_must_be_included_before_module" zaptel.c:109: warning: type defaults to `int' in declaration of `config_must_be_included_before_module' zaptel.c:109: warning: data definition has no type or storage class zaptel.c:110: parse error before "config_must_be_included_before_module" zaptel.c:110: warning: type defaults to `int' in declaration of `config_must_be_included_before_module' zaptel.c:110: warning: data definition has no type or storage class zaptel.c:111: parse error before "config_must_be_included_before_module" zaptel.c:111: warning: type defaults to `int' in declaration of `config_must_be_included_before_module' zaptel.c:111: warning: data definition has no type or storage class make: *** [zaptel.o] Error 1 [root@fj zaptel]#
Tilghman Lesher
2003-Jun-22 11:18 UTC
[Asterisk-Users] Please Help: Trying to build Asterisk - bazillions of errors
On Sunday 22 June 2003 11:27, BK [address only for mailing lists] wrote:> Hi > > I followed the instructions on the Asterisk website for download and > building Asterisk. I checked out a fresh copy from the CVS tree as > described and that went smooth, but when I try to build as described, > I get a truckload of errors and I have absolutely no clue what this > all means. > > Can anybody please give me some hints or perhaps provide a link to a > pre-compiled version?Typically errors occurring this close in the compile process point to kernel source not being installed. You need the kernel source, even if you don't plan on recompiling the kernel, in order to have certain header files available. -Tilghman
Steve
2003-Jun-22 12:28 UTC
[Asterisk-Users] Please Help: Trying to build Asterisk - bazillions of errors
On Sunday 22 June 2003 02:18 pm, Tilghman Lesher wrote:> On Sunday 22 June 2003 11:27, BK [address only for mailing lists] wrote: > > Hi > > > > I followed the instructions on the Asterisk website for download and > > building Asterisk. I checked out a fresh copy from the CVS tree as > > described and that went smooth, but when I try to build as described, > > I get a truckload of errors and I have absolutely no clue what this > > all means.Make sure you have the following installed: bison, cvs, gcc, kernel-source, libtermcap-devel, ncurses-devel, newt-devel, openssl096b, openssl-devel, readline and readline-devel. -- Steve ______________________________________ This sig is pending approval
James Golovich
2003-Jun-23 08:52 UTC
[Asterisk-Users] Please Help: Trying to build Asterisk - bazillions of errors
On Sun, 22 Jun 2003, Steve wrote:> Make sure you have the following installed: > bison, cvs, gcc, kernel-source, libtermcap-devel, ncurses-devel, newt-devel, > openssl096b, openssl-devel, readline and readline-devel.readline and readline-devel have not been needed since November of last year. James
BK [address only for mailing lists]
2003-Jun-25 11:17 UTC
[Asterisk-Users] Re: Please Help: Trying to build Asterisk - bazillions of errors
thanks everybody who responded. I have reinstalled Linux from scratch using a different source and after that I was able to build Asterisk. thanks again