From owner-freebsd-current@FreeBSD.ORG Fri Feb 27 03:08:45 2015 Return-Path: Delivered-To: current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8E8FB2BF; Fri, 27 Feb 2015 03:08:45 +0000 (UTC) Received: from mail.auburn.protected-networks.net (mail.auburn.protected-networks.net [IPv6:2001:470:1f07:4e1::3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.auburn.protected-networks.net", Issuer "Protected Networks Certificate Authority" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 54B0131F; Fri, 27 Feb 2015 03:08:45 +0000 (UTC) Received: from toshi.auburn.protected-networks.net (toshi.auburn.protected-networks.net [192.168.1.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "Iain Butler", Issuer "RSA Class 2 Personal CA v2" (verified OK)) (Authenticated sender: imb@mail.auburn.protected-networks.net) by mail.auburn.protected-networks.net (Postfix) with ESMTPSA id 39A671CC12; Thu, 26 Feb 2015 22:08:43 -0500 (EST) Message-ID: <54EFDFB8.6020404@protected-networks.net> Date: Thu, 26 Feb 2015 22:08:40 -0500 From: Michael Butler User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Gleb Smirnoff , current@FreeBSD.org, ports@FreeBSD.org Subject: removing _WANT_IFADDR breaks net-snmp OpenPGP: id=0442D492 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="6robXlSsvuiGwImOPUEQsoPf0NMlgDCJI" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Feb 2015 03:08:45 -0000 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--