powerpc-unknown-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -DORBIT2=1 -pthread -I /usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/ lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/p ango-1.0 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman- 1 -I/usr/include/libgnomeprintui-2.2 -I/usr/include/libgnomeprint-2.2 -I/usr/inc lude/libgnomecanvas-2.0 -I/usr/include/libart-2.0 -I/usr/include/libxml2 -I/usr/ include/gail-1.0 -I/usr/include/libgnomeui-2.0 -I/usr/include/gconf/2 -I/usr/inc lude/gnome-keyring-1 -I/usr/include/libgnome-2.0 -I/usr/include/libbonoboui-2.0 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/orb it-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/bonobo-activation-2.0 -I/usr/ include/libglade-2.0 -I/usr/include/sword -I../../src -O2 -mtune=G4 -malt ivec -mabi=altivec -Wstrict-aliasing -pipe -msecure-plt -ftemplate-depth-25 -MT sword_main.o -MD -MP -MF .deps/sword_main.Tpo -c -o sword_main.o sword_main.cc In file included from sword_main.cc:45: ../../src/backend/sword_main.hh:35: error: ‘std::string’ has not been declared sword_main.cc: In member function ‘char* BackEnd::set_sword_locale(const char*)’: sword_main.cc:240: warning: deprecated conversion from string constant to ‘char*’ make[3]: *** [sword_main.o] Error 1 make[3]: *** Waiting for unfinished jobs....
My report: Again missing headers. Steps to reproduce: 1. echo "=app-text/gnomesword-2.3.1-r1" >> /etc/portage/package.keywords 2. USE="debug firefox seamonkey spell xulrunner" emerge -v1 =app-text/gnomesword-2.3.1-r1 The error messages: 1. > cc1plus: warnings being treated as errors > module_manager.cc:52: error: deprecated conversion from string constant to 'gchar*' ( There is -Werror set in CXXFLAGS if debug USE flag is set, so you must change CXXFLAGS somehow. I guess, there is a better way than to patch the source, so in the meantime, compile with USE="-debug" and wait for a change in the ebuild) 2. > ../../src/backend/sword_main.hh:35: error: 'std::string' has not been declared ( + #include <string> ) 3. > In file included from /usr/lib/gcc/i686-pc-linux-gnu/4.3.1/include/g++-v4/string:47, > from ../../src/backend/sword_main.hh:28, > from ../../src/main/display.hh:35, > from display.cc:53: > /usr/lib/gcc/i686-pc-linux-gnu/4.3.1/include/g++-v4/bits/stringfwd.h:48: error: template with C linkage ( If you don't undestand this error - as I did - plese, see: http://www.gidforums.com/t-9853.html for good general explanation. In this case display.hh includes sword_main.hh in extern "C", but sword_main.hh includes some C++ headers now [<string>] because of 2. error message) Tested on x86. My emerge --info: as in the bug 226663, comment 2. I include the patch. Hope it will help.
Created attachment 156879 [details, diff] gnomesword-2.3.1-r1-gcc43.patch
Fixed in gnomesword-2.3.1-r2, thanks for the patch, Marek