Subject: kern/2940: COMPAT_LINUX shouldn't need Sys V IPC
To: None <gnats-bugs@gnats.netbsd.org>
From: Lloyd Parkes <lloyd@puka.its.vuw.ac.nz>
List: netbsd-bugs
Date: 11/15/1996 15:25:50
>Number:         2940
>Category:       kern
>Synopsis:       COMPAT_LINUX needs Sys V IPC
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Nov 14 18:35:01 1996
>Last-Modified:
>Originator:     Lloyd Parkes
>Organization:
	Victoria University of Wellington
>Release:        1.2
>Environment:
System: NetBSD puka.its.vuw.ac.nz 1.2B NetBSD 1.2B (PUKA1) #4: Fri Nov 15 11:40:27 NZDT 1996 lloyd@puka.its.vuw.ac.nz:/usr/src/sys/arch/i386/compile/PUKA1 i386


>Description:
	The NetBSD kernel cannot be built if you have the COMPAT_LINUX
	switched on, and SYSMSG, SYSVSEM and SYSVSHM all switched off. The
	problem is that the without some IPC, the functions
	linux_to_bsd_ipc_perm and bsd_to_linux_ipc_perm in linux_ipc.c are
	superfluous, and the compiler warns about this. Since -Werror is
	on, this stop compilation.
>How-To-Repeat:
	Enable COMPAT_LINUX and comment out SYSV* in a kernel config file, 
	and try and build it.
>Fix:
	wrap some #if directives around various functions in linux_ipc.c
>Audit-Trail:
>Unformatted: