Re: PROBLEM: compiling with gcc 3.0

From: Chris Meadors (clubneon@hereintown.net)
Date: Tue Jun 19 2001 - 10:23:26 EST


On Tue, 19 Jun 2001, Simone Piunno wrote:

> I was trying to compile 2.4.5 with gcc 3.0 but there is a problem
> (conflicting type) between kernel/timer.c and include/linux/sched.h
> Apparently the problem solves with this oneline workarond:
>
> --- linux/include/linux/sched.h Tue Jun 19 17:00:03 2001
> +++ linux/include/linux/sched.h.orig Tue Jun 19 17:00:13 2001

[short patch snipped]

> don't know if this is the right approach but works for me.

The approach was right, but your argument order to diff was backwards.
Andrea posted this patch a little while ago:

--- 2.4.6pre2aa1/include/linux/sched.h.~1~ Wed Jun 13 00:44:45 2001
+++ 2.4.6pre2aa1/include/linux/sched.h Wed Jun 13 00:47:23 2001
@@ -541,7 +541,7 @@
 extern unsigned long volatile jiffies;
 extern unsigned long itimer_ticks;
 extern unsigned long itimer_next;
-extern struct timeval xtime;
+extern volatile struct timeval xtime;
 extern void do_timer(struct pt_regs *);

 extern unsigned int * prof_buffer;

-Chris

-- 
Two penguins were walking on an iceberg.  The first penguin said to the
second, "you look like you are wearing a tuxedo."  The second penguin
said, "I might be..."                         --David Lynch, Twin Peaks

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Jun 23 2001 - 21:00:24 EST