Bug 133152 - net-mgmt/net-snmp: fails building on recent -CURRENT
Summary: net-mgmt/net-snmp: fails building on recent -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: Martin Wilke
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-28 07:50 UTC by Scot Hetzel
Modified: 2009-04-09 12:20 UTC (History)
0 users

See Also:


Attachments
file.diff (611 bytes, patch)
2009-03-28 07:50 UTC, Scot Hetzel
no flags Details | Diff
patch-agent_mibgroup_mibII_ipv6.c-ver2.txt (5.02 KB, patch)
2009-03-28 07:58 UTC, Scot Hetzel
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Scot Hetzel 2009-03-28 07:50:02 UTC
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
Comment 1 Bruce Cran freebsd_committer freebsd_triage 2009-03-28 07:53:55 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-ports-bugs

Ports PR.
Comment 2 Scot Hetzel 2009-03-28 07:58:37 UTC
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
Comment 3 Martin Wilke freebsd_committer freebsd_triage 2009-03-28 13:32:02 UTC
Responsible Changed
From-To: freebsd-ports-bugs->miwi

I'll take it.
Comment 4 Martin Wilke freebsd_committer freebsd_triage 2009-03-28 17:01:48 UTC
State Changed
From-To: open->feedback

Scout, 

could you please resend the secound patch as attachment.  Thanks.
Comment 5 Martin Wilke freebsd_committer freebsd_triage 2009-04-09 12:10:35 UTC
State Changed
From-To: feedback->closed

Committed. Thanks!
Comment 6 dfilter service freebsd_committer freebsd_triage 2009-04-09 12:11:11 UTC
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"