Subject: port-mac68k/4331: genassym.cf gets wrong value for MSGBUFPTECNT
To: None <gnats-bugs@gnats.netbsd.org>
From: Dave Huang <khym@bga.com>
List: netbsd-bugs
Date: 10/24/1997 05:10:23
>Number:         4331
>Category:       port-mac68k
>Synopsis:       genassym.cf gets wrong value for MSGBUFPTECNT
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Oct 24 03:20:01 1997
>Last-Modified:
>Originator:     Dave Huang
>Organization:
Name: Dave Huang     |   Mammal, mammal / their names are called /
INet: khym@bga.com   |   they raise a paw / the bat, the cat /
FurryMUCK: Dahan     |   dolphin and dog / koala bear and hog -- TMBG
Dahan: Hani G Y+C 21 Y++ L+++ W- C++ T++ A+ E+ S++ V++ F- Q+++ P+ B+ PA+ PL++
>Release:        NetBSD 1.3_ALPHA as of October 23, 1997
>Environment:
	
NetBSD 1.3_ALPHA mac68k


>Description:
	genassym.cf wants sizeof(struct msgbuf) for MSGBUFPTECNT, but
struct msgbuf no longer exists. This causes genassym.sh to output a
warning (from gcc), and MSGBUFPTECNT ends up being #defined as 0.
>How-To-Repeat:
	config a kernel, make assym.h and look for the warning from gcc:
/tmp/7100.c: In function `f56':
/tmp/7100.c:55: sizeof applied to an incomplete type

Then look at assym.h and notice "#define MSGBUFPTECNT 0"
>Fix:
	I'm not sure... actually, I just checked, and it looks like
like MSGBUFPTECNT is never actually used anywhere. Perhaps it should
just be deleted?
>Audit-Trail:
>Unformatted: