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

Bug 218299

Summary: games-arcade/criticalmass-1.0.0 fails w/ gcc-4.3.0
Product: Gentoo Linux Reporter: Peter Alfredsen (RETIRED) <loki_val>
Component: [OLD] GCC PortingAssignee: Gentoo Games <games>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 198121    
Attachments: criticalmass-1.0.0-gcc43.patch

Description Peter Alfredsen (RETIRED) gentoo-dev 2008-04-18 17:48:31 UTC
Making all in tinyxml
make[2]: Entering directory `/var/tmp/portage/games-arcade/criticalmass-1.0.0/work/CriticalMass-1.0.0/tinyxml'
i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I..     -W -Wall -fno-exceptions -O2 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/X11R6/include -c -o tinyxml.o tinyxml.cpp
i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I..     -W -Wall -fno-exceptions -O2 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/X11R6/include -c -o tinyxmlerror.o tinyxmlerror.cpp
i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I..     -W -Wall -fno-exceptions -O2 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/X11R6/include -c -o tinyxmlparser.o tinyxmlparser.cpp
tinyxml.cpp: In member function ‘const std::string* TiXmlElement::Attribute(const std::string&, int*) const’:
tinyxml.cpp:380: error: ‘atoi’ was not declared in this scope
tinyxml.cpp: In member function ‘bool TiXmlDocument::LoadFile(const std::string&)’:
tinyxml.cpp:536: error: ‘strchr’ was not declared in this scope
make[2]: *** [tinyxml.o] Error 1
make[2]: *** Waiting for unfinished jobs....
tinyxmlparser.cpp: In member function ‘virtual const char* TiXmlUnknown::Parse(const char*)’:
tinyxmlparser.cpp:319: error: ‘strchr’ was not declared in this scope
tinyxmlparser.cpp: In member function ‘virtual const char* TiXmlComment::Parse(const char*)’:
tinyxmlparser.cpp:343: error: ‘strstr’ was not declared in this scope
tinyxmlparser.cpp: In member function ‘const char* TiXmlAttribute::Parse(const char*)’:
tinyxmlparser.cpp:408: error: ‘strchr’ was not declared in this scope
tinyxmlparser.cpp:413: error: ‘strchr’ was not declared in this scope
tinyxmlparser.cpp: In member function ‘virtual const char* TiXmlDeclaration::Parse(const char*)’:
tinyxmlparser.cpp:477: error: ‘strstr’ was not declared in this scope
make[2]: *** [tinyxmlparser.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/games-arcade/criticalmass-1.0.0/work/CriticalMass-1.0.0/tinyxml'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/games-arcade/criticalmass-1.0.0/work/CriticalMass-1.0.0'
make: *** [all] Error 2


Reproducible: Always

Steps to Reproduce:
Comment 1 Peter Alfredsen (RETIRED) gentoo-dev 2008-04-18 17:49:30 UTC
Created attachment 150207 [details, diff]
criticalmass-1.0.0-gcc43.patch

Fixes the problem. Adapted from Debian.
Comment 2 Mr. Bones. (RETIRED) gentoo-dev 2008-04-18 19:35:11 UTC
in portage.  thanks for the bug report and patch.