[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#654712: /usr/include/net/if.h:94:17: error: field ‘ifi_lastchange’ has incomplete type

On Thu, 5 Jan 2012, Christoph Egger wrote:

Package: libc0.1-dev
Version: 2.13-23
Severity: normal



| #include <net/if.h>
| int main() {
| }

with gcc -ansi

results in a

/usr/include/net/if.h:94:17: error: field ʽifi_lastchangeʼ has incomplete type

Seen in tcos build

(On stock FreeBSD,) net/if.h provides a few functions such as if_nametoindex(3); the synopsis of that man page lists:
#include <sys/types.h>
#include <sys/socket.h>
#include <net/if.h>

which seems to indicate that these first two headers are required to be included before net/if.h itself, which would seem to make this "programmer error". Perhaps this should be reassigned to tcos? (Though the bsd folks should be kept in the loop regardless, I should think.)

(Sorry, the kFreeBSD box that I do dev work on is unavailable at the moment for me to check.)

-Ben Kaduk

Reply to: