Bug 202535

Summary: Fix net-mgmt/tcptrack build with clang 3.7.0
Product: Ports & Packages Reporter: Dimitry Andric <dim>
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: Closed FIXED    
Severity: Affects Some People CC: delphij, portmaster
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Bug Depends on:    
Bug Blocks: 201377    
Attachments:
Description Flags
Fix infinite recursion in net-mgmt/tcptrack none

Description Dimitry Andric freebsd_committer freebsd_triage 2015-08-20 21:39:58 UTC
Created attachment 160159 [details]
Fix infinite recursion in net-mgmt/tcptrack

During the exp-run in bug 201377, it was found that net-mgmt/tcptrack gives errors with a recent clang 3.7.0 snapshot:

http://package18.nyi.freebsd.org/data/headi386PR201377-default/2015-07-31_12h04m22s/logs/errors/tcptrack-1.4.2_2.log

This is because the program has a function with infinite recursion.  The attached patch fixes this.
Comment 1 Chris Hutchinson 2015-08-25 17:54:48 UTC
I use this utility fairly frequently. So I was
eager to incorporate your patch, when I saw you
had discovered the recursive loop.
I also decided to adopt it :-)
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=202658

--Chris
Comment 2 Xin LI freebsd_committer freebsd_triage 2015-08-26 00:30:57 UTC
Committed, thanks!
Comment 3 commit-hook freebsd_committer freebsd_triage 2015-08-26 00:31:14 UTC
A commit references this bug:

Author: delphij
Date: Wed Aug 26 00:30:37 UTC 2015
New revision: 395328
URL: https://svnweb.freebsd.org/changeset/ports/395328

Log:
   - Add more MASTERSITE;
   - Fix a bug revealed by clang 3.7 [1]
   - Give maintainership to submitter [2];

  PR:		ports/202535 [1], ports/202658 [2]
  Submitted by:	dim [1], Chris Hutchinson [2]

Changes:
  head/net-mgmt/tcptrack/Makefile
  head/net-mgmt/tcptrack/files/patch-IPAddress.h
  head/net-mgmt/tcptrack/pkg-descr