Bug 71071 - ports/net-mgmt/net-snmp does not build on -CURRENT
Summary: ports/net-mgmt/net-snmp does not build on -CURRENT
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Jun Kuriyama
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-28 10:40 UTC by Matthew Thyer
Modified: 2004-11-29 04:09 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Thyer 2004-08-28 10:40:30 UTC
 cc -I../../include -I../../include -I. -I../.. -I. -I./../.. -I./../../snmplib -I./.. -I.. -DAPPLLIB_EXP=/usr/local/lib/perl5/5.6.1/BSDPAN -fno-strict-aliasing -I/usr/local/lib/perl5/5.6.1/mach/CORE -DINET6 -O -pipe -Dfreebsd6 -c mibII/tcpTable.c  -fPIC -DPIC -o mibII/.libs/tcpTable.o
mibII/tcpTable.c: In function `tcpTable_load':
mibII/tcpTable.c:742: error: structure has no member named `xt_tp'
mibII/tcpTable.c:746: error: structure has no member named `xt_inp'
*** Error code 1

Stop in /usr/ports/net-mgmt/net-snmp/work/net-snmp-5.1.2/agent/mibgroup.
*** Error code 1

Stop in /usr/ports/net-mgmt/net-snmp/work/net-snmp-5.1.2/agent.
*** Error code 1

Stop in /usr/ports/net-mgmt/net-snmp/work/net-snmp-5.1.2.
*** Error code 1

Stop in /usr/ports/net-mgmt/net-snmp.

Fix: 

A workaround can be found here:

http://sourceforge.net/mailarchive/forum.php?thread_id=3910688&forum_id=4959

The workaround is:

Yep. The whole tcpTable and udpTables are broken for the whole BSD family.
 
   ./configure --with-out-mib-modules="mibII/tcpTable mibII/udpTable"
 
 and you"ll need to change a TCP_Count_Connections() call to a hardcoded 0,
 unless you are using cvs.
How-To-Repeat: Try to build ports/net-mgmt/net-snmp on recent -CURRENT
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2004-08-28 18:07:39 UTC
Responsible Changed
From-To: freebsd-ports-bugs->kuriyama

Over to maintainer.
Comment 2 Jun Kuriyama freebsd_committer freebsd_triage 2004-11-29 04:08:53 UTC
State Changed
From-To: open->closed

Fixed, thanks!