Subject: Re: compat_linux/amd64 need testers
To: None <port-amd64@netbsd.org>
From: Mihai CHELARU <kefren@netbsd.ro>
List: port-amd64
Date: 06/26/2005 13:37:49
Mihai CHELARU wrote:

> Emmanuel Dreyfus wrote:
> 
>> Hello
>> 
>> I made some prgress with compat_linux/amd64. It's probably not ready for
>> running interesting programs yet, but we need to try.
>> 
>> I'm looking for some testers that could try running stuff and discovers
>> the remaining problems.
>> 
> 
> Hi,
> 
> Every single linux binary I've try to execute fails like this:
> 
> $ ./mumu.static
> FATAL: kernel too old
> 
> Also, pkgsrc/emulators/suse91_base fails with the same error when execute
> ldconfig on install.
> Looks like it checks /proc/sys/kernel/osrelease (which netbsd procfs
> doesn't implement) but I'm not sure it doesn't check anything else because
> I've created that file and echoed there 2.6.11 but still complains.
> 

Ah, this makes the difference and looks like my testing programs are working
at least:

# cvs -d:pserver:anoncvs@anoncvs.netbsd.org:/cvsroot diff -u -rHEAD
src/sys/compat/linux/common/linux_sysctl.c
Index: src/sys/compat/linux/common/linux_sysctl.c
===================================================================
RCS file: /cvsroot/src/sys/compat/linux/common/linux_sysctl.c,v
retrieving revision 1.17
diff -u -r1.17 linux_sysctl.c
--- src/sys/compat/linux/common/linux_sysctl.c  20 Jun 2005 02:49:19 -0000     
1.17
+++ src/sys/compat/linux/common/linux_sysctl.c  26 Jun 2005 10:37:07 -0000
@@ -63,6 +63,9 @@
 #if defined(__i386__) || defined(__powerpc__)
 char linux_release[128] = "2.4.18";
 char linux_version[128] = "#0 Wed Feb 20 20:00:02 CET 2002";
+#elif defined(__amd64__)
+char linux_release[128] = "2.6.11";
+char linux_version[128] = "#0 Sat Jun 25 11:11:11 CET 2005";
 #else
 char linux_release[128] = "2.0.38";
 char linux_version[128] = "#0 Sun Nov 11 11:11:11 MET 2000";

-- 
Mihai