Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 226659 - app-test/gnomesword-2.3.1 fails to build with gcc-4.3.1
Summary: app-test/gnomesword-2.3.1 fails to build with gcc-4.3.1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Theology Herd (disbanded)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-4.3
  Show dependency tree
 
Reported: 2008-06-14 14:46 UTC by nixnut (RETIRED)
Modified: 2008-06-26 01:48 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
gnomesword-2.3.1-r1-gcc43.patch (gnomesword-2.3.1-r1-gcc43.patch,702 bytes, patch)
2008-06-15 12:56 UTC, Marek Miller
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description nixnut (RETIRED) gentoo-dev 2008-06-14 14:46:46 UTC
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....
Comment 1 Marek Miller 2008-06-15 12:55:26 UTC
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.
Comment 2 Marek Miller 2008-06-15 12:56:14 UTC
Created attachment 156879 [details, diff]
gnomesword-2.3.1-r1-gcc43.patch
Comment 3 Steve Dibb (RETIRED) gentoo-dev 2008-06-26 01:48:44 UTC
Fixed in gnomesword-2.3.1-r2, thanks for the patch, Marek