Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Mar 2016 08:02:40 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 208196] Forward declaration of 'struct ifaddr'
Message-ID:  <bug-208196-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D208196

            Bug ID: 208196
           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@FreeBSD.org
          Reporter: onborodin@gmail.com

Created attachment 168474
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D168474&action=
=3Dedit
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=3Darmv6 -DARM_ARCH_6=3D1 -D_WANT_I=
FADDR
-I/usr/local/include -I/include -fno-strict-aliasing -std=3Dc99 -Ufreebsd11
-Dfreebsd11=3Dfreebsd11 -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 ifadd=
r'
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.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-208196-8>