Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Oct 2007 12:12:38 GMT
From:      Pietro Cerutti <gahr@gahr.ch>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/117319: [patch] games/xlogical bad C++ code w/ gcc4.2
Message-ID:  <200710191212.l9JCCcvm052907@www.freebsd.org>
Resent-Message-ID: <200710191220.l9JCK2DB040181@freefall.freebsd.org>

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

>Number:         117319
>Category:       ports
>Synopsis:       [patch] games/xlogical bad C++ code w/ gcc4.2
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Oct 19 12:20:02 UTC 2007
>Closed-Date:
>Last-Modified:
>Originator:     Pietro Cerutti
>Release:        6-2-STABLE
>Organization:
Bern University of Applied Sciences
>Environment:
FreeBSD gahrtop.localhost 6.2-STABLE FreeBSD 6.2-STABLE #36: Mon Oct  8 14:09:32 CEST 2007     root@gahrtop.localhost:/usr/obj/usr/src/sys/MSI1034  i386

>Description:
games/xlogical fails with bad C++ code error when compiled with gcc 4.2
>How-To-Repeat:
cd /usr/ports/games/xlogical && make
>Fix:
Add this patch to files/patch-gamelogic.cpp:

--- gamelogic.cpp.orig  2007-10-19 14:00:18.000000000 +0200
+++ gamelogic.cpp       2007-10-19 13:57:53.000000000 +0200
@@ -154,7 +154,7 @@
                levelFile = NULL;
        }

-       currentMap = NULL;
+       currentMap = (list< class Clevel_map *>::iterator)NULL;

        playerName = new char[32+1];
        strcpy( playerName, "nobody" );


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



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