Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Feb 2015 22:08:40 -0500
From:      Michael Butler <imb@protected-networks.net>
To:        Gleb Smirnoff <glebius@FreeBSD.org>, current@FreeBSD.org,  ports@FreeBSD.org
Subject:   removing _WANT_IFADDR breaks net-snmp
Message-ID:  <54EFDFB8.6020404@protected-networks.net>

next in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--6robXlSsvuiGwImOPUEQsoPf0NMlgDCJI
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

The recent changes which served to hide "struct ifaddr" have broken
net-snmp:

imb@toshi:/usr/ports/net-mgmt/net-snmp> sudo make
=3D=3D=3D>  Building for net-snmp-5.7.3_5
making all in /usr/ports/net-mgmt/net-snmp/work/net-snmp-5.7.3/snmplib
making all in /usr/ports/net-mgmt/net-snmp/work/net-snmp-5.7.3/agent
making all in /usr/ports/net-mgmt/net-snmp/work/net-snmp-5.7.3/agent/help=
ers
making all in
/usr/ports/net-mgmt/net-snmp/work/net-snmp-5.7.3/agent/mibgroup
/bin/sh ../../libtool --mode=3Dcompile cc -I../../include -I.
-I../../agent -I../../agent/mibgroup  -I../../snmplib -I/usr/include
-DNETSNMP_ENABLE_IPV6 -fno-strict-aliasing -O2 -pipe -march=3Dcore2
-I/usr/local/include -I/include -D_WANT_IFADDR -fstack-protector
-fno-strict-aliasing -std=3Dc99 -Ufreebsd11 -Dfreebsd11=3Dfreebsd11
-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 -o mibII/ipv6.lo mibII/ipv6.c
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=3Dcore2
-I/usr/local/include -I/include -D_WANT_IFADDR -fstack-protector
-fno-strict-aliasing -std=3Dc99 -Ufreebsd11 -Dfreebsd11=3Dfreebsd11
-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


--6robXlSsvuiGwImOPUEQsoPf0NMlgDCJI
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iEYEARECAAYFAlTv37gACgkQQv9rrgRC1JK1KgCgxIvfkOqDrqogdPWNvrVC8L9R
Vn8An38lYXDhQbwwPwwLe+VyFytOuZAl
=ok7l
-----END PGP SIGNATURE-----

--6robXlSsvuiGwImOPUEQsoPf0NMlgDCJI--



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