Bug 208196 - Forward declaration of 'struct ifaddr' in /usr/include/net/if_var.h
Summary: Forward declaration of 'struct ifaddr' in /usr/include/net/if_var.h
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Many People
Assignee: freebsd-bugs (Nobody)
Keywords: patch
: 208197 (view as bug list)
Depends on:
Reported: 2016-03-22 08:02 UTC by onborodin
Modified: 2016-04-04 07:15 UTC (History)
0 users

See Also:

moving declaration struct ifaddr "to up" (3.10 KB, patch)
2016-03-22 08:02 UTC, onborodin
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description onborodin 2016-03-22 08:02:40 UTC
Created attachment 168474 [details]
moving declaration struct ifaddr "to up"

Error while compiling net-snmp

libtool: compile:  clang -I../../include -I. -I../../agent -I../../agent/mibgroup -I../../snmplib -I/usr/include -DNETSNMP_ENABLE_IPV6 -fno-strict-aliasing -O -pipe -O2 -march=armv6 -DARM_ARCH_6=1 -D_WANT_IFADDR -I/usr/local/include -I/include -fno-strict-aliasing -std=c99 -Ufreebsd11 -Dfreebsd11=freebsd11 -c mibII/ipv6.c  -fPIC -DPIC -o mibII/.libs/ipv6.o

mibII/ipv6.c:850:29: error: variable has incomplete type 'struct ifaddr'
            struct ifaddr   ifaddr;
/usr/include/net/if_var.h:89:24: note: forward declaration of 'struct ifaddr'
TAILQ_HEAD(ifaddrhead, ifaddr); /* instantiation is preserved in the list */
1 warning and 1 error generated.
Makefile:98: recipe for target 'mibII/ipv6.lo' failed
gmake[2]: *** [mibII/ipv6.lo] Error 1

Fast patch in attacment.
Comment 1 Enji Cooper freebsd_committer 2016-03-22 08:15:10 UTC
*** Bug 208197 has been marked as a duplicate of this bug. ***