The compilation of conky-1.7.2_rc3 fails, gcc signalling an error (prss.c:51: erreur: ‘for’ loop initial declaration used outside C99 mode). Reproducible: Always Steps to Reproduce: 1. emerge conky Actual Results: i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -DSYSTEM_CONFIG_FILE=\"/etc/conky/conky.conf\" -DPACKAGE_LIBDIR=\"/usr/lib/conky\" -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/libmowgli -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -Wall -W -O2 -march=prescott -pipe -fomit-frame-pointer -MT conky-timed_thread.o -MD -MP -MF .deps/conky-timed_thread.Tpo -c -o conky-timed_thread.o `test -f 'timed_thread.c' || echo './'`timed_thread.c prss.c: In function ‘free_rss_items’: prss.c:51: erreur: ‘for’ loop initial declaration used outside C99 mode mv -f .deps/conky-timed_thread.Tpo .deps/conky-timed_thread.Po make[2]: *** [conky-prss.o] Error 1 make[2]: *** Waiting for unfinished jobs.... mv -f .deps/conky-conky.Tpo .deps/conky-conky.Po make[2]: Leaving directory `/var/tmp/portage/app-admin/conky-1.7.2_rc3/work/conky-1.7.2_rc3/src' make[1]: *** [all] Error 2 make[1]: Leaving directory `/var/tmp/portage/app-admin/conky-1.7.2_rc3/work/conky-1.7.2_rc3/src' make: *** [all-recursive] Error 1 * * ERROR: app-admin/conky-1.7.2_rc3 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 2190: Called _eapi2_src_compile * ebuild.sh, line 634: Called die * The specific snippet of code: * emake || die "emake failed" * The die message: * emake failed * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/app-admin/conky-1.7.2_rc3/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/app-admin/conky-1.7.2_rc3/temp/environment'. * >>> Failed to emerge app-admin/conky-1.7.2_rc3, Log file: >>> '/var/tmp/portage/app-admin/conky-1.7.2_rc3/temp/build.log' root@kgentoo keikoz # emerge --info Portage 2.1.6.13 (default/linux/x86/2008.0/desktop, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.30.3 i686) ================================================================= System uname: Linux-2.6.30.3-i686-Intel-R-_Pentium-R-_4_CPU_3.20GHz-with-glibc2.0 Timestamp of tree: Sat, 15 Aug 2009 16:45:02 +0000 app-shells/bash: 3.2_p39 dev-java/java-config: 2.1.8-r1 dev-lang/python: 2.5.4-r3 dev-util/cmake: 2.6.4 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.63-r1 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="ftp://mir1.ovh.net/gentoo-distfiles ftp://mir2.ovh.net/gentoo-distfiles ftp://ftp.free.fr/mirrors/ftp.gentoo.org http://distfiles.gentoo.org" LANG="fr_FR.UTF-8" LDFLAGS="-Wl,-O1" LINGUAS="fr en" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X a52 aac acl acpi alsa arts berkdb bluetooth branding bzip2 cairo cdr cli cracklib crypt cups dbus dri dts dvd dvdr eds emacs emboss encode evo fam firefox flac fortran gdbm gif gpm hal iconv ipv6 isdnlog java jpeg kde libnotify lm_sensors mad mikmod mp3 mp4 mpeg mplayer mudflap ncurses nls nptl nptlonly nvidia ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3 qt3support qt4 quicktime readline reflection scanner sdl session spell spl ssl startup-notification svg sysfs tcpd tiff truetype unicode usb vorbis wifi win32codecs x264 x86 xine xml xorg xulrunner xv xvid zlib" ALSA_CARDS="hda_intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr en" USERLAND="GNU" VIDEO_CARDS="nvidia nv" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 201512 [details] conky ebuild using patch I just patched the prss.c file, a declaration of "int i;". Patch follows.
Created attachment 201514 [details, diff] patch declaring int i Patch as mentioned. Next step: Closing Bug.
Conky is emerged correctly with my patch. Please mark the Bug as resolved, if it works for you as well.
It works perfectly for me, thank you for the patch. I'll close it. But shouldn't that be done by the package maintainer after portage has being updated ? I don't know how that should work ...
Plese reopen the bug until a fix is provided in the tree.
Ok. I reopen it.
Thanks for the patch, assigning to conky maintainers.
This was already fixed in git, but thanks for the patch. There should be a 1.7.2 shortly.
1.7.2 is out so closing this bug. Please reopen if there are still issues.