Subject: Re: COMPAT_LINUX compile fix
To: Wojciech Puchar <wojtek@tensor.3miasto.net>
From: Gary Duzan <gary@duzan.org>
List: port-amd64
Date: 08/22/2005 18:24:42
In Message <Pine.NEB.4.62.0508230019380.28222@chylonia.3miasto.net> ,
   Wojciech Puchar <wojtek@tensor.3miasto.net> wrote:

=>does it work with suse91_base package?
=>or anything at all.
=>
=>ldconfig reports kernel too old

   I didn't get that far, having been distracted by other minor
concerns, like moving into a new apartment in a new state and
finding employment. :-)  I was primarily interested in having it
compile so that I could occasionally try it and see how the emulation
was coming along.

					Gary Duzan


=>On Sun, 14 Aug 2005, Gary Duzan 
=>wrote:
=>
=>> Date: Sun, 14 Aug 2005 21:17:33 -0400
=>> From: Gary Duzan <gary@duzan.org>
=>> To: port-amd64@NetBSD.org
=>> Subject: COMPAT_LINUX compile fix
=>> 
=>>   I had to make the attached changes to get a kernel to compile with
=>> COMPAT_LINUX enabled. The commons change prevents a duplicate symbol
=>> on link, and the machdep change pulls in WCOREDUMP and friends.
=>>
=>> 					Gary Duzan
=>>
=>>
=>>
=>> Index: sys/compat/linux/arch/amd64/linux_commons.c
=>> ===================================================================
=>> RCS file: /usr2/netbsd-cvs/src/sys/compat/linux/arch/amd64/linux_commons.c,v
=>> retrieving revision 1.1
=>> diff -u -r1.1 linux_commons.c
=>> --- sys/compat/linux/arch/amd64/linux_commons.c	3 May 2005 16:26:30 -0000	1.1
=>> +++ sys/compat/linux/arch/amd64/linux_commons.c	14 Aug 2005 14:50:42 -0000
=>> @@ -34,4 +34,6 @@
=>> #include "../../common/linux_misc_notalpha.c"
=>> #include "../../common/linux_sig_notalpha.c"
=>> #include "../../common/linux_sigaction.c"
=>> +#if 0
=>> #include "../../common/linux_uselib.c"
=>> +#endif
=>> Index: sys/compat/linux/arch/amd64/linux_machdep.c
=>> ===================================================================
=>> RCS file: /usr2/netbsd-cvs/src/sys/compat/linux/arch/amd64/linux_machdep.c,v
=>> retrieving revision 1.9
=>> diff -u -r1.9 linux_machdep.c
=>> --- sys/compat/linux/arch/amd64/linux_machdep.c	24 Jun 2005 22:57:05 -0000	1.9
=>> +++ sys/compat/linux/arch/amd64/linux_machdep.c	14 Aug 2005 14:07:34 -0000
=>> @@ -44,6 +44,7 @@
=>> #include <sys/ptrace.h> /* for process_read_fpregs() */
=>> #include <sys/user.h>
=>> #include <sys/ucontext.h>
=>> +#include <sys/wait.h>
=>>
=>> #include <machine/reg.h>
=>> #include <machine/pcb.h>
=>>