From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19k23A-0006ZY-TN for qemu-devel@nongnu.org; Tue, 05 Aug 2003 09:40:28 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19k22e-0006OY-34 for qemu-devel@nongnu.org; Tue, 05 Aug 2003 09:40:27 -0400 Received: from [195.68.2.34] (helo=gw.dev.netgem.com) by monty-python.gnu.org with esmtp (Exim 4.20) id 19k22d-0006No-45 for qemu-devel@nongnu.org; Tue, 05 Aug 2003 09:39:55 -0400 Subject: Re: [Qemu-devel] powerpc (debian/sid) woes From: Jocelyn Mayer In-Reply-To: <3F2F9294.80800@petig-baender.de> References: <3F258305.3000303@petig-baender.de> <3F26DFAA.2000508@free.fr> <1059514392.1750.805.camel@jma1.dev.netgem.com> <1059575253.1749.817.camel@jma1.dev.netgem.com> <3F2F9294.80800@petig-baender.de> Content-Type: multipart/mixed; boundary="=-/raorNeuHUZC/wTW76O3" Message-Id: <1060090840.1749.6595.camel@jma1.dev.netgem.com> Mime-Version: 1.0 Date: 05 Aug 2003 15:40:40 +0200 Reply-To: qemu-devel@nongnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu mailing list --=-/raorNeuHUZC/wTW76O3 Content-Type: text/plain Content-Transfer-Encoding: 7bit On Tue, 2003-08-05 at 13:18, Christof Petig wrote: > Jocelyn Mayer schrieb: > > I compiled a fresh gcc 3.3 tonight. > > I've been able to build all qemu emulator targets, > > after a cvs update with no problems. > > My config is now: > > kernel 2.6.0-test1 > > glibc 2.2.5 > > gcc 3.3 > > binutils 1.13 > > My problem is not that it does not compile with 3.3 (it actually > compiles well). If compiled with 3.3 it goes into an endless loop (or > ill-instructs with -O1). And I can't go back to 2.95 because 2.95 does > not like the new debian kernel headers. > I need to do more tests to check if this ever happens for me... > Anyway the fact that different kernel headers (2.4.21-powerpc) are > shipped with glibc on debian and used during the compilation might be > the problem for me. > > Perhaps I would have had more luck if I either took my 2.4.21 headers or > the 2.6.0-test2 headers. I will give it a try (but 2.6.0-test2 does not > compile for me [problem with event.c]) Here's the patch you need to make it compile: --=-/raorNeuHUZC/wTW76O3 Content-Disposition: attachment; filename=evdev.c.diff Content-Type: text/plain; name=evdev.c.diff; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit --- evdev.c.old Mon Jun 16 06:39:02 2003 +++ evdev.c Thu Jul 31 02:41:35 2003 @@ -208,7 +208,7 @@ struct evdev *evdev = list->evdev; struct input_dev *dev = evdev->handle.dev; struct input_absinfo abs; - int i, t, u; + int i, t, u, v; if (!evdev->exist) return -ENODEV; @@ -240,7 +240,8 @@ if (get_user(t, ((int *) arg) + 0)) return -EFAULT; if (t < 0 || t > dev->keycodemax || !dev->keycodesize) return -EINVAL; u = INPUT_KEYCODE(dev, t); - if (get_user(INPUT_KEYCODE(dev, t), ((int *) arg) + 1)) return -EFAULT; + v = INPUT_KEYCODE(dev, t); + if (get_user(v, ((int *) arg) + 1)) return -EFAULT; for (i = 0; i < dev->keycodemax; i++) if(INPUT_KEYCODE(dev, t) == u) break; --=-/raorNeuHUZC/wTW76O3--