From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Aug 24 22:10:03 2007 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9333F16A421 for ; Fri, 24 Aug 2007 22:10:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 769C513C45A for ; Fri, 24 Aug 2007 22:10:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l7OMA30I008744 for ; Fri, 24 Aug 2007 22:10:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l7OMA3H8008743; Fri, 24 Aug 2007 22:10:03 GMT (envelope-from gnats) Resent-Date: Fri, 24 Aug 2007 22:10:03 GMT Resent-Message-Id: <200708242210.l7OMA3H8008743@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, Hung-Yi Chen Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7FF8516A473 for ; Fri, 24 Aug 2007 22:08:45 +0000 (UTC) (envelope-from root@gaod.tfcis.org) Received: from gaod.tfcis.org (gaod.tfcis.org [210.70.137.25]) by mx1.freebsd.org (Postfix) with SMTP id 01EF813C494 for ; Fri, 24 Aug 2007 22:08:44 +0000 (UTC) (envelope-from root@gaod.tfcis.org) Received: by gaod.tfcis.org (Postfix, from userid 0) id 7D8285644B; Sat, 25 Aug 2007 06:09:50 +0800 (CST) Message-Id: <20070824220950.7D8285644B@gaod.tfcis.org> Date: Sat, 25 Aug 2007 06:09:50 +0800 (CST) From: Hung-Yi Chen To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: jylefort@FreeBSD.org Subject: ports/115798: [PATCH] devel/hptools: fix GCC 4.2 builds X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Aug 2007 22:10:03 -0000 >Number: 115798 >Category: ports >Synopsis: [PATCH] devel/hptools: fix GCC 4.2 builds >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Aug 24 22:10:02 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Hung-Yi Chen >Release: FreeBSD 6.2-STABLE i386 >Organization: >Environment: System: FreeBSD gaod.tfcis.org 6.2-STABLE FreeBSD 6.2-STABLE #18: Fri Aug 3 04:02:30 CST >Description: Fix build breakage under gcc 4.2 >How-To-Repeat: >Fix: diff -urN Hptools.orig/common/getopt.c Hptools/common/getopt.c --- Hptools.orig/common/getopt.c 2002-12-06 08:57:35.000000000 +0800 +++ Hptools/common/getopt.c 2007-08-25 05:56:40.000000000 +0800 @@ -21,7 +21,7 @@ int optopt, opterr = TRUE, optind = 1; char *optarg; -static int sp = 1; +int sp = 1; int getopt( int argc, char * const argv[], const char *opts ) { diff -urN Hptools.orig/sload/symb.c Hptools/sload/symb.c --- Hptools.orig/sload/symb.c 2002-12-06 09:00:15.000000000 +0800 +++ Hptools/sload/symb.c 2007-08-25 05:57:08.000000000 +0800 @@ -8,7 +8,7 @@ #include "sptree.h" -static SYMBOLPTR symtree; +SYMBOLPTR symtree; int lookups=0, lkcmps=0, adds=0; b_16 symbols; >Release-Note: >Audit-Trail: >Unformatted: