Subject: kern/36431: kernel does not build without options PTRACE
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Pavel Cahyna <pcah8322@artax.karlin.mff.cuni.cz>
List: netbsd-bugs
Date: 06/02/2007 21:10:00
>Number:         36431
>Category:       kern
>Synopsis:       kernel does not build without options PTRACE
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jun 02 21:10:00 +0000 2007
>Originator:     Pavel Cahyna
>Release:        NetBSD -current
>Organization:
>Environment:
Architecture: i386
Machine: i386
>Description:
ptrace(2) support is now supposed to be optional, but when one does
attempt to remove it, this results in:
cc1: warnings being treated as errors
/Volumes/NetBSD/src/sys/kern/kern_subr.c: In function 'trace_enter':
/Volumes/NetBSD/src/sys/kern/kern_subr.c:1377: warning: unused variable 'p'
/Volumes/NetBSD/src/sys/kern/kern_subr.c: In function 'trace_exit':
/Volumes/NetBSD/src/sys/kern/kern_subr.c:1420: warning: unused variable 'p'
--- kern_subr.o ---
>How-To-Repeat:
add "no options PTRACE" to a kernel config.
>Fix:
unknown.