The port fails to build since the change to remove several in6p_* macros from f sys/netinet/in_pcb.h (SVN rev 189637). Fix: Apply the attached patch. Note: These macros were removed a day after __FreeBSD_version was bumped to 800070 in sys/param.h, thus the patch also checks that in6p_lport is not defined. Patch attached with submission follows: How-To-Repeat: Install a recent 8.0-CURRENT system >= SVN rev 189637 cd /usr/ports/net-mgmt/net-snmp make build cc -I../../include -I. -I../../agent -I../../agent/mibgroup -I../../snmplib -DNETSNMP_ENABLE_IPV6 -O2 -pipe -fno-strict-aliasing -Ufreebsd8 -Dfreebsd8=freebsd8 -DAPPLLIB_EXP=/usr/local/lib/perl5/5.8.9/BSDPAN -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -I/usr/local/include -I/usr/local/lib/perl5/5.8.9/mach/CORE -c mibII/ipv6.c -fPIC -DPIC -o mibII/.libs/ipv6.o mibII/ipv6.c: In function 'var_udp6': mibII/ipv6.c:1335: error: 'struct inpcb' has no member named 'in6p_lport' mibII/ipv6.c:1399: error: 'struct inpcb' has no member named 'in6p_lport' mibII/ipv6.c: In function 'var_tcp6': mibII/ipv6.c:1745: error: 'struct inpcb' has no member named 'in6p_ppcb' mibII/ipv6.c:1746: error: 'struct inpcb' has no member named 'in6p_ppcb' mibII/ipv6.c:1746: error: 'struct inpcb' has no member named 'in6p_ppcb' mibII/ipv6.c:1754: error: 'struct inpcb' has no member named 'in6p_lport' mibII/ipv6.c:1757: error: 'struct inpcb' has no member named 'in6p_fport' mibII/ipv6.c:1771: error: 'struct inpcb' has no member named 'in6p_lport' mibII/ipv6.c:1826: error: 'struct inpcb' has no member named 'in6p_lport' mibII/ipv6.c:1832: error: 'struct inpcb' has no member named 'in6p_fport' gmake[2]: *** [mibII/ipv6.lo] Error 1 gmake[2]: Leaving directory `/usr/ports/net-mgmt/net-snmp/work/net-snmp-5.4.2.1/agent/mibgroup' gmake[1]: *** [subdirs] Error 1 gmake[1]: Leaving directory `/usr/ports/net-mgmt/net-snmp/work/net-snmp-5.4.2.1/agent' gmake: *** [subdirs] Error 1
Responsible Changed From-To: freebsd-bugs->freebsd-ports-bugs Ports PR.
On Sat, Mar 28, 2009 at 2:50 AM, <FreeBSD-gnats-submit@freebsd.org> wrote: > Thank you very much for your problem report. > It has the internal identification `misc/133152'. > The individual assigned to look at your > report is: freebsd-bugs. > This should be a ports PR, please change it. I have also attached my first patch, which changes the in6p_* macros to inp_*. Either version can be used to build net-mgmt/net-snmp. Thanks, Scot
Responsible Changed From-To: freebsd-ports-bugs->miwi I'll take it.
State Changed From-To: open->feedback Scout, could you please resend the secound patch as attachment. Thanks.
State Changed From-To: feedback->closed Committed. Thanks!
miwi 2009-04-09 11:10:52 UTC FreeBSD ports repository Modified files: net-mgmt/net-snmp/files patch-ipv6.c Log: - Fix build on CURRENT PR: 133152 Submitted by: Scot Hetzel <swhetzel@gmail.com> Approved by: maintainer timeout Revision Changes Path 1.7 +16 -16 ports/net-mgmt/net-snmp/files/patch-ipv6.c _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"