<?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>72909</bug_id>
          
          <creation_ts>2004-11-30 04:47 0000</creation_ts>
          <short_desc>[patch] app-text/chasen fails to compile (gcc 3.4.x problem)</short_desc>
          <delta_ts>2005-01-02 08:03:31 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>2004.3</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <keywords>Inclusion</keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>nigoro@gentoo.org</reporter>
          <assigned_to>cjk@gentoo.org</assigned_to>
          <cc>ppc64@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>nigoro@gentoo.org</who>
            <bug_when>2004-11-30 04:47:41 0000</bug_when>
            <thetext>In my environment, the following error occurs and fails to compile.
I think that this problem relates to gcc 3.4.x.


source=&apos;dartsdic.cpp&apos; object=&apos;dartsdic.lo&apos; libtool=yes \
depfile=&apos;.deps/dartsdic.Plo&apos; tmpdepfile=&apos;.deps/dartsdic.TPlo&apos; \
depmode=gcc3 /bin/sh ../depcomp \
/bin/sh ../libtool --mode=compile g++ -DRCPATH=&quot;\&quot;/etc/chasenrc\&quot;&quot; -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/include     -O2 -pipe -fPIC -c -o dartsdic.lo `test -f dartsdic.cpp || echo &apos;./&apos;`dartsdic.cpp
rm -f .libs/dartsdic.lo
g++ -DRCPATH=\&quot;/etc/chasenrc\&quot; -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/include -O2 -pipe -fPIC -c dartsdic.cpp -MT dartsdic.lo -MD -MP -MF .deps/dartsdic.TPlo  -fPIC -DPIC -o .libs/dartsdic.lo
dartsdic.cpp: In function `int da_build_dump(da_build_t*, char*, FILE*)&apos;:
dartsdic.cpp:187: error: ISO C++ forbids cast to non-reference type used as lvalue
make[2]: *** [dartsdic.lo] Error 1
make[2]: Leaving directory `/var/tmp/portage/chasen-2.4.0_pre1/work/chasen-2.4.0-preview1/lib&apos;
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/chasen-2.4.0_pre1/work/chasen-2.4.0-preview1&apos;
make: *** [all] Error 2</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>nigoro@gentoo.org</who>
            <bug_when>2004-11-30 04:50:52 0000</bug_when>
            <thetext>Created an attachment (id=44981)
patch for chasen-2.4.0_pre1.ebuild
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>nigoro@gentoo.org</who>
            <bug_when>2004-11-30 04:52:37 0000</bug_when>
            <thetext>Created an attachment (id=44982)
patch for chasen on gcc 3.4.x
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>nigoro@gentoo.org</who>
            <bug_when>2004-11-30 04:57:04 0000</bug_when>
            <thetext>emerge info output:

Portage 2.0.51-r3 (default-ppc64-2004.3, gcc-3.4.1, glibc-2.3.4.20041102-r0, 2.6.9-gentoo-r4 ppc64)
=================================================================
System uname: 2.6.9-gentoo-r4 ppc64 PPC970, altivec supported
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.3-r3
Headers:  sys-kernel/linux26-headers-2.6.8.1-r1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS=&quot;ppc64&quot;
AUTOCLEAN=&quot;yes&quot;
CFLAGS=&quot;-O2 -pipe&quot;
CHOST=&quot;powerpc64-unknown-linux-gnu&quot;
COMPILER=&quot;&quot;
CONFIG_PROTECT=&quot;/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control&quot;
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/terminfo /etc/env.d&quot;
CXXFLAGS=&quot;-O2 -pipe&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoaddcvs ccache distlocks sandbox&quot;
GENTOO_MIRRORS=&quot;http://mirror.gentoo.gr.jp/&quot;
MAKEOPTS=&quot;-j5&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/local/portage&quot;
SYNC=&quot;rsync://rsync.jp.gentoo.org/gentoo-portage&quot;
USE=&quot;X Xaw3d aalib alsa altivec apache2 arts berkdb bitmap-fonts cdr chasen cjk crypt cups dga dvd dvdr emacs encode esd f77 flac flash foomaticdb fortran gdbm gif gnome gpm gtk gtk2 imagemagick imap imlib jack joystick jpeg kakasi kde libwww lirc mad mikmod mitshm motif mozilla mpeg mule ncurses nls nogcj nptl oggvorbis opengl oss pam pdflib perl png ppc64 python qt quicktime readline samba sdl slang sndfile ssl tcpd tetex theora tiff truetype unicode usb xanim xml xml2 xmms xv xvid zlib&quot;
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>usata@gentoo.org</who>
            <bug_when>2004-12-03 21:18:31 0000</bug_when>
            <thetext>Yes, it&apos;s related to gcc34. All sources with chasen
have this problem (I made shinji package, available
at http://sourceforge.jp/projects/shinji/ yesterday,
and it also contains this bug)

Probablly

+	keys[size] = const_cast&lt;char*&gt;(key.data());

is better?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>corsair@gentoo.org</who>
            <bug_when>2005-01-02 08:03:06 0000</bug_when>
            <thetext>I made a revision bump, which includes Yuta&apos;s patch.

Markus</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>corsair@gentoo.org</who>
            <bug_when>2005-01-02 08:03:31 0000</bug_when>
            <thetext>closing</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>44981</attachid>
            <date>2004-11-30 04:50 0000</date>
            <desc>patch for chasen-2.4.0_pre1.ebuild</desc>
            <filename>chasen-2.4.0_pre1.ebuild.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIGNoYXNlbi0yLjQuMF9wcmUxLmVidWlsZC5vcmlnCTIwMDQtMTEtMzAgMjE6NTA6MDYuNDQ3
ODc2NjAwICswOTAwCisrKyBjaGFzZW4tMi40LjBfcHJlMS5lYnVpbGQJMjAwNC0xMS0zMCAyMTo1
MDoyMy44OTc4ODUzMjggKzA5MDAKQEAgLTIxLDYgKzIxLDcgQEAKIAogc3JjX3VucGFjaygpIHsK
IAl1bnBhY2sgJHtBfQorCWVwYXRjaCAke0ZJTEVTRElSfS8ke1BWfS1nY2MzNC5wYXRjaAogCiAJ
aWYgdXNlIHBlcmwgOyB0aGVuCiAJCWNkICR7U30vcGVybAo=
</data>        

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>44982</attachid>
            <date>2004-11-30 04:52 0000</date>
            <desc>patch for chasen on gcc 3.4.x</desc>
            <filename>2.4.0_pre1-gcc34.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">ZGlmZiAtTnVyIGNoYXNlbi0yLjQuMC1wcmV2aWV3MS5vcmlnL2xpYi9kYXJ0c2RpYy5jcHAgY2hh
c2VuLTIuNC4wLXByZXZpZXcxL2xpYi9kYXJ0c2RpYy5jcHAKLS0tIGNoYXNlbi0yLjQuMC1wcmV2
aWV3MS5vcmlnL2xpYi9kYXJ0c2RpYy5jcHAJMjAwNC0xMS0zMCAyMTowNDoyNy44MzE5MDcwNjQg
KzA5MDAKKysrIGNoYXNlbi0yLjQuMC1wcmV2aWV3MS9saWIvZGFydHNkaWMuY3BwCTIwMDQtMTEt
MzAgMjE6MDU6MTguNDMwOTM2NzA0ICswOTAwCkBAIC0xODQsNyArMTg0LDcgQEAKIAkgICAgbGV4
X2luZGljZXMucHVzaF9iYWNrKGktPnNlY29uZCk7CiAJfQogCWxlbnNbc2l6ZV0gPSBrZXkuc2l6
ZSgpOwotCShjb25zdCBjaGFyKilrZXlzW3NpemVdID0ga2V5LmRhdGEoKTsKKwlrZXlzW3NpemVd
ID0gKGNoYXIqKWtleS5kYXRhKCk7CiAJdmFsc1tzaXplXSA9IHJlZHVtcF9sZXgobGVuc1tzaXpl
XSwgbGV4X2luZGljZXMsIHRtcGZpbGUsIGxleGZpbGUpOwogCWlmICh2YWxzW3NpemVdIDwgMCkg
ewogCSAgICBzdGQ6OmNlcnIgPDwgIlVuZXhwZWN0ZWQgZXJyb3IgYXQgIiA8PCBrZXkgPDwgc3Rk
OjplbmRsOwo=
</data>        

          </attachment>
    </bug>

</bugzilla>