Subject: bin/16004: change to sysctl.c causes it not to compile on architectures without linux emulation
To: None <gnats-bugs@gnats.netbsd.org>
From: William Waites <ww@GROOVY.NET>
List: netbsd-bugs
Date: 03/22/2002 00:27:14
>Number:         16004
>Category:       bin
>Synopsis:       change to sysctl.c causes it not to compile on architectures without linux emulation
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Mar 21 21:33:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     ww@GROOVY.NET
>Release:        NetBSD 1.5ZC
>Organization:
	Groovy Network Services
>Environment:
System: NetBSD epanaphora 1.5ZC NetBSD 1.5ZC (EPANAPHORA-$Revision: 1.2 $) #16: Mon Mar 18 16:37:18 EST 2002 ww@epanaphora:/src/NetBSD/src/sys/arch/sparc64/compile/EPANAPHORA sparc64
Architecture: sparc64
Machine: sparc64
>Description:

Recently, as of revision 1.56 of sbin/sysctl/sysctl.c, some support for
linux emulation sysctls was added. In order to support this, the following
line appears:

#include "../../sys/compat/linux/common/linux_exec.h"

which on architectures that do not support linux emulation (e.g. sparc64)
hits an #error directive.

>How-To-Repeat:

Attempt to build sysctl on sparc64

>Fix:
	
For now, I have reverted to r1.55. Perhaps wrap emulation related parts of
sysctl.c with #ifdef/#endif?
>Release-Note:
>Audit-Trail:
>Unformatted: