Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 41736 - games-board/hexxagon does not compile, error in gtk-interface.cpp
Summary: games-board/hexxagon does not compile, error in gtk-interface.cpp
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Games
URL: http://nesqi.homeip.net/hexxagon/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-15 20:16 UTC by Tim Redman
Modified: 2004-02-24 10:15 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Redman 2004-02-15 20:16:03 UTC
The ebuild for games-board/hexxagon-0.3.1 quits with an error:

gtk-interface.cpp:23:20: missing terminating " character
gtk-interface.cpp:48:1: missing terminating " character



Reproducible: Always
Steps to Reproduce:
1. emerge =games-board/hexxagon-0.3.1
2.
3.

Actual Results:  
gtk-interface.cpp:23:20: missing terminating " character
gtk-interface.cpp:48:1: missing terminating " character


Expected Results:  
>>> Completed installing into /var/tmp/portage/hexxagon-0.3.1/image/


Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.1-gentoo)
=================================================================
System uname: 2.6.1-gentoo i686 Pentium II (Deschutes)
Gentoo Base System version 1.4.3.13
distcc 2.11.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
Autoconf: sys-devel/autoconf-2.58
Automake: sys-devel/automake-1.7.7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium2 -mmmx -Os -fomit-frame-pointer -falign-functions=4
-falign-jumps=4"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /lib/modules /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=pentium2 -mmmx -Os -fomit-frame-pointer -falign-functions=4
-falign-jumps=4 -Wno-deprecated"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distcc sandbox"
GENTOO_MIRRORS="http://www.gtlib.cc.gatech.edu/pub/gentoo
ftp://ftp.ussg.iu.edu/pub/linux/gentoo ftp://gentoo.mirrors.pair.com/
http://cudlug.cudenver.edu/gentoo/
http://mirror.clarkson.edu/pub/distributions/gentoo/"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://gw.redman.homelinux.org/gentoo-portage"
USE="X alsa apm avi berkdb bonobo crypt cups encode foomaticdb gdbm gif gnome
gpm gstreamer gtk gtk2 imlib java jpeg libg++ libwww mad mmx motif mpeg ncurses
offensive oggvorbis opengl oss pam pda pdflib perl png python quicktime readline
samba sdl slang spell ssl tcltk tcpd truetype x86 xml2 xmms xv zlib"

The problem lies with the gtk-interface.cpp file.  A define is spread out over
multiple lines, and the compiler isn't too thrilled with that.  The following
patch is a workaround:

23,48c23
< #define ABOUT_TEXT "
< Hexxagon v0.3.1
< Copyright 2001 Erik Jonsson
<
< Contact me on:
< erik@nesqi.homeip.net
<
< The latest version can always be found on:
< http://nesqi.homeip.net/hexxagon
<
< The pieces was drawn by Stefan P&#65533;hlson.
<
< This program is free software; you can redistribute it and/or
< modify it under the terms of the GNU General Public License
< as published by the Free Software Foundation; either version 2
< of the License, or (at your option) any later version.
<
< This program is distributed in the hope that it will be useful,
< but WITHOUT ANY WARRANTY; without even the implied warranty of
< MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
< GNU General Public License for more details.
<
< You should have received a copy of the GNU General Public License
< along with this program; if not, write to the Free Software
<  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
< "
---
> #define ABOUT_TEXT ""

However, this removes the copyright from the software, so a more thorough update
should be applied.  I just don't remember the rules for line continuations in
preprocessor directives in C++.  It's been a few years.

Tim
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2004-02-23 16:02:58 UTC
hexxagon-0.3.2 is in portage now and works for me.
Comment 2 Tim Redman 2004-02-24 10:15:53 UTC
Confirmed.  Erik Jonsson, the main developer of Hexxagon has confirmed with me that the changes necessary to fix this bug have been incorporated into 0.3.2.

Tim