Satish Kumar
2004-Apr-23 12:51 UTC
[Asterisk-Users] zaptel on Fedora (Core 1) RedHat Linux-2.4
Hi! I have fresh installation of Fedora (Core 1) RedHat Linux-2.4.22-1.2115.nptl The kernel source is in place /usr/src/linux-2.4.22-1.2115.nptl The config file for the kernel is in place /boot/config-2.4.22-1.2115.nptl As per zaptel instruction, i first created the kernel config file as follows: # cd /usr/src/linux-2.4.22-1.2115.nptl; make menuconfig (in the menu config window) I loaded the existing config file from /boot/config-2.4.22-1.2115.nptl Then i saved the new over it and exit (i didn't make any other changes in the settings of any device etc, simply loaded and saved). and then did # make dep (modversion.h file was created) I then tried to compile zaptel (zaptel-0.9.1.tar downloaded from ftp site) to get errors (see below) All errors are in the kernel.h (and others) file included in tor2.c I haven't added any digium/other h/w as yet. Could anyone help me fix this please. Regards, Satish Kumar B.G satishkbg@vsnl.net ICODE india pvt ltd Bangalore India ------------- errors ------------------ [root@localhost zaptel-0.9.1]# make clean; make install 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 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 -DMODVERSIONS -include /usr/src/linux-2.4/include/linux/modversions.h -DSTANDALONE_ZAPATA -c zaptel.c In file included from /usr/src/linux-2.4/include/asm/semaphore.h:39, from /usr/src/linux-2.4/include/linux/fs.h:202, from /usr/src/linux-2.4/include/linux/capability.h:17, from /usr/src/linux-2.4/include/linux/binfmts.h:4, from /usr/src/linux-2.4/include/linux/sched.h:10, from /usr/src/linux-2.4/include/linux/mm.h:4, from /usr/src/linux-2.4/include/linux/slab.h:14, from /usr/src/linux-2.4/include/linux/proc_fs.h:5, from zaptel.c:45: /usr/src/linux-2.4/include/asm/system.h: In function `__set_64bit_var': /usr/src/linux-2.4/include/asm/system.h:189: warning: dereferencing type-punned pointer will break strict-aliasing rules /usr/src/linux-2.4/include/asm/system.h:189: warning: dereferencing type-punned pointer will break strict-aliasing rules cc -I. -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA makefw.c -o makefw ./makefw tormenta2.rbt tor2fw > tor2fw.h Loaded 69900 bytes from file 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 -DMODVERSIONS -include /usr/src/linux-2.4/include/linux/modversions.h -DSTANDALONE_ZAPATA -c tor2.c In file included from tor2.c:30: /usr/src/linux-2.4/include/linux/kernel.h:60:31: invalid suffix "d5eeb25" on integer constant In file included from tor2.c:30: /usr/src/linux-2.4/include/linux/kernel.h:60: error: syntax error before numeric constant /usr/src/linux-2.4/include/linux/kernel.h:60: warning: function declaration isn't a prototype /usr/src/linux-2.4/include/linux/kernel.h:61:17: invalid suffix "bf0" on integer constant /usr/src/linux-2.4/include/linux/kernel.h:61: error: syntax error before numeric constant /usr/src/linux-2.4/include/linux/kernel.h:62: error: `panic_R_ver_str' declared as function returning a function /usr/src/linux-2.4/include/linux/kernel.h:62: warning: function declaration isn't a prototype /usr/src/linux-2.4/include/linux/kernel.h:68: error: syntax error before numeric constant /usr/src/linux-2.4/include/linux/kernel.h:68: error: `simple_strtoul_R_ver_str' declared as function returning a function /usr/src/linux-2.4/include/linux/kernel.h:68: warning: function declaration isn't a prototype /usr/src/linux-2.4/include/linux/kernel.h:69:13: invalid suffix "b742fd7" on integer constant /usr/src/linux-2.4/include/linux/kernel.h:69: error: syntax error before numeric constant /usr/src/linux-2.4/include/linux/kernel.h:69: error: `simple_strtol_R_ver_str' declared as function returning a function /usr/src/linux-2.4/include/linux/kernel.h:69: warning: function declaration isn't a prototype /usr/src/linux-2.4/include/linux/kernel.h:70:27: invalid suffix "b7b126" on integer constant /usr/src/linux-2.4/include/linux/kernel.h:70: error: syntax error before numeric constant /usr/src/linux-2.4/include/linux/kernel.h:70: error: `simple_strtoull_R_ver_str' declared as function returning a function /usr/src/linux-2.4/include/linux/kernel.h:70: warning: function declaration isn't a prototype /usr/src/linux-2.4/include/linux/kernel.h:72:12: invalid suffix "d26aa98" on integer constant /usr/src/linux-2.4/include/linux/kernel.h:72: error: syntax error before numeric constant /usr/src/linux-2.4/include/linux/kernel.h:73: error: `sprintf_R_ver_str' declared as function returning a function /usr/src/linux-2.4/include/linux/kernel.h:73: warning: function declaration isn't a prototype /usr/src/linux-2.4/include/linux/kernel.h:74:12: invalid suffix "cbb26" on integer constant /usr/src/linux-2.4/include/linux/kernel.h:74: error: syntax error before numeric constant /usr/src/linux-2.4/include/linux/kernel.h:74: error: `vsprintf_R_ver_str' declared as function returning a function /usr/src/linux-2.4/include/linux/kernel.h:74: warning: function declaration isn't a prototype /usr/src/linux-2.4/include/linux/kernel.h:75:12: invalid suffix "da070" on integer constant /usr/src/linux-2.4/include/linux/kernel.h:75: error: syntax error before numeric constant /usr/src/linux-2.4/include/linux/kernel.h:76: error: `snprintf_R_ver_str' declared as function returning a function /usr/src/linux-2.4/include/linux/kernel.h:76: warning: function declaration isn't a prototype /usr/src/linux-2.4/include/linux/kernel.h:77:12: invalid suffix "a6504e" on integer constant /usr/src/linux-2.4/include/linux/kernel.h:77: error: syntax error before numeric constant /usr/src/linux-2.4/include/linux/kernel.h:77: error: `vsnprintf_R_ver_str' declared as function returning a function /usr/src/linux-2.4/include/linux/kernel.h:77: warning: function declaration isn't a prototype /usr/src/linux-2.4/include/linux/kernel.h:79:12: invalid suffix "af" on integer constant /usr/src/linux-2.4/include/linux/kernel.h:79: error: syntax error before numeric constant /usr/src/linux-2.4/include/linux/kernel.h:80: error: `sscanf_R_ver_str' declared as function returning a function /usr/src/linux-2.4/include/linux/kernel.h:80: warning: function declaration isn't a prototype /usr/src/linux-2.4/include/linux/kernel.h:81: error: `vsscanf_R_ver_str' declared as function returning a function /usr/src/linux-2.4/include/linux/kernel.h:81: warning: parameter names (without types) in function declaration /usr/src/linux-2.4/include/linux/kernel.h:83: error: `get_option_R_ver_str' declared as function returning a function /usr/src/linux-2.4/include/linux/kernel.h:83: warning: parameter names (without types) in function declaration /usr/src/linux-2.4/include/linux/kernel.h:84:14: invalid suffix "fbff9b9" on integer constant /usr/src/linux-2.4/include/linux/kernel.h:84: error: syntax error before numeric constant /usr/src/linux-2.4/include/linux/kernel.h:84: error: `get_options_R_ver_str' declared as function returning a function /usr/src/linux-2.4/include/linux/kernel.h:84: warning: function declaration isn't a prototype /usr/src/linux-2.4/include/linux/kernel.h:85:27: invalid suffix "f2d36f" on integer constant /usr/src/linux-2.4/include/linux/kernel.h:85: error: syntax error before numeric constant /usr/src/linux-2.4/include/linux/kernel.h:85: error: `memparse_R_ver_str' declared as function returning a function /usr/src/linux-2.4/include/linux/kernel.h:85: warning: function declaration isn't a prototype /usr/src/linux-2.4/include/linux/kernel.h:93:16: invalid suffix "b7d4074" on integer constant /usr/src/linux-2.4/include/linux/kernel.h:93: error: syntax error before numeric constant /usr/src/linux-2.4/include/linux/kernel.h:94: error: `printk_R_ver_str' declared as function returning a function /usr/src/linux-2.4/include/linux/kernel.h:94: warning: function declaration isn't a prototype /usr/src/linux-2.4/include/linux/kernel.h:110: error: syntax error before numeric constant /usr/src/linux-2.4/include/linux/kernel.h:110: warning: function declaration isn't a prototype /usr/src/linux-2.4/include/linux/kernel.h:111: warning: parameter names (without types) in function declaration /usr/src/linux-2.4/include/linux/kernel.h:116:13: invalid suffix "b2dc060" on integer constant /usr/src/linux-2.4/include/linux/kernel.h:116: error: syntax error before numeric constant /usr/src/linux-2.4/include/linux/kernel.h:116: error: `dump_stack_R_ver_str' declared as function returning a function /usr/src/linux-2.4/include/linux/kernel.h:116: warning: function declaration isn't a prototype /usr/src/linux-2.4/include/linux/kernel.h:194:13: invalid suffix "b0fd3c5" on integer constant /usr/src/linux-2.4/include/linux/kernel.h:194: error: syntax error before numeric constant /usr/src/linux-2.4/include/linux/kernel.h:194: error: `__out_of_line_bug_R_ver_str' declared as function returning a function/usr/src/linux-2.4/include/linux/kernel.h:194: warning: function declaration isn't a prototype In file included from /usr/src/linux-2.4/include/linux/prefetch.h:13, from /usr/src/linux-2.4/include/linux/list.h:6, from /usr/src/linux-2.4/include/linux/module.h:12, from tor2.c:32: /usr/src/linux-2.4/include/asm/processor.h:60: warning: parameter names (without types) in function declaration /usr/src/linux-2.4/include/asm/processor.h:60: error: field `loops_per_jiffy_R_ver_str' declared as a function In file included from /usr/src/linux-2.4/include/linux/prefetch.h:13, from /usr/src/linux-2.4/include/linux/list.h:6, from /usr/src/linux-2.4/include/linux/module.h:12, from tor2.c:32: /usr/src/linux-2.4/include/asm/processor.h:83:27: invalid suffix "a8db2ac" on integer constant /usr/src/linux-2.4/include/asm/processor.h:83: error: syntax error before numeric constant /usr/src/linux-2.4/include/asm/processor.h:83: warning: function declaration isn't a prototype /usr/src/linux-2.4/include/asm/processor.h:202: warning: parameter names (without types) in function declaration /usr/src/linux-2.4/include/asm/processor.h: In function `set_in_cr4': /usr/src/linux-2.4/include/asm/processor.h:206: error: `dad5638d' undeclared (first use in this function) /usr/src/linux-2.4/include/asm/processor.h:206: error: (Each undeclared identifier is reported only once /usr/src/linux-2.4/include/asm/processor.h:206: error: for each function it appears in.) /usr/src/linux-2.4/include/asm/processor.h:206: error: invalid lvalue in assignment /usr/src/linux-2.4/include/asm/processor.h: In function `clear_in_cr4': /usr/src/linux-2.4/include/asm/processor.h:216: error: `dad5638d' undeclared (first use in this function) /usr/src/linux-2.4/include/asm/processor.h:216: error: invalid lvalue in assignment /usr/src/linux-2.4/include/asm/processor.h:255:12: invalid suffix "a" on integer constant /usr/src/linux-2.4/include/asm/processor.h: At top level: /usr/src/linux-2.4/include/asm/processor.h:255: error: syntax error before numeric constant /usr/src/linux-2.4/include/asm/processor.h:255: warning: function declaration isn't a prototype /usr/src/linux-2.4/include/asm/processor.h:259: warning: parameter names (without types) in function declaration In file included from tor2.c:32: /usr/src/linux-2.4/include/linux/module.h:190:13: invalid suffix "dada05" on integer constant In file included from tor2.c:32: /usr/src/linux-2.4/include/linux/module.h:190: error: syntax error before numeric constant /usr/src/linux-2.4/include/linux/module.h:190: error: `inter_module_register_R_ver_str' declared as function returning a function /usr/src/linux-2.4/include/linux/module.h:190: warning: function declaration isn't a prototype /usr/src/linux-2.4/include/linux/module.h:191:13: invalid suffix "a9e845e" on integer constant /usr/src/linux-2.4/include/linux/module.h:191: error: syntax error before numeric constant /usr/src/linux-2.4/include/linux/module.h:191: error: `inter_module_unregister_R_ver_str' declared as function returning a function /usr/src/linux-2.4/include/linux/module.h:191: warning: function declaration isn't a prototype /usr/src/linux-2.4/include/linux/module.h:192: error: `inter_module_get_R_ver_str' declared as function returning a function /usr/src/linux-2.4/include/linux/module.h:192: warning: parameter names (without types) in function declaration /usr/src/linux-2.4/include/linux/module.h:193: error: `inter_module_get_request_R_ver_str' declared as function returning a function /usr/src/linux-2.4/include/linux/module.h:193: warning: parameter names (without types) in function declaration /usr/src/linux-2.4/include/linux/module.h:194:13: invalid suffix "b99f7d8" on integer constant /usr/src/linux-2.4/include/linux/module.h:194: error: syntax error before numeric constant /usr/src/linux-2.4/include/linux/module.h:194: error: `inter_module_put_R_ver_str' declared as function returning a function /usr/src/linux-2.4/include/linux/module.h:194: warning: function declaration isn't a prototype /usr/src/linux-2.4/include/linux/module.h:203: error: `try_inc_mod_count_R_ver_str' declared as function returning a function/usr/src/linux-2.4/include/linux/module.h:203: warning: parameter names (without types) in function declaration In file included from /usr/src/linux-2.4/include/linux/fs.h:19, from /usr/src/linux-2.4/include/linux/capability.h:17, from /usr/src/linux-2.4/include/linux/binfmts.h:4, from /usr/src/linux-2.4/include/linux/sched.h:10, from /usr/src/linux-2.4/include/linux/mm.h:4, from /usr/src/linux-2.4/include/linux/slab.h:14, from /usr/src/linux-2.4/include/asm/pci.h:37, from /usr/src/linux-2.4/include/linux/pci.h:658, from tor2.c:33: /usr/src/linux-2.4/include/linux/dcache.h: In function `dget': /usr/src/linux-2.4/include/linux/dcache.h:252: warning: implicit declaration of function `__out_of_line_bug_R8b0fd3c5' In file included from /usr/src/linux-2.4/include/asm/semaphore.h:39, from /usr/src/linux-2.4/include/linux/fs.h:202, from /usr/src/linux-2.4/include/linux/capability.h:17, from /usr/src/linux-2.4/include/linux/binfmts.h:4, from /usr/src/linux-2.4/include/linux/sched.h:10, from /usr/src/linux-2.4/include/linux/mm.h:4, from /usr/src/linux-2.4/include/linux/slab.h:14, from /usr/src/linux-2.4/include/asm/pci.h:37, from /usr/src/linux-2.4/include/linux/pci.h:658, from tor2.c:33: /usr/src/linux-2.4/include/asm/system.h: In function `__set_64bit_var': /usr/src/linux-2.4/include/asm/system.h:189: warning: dereferencing type-punned pointer will break strict-aliasing rules /usr/src/linux-2.4/include/asm/system.h:189: warning: dereferencing type-punned pointer will break strict-aliasing rules In file included from /usr/src/linux-2.4/include/linux/highmem.h:5, from /usr/src/linux-2.4/include/linux/vmalloc.h:8, from /usr/src/linux-2.4/include/asm/io.h:47, from /usr/src/linux-2.4/include/asm/pci.h:40, from /usr/src/linux-2.4/include/linux/pci.h:658, from tor2.c:33: /usr/src/linux-2.4/include/asm/pgalloc.h: In function `get_pgd_fast': /usr/src/linux-2.4/include/asm/pgalloc.h:79: error: `boot_cpu_data_R4a8db2ac' undeclared (first use in this function) /usr/src/linux-2.4/include/asm/pgalloc.h: In function `free_pgd_fast': /usr/src/linux-2.4/include/asm/pgalloc.h:90: error: `boot_cpu_data_R4a8db2ac' undeclared (first use in this function) /usr/src/linux-2.4/include/asm/pgalloc.h: In function `pte_alloc_one_fast': /usr/src/linux-2.4/include/asm/pgalloc.h:123: error: `boot_cpu_data_R4a8db2ac' undeclared (first use in this function) /usr/src/linux-2.4/include/asm/pgalloc.h: In function `pte_free_fast': /usr/src/linux-2.4/include/asm/pgalloc.h:133: error: `boot_cpu_data_R4a8db2ac' undeclared (first use in this function) In file included from /usr/src/linux-2.4/include/asm/io.h:47, from /usr/src/linux-2.4/include/asm/pci.h:40, from /usr/src/linux-2.4/include/linux/pci.h:658, from tor2.c:33: /usr/src/linux-2.4/include/linux/vmalloc.h: In function `vmalloc': /usr/src/linux-2.4/include/linux/vmalloc.h:40: error: `boot_cpu_data_R4a8db2ac' undeclared (first use in this function) /usr/src/linux-2.4/include/linux/vmalloc.h: In function `vmalloc_dma': /usr/src/linux-2.4/include/linux/vmalloc.h:49: error: `boot_cpu_data_R4a8db2ac' undeclared (first use in this function) /usr/src/linux-2.4/include/linux/vmalloc.h: In function `vmalloc_32': /usr/src/linux-2.4/include/linux/vmalloc.h:58: error: `boot_cpu_data_R4a8db2ac' undeclared (first use in this function) tor2.c: In function `tor2_spanconfig': tor2.c:206: warning: implicit declaration of function `printk_R1b7d4074' tor2.c: In function `init_spans': tor2.c:274: warning: implicit declaration of function `sprintf_R1d26aa98' make: *** [tor2.o] Error 1 [root@localhost zaptel-0.9.1]# ----------------------------------------------------------------------- end of errors ------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20040423/1f411a74/attachment.htm
Denis E. Pilon
2004-Apr-23 13:07 UTC
[Asterisk-Users] zaptel on Fedora (Core 1) RedHat Linux-2.4
Just making sure... Rule one for getting kernel source for anything.... Do this before copying the config from /boot/. make mrproper This will clean out the source tree. This may help also... (I always make sure this is done.) Look at the Makefile....make sure the EXTRAVERSION matches you running kernel Then go ahead with the steps you mentioned. DP> Hi! > > I have fresh installation of Fedora (Core 1) RedHat > Linux-2.4.22-1.2115.nptl > The kernel source is in place /usr/src/linux-2.4.22-1.2115.nptl > The config file for the kernel is in place /boot/config-2.4.22-1.2115.nptl > > As per zaptel instruction, i first created the kernel config file as > follows: > # cd /usr/src/linux-2.4.22-1.2115.nptl; make menuconfig > > (in the menu config window) > I loaded the existing config file from /boot/config-2.4.22-1.2115.nptl > Then i saved the new over it and exit (i didn't make any other changes in > the settings of any device etc, simply loaded and saved). > > and then did > # make dep (modversion.h file was created) > > I then tried to compile zaptel (zaptel-0.9.1.tar downloaded from ftp site) > to get errors (see below) > All errors are in the kernel.h (and others) file included in tor2.c > I haven't added any digium/other h/w as yet. > > Could anyone help me fix this please. > Regards, > > Satish Kumar B.G > satishkbg@vsnl.net > ICODE india pvt ltd > Bangalore > India > ------------- errors ------------------ > [root@localhost zaptel-0.9.1]# make clean; make install > 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 > 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 -DMODVERSIONS -include > /usr/src/linux-2.4/include/linux/modversions.h -DSTANDALONE_ZAPATA -c > zaptel.c > In file included from /usr/src/linux-2.4/include/asm/semaphore.h:39, > from /usr/src/linux-2.4/include/linux/fs.h:202, > from /usr/src/linux-2.4/include/linux/capability.h:17, > from /usr/src/linux-2.4/include/linux/binfmts.h:4, > from /usr/src/linux-2.4/include/linux/sched.h:10, > from /usr/src/linux-2.4/include/linux/mm.h:4, > from /usr/src/linux-2.4/include/linux/slab.h:14, > from /usr/src/linux-2.4/include/linux/proc_fs.h:5, > from zaptel.c:45: > /usr/src/linux-2.4/include/asm/system.h: In function `__set_64bit_var': > /usr/src/linux-2.4/include/asm/system.h:189: warning: dereferencing > type-punned pointer will break strict-aliasing rules > /usr/src/linux-2.4/include/asm/system.h:189: warning: dereferencing > type-punned pointer will break strict-aliasing rules > cc -I. -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA makefw.c -o > makefw > ./makefw tormenta2.rbt tor2fw > tor2fw.h > Loaded 69900 bytes from file > 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 -DMODVERSIONS -include > /usr/src/linux-2.4/include/linux/modversions.h -DSTANDALONE_ZAPATA -c > tor2.c > In file included from tor2.c:30: > /usr/src/linux-2.4/include/linux/kernel.h:60:31: invalid suffix "d5eeb25" > on integer constant > In file included from tor2.c:30: > /usr/src/linux-2.4/include/linux/kernel.h:60: error: syntax error before > numeric constant > /usr/src/linux-2.4/include/linux/kernel.h:60: warning: function > declaration isn't a prototype > /usr/src/linux-2.4/include/linux/kernel.h:61:17: invalid suffix "bf0" on > integer constant > /usr/src/linux-2.4/include/linux/kernel.h:61: error: syntax error before > numeric constant > /usr/src/linux-2.4/include/linux/kernel.h:62: error: `panic_R_ver_str' > declared as function returning a function > /usr/src/linux-2.4/include/linux/kernel.h:62: warning: function > declaration isn't a prototype > /usr/src/linux-2.4/include/linux/kernel.h:68: error: syntax error before > numeric constant > /usr/src/linux-2.4/include/linux/kernel.h:68: error: > `simple_strtoul_R_ver_str' declared as function returning a function > /usr/src/linux-2.4/include/linux/kernel.h:68: warning: function > declaration isn't a prototype > /usr/src/linux-2.4/include/linux/kernel.h:69:13: invalid suffix "b742fd7" > on integer constant > /usr/src/linux-2.4/include/linux/kernel.h:69: error: syntax error before > numeric constant > /usr/src/linux-2.4/include/linux/kernel.h:69: error: > `simple_strtol_R_ver_str' declared as function returning a function > /usr/src/linux-2.4/include/linux/kernel.h:69: warning: function > declaration isn't a prototype > /usr/src/linux-2.4/include/linux/kernel.h:70:27: invalid suffix "b7b126" > on integer constant > /usr/src/linux-2.4/include/linux/kernel.h:70: error: syntax error before > numeric constant > /usr/src/linux-2.4/include/linux/kernel.h:70: error: > `simple_strtoull_R_ver_str' declared as function returning a function > /usr/src/linux-2.4/include/linux/kernel.h:70: warning: function > declaration isn't a prototype > /usr/src/linux-2.4/include/linux/kernel.h:72:12: invalid suffix "d26aa98" > on integer constant > /usr/src/linux-2.4/include/linux/kernel.h:72: error: syntax error before > numeric constant > /usr/src/linux-2.4/include/linux/kernel.h:73: error: `sprintf_R_ver_str' > declared as function returning a function > /usr/src/linux-2.4/include/linux/kernel.h:73: warning: function > declaration isn't a prototype > /usr/src/linux-2.4/include/linux/kernel.h:74:12: invalid suffix "cbb26" on > integer constant > /usr/src/linux-2.4/include/linux/kernel.h:74: error: syntax error before > numeric constant > /usr/src/linux-2.4/include/linux/kernel.h:74: error: `vsprintf_R_ver_str' > declared as function returning a function > /usr/src/linux-2.4/include/linux/kernel.h:74: warning: function > declaration isn't a prototype > /usr/src/linux-2.4/include/linux/kernel.h:75:12: invalid suffix "da070" on > integer constant > /usr/src/linux-2.4/include/linux/kernel.h:75: error: syntax error before > numeric constant > /usr/src/linux-2.4/include/linux/kernel.h:76: error: `snprintf_R_ver_str' > declared as function returning a function > /usr/src/linux-2.4/include/linux/kernel.h:76: warning: function > declaration isn't a prototype > /usr/src/linux-2.4/include/linux/kernel.h:77:12: invalid suffix "a6504e" > on integer constant > /usr/src/linux-2.4/include/linux/kernel.h:77: error: syntax error before > numeric constant > /usr/src/linux-2.4/include/linux/kernel.h:77: error: `vsnprintf_R_ver_str' > declared as function returning a function > /usr/src/linux-2.4/include/linux/kernel.h:77: warning: function > declaration isn't a prototype > /usr/src/linux-2.4/include/linux/kernel.h:79:12: invalid suffix "af" on > integer constant > /usr/src/linux-2.4/include/linux/kernel.h:79: error: syntax error before > numeric constant > /usr/src/linux-2.4/include/linux/kernel.h:80: error: `sscanf_R_ver_str' > declared as function returning a function > /usr/src/linux-2.4/include/linux/kernel.h:80: warning: function > declaration isn't a prototype > /usr/src/linux-2.4/include/linux/kernel.h:81: error: `vsscanf_R_ver_str' > declared as function returning a function > /usr/src/linux-2.4/include/linux/kernel.h:81: warning: parameter names > (without types) in function declaration > /usr/src/linux-2.4/include/linux/kernel.h:83: error: > `get_option_R_ver_str' declared as function returning a function > /usr/src/linux-2.4/include/linux/kernel.h:83: warning: parameter names > (without types) in function declaration > /usr/src/linux-2.4/include/linux/kernel.h:84:14: invalid suffix "fbff9b9" > on integer constant > /usr/src/linux-2.4/include/linux/kernel.h:84: error: syntax error before > numeric constant > /usr/src/linux-2.4/include/linux/kernel.h:84: error: > `get_options_R_ver_str' declared as function returning a function > /usr/src/linux-2.4/include/linux/kernel.h:84: warning: function > declaration isn't a prototype > /usr/src/linux-2.4/include/linux/kernel.h:85:27: invalid suffix "f2d36f" > on integer constant > /usr/src/linux-2.4/include/linux/kernel.h:85: error: syntax error before > numeric constant > /usr/src/linux-2.4/include/linux/kernel.h:85: error: `memparse_R_ver_str' > declared as function returning a function > /usr/src/linux-2.4/include/linux/kernel.h:85: warning: function > declaration isn't a prototype > /usr/src/linux-2.4/include/linux/kernel.h:93:16: invalid suffix "b7d4074" > on integer constant > /usr/src/linux-2.4/include/linux/kernel.h:93: error: syntax error before > numeric constant > /usr/src/linux-2.4/include/linux/kernel.h:94: error: `printk_R_ver_str' > declared as function returning a function > /usr/src/linux-2.4/include/linux/kernel.h:94: warning: function > declaration isn't a prototype > /usr/src/linux-2.4/include/linux/kernel.h:110: error: syntax error before > numeric constant > /usr/src/linux-2.4/include/linux/kernel.h:110: warning: function > declaration isn't a prototype > /usr/src/linux-2.4/include/linux/kernel.h:111: warning: parameter names > (without types) in function declaration > /usr/src/linux-2.4/include/linux/kernel.h:116:13: invalid suffix "b2dc060" > on integer constant > /usr/src/linux-2.4/include/linux/kernel.h:116: error: syntax error before > numeric constant > /usr/src/linux-2.4/include/linux/kernel.h:116: error: > `dump_stack_R_ver_str' declared as function returning a function > /usr/src/linux-2.4/include/linux/kernel.h:116: warning: function > declaration isn't a prototype > /usr/src/linux-2.4/include/linux/kernel.h:194:13: invalid suffix "b0fd3c5" > on integer constant > /usr/src/linux-2.4/include/linux/kernel.h:194: error: syntax error before > numeric constant > /usr/src/linux-2.4/include/linux/kernel.h:194: error: > `__out_of_line_bug_R_ver_str' declared as function returning a > function/usr/src/linux-2.4/include/linux/kernel.h:194: warning: function > declaration isn't a prototype > In file included from /usr/src/linux-2.4/include/linux/prefetch.h:13, > from /usr/src/linux-2.4/include/linux/list.h:6, > from /usr/src/linux-2.4/include/linux/module.h:12, > from tor2.c:32: > /usr/src/linux-2.4/include/asm/processor.h:60: warning: parameter names > (without types) in function declaration > /usr/src/linux-2.4/include/asm/processor.h:60: error: field > `loops_per_jiffy_R_ver_str' declared as a function > In file included from /usr/src/linux-2.4/include/linux/prefetch.h:13, > from /usr/src/linux-2.4/include/linux/list.h:6, > from /usr/src/linux-2.4/include/linux/module.h:12, > from tor2.c:32: > /usr/src/linux-2.4/include/asm/processor.h:83:27: invalid suffix "a8db2ac" > on integer constant > /usr/src/linux-2.4/include/asm/processor.h:83: error: syntax error before > numeric constant > /usr/src/linux-2.4/include/asm/processor.h:83: warning: function > declaration isn't a prototype > /usr/src/linux-2.4/include/asm/processor.h:202: warning: parameter names > (without types) in function declaration > /usr/src/linux-2.4/include/asm/processor.h: In function `set_in_cr4': > /usr/src/linux-2.4/include/asm/processor.h:206: error: `dad5638d' > undeclared (first use in this function) > /usr/src/linux-2.4/include/asm/processor.h:206: error: (Each undeclared > identifier is reported only once > /usr/src/linux-2.4/include/asm/processor.h:206: error: for each function > it appears in.) > /usr/src/linux-2.4/include/asm/processor.h:206: error: invalid lvalue in > assignment > /usr/src/linux-2.4/include/asm/processor.h: In function `clear_in_cr4': > /usr/src/linux-2.4/include/asm/processor.h:216: error: `dad5638d' > undeclared (first use in this function) > /usr/src/linux-2.4/include/asm/processor.h:216: error: invalid lvalue in > assignment > /usr/src/linux-2.4/include/asm/processor.h:255:12: invalid suffix "a" on > integer constant > /usr/src/linux-2.4/include/asm/processor.h: At top level: > /usr/src/linux-2.4/include/asm/processor.h:255: error: syntax error before > numeric constant > /usr/src/linux-2.4/include/asm/processor.h:255: warning: function > declaration isn't a prototype > /usr/src/linux-2.4/include/asm/processor.h:259: warning: parameter names > (without types) in function declaration > In file included from tor2.c:32: > /usr/src/linux-2.4/include/linux/module.h:190:13: invalid suffix "dada05" > on integer constant > In file included from tor2.c:32: > /usr/src/linux-2.4/include/linux/module.h:190: error: syntax error before > numeric constant > /usr/src/linux-2.4/include/linux/module.h:190: error: > `inter_module_register_R_ver_str' declared as function returning a > function > /usr/src/linux-2.4/include/linux/module.h:190: warning: function > declaration isn't a prototype > /usr/src/linux-2.4/include/linux/module.h:191:13: invalid suffix "a9e845e" > on integer constant > /usr/src/linux-2.4/include/linux/module.h:191: error: syntax error before > numeric constant > /usr/src/linux-2.4/include/linux/module.h:191: error: > `inter_module_unregister_R_ver_str' declared as function returning a > function > /usr/src/linux-2.4/include/linux/module.h:191: warning: function > declaration isn't a prototype > /usr/src/linux-2.4/include/linux/module.h:192: error: > `inter_module_get_R_ver_str' declared as function returning a function > /usr/src/linux-2.4/include/linux/module.h:192: warning: parameter names > (without types) in function declaration > /usr/src/linux-2.4/include/linux/module.h:193: error: > `inter_module_get_request_R_ver_str' declared as function returning a > function > /usr/src/linux-2.4/include/linux/module.h:193: warning: parameter names > (without types) in function declaration > /usr/src/linux-2.4/include/linux/module.h:194:13: invalid suffix "b99f7d8" > on integer constant > /usr/src/linux-2.4/include/linux/module.h:194: error: syntax error before > numeric constant > /usr/src/linux-2.4/include/linux/module.h:194: error: > `inter_module_put_R_ver_str' declared as function returning a function > /usr/src/linux-2.4/include/linux/module.h:194: warning: function > declaration isn't a prototype > /usr/src/linux-2.4/include/linux/module.h:203: error: > `try_inc_mod_count_R_ver_str' declared as function returning a > function/usr/src/linux-2.4/include/linux/module.h:203: warning: parameter > names (without types) in function declaration > In file included from /usr/src/linux-2.4/include/linux/fs.h:19, > from /usr/src/linux-2.4/include/linux/capability.h:17, > from /usr/src/linux-2.4/include/linux/binfmts.h:4, > from /usr/src/linux-2.4/include/linux/sched.h:10, > from /usr/src/linux-2.4/include/linux/mm.h:4, > from /usr/src/linux-2.4/include/linux/slab.h:14, > from /usr/src/linux-2.4/include/asm/pci.h:37, > from /usr/src/linux-2.4/include/linux/pci.h:658, > from tor2.c:33: > /usr/src/linux-2.4/include/linux/dcache.h: In function `dget': > /usr/src/linux-2.4/include/linux/dcache.h:252: warning: implicit > declaration of function `__out_of_line_bug_R8b0fd3c5' > In file included from /usr/src/linux-2.4/include/asm/semaphore.h:39, > from /usr/src/linux-2.4/include/linux/fs.h:202, > from /usr/src/linux-2.4/include/linux/capability.h:17, > from /usr/src/linux-2.4/include/linux/binfmts.h:4, > from /usr/src/linux-2.4/include/linux/sched.h:10, > from /usr/src/linux-2.4/include/linux/mm.h:4, > from /usr/src/linux-2.4/include/linux/slab.h:14, > from /usr/src/linux-2.4/include/asm/pci.h:37, > from /usr/src/linux-2.4/include/linux/pci.h:658, > from tor2.c:33: > /usr/src/linux-2.4/include/asm/system.h: In function `__set_64bit_var': > /usr/src/linux-2.4/include/asm/system.h:189: warning: dereferencing > type-punned pointer will break strict-aliasing rules > /usr/src/linux-2.4/include/asm/system.h:189: warning: dereferencing > type-punned pointer will break strict-aliasing rules > In file included from /usr/src/linux-2.4/include/linux/highmem.h:5, > from /usr/src/linux-2.4/include/linux/vmalloc.h:8, > from /usr/src/linux-2.4/include/asm/io.h:47, > from /usr/src/linux-2.4/include/asm/pci.h:40, > from /usr/src/linux-2.4/include/linux/pci.h:658, > from tor2.c:33: > /usr/src/linux-2.4/include/asm/pgalloc.h: In function `get_pgd_fast': > /usr/src/linux-2.4/include/asm/pgalloc.h:79: error: > `boot_cpu_data_R4a8db2ac' undeclared (first use in this function) > /usr/src/linux-2.4/include/asm/pgalloc.h: In function `free_pgd_fast': > /usr/src/linux-2.4/include/asm/pgalloc.h:90: error: > `boot_cpu_data_R4a8db2ac' undeclared (first use in this function) > /usr/src/linux-2.4/include/asm/pgalloc.h: In function > `pte_alloc_one_fast': > /usr/src/linux-2.4/include/asm/pgalloc.h:123: error: > `boot_cpu_data_R4a8db2ac' undeclared (first use in this function) > /usr/src/linux-2.4/include/asm/pgalloc.h: In function `pte_free_fast': > /usr/src/linux-2.4/include/asm/pgalloc.h:133: error: > `boot_cpu_data_R4a8db2ac' undeclared (first use in this function) > In file included from /usr/src/linux-2.4/include/asm/io.h:47, > from /usr/src/linux-2.4/include/asm/pci.h:40, > from /usr/src/linux-2.4/include/linux/pci.h:658, > from tor2.c:33: > /usr/src/linux-2.4/include/linux/vmalloc.h: In function `vmalloc': > /usr/src/linux-2.4/include/linux/vmalloc.h:40: error: > `boot_cpu_data_R4a8db2ac' undeclared (first use in this function) > /usr/src/linux-2.4/include/linux/vmalloc.h: In function `vmalloc_dma': > /usr/src/linux-2.4/include/linux/vmalloc.h:49: error: > `boot_cpu_data_R4a8db2ac' undeclared (first use in this function) > /usr/src/linux-2.4/include/linux/vmalloc.h: In function `vmalloc_32': > /usr/src/linux-2.4/include/linux/vmalloc.h:58: error: > `boot_cpu_data_R4a8db2ac' undeclared (first use in this function) > tor2.c: In function `tor2_spanconfig': > tor2.c:206: warning: implicit declaration of function `printk_R1b7d4074' > tor2.c: In function `init_spans': > tor2.c:274: warning: implicit declaration of function `sprintf_R1d26aa98' > make: *** [tor2.o] Error 1 > [root@localhost zaptel-0.9.1]# > ----------------------------------------------------------------------- > end of errors ------------------------------------------- >
Carlos Chavez
2004-Apr-23 14:44 UTC
[Asterisk-Users] zaptel on Fedora (Core 1) RedHat Linux-2.4
On Sat, 24 Apr 2004 01:21:09 +0530, Satish Kumar wrote> Hi! > > I have fresh installation ofFedora (Core 1) RedHat Linux-2.4.22-1.2115.nptl > Thekernel source is in place/usr/src/linux-2.4.22-1.2115.nptl > Theconfig file for the kernel is in place/boot/config-2.4.22-1.2115.nptl > > As per zaptelinstruction, i first created the kernel config file as follows: ># cd/usr/src/linux-2.4.22-1.2115.nptl; make menuconfig >???? I would first recommend that you update your system.? There have been at least 4 kernel updates in the last 6 months.? Do not recompile the kernel, use the stock kernel and you should be fine.? I have 6 servers using FC1 and they all compile without problems. -- Carlos Chavez Computer Engineer, CCNA Telecomunicaciones Abiertas de M?xico S.A. deC.V. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20040423/38168ef4/attachment.htm
Tony Mountifield
2004-Apr-25 07:07 UTC
[Asterisk-Users] Re: zaptel on Fedora (Core 1) RedHat Linux-2.4
In article <002401c4296c$542eda60$01010a0a@development.satish.com>, Satish Kumar <satishkbg@vsnl.net> wrote:> > Hi! > > I have fresh installation of Fedora (Core 1) RedHat > Linux-2.4.22-1.2115.nptl The kernel source is in place > /usr/src/linux-2.4.22-1.2115.nptl The config file for the kernel is in > place /boot/config-2.4.22-1.2115.nptl > > As per zaptel instruction, i first created the kernel config file as > follows: # cd /usr/src/linux-2.4.22-1.2115.nptl; make menuconfig > > (in the menu config window) I loaded the existing config file from > /boot/config-2.4.22-1.2115.nptl Then i saved the new over it and exit (i > didn't make any other changes in the settings of any device etc, simply > loaded and saved). > > and then did # make dep (modversion.h file was created) > > I then tried to compile zaptel (zaptel-0.9.1.tar downloaded from ftp > site) to get errors (see below) All errors are in the kernel.h (and > others) file included in tor2.cDid you install kernel sources from the kernel-source RPM or from a vanilla kernel tree? If from a vanilla tree, remove it, and use the kernel-sources RPM for Fedora. Otherwise, try rpm -e kernel-source and then re-install the kernel-source RPM. I'm pretty sure I didn't do the make menuconfig or make dep - it was enough to have the sources in place. Also make sure the linux-2.4 symbolic link in /usr/src is pointing to the correct tree. Finally, although it doesn't seem to say this anywhere, kernel modules must be built with the same compiler that the kernel gets built with. In the case of fedora, you need to use gcc32. So the make command is: make HOSTCC=gcc32 Hope this all helps! Tony -- Tony Mountifield Work: tony@softins.co.uk - http://www.softins.co.uk Play: tony@mountifield.org - http://tony.mountifield.org