media-plugins/swh-plugins-0.4.15-r1 has a number of missed includes, so it unable to compile with glibc-2.10. Reproducible: Always Steps to Reproduce: 1. install glibc-2.10 2. emerge swh-plugins Actual Results: Compilation fails Expected Results: Emerged successfully Portage 2.1.6.13 (default/linux/amd64/2008.0/desktop, gcc-4.4.0, glibc-2.10.1-r0, 2.6.30-gentoo-r1 x86_64) ================================================================= System uname: Linux-2.6.30-gentoo-r1-x86_64-AMD_Athlon-tm-_64_Processor_3000+-with-gentoo-2.0.1 Timestamp of tree: Thu, 11 Jun 2009 18:45:01 +0000 ccache version 2.4 [enabled] app-shells/bash: 4.0_p24 dev-java/java-config: 1.3.7-r1, 2.1.8-r1 dev-lang/python: 2.5.4-r2, 2.6.2-r1 dev-python/pycrypto: 2.0.1-r8 dev-util/ccache: 2.4-r8 dev-util/cmake: 2.6.4 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.4.3-r3 sys-apps/sandbox: 2.0 sys-devel/autoconf: 2.13, 2.63-r1 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11 sys-devel/binutils: 2.19.1-r1 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.29 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -pipe" CHOST="x86_64-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/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-march=k8 -pipe" DISTDIR="/mnt/data/distfiles" FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="ftp://linuxarchive.nnov.ru/Unix/Gentoo ftp://ftp1.zxc.nnov.ru/gentoo/ http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="ru_RU.UTF-8" LDFLAGS="-Wl,-O1" LINGUAS="ru" MAKEOPTS="-j1" 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" SYNC="rsync://rsync.gentoo.nnov.ru/gentoo-portage" USE="3dnow X a52 aac aalib acpi alsa amd64 audiofile branding bzip2 cairo cdr clamav cli cracklib crypt cups dbus dri dts dvd dvdr dvdread encode esd evo fam firefox flac foomaticdb fortran gdbm gif gpm hal iconv icq jack jpeg kde kdeenablefinal kdehiddenvisibility kpathsea libcaca libnotify mad midi mikmod mmx mng mp3 mpeg mplayer mudflap multilib ncurses nls nptl nptlonly offensive ogg opengl openmp oscar pam pcre pdf perl png ppds pppd python qt qt3 qt3support qt4 quicktime readline reflection scanner sdl session spell spl srt sse sse2 ssl startup-notification svg sysfs tcpd tiff truetype unicode usb vorbis xcb xine xml xorg xulrunner xv xvid zlib" ALSA_CARDS="emu10k1" 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 auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru" USERLAND="GNU" VIDEO_CARDS="nv nvidia vesa" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Missing includes (foo not declared in this scope) for C++ code is gcc-4.4 usually... getline and const char* vs char* is glibc 2.10. Drop the one that is not your case :)
(In reply to comment #1) > Missing includes (foo not declared in this scope) for C++ code is gcc-4.4 > usually... getline and const char* vs char* is glibc 2.10. > > Drop the one that is not your case :) > swh-plugins written on plain C, not C++. I think you know that the locale.h is a part of glibc. BTW, verified before I submitted the bug - it reproduced both with gcc 4.3 and gcc 4.4. I've attached a build.log.
Created attachment 194502 [details] build.log Build log is attached.
Created attachment 194508 [details, diff] swh-plugins-0.4.15-glibc-2.10.patch I've prepared patch for this issue, please check it.
Ah sorry without the build log i could only assume since you just said "missing includes". Yes this is glibc-2.10 (and yai for them finally fixing this crap :P).
cant reproduce here, glibc 2.10, gcc 4.3/4.4 :/
(In reply to comment #6) > cant reproduce here, glibc 2.10, gcc 4.3/4.4 :/ > Do you have nls USE flag switched on?
(In reply to comment #7) > (In reply to comment #6) > > cant reproduce here, glibc 2.10, gcc 4.3/4.4 :/ > > > > Do you have nls USE flag switched on? > yes i tried with and without
(In reply to comment #6) > cant reproduce here, glibc 2.10, gcc 4.3/4.4 :/ > I've had same issue with media-video/guvcview with one user... I wonder what this is about, in that case I managed to convince upstream to include locale.h for the 'getlocale' function, while he already included some upper level ones that included it... doesn't seem to be a glibc problem...
Yes this is a problem with -O0 builds: http://blog.flameeyes.eu/2008/09/02/testing-the-corner-cases
its been a while since I had not touched this package... patch applied, thanks!