rioutil will not compile after gcc upgrade. i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -g3 -c rio.c -MT rio.lo -MD -MP -MF .deps/rio.TPlo -fPIC -DPIC -o .libs/rio.o rio.c: In function 'get_flist_riohd': rio.c:376: error: invalid lvalue in assignment i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -g3 -c mp3.c -MT mp3.lo -MD -MP -MF .deps/mp3.TPlo -o mp3.o >/dev/null 2>&1 make[1]: *** [rio.lo] Error 1 make[1]: *** Waiting for unfinished jobs.... i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -g3 -c rioio.c -MT rioio.lo -MD -MP -MF .deps/rioio.TPlo -fPIC -DPIC -o .libs/rioio.o i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -g3 -c rioio.c -MT rioio.lo -MD -MP -MF .deps/rioio.TPlo -o rioio.o >/dev/null 2>&1 make[1]: Leaving directory `/isoserver/portage/portage/rioutil-1.4.4/work/rioutil-1.4.4/librioutil' make: *** [all-recursive] Error 1 !!! ERROR: app-misc/rioutil-1.4.4 failed. Call stack: ebuild.sh, line 1545: Called dyn_compile ebuild.sh, line 936: Called src_compile rioutil-1.4.4.ebuild, line 28: Called die root ~ $ emerge --info Portage 2.1.1_rc1-r6 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.4-r3, 2.6.16-gentoo-r9 i686) ================================================================= System uname: 2.6.16-gentoo-r9 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz Gentoo Base System version 1.12.4 Last Sync: Sun, 10 Sep 2006 05:20:01 +0000 app-admin/eselect-compiler: [Not Present] dev-lang/python: 2.3.5-r2, 2.4.3-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] 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-r2 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.13-r3 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r5 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium4 -O2 -pipe -mmmx -msse -msse2" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-march=pentium4 -O2 -pipe -mmmx -msse -msse2" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig buildpkg distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://www.gtlib.gatech.edu/pub/gentoo http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://open-systems.ufl.edu/mirrors/gentoo http://mirror.tucdemonic.org/gentoo/ ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo" LINGUAS="" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/isoserver/portage" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="x86 X acl acpi alsa apache2 arts automount avi bash-completion berkdb bitmap-fonts browserplugin bzip2 cdb cli crypt cups dbus dlloader doc dri dvd dvdr dvdread elibc_glibc emboss encode esd firefox flac foomaticdb fortran gdbm gif gpm gstreamer gtk gtk2 hal imap imlib input_devices_keyboard input_devices_mouse isdnlog java javascript jpeg kde kernel_linux libg++ libwww mad maildir mikmod mmx motif mp3 mpeg musicbrainz ncurses nls nptl nptlonly nsplugin nvidia ogg opengl oss pam pcre pda pdflib perl png pppd python qt3 qt4 quicktime readline reflection sdl session spell spl sse sse2 ssl tcpd tiff truetype truetype-fonts type1-fonts udev usb userland_GNU video_cards_nvidia vorbis win32codecs xml xmms xorg xscreensaver xv zlib" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Try your luck w/ 1.5.0b
(In reply to comment #1) > Try your luck w/ 1.5.0b > No luck. <compiling> /bin/sh ../libtool --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -march=pentium4 -O2 -pipe -mmmx -msse -msse2 -c -o driver_libusb.lo `test -f 'driver_libusb.c' || echo './'`driver_libusb.c i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -march=pentium4 -O2 -pipe -mmmx -msse -msse2 -c file_list.c -MT file_list.lo -MD -MP -MF .deps/file_list.TPlo -fPIC -DPIC -o .libs/file_list.o i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -march=pentium4 -O2 -pipe -mmmx -msse -msse2 -c id3.c -MT id3.lo -MD -MP -MF .deps/id3.TPlo -o id3.o >/dev/null 2>&1 file_list.c: In function 'generate_flist_riohd': file_list.c:137: error: invalid lvalue in assignment make[1]: *** [file_list.lo] Error 1 make[1]: *** Waiting for unfinished jobs.... i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -march=pentium4 -O2 -pipe -mmmx -msse -msse2 -c driver_libusb.c -MT driver_libusb.lo -MD -MP -MF .deps/driver_libusb.TPlo -fPIC -DPIC -o .libs/driver_libusb.o i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -march=pentium4 -O2 -pipe -mmmx -msse -msse2 -c driver_libusb.c -MT driver_libusb.lo -MD -MP -MF .deps/driver_libusb.TPlo -o driver_libusb.o >/dev/null 2>&1 make[1]: Leaving directory `/isoserver/portage/portage/rioutil-1.5.0b/work/rioutil-1.5.0b/librioutil' make: *** [all-recursive] Error 1 !!! ERROR: app-misc/rioutil-1.5.0b failed. Call stack: ebuild.sh, line 1545: Called dyn_compile ebuild.sh, line 936: Called src_compile ebuild.sh, line 607: Called die
Not surprised... :P Try this patch: --- rioutil-1.4.4.orig/librioutil/rio.c +++ rioutil-1.4.4/librioutil/rio.c @@ -373,7 +373,7 @@ return ret; } - iptr = (u_int32_t *)read_buffer = (u_int8_t *) malloc (RIO_FTS); + iptr = (u_int32_t *)(read_buffer = (u_int8_t *) malloc (RIO_FTS)); if (read_buffer == NULL) { rio_log (rio, errno, "Could not allocate read buffer\n"); return errno;
(In reply to comment #3) > Not surprised... :P Try this patch: > Applying the patch worked. Now it needs to be added to 1.4.4 and 1.5.0b ebuilds
Fixed in CVS