ports/115798: [PATCH] devel/hptools: fix GCC 4.2 builds

Hung-Yi Chen gaod at hychen.org
Fri Aug 24 22:10:03 UTC 2007


>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:



More information about the freebsd-ports-bugs mailing list