Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Jun 2007 22:33:07 -0500 (CDT)
From:      "Conrad J. Sabatier" <conrads@cox.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        kris@obsecurity.org
Subject:   ports/113932: textproc/glimpse: fix build breakage under gcc 4.2
Message-ID:  <200706220333.l5M3X7mf052529@serene.no-ip.org>
Resent-Message-ID: <200706220340.l5M3e3gR067425@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200706220333.l5M3X7mf052529>