Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 264081 - x11-misc/electricsheep: emerge fails because of -Werror
Summary: x11-misc/electricsheep: emerge fails because of -Werror
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: Daniel Black (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-28 16:05 UTC by Ivan L
Modified: 2009-04-27 11:47 UTC (History)
0 users

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


Attachments
/mnt/tmpfs/werror.patch (werror.patch,507 bytes, text/plain)
2009-03-28 16:48 UTC, Justin Lecher (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan L 2009-03-28 16:05:33 UTC
I try to emerge electricsheep-2.6.8-r1, but it fails with error:

Making all in libvo
make[3]: Entering directory `/var/tmp/paludis/x11-misc-electricsheep-2.6.8-r1/work/electricsheep-2.6.8/mpeg2dec/libvo'
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include -I../include -I../include   -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -march=core2 -O2 -pipe -fforce-addr -fomit-frame-pointer -Wall -Werror -c video_out.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include -I../include -I../include   -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -march=core2 -O2 -pipe -fforce-addr -fomit-frame-pointer -Wall -Werror -c video_out_x11.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include -I../include -I../include   -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -march=core2 -O2 -pipe -fforce-addr -fomit-frame-pointer -Wall -Werror -c video_out_sdl.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include -I../include -I../include   -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -march=core2 -O2 -pipe -fforce-addr -fomit-frame-pointer -Wall -Werror -c video_out_null.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include -I../include -I../include   -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -march=core2 -O2 -pipe -fforce-addr -fomit-frame-pointer -Wall -Werror -c video_out_pgm.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include -I../include -I../include   -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -march=core2 -O2 -pipe -fforce-addr -fomit-frame-pointer -Wall -Werror -c video_out_mga.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include -I../include -I../include   -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -march=core2 -O2 -pipe -fforce-addr -fomit-frame-pointer -Wall -Werror -c yuv2rgb.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include -I../include -I../include   -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -march=core2 -O2 -pipe -fforce-addr -fomit-frame-pointer -Wall -Werror -c yuv2rgb_mlib.c
cc1: warnings being treated as errors
video_out_x11.c: In function 'overlay_read_ppm':
video_out_x11.c:296: error: ignoring return value of 'fscanf', declared with attribute warn_unused_result
video_out_x11.c:303: error: ignoring return value of 'fscanf', declared with attribute warn_unused_result
video_out_x11.c:304: error: ignoring return value of 'fscanf', declared with attribute warn_unused_result
make[3]: *** [video_out_x11.o] Error 1
make[3]: *** Waiting for unfinished jobs....
cc1: warnings being treated as errors
video_out_pgm.c: In function 'internal_draw_frame':
video_out_pgm.c:51: error: ignoring return value of 'fwrite', declared with attribute warn_unused_result
video_out_pgm.c:52: error: ignoring return value of 'fwrite', declared with attribute warn_unused_result
video_out_pgm.c:54: error: ignoring return value of 'fwrite', declared with attribute warn_unused_result
video_out_pgm.c:56: error: ignoring return value of 'fwrite', declared with attribute warn_unused_result
video_out_pgm.c: In function 'md5_draw_frame':
video_out_pgm.c:149: error: ignoring return value of 'system', declared with attribute warn_unused_result
make[3]: *** [video_out_pgm.o] Error 1
make[3]: Leaving directory `/var/tmp/paludis/x11-misc-electricsheep-2.6.8-r1/work/electricsheep-2.6.8/mpeg2dec/libvo'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/paludis/x11-misc-electricsheep-2.6.8-r1/work/electricsheep-2.6.8/mpeg2dec'
make[1]: Leaving directory `/var/tmp/paludis/x11-misc-electricsheep-2.6.8-r1/work/electricsheep-2.6.8'
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
/usr/libexec/paludis/utils/emake: emake returned error 2

!!! ERROR in x11-misc/electricsheep-2.6.8-r1:
!!! In src_compile at line 27
!!! emake failed

!!! Call stack:
!!!    * src_compile (/usr/libexec/paludis/0/src_compile.bash:27)
!!!    * ebuild_f_compile (/usr/libexec/paludis/0/src_compile.bash:49)
!!!    * ebuild_main (/usr/libexec/paludis/ebuild.bash:482)
!!!    * main (/usr/libexec/paludis/ebuild.bash:498)
Comment 1 Ivan L 2009-03-28 16:07:07 UTC
here goes my  emerge --info

Portage 2.1.6.11 (default/linux/amd64/2008.0/desktop, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.28-gentoo-r3 x86_64)
=================================================================
System uname: Linux-2.6.28-gentoo-r3-x86_64-Intel-R-_Core-TM-2_CPU_6420_@_2.13GHz-with-glibc2.2.5
Timestamp of tree: Sun, 08 Feb 2009 11:30:17 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 2.1.7
dev-lang/python:     2.5.2-r7
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.3-r1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 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.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe -fforce-addr -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
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/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=core2 -O2 -pipe -fforce-addr -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages metadata-transfer parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://172.16.254.8/pub/gentoo"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en ru"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
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/local-overlay /usr/local/portage/layman/java-overlay /usr/local/portage/layman/sunrise /usr/local/portage/layman/enlightenment"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl acpi alsa amd64 bash-completion berkdb branding bzip2 cairo cdr cli cracklib crypt curl custom-optimization dbus djvu dri dvd dvdr dvdread emboss encode evo exif fam flac fontconfig gdbm gif gpm gtk hal hardened iconv ipv6 isdnlog jpeg jpeg2k ldap libnotify mad midi mmx mp3 mpeg mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf png pppd qt3support qt4 quicktime readline reflection sdl session spell spl sse sse2 ssl startup-notification svg sysfs tcpd threads tiff truetype unicode usb vorbis wavpack xattr xml xorg xscreensaver xulrunner xv 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="en ru" USERLAND="GNU" VIDEO_CARDS="radeonhd radeon"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Justin Lecher (RETIRED) gentoo-dev 2009-03-28 16:48:17 UTC
Created attachment 186572 [details]
/mnt/tmpfs/werror.patch

The patch  for getting rid of Werror
Comment 3 Ivan L 2009-03-28 19:33:57 UTC
thanks, it works with few modifications
Comment 4 Patrick Lauer gentoo-dev 2009-04-27 11:47:57 UTC
+*electricsheep-2.6.8-r2 (27 Apr 2009)
+
+  27 Apr 2009; Patrick Lauer <patrick@gentoo.org>
+  +electricsheep-2.6.8-r2.ebuild:
+  Horrible compile fix to remove -Werror from CFLAGS (#264081) and avoid the
+  libtool issues (#227239).

It's a really naughty "fix". The patch would be nicer, but it doesn't seem to actually fix the problem. So if you could rework the patch we could have a sane solution :)