PROBLEM: compiling with gcc 3.0

From: Simone Piunno (simonep@wseurope.com)
Date: Tue Jun 19 2001 - 10:02:35 EST


Hi,

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
@@ -537,7 +537,7 @@
 extern unsigned long volatile jiffies;
 extern unsigned long itimer_ticks;
 extern unsigned long itimer_next;
-extern volatile struct timeval xtime __attribute__ ((aligned (16)));
+extern struct timeval xtime;
 
 extern void do_timer(struct pt_regs *)

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

-- 
.-----------------------------------------------------------------.
| Simone Piunno             Wireless Solutions srl - DADA group   |
| software architect        Europe HQ, via Castiglione 25 Bologna |
| http://www.wseurope.com   Tel: +390512966823 Fax: +390512966800 |
| http://www.waptopic.com   God is real, unless declared integer. |
'-----------------------------------------------------------------'
-
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:23 EST