From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Jan 19 21:50:11 2011 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 441281065670 for ; Wed, 19 Jan 2011 21:50:11 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 18AF68FC19 for ; Wed, 19 Jan 2011 21:50:11 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p0JLoAsG092017 for ; Wed, 19 Jan 2011 21:50:10 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p0JLoAd0092016; Wed, 19 Jan 2011 21:50:10 GMT (envelope-from gnats) Date: Wed, 19 Jan 2011 21:50:10 GMT Message-Id: <201101192150.p0JLoAd0092016@freefall.freebsd.org> To: freebsd-ports-bugs@FreeBSD.org From: Anonymous Cc: Subject: Re: ports/150883: Ports games/openastromenace won't compile on 64 bit X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Anonymous List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Jan 2011 21:50:11 -0000 The following reply was made to PR ports/150883; it has been noted by GNATS. From: Anonymous To: Rusty Nejdl Cc: bug-followup@FreeBSD.org Subject: Re: ports/150883: Ports games/openastromenace won't compile on 64 bit Date: Thu, 20 Jan 2011 00:38:43 +0300 Can you try below diff? It should also fix build with gcc45. --- a.diff begins here --- Index: games/openastromenace/Makefile =================================================================== RCS file: /a/.cvsup/ports/games/openastromenace/Makefile,v retrieving revision 1.10 diff -u -p -r1.10 Makefile --- games/openastromenace/Makefile 6 Jun 2010 20:43:48 -0000 1.10 +++ games/openastromenace/Makefile 19 Jan 2011 21:24:51 -0000 @@ -7,7 +7,7 @@ PORTNAME= openastromenace PORTVERSION= 1.2.0 -PORTREVISION= 9 +PORTREVISION= 10 CATEGORIES= games MASTER_SITES= SF DISTFILES= openamenace-src-${PORTVERSION}${EXTRACT_SUFX} \ @@ -44,6 +44,10 @@ LANGPACK= ru IGNORE= cannot be build without/with multiple language packs. Please rerun 'make config' and select single language pack .endif +.if !defined(WITHOUT_NOUVEAU) +CFLAGS+= -DOLD_MESA +.endif + post-patch: ${REINPLACE_CMD} -e 's|/usr/local/share/openastromenace|${DATADIR}|' \ ${WRKSRC}/AstroMenaceSource/Main.cpp Index: games/openastromenace/files/patch-AstroMenaceSource-Core-Base.h =================================================================== RCS file: games/openastromenace/files/patch-AstroMenaceSource-Core-Base.h diff -N games/openastromenace/files/patch-AstroMenaceSource-Core-Base.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ games/openastromenace/files/patch-AstroMenaceSource-Core-Base.h 19 Jan 2011 21:19:09 -0000 @@ -0,0 +1,17 @@ +--- AstroMenaceSource/Core/Base.h~ ++++ AstroMenaceSource/Core/Base.h +@@ -46,10 +46,14 @@ + #include // Header File For The OpenGL32 Library + #include // Header File For The GLu32 Library + #else ++ #ifdef OLD_MESA + #define __glext_h_ // Don't let gl.h include glext.h ++ #endif + #include // Header File For The OpenGL32 Library + #include // Header File For The GLu32 Library ++ #ifdef OLD_MESA + #undef __glext_h_ ++ #endif + #endif + + #include // rand, ... Index: games/openastromenace/files/patch-AstroMenaceSource-Core-VirtualFileSystem-VFS.h =================================================================== RCS file: games/openastromenace/files/patch-AstroMenaceSource-Core-VirtualFileSystem-VFS.h diff -N games/openastromenace/files/patch-AstroMenaceSource-Core-VirtualFileSystem-VFS.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ games/openastromenace/files/patch-AstroMenaceSource-Core-VirtualFileSystem-VFS.h 19 Jan 2011 21:23:21 -0000 @@ -0,0 +1,10 @@ +--- AstroMenaceSource/Core/VirtualFileSystem/VFS.h~ ++++ AstroMenaceSource/Core/VirtualFileSystem/VFS.h +@@ -34,6 +34,7 @@ + #define VFS_H + + ++#include + #include "../Base.h" + + --- a.diff ends here ---