Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 50364

Summary: Compile of xgammon.c failed due to an unclosed string error.
Product: Gentoo Linux Reporter: Daniel Zuckerman <dzgentoo>
Component: [OLD] GamesAssignee: Gentoo Games <games>
Status: RESOLVED FIXED    
Severity: minor    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: simple patch that gets xgammon working for me

Description Daniel Zuckerman 2004-05-07 08:32:24 UTC
tried to emerge xgammon today, and got the following compiler error:

xgammon.c:947:7: missing terminating " character
xgammon.c: In function `checkcmdline':
xgammon.c:948: error: `string' undeclared (first use in this function)
xgammon.c:948: error: (Each undeclared identifier is reported only once
xgammon.c:948: error: for each function it appears in.)
xgammon.c:949: error: `color' undeclared (first use in this function)
xgammon.c:949: error: subscripted value is neither array nor pointer
xgammon.c:953: error: syntax error before "the"
xgammon.c:953: error: stray '\' in program
xgammon.c:953:59: missing terminating " character
xgammon.c:954: error: stray '\' in program
xgammon.c:954:59: missing terminating " character
xgammon.c:962: error: stray '\' in program
xgammon.c:962:63: missing terminating " character
xgammon.c:971:55: missing terminating " character


here's my make.conf (in case it matters):
CFLAGS="-pipe -O3 -march=pentium3 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j2"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://128.213.5.34/gentoo/ http://gentoo.mirrors.pair.com/ http://mirror.datapipe.net/gentoo"

Reproducible: Always
Steps to Reproduce:
1. emerge xgammon
Actual Results:  
compiler error as above

Expected Results:  
working xgammon ;-)

I have a small patch that fixes this.  Might not be the most elegent fix, but it
gets it going for me.  I'll attach forthwith.
Comment 1 Daniel Zuckerman 2004-05-07 08:34:53 UTC
Created attachment 30938 [details, diff]
simple patch that gets xgammon working for me

As I said- nothing elegent - just added these to the end of the multi-line
strings lines:	\n\

I'd be happy to know if there was some make.conf (or other) setting i should
have tweaked to get around this.
Comment 2 Daniel Zuckerman 2004-05-07 08:53:07 UTC
oops- i should have said this was xgammon-0.98a.
Comment 3 Mr. Bones. (RETIRED) gentoo-dev 2004-05-07 16:02:23 UTC
Fixed in CVS.  Thanks for the bug report.