Date: Sat, 25 Aug 2007 06:09:50 +0800 (CST) From: Hung-Yi Chen <gaod@hychen.org> To: FreeBSD-gnats-submit@FreeBSD.org Cc: jylefort@FreeBSD.org Subject: ports/115798: [PATCH] devel/hptools: fix GCC 4.2 builds Message-ID: <20070824220950.7D8285644B@gaod.tfcis.org> Resent-Message-ID: <200708242210.l7OMA3H8008743@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070824220950.7D8285644B>