Subject: port-pmax/3674: libkvm/libc compile problem
To: None <gnats-bugs@gnats.netbsd.org>
From: None <jason@logical.thought.net>
List: netbsd-bugs
Date: 05/26/1997 19:44:23
>Number: 3674
>Category: port-pmax
>Synopsis: libc/libkvm.old won't compile
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: gnats-admin (GNATS administrator)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon May 26 12:50:02 1997
>Last-Modified:
>Originator: Jason Wright
>Organization:
None
>Release: May 26 sup
>Environment:
System: NetBSD logical 1.2C NetBSD 1.2C (GENERIC) #2: Sat Mar 15 07:12:37 PST 1997 jonathan@Reno.DSG.Stanford.EDU:/reno/compile/GENERIC pmax
Supped sources: May 26 1997 (today)
>Description:
libc and libkvm.old won't compile:
In file included from /usr/include/machine/proc.h:3,
from /usr/include/sys/proc.h:46,
from /usr/src/lib/libkvm.old/../libkvm/kvm_getloadavg.c:47:
/usr/include/mips/proc.h:56: warning: `struct proc' declared inside parameter list
/usr/include/mips/proc.h:56: warning: its scope is only this definition or declaration,
/usr/include/mips/proc.h:56: warning: which is probably not what you want.
>How-To-Repeat:
sup ; (cd /usr/src; make includes); (cd /usr/src/lib/libkvm.old; make)
>Fix:
There is a function defined in /usr/include/mips/proc.h:
extern int mips_singlestep __P((struct proc *p));
"struct proc" hasn't been defined yet because it looks as though sys/proc.h
depends on structures from mips/proc.h (actually machine/proc.h).
Commenting out the function definition allows libkvm.old to compile (after
adding -DMIPS1 to CFLAGS to fix another bug that's been discussed on the list).
>Audit-Trail:
>Unformatted: