NetBSD Problem Report #470
From gnats Fri Sep 9 12:42:08 1994
Received: from goeast.de.convex.com (goeast.de.convex.com [130.168.115.2]) by sun-lamp.cs.berkeley.edu (8.6.9/8.6.9) with SMTP id MAA00810 for <gnats-bugs@sun-lamp.cs.berkeley.edu>; Fri, 9 Sep 1994 12:42:01 -0700
Message-Id: <199409090932.LAA02492@sniffer.de.convex.com>
Date: Fri, 9 Sep 1994 11:32:28 +0200
From: grefen@convex.convex.com
Reply-To: <grefen@convex.convex.com>
To: gnats-bugs@sun-lamp.cs.berkeley.edu
Subject: Bug in /usr/include/sys/msg.h
X-Send-Pr-Version: 3.2
>Number: 470
>Category: kern
>Synopsis: useless struct definition
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: kern-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Sep 09 12:50:09 +0000 1994
>Closed-Date: Tue Jul 11 13:40:15 +0000 1995
>Last-Modified:
>Originator: Stefan Grefen
>Release:
>Organization:
Stefan Grefen Convex Computer GmbH, Frankfurt, Germany
grefen@convex.com Phone: +49-69-665270
>Environment:
System: NetBSD sniffer 1.0_BETA NetBSD 1.0_BETA (TUAREG) #12: Thu Sep 1 14:44:41 MET DST 1994 grefen@sniffer:/usr/src/sys/arch/i386/compile/TUAREG i386
>Description:
/usr/include/sys/msg.h defines the struct msginfo
and immediatly defines a variable struct msginfo msginfo.
This can lead to "multiple defined symbols" linking a program
together.
>How-To-Repeat:
>Fix:
I guess this should be a typedef.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: gnats-admin->kern-bug-people
Responsible-Changed-By: jtc
Responsible-Changed-When: Thu Sep 15 19:02:51 1994
Responsible-Changed-Why:
Misfiled.
State-Changed-From-To: open->analyzed
State-Changed-By: jtc
State-Changed-When: Thu Sep 15 19:04:03 1994
State-Changed-Why:
Examination of the NetBSD kernel source (sysv_msg.c) and the SunOS and
OSF/1 <sys/msg.h> header files seems to indicate that the msginfo
variable _is_ correct, but both it and its structure definition belong
inside an #ifdef KERNEL.
I don't know why you were having problems with multiply defined
symbols, as the linker should have treated msginfo as a common.
State-Changed-From-To: analyzed->closed
State-Changed-By: jtc
State-Changed-When: Tue Jul 11 13:40:15 1995
State-Changed-Why:
Moved #ifdef _KERNEL up a few lines after confirming that msginfo struct/
variable is not used in userland code.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.