Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 121989 - rpl 1.4.0 fails (gcc 4)
Summary: rpl 1.4.0 fails (gcc 4)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Shell Tools project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 117482
  Show dependency tree
 
Reported: 2006-02-07 07:51 UTC by Patrizio Bassi
Modified: 2006-03-05 14:28 UTC (History)
0 users

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


Attachments
gcc4 fix (rpl-1.4.0-gcc4.patch,949 bytes, patch)
2006-02-19 19:43 UTC, node
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Patrizio Bassi 2006-02-07 07:51:21 UTC
make[1]: Entering directory `/var/tmp/portage/rpl-1.4.0/work/rpl-1.4.0/src'
source='replace.c' object='replace.o' libtool=no \
depfile='.deps/replace.Po' tmpdepfile='.deps/replace.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
gcc -DPACKAGE=\"rpl\" -DVERSION=\"1.4.0\"  -I. -I.     -O3 -mtune=pentium3 -march=pentium3 -pipe -fomit-frame-pointer -mmmx -msse -ffast-math -c `test -f replace.c || echo './'`replace.c
In file included from replace.c:55:
replace.h:93:59: warning: no newline at end of file
replace.c: In function ‘main’:
replace.c:215: error: invalid lvalue in assignment
replace.c:243: error: invalid lvalue in assignment
replace.c:274: error: invalid lvalue in assignment
replace.c:288: error: invalid lvalue in assignment
replace.c:297: error: invalid lvalue in assignment
replace.c:345: warning: pointer targets in passing argument 5 of ‘EchoModes’ differ in signedness
replace.c:345: warning: pointer targets in passing argument 6 of ‘EchoModes’ differ in signedness
replace.c:345: warning: pointer targets in passing argument 7 of ‘EchoModes’ differ in signedness
replace.c:345: warning: pointer targets in passing argument 8 of ‘EchoModes’ differ in signedness
replace.c:425: error: invalid lvalue in assignment
replace.c:437: error: invalid lvalue in assignment
replace.c:446: error: invalid lvalue in assignment
make[1]: *** [replace.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/rpl-1.4.0/work/rpl-1.4.0/src'
make: *** [all-recursive] Error 1

!!! ERROR: app-text/rpl-1.4.0 failed.
Call stack:
  ebuild.sh, line 1894:   Called dyn_compile
  ebuild.sh, line 941:   Called src_compile

!!! emake failed
!!! If you need support, post the topmost build error, and the call stack if relevant.

root@blight anjuta-1.2.4 # emerge info
Portage 2.1_pre4-r1 (default-linux/x86/2005.1, gcc-4.0.2, glibc-2.3.6-r5, 2.6.16-rc2-git1 i686)
=================================================================
System uname: 2.6.16-rc2-git1 i686 Pentium III (Katmai)
Gentoo Base System version 1.12.0_pre15
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [disabled]
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.91.0.5-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -mtune=pentium3 -march=pentium3 -pipe -fomit-frame-pointer -mmmx -msse -ffast-math"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/mail/dspam /opt/openjms/config /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/bind /var/qmail/control /var/run/dspam"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O3 -mtune=pentium3 -march=pentium3 -pipe -fomit-frame-pointer -mmmx -msse -ffast-math"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks fixpackages sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.ngi.it http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/"
LANG="it_IT.utf8"
LC_ALL="it_IT.utf8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--enable-new-dtags -Wl,-Bdirect -Wl,--as-needed -Wl,-hashvals -Wl,-zdynsort"
LINGUAS="it"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 X X509 Xaw3d a52 aac aalib accessibility acl acpi activefilter adns alsa apache2 apm arts asf audiofile avi bash-completion berkdb bidi bitmap-fonts bootsplash browserplugin bzip2 cairo caps cdda cddb cdio cdparanoia cdr cgi chroot clamav cli client codecs crypt css cups curl dba dbus dga dhcp directfb djbfft dri edl eds emboss encode ethereal exif expat extraengine faac faad fam fbcon ffmpeg fftw firefox flac flash foomaticdb foreign-package fortran gcj gd gdbm geometry ggi gif gimp gimpprint glut glx gnokii gnome gphoto2 gpm graphviz gs gstreamer gtk gtk2 gtkhtml guile h264 hal iconv idea idn imagemagick imap imlib innodb ipod irda irmc jack java javascript jikes jit joystick jpeg jpeg2k junit justify kde kdeenablefinal kerberos kqemu lame lcd lcms ldap libcaca libclamav libg++ libgda libusb libwww lirc live lm_sensors lua lzo mad mailwrapper matroska md5sum mdb mikmod mime mmx mmx2 mmxext mng mono motif mozcalendar mozdevelop mozilla mozsvg mozxmlterm mp3 mp4live mpeg mpeg2 mpeg4 mplayer mysql mysqli mythtv nagios-dns nagios-ntp nagios-ping nagios-ssh ncurses neXt network ngui nls nntp no_wxgtk1 nobsh nopie nossp noxalan nptl nptlonly nsplugin oav odbc ogg oggvorbis openal opengl operanom2 oss pam pcre pda pdf pdflib pdo pear perl php png pnp postgres ppds pthreads python qemu-fast qhull qt quicktime quotas readline real rrdtool rtc ruby samba scanner sdl server session sftplogging sguil slang slp snortsam soap sockets socks5 softmmu softquota spamassassin speex spell sqlite3 sse ssl subject-rewrite svg svga tcltk tcpd tetex tga theora tiff tokenizer truetype truetype-fonts trusted type1-fonts unicode usb userlocales vidix vorbis win32codecs wmf wsconvert wxwindows x264 xanim xchatdccserver xchattext xine xinerama xml xml2 xmlrpc xmms xosd xpm xprint xsl xv xvid xvm xvmc zlib elibc_glibc kernel_linux linguas_it userland_GNU"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, MAKEOPTS
Comment 1 node 2006-02-19 19:43:14 UTC
Created attachment 80234 [details, diff]
gcc4 fix

Fixes cast-as-lvalue in MALLOC_AND_CHECK macro
Comment 2 Patrizio Bassi 2006-02-21 07:08:46 UTC
patch works.

mainteiner please apply to portage and close this bug.
Comment 3 Tony Vroon (RETIRED) gentoo-dev 2006-03-05 14:28:00 UTC
This is in portage. node, thanks for the patch, and Patrizio, thank you for the bug report.