Re: 2.1.26 compilation problems...

Tsurng-Chen Chern (maxchern@earthlink.net)
Tue, 11 Feb 1997 13:52:10 -0800


Try "-O2" or "-O".

Matthew Harrell wrote:
>
> Hi, I've been out of the country for a while and I haven't quite been able
> to dig through all my back mail, but I didn't see either of these problems
> mentioned with compiling the 2.1.26 kernel. First of all, I had to apply
> the following patch to compile with APM enabled:
>
> --- lx-2.1.25/arch/i386/kernel/time.c Tue Feb 11 09:57:07 1997
> +++ linux/arch/i386/kernel/time.c Tue Feb 11 14:32:38 1997
> @@ -34,17 +34,17 @@
>
> extern int setup_x86_irq(int, struct irqaction *);
>
> +extern volatile unsigned long lost_ticks;
> +
> +/* change this if you have some constant time drift */
> +#define USECS_PER_JIFFY (1000020/HZ)
> +
> #ifndef CONFIG_APM /* cycle counter may be unreliable */
> /* Cycle counter value at the previous timer interrupt.. */
> static struct {
> unsigned long low;
> unsigned long high;
> } init_timer_cc, last_timer_cc;
> -
> -extern volatile unsigned long lost_ticks;
> -
> -/* change this if you have some constant time drift */
> -#define USECS_PER_JIFFY (1000020/HZ)
>
> static unsigned long do_fast_gettimeoffset(void)
> {
>
> and when I get the following error when I try to compile checksum.c:
> gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O3
> -fomit-frame-pointer -pipe -fno-strength-reduce -m486 -malign-loops=2
> -malign-jumps=2 -malign-functions=2 -DCPU=586 -c -o checksum.o checksum.c
> {standard input}: Assembler messages:
> {standard input}:488: Fatal error: Symbol end_of_body already defined.
>
> I seem to have all the required programs to compile the kernel so I don't
> think I'm missing anything. I've attached the .config file I'm using below.
>

-- 
Max Chern, Unix Software Engineer     |  Voice: 213-644-9600
EarthLink Network, Inc.               |  Fax:   213-644-9542
maxchern@earthlink.net                |  3171 Los Feliz Blvd.
http://www.earthlink.net/             |  Los Angeles, CA 90039