ports/113932: textproc/glimpse: fix build breakage under gcc 4.2

Conrad J. Sabatier conrads at cox.net
Fri Jun 22 03:40:04 UTC 2007


>Number:         113932
>Category:       ports
>Synopsis:       textproc/glimpse: fix build breakage under gcc 4.2
>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:   Fri Jun 22 03:40:03 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Conrad J. Sabatier
>Release:        FreeBSD 7.0-CURRENT amd64
>Organization:
none
>Environment:
System: FreeBSD serene.no-ip.org 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Tue Jun 19 22:22:02 CDT 2007 root at serene.no-ip.org:/usr/obj/usr/src/sys/CUSTOM amd64


>Description:
	Fix build breakage under gcc 4.2 (static declaration following 
	non-static)
>How-To-Repeat:
	N/A
>Fix:
	Add the following patch to port's files directory

--- patch-index__glimpse.c begins here ---
--- ./index/glimpse.c.orig	2007-06-21 22:24:44.000000000 -0500
+++ ./index/glimpse.c	2007-06-21 22:25:15.000000000 -0500
@@ -23,7 +23,7 @@
 /* TEMP_DIR is normally defined in ../main.c; if we're building
  * buildcast, that's not linked in, so we need to define one here. */
 /* char * TEMP_DIR = NULL; */
-static char * TEMP_DIR = "/tmp";
+char * TEMP_DIR = "/tmp";
 #endif /* BUILDCAST */
 extern int indexable_char[256];
 extern int GenerateHash;
--- patch-index__glimpse.c ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list