Subject: lib/528: bug in net/if.h
To: None <gnats-admin@sun-lamp.cs.berkeley.edu>
From: James Jegers <jimj@enigma.cs.uwm.edu>
List: netbsd-bugs
Date: 10/19/1994 12:35:04
>Number: 528
>Category: lib
>Synopsis: bug in net/if.h
>Confidential: yes
>Severity: serious
>Priority: medium
>Responsible: gnats-admin (Library Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Oct 19 12:35:02 1994
>Originator: James Jegers
>Organization:
" "
>Confidential:no
>Synopsis:one cann't compile net/if.h with c++
>Severity:serious
>Priority:medium
>Release: NetBSD1.0Beta
>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:
>Audit-Trail:
>Unformatted: