Bug 115798 - [PATCH] devel/hptools: fix GCC 4.2 builds
Summary: [PATCH] devel/hptools: fix GCC 4.2 builds
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Jean-Yves Lefort
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-24 23:10 UTC by Hung-Yi Chen
Modified: 2007-10-03 14:50 UTC (History)
1 user (show)

See Also:


Attachments
file.diff (229 bytes, patch)
2007-08-24 23:10 UTC, Hung-Yi Chen
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Hung-Yi Chen 2007-08-24 23:10:02 UTC
Fix build breakage under gcc 4.2

Fix: -static int     sp = 1;
+int    sp = 1;

 int getopt( int argc, char * const argv[], const char *opts )
 {





-static SYMBOLPTR symtree;
+SYMBOLPTR symtree;
 int lookups=0, lkcmps=0, adds=0;

 b_16 symbols;--TPM66OMqAr7O7fLIRN8l2mbU8U7nl1cOX9NlsN6wfKED2G3T
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

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;
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2007-08-24 23:10:09 UTC
Responsible Changed
From-To: freebsd-ports-bugs->jylefort

Over to maintainer
Comment 2 dfilter service freebsd_committer freebsd_triage 2007-10-03 14:46:14 UTC
edwin       2007-10-03 13:46:06 UTC

  FreeBSD ports repository

  Modified files:
    devel/hptools        Makefile 
  Added files:
    devel/hptools/files  p-common_getopt.c p-sload_symb.c 
  Log:
  [PATCH] devel/hptools: fix GCC 4.2 builds
  
          Fix build breakage under gcc 4.2
  
  PR:             ports/115798
  Submitted by:   Hung-Yi Chen <gaod@hychen.org>
  Approved by:    maintainer timeout
  
  Revision  Changes    Path
  1.5       +8 -0      ports/devel/hptools/Makefile
  1.1       +11 -0     ports/devel/hptools/files/p-common_getopt.c (new)
  1.1       +11 -0     ports/devel/hptools/files/p-sload_symb.c (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 3 Edwin Groothuis freebsd_committer freebsd_triage 2007-10-03 14:46:16 UTC
State Changed
From-To: open->closed

Committed, thanks!