LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: Compiling kernel craps out

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: Compiling kernel craps out
From: Horms <horms@xxxxxxxxxxxx>
Date: Tue, 25 Nov 2003 11:23:58 +1100
On Mon, Nov 24, 2003 at 04:25:57PM -0500, Brock Jimmy D Contr DODHSR5 wrote:
> Using:
> Redhat 9
> ipvs-1.0.9-patch
> Kernel: 2.4.20-8
> 
> I get as far as "make modules" where I receive the error:
> 
> /usr/src/linux-2.4.20-8/include/asm/processor.h:82 invalid suffix on integer 
> constant
> /usr/src/linux-2.4.20-8/include/asm/processor.h:82 parse error before numeric 
> constant
> /usr/src/linux-2.4.20-8/include/asm/processor.h:82 warning: function 
> declaration isn't a prototype
> /usr/src/linux-2.4.20-8/include/asm/processor.h:265 invalid suffix on integer 
> constant
> /usr/src/linux-2.4.20-8/include/asm/processor.h:265 parse error before 
> numeric constant
> /usr/src/linux-2.4.20-8/include/asm/processor.h:265 warning: function 
> declaration isn't a prototype
> /usr/src/linux-2.4.20-8/include/asm/processor.h:269 warning parameter names 
> (without types) in function declaration
> cpufreq.c: In function 'cpufreq_proc_init':
> cpufreq.c:327 warning: implicit declaration of function 'printk_R1b7d4074'
> cpufreq.c At top level
> cpufreq.c:192 warning: 'cpufreq_setup' defined but not used
> make[1]: *** [cpufreq.o] Error 1
> make[1]: Leaving directory '/usr/src/linux-2.4.20-8/kernel'
> make: *** [mod_kernel] Error 2

Interestingly none of those files have anything to do with the ipvs patch.
You can probably ignore the warnings (or else stop using the gcc de jour).
As for the prink error. Try running make dep and taking things from
there. If that doesn't work, copy your kernel configuration somewhere
safe then do make mrproper, make config (or whatever you prefer) make dep
and then try building the kernel again.

Or as Peter Muller suggested, just use the pre-patched kernel packages
on ultramonkey.org.

-- 
Horms
<Prev in Thread] Current Thread [Next in Thread>