<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>226659</bug_id>
          
          <creation_ts>2008-06-14 14:46 0000</creation_ts>
          <short_desc>app-test/gnomesword-2.3.1 fails to build with gcc-4.3.1</short_desc>
          <delta_ts>2008-06-26 01:48:44 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>198121</blocked>
          
          <everconfirmed>1</everconfirmed>
          <reporter>nixnut@gentoo.org</reporter>
          <assigned_to>theology@gentoo.org</assigned_to>
          <cc>mlm@ngc17.pl</cc>

      

      
          <long_desc isprivate="0">
            <who>nixnut@gentoo.org</who>
            <bug_when>2008-06-14 14:46:46 0000</bug_when>
            <thetext>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....</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mlm@ngc17.pl</who>
            <bug_when>2008-06-15 12:55:26 0000</bug_when>
            <thetext>My report: Again missing headers.

Steps to reproduce:
1. echo &quot;=app-text/gnomesword-2.3.1-r1&quot; &gt;&gt; /etc/portage/package.keywords
2. USE=&quot;debug firefox seamonkey spell xulrunner&quot; emerge -v1 =app-text/gnomesword-2.3.1-r1

The error messages:

1.
&gt; cc1plus: warnings being treated as errors
&gt; module_manager.cc:52: error: deprecated conversion from string constant to &apos;gchar*&apos;

( 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=&quot;-debug&quot; and wait for a change in the ebuild)


2.
&gt; ../../src/backend/sword_main.hh:35: error: &apos;std::string&apos; has not been declared

( + #include &lt;string&gt; )


3.
&gt; In file included from /usr/lib/gcc/i686-pc-linux-gnu/4.3.1/include/g++-v4/string:47,
&gt;                  from ../../src/backend/sword_main.hh:28,
&gt;                  from ../../src/main/display.hh:35,
&gt;                  from display.cc:53:
&gt; /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&apos;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 &quot;C&quot;, but sword_main.hh includes some C++ 
headers now [&lt;string&gt;] 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.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mlm@ngc17.pl</who>
            <bug_when>2008-06-15 12:56:14 0000</bug_when>
            <thetext>Created an attachment (id=156879)
gnomesword-2.3.1-r1-gcc43.patch

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>beandog@gentoo.org</who>
            <bug_when>2008-06-26 01:48:44 0000</bug_when>
            <thetext>Fixed in gnomesword-2.3.1-r2, thanks for the patch, Marek</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>156879</attachid>
            <date>2008-06-15 12:56 0000</date>
            <desc>gnomesword-2.3.1-r1-gcc43.patch</desc>
            <filename>gnomesword-2.3.1-r1-gcc43.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIHNyYy9iYWNrZW5kL3N3b3JkX21haW4uaGgub3JpZwkyMDA4LTA2LTE1IDEyOjQzOjU0LjAw
MDAwMDAwMCArMDAwMAorKysgc3JjL2JhY2tlbmQvc3dvcmRfbWFpbi5oaAkyMDA4LTA2LTE1IDEy
OjQ0OjI0LjAwMDAwMDAwMCArMDAwMApAQCAtMjIsNyArMjIsNyBAQAogI2lmbmRlZiBfU1dPUkRf
TUFJTl9ISF8KICNkZWZpbmUgX1NXT1JEX01BSU5fSEhfCiAKLQkKKyNpbmNsdWRlIDxzdHJpbmc+
CQogI2luY2x1ZGUgPHN3bWdyLmg+CiAjaW5jbHVkZSA8c3didWYuaD4KICNpbmNsdWRlIDx2ZXJz
ZWtleS5oPgoKLS0tIHNyYy9tYWluL2Rpc3BsYXkuaGgub3JpZwkyMDA4LTA2LTE1IDEyOjQ1OjE5
LjAwMDAwMDAwMCArMDAwMAorKysgc3JjL21haW4vZGlzcGxheS5oaAkyMDA4LTA2LTE1IDEyOjQ1
OjU5LjAwMDAwMDAwMCArMDAwMApAQCAtMjUsMTMgKzI1LDEzIEBACiAjZW5kaWYKIAogI2lmZGVm
IF9fY3BsdXNwbHVzCisjaW5jbHVkZSAiYmFja2VuZC9zd29yZF9tYWluLmhoIgogZXh0ZXJuICJD
IiB7CiAKICNpbmNsdWRlIDxndGsvZ3RrLmg+CiAjaW5jbHVkZSA8c3dtZ3IuaD4KICNpbmNsdWRl
IDxzd2Rpc3AuaD4KICNpbmNsdWRlICJtYWluL2dsb2JhbF9vcHMuaGgiCi0jaW5jbHVkZSAiYmFj
a2VuZC9zd29yZF9tYWluLmhoIgogI2luY2x1ZGUgImd1aS91dGlsaXRpZXMuaCIKIAogdXNpbmcg
bmFtZXNwYWNlIHN3b3JkOwoK
</data>        

          </attachment>
    </bug>

</bugzilla>