Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Feb 2015 11:19:56 -0500
From:      Michael Butler <imb@protected-networks.net>
To:        Gleb Smirnoff <glebius@FreeBSD.org>, zi@freebsd.org,  FreeBSD Current <freebsd-current@FreeBSD.org>
Subject:   SVN r279031 breaks net-snmp
Message-ID:  <54E75EAC.3010206@protected-networks.net>

index | next in thread | raw e-mail

[-- Attachment #1 --]
It seems that net-snmp wants struct ifaddr and now fails on -CURRENT with:

libtool: compile:  cc -I../../include -I. -I../../agent
-I../../agent/mibgroup -I../../snmplib -I/usr/include
-DNETSNMP_ENABLE_IPV6 -fno-strict-aliasing -O2 -pipe -march=core2
-I/usr/local/include -I/include -D_WANT_IFADDR -fstack-protector
-fno-strict-aliasing -std=c99 -Ufreebsd11 -Dfreebsd11=freebsd11
-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe
-fstack-protector -I/usr/local/include
-I/usr/local/lib/perl5/5.18/mach/CORE -c mibII/ipv6.c  -fPIC -DPIC -o
mibII/.libs/ipv6.o
mibII/ipv6.c:806:20: warning: returning 'char *' from a function with
result type 'u_char *' (aka 'unsigned char *') converts between pointers
to integer types with
      different sign [-Wpointer-sign]
            return p;
                   ^
mibII/ipv6.c:848: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 */
                       ^
/usr/include/sys/queue.h:493:9: note: expanded from macro 'TAILQ_HEAD'
        struct type *tqh_first; /* first element */                     \
               ^
1 warning and 1 error generated.
*** Error code 1

Stop.
make[4]: stopped in
/usr/ports/net-mgmt/net-snmp/work/net-snmp-5.7.3/agent/mibgroup
*** Error code 1


[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iEYEARECAAYFAlTnXq8ACgkQQv9rrgRC1JLZJwCfVBs5sHPWRolxWhzF06QlOZrL
MboAn1Q/KMKjkMLsWwRzhZx8+BhIKEPK
=0z8M
-----END PGP SIGNATURE-----
home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?54E75EAC.3010206>