Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 72909 - [patch] app-text/chasen fails to compile (gcc 3.4.x problem)
Summary: [patch] app-text/chasen fails to compile (gcc 3.4.x problem)
Status: VERIFIED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: CJK Team
URL:
Whiteboard:
Keywords: Inclusion
Depends on:
Blocks:
 
Reported: 2004-11-30 04:47 UTC by Yuta SATOH (RETIRED)
Modified: 2005-01-02 08:03 UTC (History)
1 user (show)

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


Attachments
patch for chasen-2.4.0_pre1.ebuild (chasen-2.4.0_pre1.ebuild.patch,263 bytes, patch)
2004-11-30 04:50 UTC, Yuta SATOH (RETIRED)
Details | Diff
patch for chasen on gcc 3.4.x (2.4.0_pre1-gcc34.patch,578 bytes, patch)
2004-11-30 04:52 UTC, Yuta SATOH (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yuta SATOH (RETIRED) gentoo-dev 2004-11-30 04:47:41 UTC
In my environment, the following error occurs and fails to compile.
I think that this problem relates to gcc 3.4.x.


source='dartsdic.cpp' object='dartsdic.lo' libtool=yes \
depfile='.deps/dartsdic.Plo' tmpdepfile='.deps/dartsdic.TPlo' \
depmode=gcc3 /bin/sh ../depcomp \
/bin/sh ../libtool --mode=compile g++ -DRCPATH="\"/etc/chasenrc\"" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/include     -O2 -pipe -fPIC -c -o dartsdic.lo `test -f dartsdic.cpp || echo './'`dartsdic.cpp
rm -f .libs/dartsdic.lo
g++ -DRCPATH=\"/etc/chasenrc\" -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*)':
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'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/chasen-2.4.0_pre1/work/chasen-2.4.0-preview1'
make: *** [all] Error 2
Comment 1 Yuta SATOH (RETIRED) gentoo-dev 2004-11-30 04:50:52 UTC
Created attachment 44981 [details, diff]
patch for chasen-2.4.0_pre1.ebuild
Comment 2 Yuta SATOH (RETIRED) gentoo-dev 2004-11-30 04:52:37 UTC
Created attachment 44982 [details, diff]
patch for chasen on gcc 3.4.x
Comment 3 Yuta SATOH (RETIRED) gentoo-dev 2004-11-30 04:57:04 UTC
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="ppc64"
AUTOCLEAN="yes"
CFLAGS="-O2 -pipe"
CHOST="powerpc64-unknown-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/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"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distlocks sandbox"
GENTOO_MIRRORS="http://mirror.gentoo.gr.jp/"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.jp.gentoo.org/gentoo-portage"
USE="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"
Comment 4 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-12-03 21:18:31 UTC
Yes, it'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<char*>(key.data());

is better?
Comment 5 Markus Rothe (RETIRED) gentoo-dev 2005-01-02 08:03:06 UTC
I made a revision bump, which includes Yuta's patch.

Markus
Comment 6 Markus Rothe (RETIRED) gentoo-dev 2005-01-02 08:03:31 UTC
closing