Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Jun 2007 23:58:11 -0500 (CDT)
From:      "Conrad J. Sabatier" <conrads@cox.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/113400: games/gnuchess -- fix for broken compile under gcc 4.2
Message-ID:  <200706060458.l564wBl5080358@serene.no-ip.org>
Resent-Message-ID: <200706060500.l56509bR053680@freefall.freebsd.org>

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

>Number:         113400
>Category:       ports
>Synopsis:       games/gnuchess -- fix for broken compile 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:   Wed Jun 06 05:00:08 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Conrad J. Sabatier
>Release:        FreeBSD 7.0-CURRENT amd64
>Organization:
>Environment:
System: FreeBSD serene.no-ip.org 7.0-CURRENT FreeBSD 7.0-CURRENT #7: Sun Jun 3 18:07:34 CDT 2007 conrads@serene.no-ip.org:/usr/obj/usr/src/sys/CUSTOM amd64


>Description:
	Fix a show-stopper in building under gcc 4.2 (static declaration 
	following non-static)
>How-To-Repeat:
	N/A
>Fix:
	Patch below

--- gnuchess.diff begins here ---
diff -urN --exclude=CVS gnuchess.orig/files/patch-input.c gnuchess/files/patch-input.c
--- gnuchess.orig/files/patch-input.c	Wed Dec 31 18:00:00 1969
+++ gnuchess/files/patch-input.c	Tue Jun  5 23:35:32 2007
@@ -0,0 +1,11 @@
+--- src/input.c.orig	Tue Jun  5 23:34:06 2007
++++ src/input.c	Tue Jun  5 23:34:14 2007
+@@ -92,7 +92,7 @@
+   fgets(inputstr, MAXSTR, stdin);
+ }
+ 
+-static pthread_t input_thread;
++pthread_t input_thread;
+ 
+ /* Mutex and condition variable for thread communication */
+ 
--- gnuchess.diff ends here ---


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



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