qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] syscall uname fix.


From: James Pellow
Subject: [Qemu-devel] syscall uname fix.
Date: Sun, 5 Dec 2004 20:22:06 -0800
User-agent: KMail/1.7.1

Hi All,

In my continued quest to get Gentoo to install under qemu-arm, I ran into a 
problem with configure: 

checking build system type... configure: error: cannot guess build type; you 
must specify one

With that info I tried uname -m and found it reporting i686.  Looking at 
linux-user/syscall.c under TARGET_NR_uname, an effort is made to copy 
UNAME_MACHINE into the utsname structure, and then for some reason sys_uname 
is called again, overwriting that change.  The following patch fixes that.  
configure now is able to determine the build system type and it looks like 
gentoo may now install.

--------------------------------------------------------------------------------------------------------

diff -ruN qemu-0.6.1/linux-user/syscall.c qemu-0.6.1_new/linux-user/syscall.c
--- qemu-0.6.1/linux-user/syscall.c     2004-11-14 12:51:33.000000000 -0800
+++ qemu-0.6.1_new/linux-user/syscall.c 2004-12-05 19:31:25.905763264 -0800
@@ -2403,7 +2403,7 @@
                 strcpy (buf->machine, UNAME_MACHINE);
             }
         }
-        ret = get_errno(sys_uname((struct new_utsname *)arg1));
         break;
 #ifdef TARGET_I386
     case TARGET_NR_modify_ldt:

-------------------------------------------------------------------------------

Cheers,

-- 
*****************************
James A. Pellow, President
Alent Design Solutions
www.alentdesignsolutions.com
(509) 526-0682
*****************************




reply via email to

[Prev in Thread] Current Thread [Next in Thread]