Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 273869 - media-plugins/swh-plugins-0.4.15-r1 unable to compile with -O0
Summary: media-plugins/swh-plugins-0.4.15-r1 unable to compile with -O0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Professional Audio Applications Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-12 13:26 UTC by Mike Limansky
Modified: 2013-05-08 12:22 UTC (History)
0 users

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


Attachments
build.log (build.log,16.47 KB, text/plain)
2009-06-13 10:27 UTC, Mike Limansky
Details
swh-plugins-0.4.15-glibc-2.10.patch (swh-plugins-0.4.15-glibc-2.10.patch,26.81 KB, patch)
2009-06-13 11:02 UTC, Mike Limansky
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Limansky 2009-06-12 13:26:20 UTC
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
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-06-12 14:46:39 UTC
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 :)
Comment 2 Mike Limansky 2009-06-13 10:25:16 UTC
(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.
Comment 3 Mike Limansky 2009-06-13 10:27:08 UTC
Created attachment 194502 [details]
build.log

Build log is attached.
Comment 4 Mike Limansky 2009-06-13 11:02:10 UTC
Created attachment 194508 [details, diff]
swh-plugins-0.4.15-glibc-2.10.patch

I've prepared patch for this issue, please check it.
Comment 5 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-06-13 11:18:44 UTC
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).
Comment 6 Alexis Ballier gentoo-dev 2009-06-29 17:44:02 UTC
cant reproduce here, glibc 2.10, gcc 4.3/4.4 :/
Comment 7 Mike Limansky 2009-06-29 18:02:17 UTC
(In reply to comment #6)
> cant reproduce here, glibc 2.10, gcc 4.3/4.4 :/
> 

Do you have nls USE flag switched on?
Comment 8 Alexis Ballier gentoo-dev 2009-06-29 18:36:26 UTC
(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
Comment 9 Samuli Suominen (RETIRED) gentoo-dev 2009-08-08 10:10:55 UTC
(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...
Comment 10 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-08-08 11:23:00 UTC
Yes this is a problem with -O0 builds: 

http://blog.flameeyes.eu/2008/09/02/testing-the-corner-cases
Comment 11 Alexis Ballier gentoo-dev 2013-05-08 12:22:43 UTC
its been a while since I had not touched this package... patch applied, thanks!