[Asterisk-Dev] Re: Compiling CVS Zaptel with Fedora Core 1

Shawn xardoz at earthlink.net
Fri Apr 2 02:35:03 MST 2004


Tony Mountifield wrote:

>In article <406CC9DD.2070709 at earthlink.net>,
>Shawn <xardoz at earthlink.net> wrote:
>  
>
>>*Well Duane Fedora Core 1 is working great for me (other than compiling 
>>zaptel)
>>and  had been rock stable. I have the sources to the kernel installed 
>>and have compiled
>>many other programs without issue. Changing distributions is not an 
>>option at this
>>point since I use the box for other things, I would hope a better 
>>solution would be to
>>find out "why" its not compiling on Fedora 1 and fix it. I am willing to 
>>do whatever I can
>>to help toward that end, but since I am no coder I will need some input 
>>on what to try.
>>    
>>
>
>When compiling kernel modules under Fedora you should use gcc32 as the
>compiler, as that is what the kernel is compiled with.  In the zaptel
>directory use the make command:
>
>make HOSTCC=gcc32
>
>or else change the HOSTCC line in the makefile to specify gcc32.
>
>Cheers,
>Tony
>  
>
----------------------------------------------------------------------------------------------------------------------------------------

I did a make clean then make HOSTCC=gcc32 as you stated, still get the 
error, output below. Any
other suggestions?

> [root at fedora zaptel]# make HOSTCC=gcc32
> cc -I. -O4 -g -Wall -DBUILDING_TONEZONE   -DSTANDALONE_ZAPATA   -c -o 
> gendigits.o gendigits.c
> cc -o gendigits gendigits.o -lm
> ./gendigits
> gcc32 -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
> cc -I. -O4 -g -Wall -DBUILDING_TONEZONE   -DSTANDALONE_ZAPATA    
> makefw.c   -o makefw
> ./makefw tormenta2.rbt tor2fw > tor2fw.h
> Loaded 69900 bytes from file
> gcc32 -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: invalid suffix on 
> integer constant
> /usr/src/linux-2.4/include/linux/kernel.h:60: 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: invalid suffix on 
> integer constant
> /usr/src/linux-2.4/include/linux/kernel.h:61: syntax error before 
> numeric constant
> /usr/src/linux-2.4/include/linux/kernel.h:62: `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: syntax error before 
> numeric constant
> /usr/src/linux-2.4/include/linux/kernel.h:68: 
> `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: invalid suffix on 
> integer constant
> /usr/src/linux-2.4/include/linux/kernel.h:69: syntax error before 
> numeric constant
> /usr/src/linux-2.4/include/linux/kernel.h:69: 
> `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: invalid suffix on 
> integer constant
> /usr/src/linux-2.4/include/linux/kernel.h:70: syntax error before 
> numeric constant
> /usr/src/linux-2.4/include/linux/kernel.h:70: 
> `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: invalid suffix on 
> integer constant
> /usr/src/linux-2.4/include/linux/kernel.h:72: syntax error before 
> numeric constant
> /usr/src/linux-2.4/include/linux/kernel.h:73: `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: invalid suffix on 
> integer constant
> /usr/src/linux-2.4/include/linux/kernel.h:74: syntax error before 
> numeric constant
> /usr/src/linux-2.4/include/linux/kernel.h:74: `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: invalid suffix on 
> integer constant
> /usr/src/linux-2.4/include/linux/kernel.h:75: syntax error before 
> numeric constant
> /usr/src/linux-2.4/include/linux/kernel.h:76: `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: invalid suffix on 
> integer constant
> /usr/src/linux-2.4/include/linux/kernel.h:77: syntax error before 
> numeric constant
> /usr/src/linux-2.4/include/linux/kernel.h:77: `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: invalid suffix on 
> integer constant
> /usr/src/linux-2.4/include/linux/kernel.h:79: syntax error before 
> numeric constant
> /usr/src/linux-2.4/include/linux/kernel.h:80: `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: `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: `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: invalid suffix on 
> integer constant
> /usr/src/linux-2.4/include/linux/kernel.h:84: syntax error before 
> numeric constant
> /usr/src/linux-2.4/include/linux/kernel.h:84: `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: invalid suffix on 
> integer constant
> /usr/src/linux-2.4/include/linux/kernel.h:85: syntax error before 
> numeric constant
> /usr/src/linux-2.4/include/linux/kernel.h:85: `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: invalid suffix on 
> integer constant
> /usr/src/linux-2.4/include/linux/kernel.h:93: syntax error before 
> numeric constant
> /usr/src/linux-2.4/include/linux/kernel.h:94: `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: 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: invalid suffix on 
> integer constant
> /usr/src/linux-2.4/include/linux/kernel.h:116: syntax error before 
> numeric constant
> /usr/src/linux-2.4/include/linux/kernel.h:116: `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: invalid suffix on 
> integer constant
> /usr/src/linux-2.4/include/linux/kernel.h:194: syntax error before 
> numeric constant
> /usr/src/linux-2.4/include/linux/kernel.h:194: 
> `__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: field 
> `loops_per_jiffy_R_ver_str' declared as a function
> /usr/src/linux-2.4/include/asm/processor.h:83: invalid suffix on 
> integer constant
> /usr/src/linux-2.4/include/asm/processor.h:83: 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: `dad5638d' undeclared 
> (first use in this function)
> /usr/src/linux-2.4/include/asm/processor.h:206: (Each undeclared 
> identifier is reported only once
> /usr/src/linux-2.4/include/asm/processor.h:206: for each function it 
> appears in.)
> /usr/src/linux-2.4/include/asm/processor.h:206: 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: `dad5638d' undeclared 
> (first use in this function)
> /usr/src/linux-2.4/include/asm/processor.h:216: invalid lvalue in 
> assignment
> /usr/src/linux-2.4/include/asm/processor.h: At top level:
> /usr/src/linux-2.4/include/asm/processor.h:255: invalid suffix on 
> integer constant
> /usr/src/linux-2.4/include/asm/processor.h:255: 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: invalid suffix on 
> integer constant
> /usr/src/linux-2.4/include/linux/module.h:190: syntax error before 
> numeric constant
> /usr/src/linux-2.4/include/linux/module.h:190: 
> `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: invalid suffix on 
> integer constant
> /usr/src/linux-2.4/include/linux/module.h:191: syntax error before 
> numeric constant
> /usr/src/linux-2.4/include/linux/module.h:191: 
> `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: 
> `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: 
> `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: invalid suffix on 
> integer constant
> /usr/src/linux-2.4/include/linux/module.h:194: syntax error before 
> numeric constant
> /usr/src/linux-2.4/include/linux/module.h:194: 
> `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: 
> `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:254: warning: implicit 
> declaration of function `__out_of_line_bug_R8b0fd3c5'
> 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: `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: `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: 
> `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: 
> `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 at fedora zaptel]#






More information about the asterisk-dev mailing list