NetBSD Problem Report #528

From gnats  Wed Oct 19 12:22:22 1994
Received: from uwm.edu (uwm.edu [129.89.6.2]) by sun-lamp.cs.berkeley.edu (8.6.9/8.6.9) with ESMTP id MAA10656 for <gnats-bugs@sun-lamp.cs.berkeley.edu>; Wed, 19 Oct 1994 12:20:23 -0700
Message-Id: <199410191934.OAA11140@enigma.cs.uwm.edu>
Date: Wed, 19 Oct 1994 14:34:33 -0500
From: James Jegers <jimj@enigma.cs.uwm.edu>
Reply-To: jimj@enigma.cs.uwm.edu
To: gnats-bugs@sun-lamp.cs.berkeley.edu
Subject: bug in net/if.h
X-Send-Pr-Version: 3.2

>Number:         528
>Category:       lib
>Synopsis:       one cann't compile net/if.h with c++
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    gnats-admin
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Oct 19 12:35:02 +0000 1994
>Closed-Date:    Wed Oct 19 20:59:19 +0000 1994
>Last-Modified:  
>Originator:     James Jegers
>Release:        NetBSD1.0Beta
>Organization:
"	"
>Environment:

System: NetBSD enigma.cs.uwm.edu 1.0_BETA NetBSD 1.0_BETA (ENIGMA) #0: Mon Oct 3 23:09:12 CDT 1994 jimj@enigma.cs.uwm.edu:/usr/src/sys/arch/i386/compile/ENIGMA i386


>Description:

	Compiling net/if.h with the c++ compiler.  The problem is that
	if.h uses a structure called if_data, which is not declared as 
	a global structure to the file.
>How-To-Repeat:
%m %/-> cat i.c

#include <stdio.h>
#include <sys/socket.h>
#include <net/if.h>

main()
{
}
%m %/-> cc i.c
%m %/-> c++ i.c
In file included from i.c:4:
/usr/include/net/if.h:237: field `ifm_data' has incomplete type
%m %/-> exit

>Fix:

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: cgd 
State-Changed-When: Wed Oct 19 13:59:19 PDT 1994 
State-Changed-Why:  
just fixed it in the trunk. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(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.