syscall uname fix.
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.
--------------------------------------------------------------------------------------------------------
linux-user/syscall.c 2004-12-05 19:31:25.905763264 -0800 renamed from linux-user/syscall.c 2004-11-14 12:51:33.000000000 -0800 +0 -1
@@ -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,
Signature · 6 lines
***************************** James A. Pellow, President Alent Design Solutions www.alentdesignsolutions.com (509) 526-0682 *****************************