[Bug 208197] Forward declaration of 'struct ifaddr'

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Mar 22 08:13:48 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=208197

            Bug ID: 208197
           Summary: Forward declaration of 'struct ifaddr'
           Product: Base System
           Version: 11.0-CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: misc
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: onborodin at gmail.com

net-snmp compile error:

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.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list