From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Dec 13 22:30:20 2006 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E7F2116A416 for ; Wed, 13 Dec 2006 22:30:20 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5955E43CA0 for ; Wed, 13 Dec 2006 22:28:34 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id kBDMU5qV076204 for ; Wed, 13 Dec 2006 22:30:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id kBDMU5BW076201; Wed, 13 Dec 2006 22:30:05 GMT (envelope-from gnats) Resent-Date: Wed, 13 Dec 2006 22:30:05 GMT Resent-Message-Id: <200612132230.kBDMU5BW076201@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Richard Arends Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1AB4216A407 for ; Wed, 13 Dec 2006 22:29:32 +0000 (UTC) (envelope-from richard@unixguru.nl) Received: from mx1.unixguru.nl (mx1.unixguru.nl [84.16.238.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id 415CF43C9E for ; Wed, 13 Dec 2006 22:27:59 +0000 (GMT) (envelope-from richard@unixguru.nl) Received: from localhost (localhost [127.0.0.1]) by mx1.unixguru.nl (Postfix) with ESMTP id A1DB74286 for ; Wed, 13 Dec 2006 23:29:28 +0100 (CET) Received: from mx1.unixguru.nl ([84.16.238.226]) by localhost (vs8616 [84.16.238.226]) (amavisd-new, port 10024) with ESMTP id 15831-03 for ; Wed, 13 Dec 2006 23:29:26 +0100 (CET) Received: from mail.unixguru.nl (mail.unixguru.nl [212.120.110.227]) by mx1.unixguru.nl (Postfix) with ESMTP id E0FC53FED for ; Wed, 13 Dec 2006 23:29:25 +0100 (CET) Received: by mail.unixguru.nl (Postfix, from userid 1001) id 9723C56471; Wed, 13 Dec 2006 23:29:25 +0100 (CET) Message-Id: <20061213222925.9723C56471@mail.unixguru.nl> Date: Wed, 13 Dec 2006 23:29:25 +0100 (CET) From: Richard Arends To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/106693: Update tcpdstat so it can be compiled with GCC 4.* X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Richard Arends List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Dec 2006 22:30:21 -0000 >Number: 106693 >Category: ports >Synopsis: Update tcpdstat so it can be compiled with GCC 4.* >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Wed Dec 13 22:30:04 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Richard Arends >Release: FreeBSD 7.0-CURRENT i386 >Organization: >Environment: System: FreeBSD fbsd_current.unixguru.nl 7.0-CURRENT FreeBSD 7.0-CURRENT #1: Wed Dec 13 21:36:53 CET 2006 root@fbsd_current.unixguru.nl:/usr/obj/usr/src/sys/GENERIC i386 >Description: tcpdstat can not be build with GCC 4.* >How-To-Repeat: cd /usr/ports/net/tcpdstat && make >Fix: Apply the following patch diff -ruN tcpdstat.orig/files/patch-net_read.c tcpdstat/files/patch-net_read.c --- tcpdstat.orig/files/patch-net_read.c Thu Jan 1 01:00:00 1970 +++ tcpdstat/files/patch-net_read.c Wed Dec 13 23:20:33 2006 @@ -0,0 +1,11 @@ +--- net_read.orig Wed Dec 13 23:11:59 2006 ++++ net_read.c Wed Dec 13 23:12:17 2006 +@@ -137,7 +137,7 @@ + pcap_t *pd; + int pcapfd; + +-static int packet_length; /* length of current packet */ ++int packet_length; /* length of current packet */ + + #define STAT_ADD(name) \ + { tcpdstat[(name)].packets++; tcpdstat[(name)].bytes += packet_length; } >Release-Note: >Audit-Trail: >Unformatted: