ports/117319: [patch] games/xlogical bad C++ code w/ gcc4.2

Pietro Cerutti gahr at gahr.ch
Fri Oct 19 12:20:02 UTC 2007


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



More information about the freebsd-ports-bugs mailing list