Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Jul 2003 11:42:38 +0200
From:      Kirill Ponomarew <ponomarew@oberon.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/54609: Update games/phalanx: fix build with gcc-3.3
Message-ID:  <E19dRl8-000Gey-1a@voodoo.oberon.net>
Resent-Message-ID: <200307180950.h6I9o8Vk079916@freefall.freebsd.org>

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

>Number:         54609
>Category:       ports
>Synopsis:       Update games/phalanx: fix build with gcc-3.3
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jul 18 02:50:08 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Kirill Ponomarew
>Release:        FreeBSD 4.8-STABLE i386
>Organization:
Oberon.net 
>Environment:
 
        
>Description:
Update games/phalanx: fix build with gcc-3.3

Reported by bento:
http://bento.freebsd.org/errorlogs/i386-5-latest/phalanx-22.log

>How-To-Repeat:
>Fix:
diff -urN phalanx.orig/files/patch-phalanx.c phalanx/files/patch-phalanx.c
--- phalanx.orig/files/patch-phalanx.c	Thu Jan  1 01:00:00 1970
+++ phalanx/files/patch-phalanx.c	Fri Jul 18 11:39:43 2003
@@ -0,0 +1,57 @@
+--- phalanx.c.orig	Fri Jul 18 13:36:59 2003
++++ phalanx.c	Fri Jul 18 13:38:52 2003
+@@ -11,30 +11,30 @@
+ 
+ void badoptions(void)
+ {
+-printf("\
+-Usage:    phalanx [options] [<moves> <minutes> [<increment in seconds>]]
+-          phalanx [options] [<seconds per move>]
+-          phalanx bench
+-          phalanx bcreate [options]
+-Options:  -t <transposition table size in kilobytes>
+-          -f <fixed search time in seconds>
+-          -x <+/->  xboard mode on/off        default: on
+-          -p <+/->  permanent brain on/off    default: off
+-          -s <+/->  show thinking on/off      default: off
+-          -c <+/->  cpu time                  default: off
+-          -o <+/->  polling input             default: on
+-          -b <+/->  opening book              default: on
+-          -r <resign value in centipawns>     default: 0 (no resigning)
+-          -e <easy level 0...100>             default: 0 (best play)
+-          -l <+/->  learning on/off           default: on
+-          -v        print version and exit
+-          -P <primary book directory>
+-          -S <secondary book directory>
+-          -L <learning file directory>
+-          -g <log file name>
+-Examples: phalanx -c+ -s+ -o - -x- -f 60 -t4000
+-          xboard -fcp \"phalanx -l+ -r800\"
+-");
++printf("\n"
++"Usage:    phalanx [options] [<moves> <minutes> [<increment in seconds>]]\n"
++          "phalanx [options] [<seconds per move>]\n"
++          "phalanx bench\n"
++          "phalanx bcreate [options]\n"
++"Options:  -t <transposition table size in kilobytes>\n"
++          "-f <fixed search time in seconds>\n"
++          "-x <+/->  xboard mode on/off        default: on\n"
++          "-p <+/->  permanent brain on/off    default: off\n"
++          "-s <+/->  show thinking on/off      default: off\n"
++          "-c <+/->  cpu time                  default: off\n"
++          "-o <+/->  polling input             default: on\n"
++          "-b <+/->  opening book              default: on\n"
++          "-r <resign value in centipawns>     default: 0 (no resigning)\n"
++          "-e <easy level 0...100>             default: 0 (best play)\n"
++          "-l <+/->  learning on/off           default: on\n"
++          "-v        print version and exit\n"
++          "-P <primary book directory>\n"
++          "-S <secondary book directory>\n"
++          "-L <learning file directory>\n"
++          "-g <log file name>\n"
++"Examples: phalanx -c+ -s+ -o - -x- -f 60 -t4000\n"
++          "xboard -fcp \"phalanx -l+ -r800\n"
++);
+ exit(0);
+ }
+ 
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E19dRl8-000Gey-1a>