Bug 217758 - sci-astronomy/celestia-1.5.0 fails w/ gcc-4.3.0
Bug#: 217758 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: bug-wranglers@gentoo.org Reported By: loki_val@gentoo.org
Component: GCC Porting
URL: 
Summary: sci-astronomy/celestia-1.5.0 fails w/ gcc-4.3.0
Keywords:  
Status Whiteboard: 
Opened: 2008-04-15 05:59 0000
Description:   Opened: 2008-04-15 05:59 0000
i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../..   -DQT_THREAD_SUPPORT 
-D_REENTRANT  -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi
-D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts
-Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -O2
-march=i686 -mtune=athlon-xp -msse -mmmx -pipe -ggdb3 -Wformat-security
-Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common   -Wall  
   -MT formatnum.o -MD -MP -MF .deps/formatnum.Tpo -c -o formatnum.o
formatnum.cpp
mv -f .deps/filetype.Tpo .deps/filetype.Po
i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../..   -DQT_THREAD_SUPPORT 
-D_REENTRANT  -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi
-D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts
-Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -O2
-march=i686 -mtune=athlon-xp -msse -mmmx -pipe -ggdb3 -Wformat-security
-Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common   -Wall  
   -MT utf8.o -MD -MP -MF .deps/utf8.Tpo -c -o utf8.o utf8.cpp
formatnum.cpp: In function ‘std::ostream& operator<<(std::ostream&, const
FormattedNumber&)’:
formatnum.cpp:67: error: ‘memset’ was not declared in this scope
formatnum.cpp:92: error: ‘strstr’ was not declared in this scope
formatnum.cpp:94: error: ‘strlen’ was not declared in this scope
formatnum.cpp:101: error: ‘memcpy’ was not declared in this scope
formatnum.cpp:112: error: ‘CHAR_MAX’ was not declared in this scope
make[3]: *** [formatnum.o] Error 1
make[3]: *** Waiting for unfinished jobs....
utf8.cpp: In function ‘unsigned int ReplaceGreekLetterAbbr(char*, unsigned
int, const char*, unsigned int)’:
utf8.cpp:843: error: ‘strlen’ was not declared in this scope
utf8.cpp:887: error: ‘strncpy’ was not declared in this scope
make[3]: *** [utf8.o] Error 1
make[3]: Leaving directory
`/var/tmp/portage/sci-astronomy/celestia-1.5.0/work/celestia-1.5.0/src/celutil'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/var/tmp/portage/sci-astronomy/celestia-1.5.0/work/celestia-1.5.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/var/tmp/portage/sci-astronomy/celestia-1.5.0/work/celestia-1.5.0'
make: *** [all] Error 2


Reproducible: Always

Steps to Reproduce:

------- Comment #1 From Peter Alfredsen 2008-04-15 06:00:43 0000 -------
Created an attachment (id=149765) [details]
celestia-1.5.0-gcc43.patch

Fixes the problem. Snatched a bit from fedora, added in a bit to get it to
build with USE=theora. 

------- Comment #2 From Sébastien Fabbro 2008-04-15 15:54:08 0000 -------
Updated in cvs. Thanks for the patch!