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

Bug 217758

Summary: sci-astronomy/celestia-1.5.0 fails w/ gcc-4.3.0
Product: Gentoo Linux Reporter: Peter Alfredsen (RETIRED) <loki_val>
Component: [OLD] GCC PortingAssignee: Gentoo Linux bug wranglers <bug-wranglers>
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: celestia-1.5.0-gcc43.patch

Description Peter Alfredsen (RETIRED) gentoo-dev 2008-04-15 05:59:27 UTC
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 Peter Alfredsen (RETIRED) gentoo-dev 2008-04-15 06:00:43 UTC
Created attachment 149765 [details, diff]
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 Sébastien Fabbro (RETIRED) gentoo-dev 2008-04-15 15:54:08 UTC
Updated in cvs. Thanks for the patch!