Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 29887 - electricsheep-2.4 does not build with gcc-3.3.1
Summary: electricsheep-2.4 does not build with gcc-3.3.1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-29 04:53 UTC by Pär Karlsson
Modified: 2003-09-29 09:56 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pär Karlsson 2003-09-29 04:53:04 UTC
When emerging electricsheep-2.4 with gcc-3.3.1, the build stops with an error
when compiling "video_out_x11.o".


Reproducible: Always
Steps to Reproduce:
1. emerge electricsheep
2. Watch the emerge stop with an error

Actual Results:  
...
Making all in libvo
make[3]: Entering directory
`/var/tmp/portage/electricsheep-2.4/work/electricsheep-2.4/mpeg2dec/libvo'
gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I../include   
-march=pentium3  -fomit-frame-pointer -pipe -O3 -fomit-frame-pointer
-mcpu=pentiumpro -Wall -Werror   -I/usr/X11R6/include -I/usr/include/SDL
-D_REENTRANT -c `test -f 'video_out.c' || echo './'`video_out.c
gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I../include   
-march=pentium3  -fomit-frame-pointer -pipe -O3 -fomit-frame-pointer
-mcpu=pentiumpro -Wall -Werror   -I/usr/X11R6/include -I/usr/include/SDL
-D_REENTRANT -c `test -f 'video_out_x11.c' || echo './'`video_out_x11.c
gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I../include   
-march=pentium3  -fomit-frame-pointer -pipe -O3 -fomit-frame-pointer
-mcpu=pentiumpro -Wall -Werror   -I/usr/X11R6/include -I/usr/include/SDL
-D_REENTRANT -c `test -f 'video_out_sdl.c' || echo './'`video_out_sdl.c
gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I../include   
-march=pentium3  -fomit-frame-pointer -pipe -O3 -fomit-frame-pointer
-mcpu=pentiumpro -Wall -Werror   -I/usr/X11R6/include -I/usr/include/SDL
-D_REENTRANT -c `test -f 'video_out_null.c' || echo './'`video_out_null.c
In file included from video_out_x11.c:43:
vroot.h: In function `VirtualRootWindowOfScreen':
vroot.h:101: warning: dereferencing type-punned pointer will break
strict-aliasing rules
gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I../include   
-march=pentium3  -fomit-frame-pointer -pipe -O3 -fomit-frame-pointer
-mcpu=pentiumpro -Wall -Werror   -I/usr/X11R6/include -I/usr/include/SDL
-D_REENTRANT -c `test -f 'video_out_pgm.c' || echo './'`video_out_pgm.c
make[3]: *** [video_out_x11.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory
`/var/tmp/portage/electricsheep-2.4/work/electricsheep-2.4/mpeg2dec/libvo'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/var/tmp/portage/electricsheep-2.4/work/electricsheep-2.4/mpeg2dec'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/var/tmp/portage/electricsheep-2.4/work/electricsheep-2.4'
make: *** [all] Error 2
 
!!! ERROR: x11-misc/electricsheep-2.4 failed.
!!! Function src_compile, Line 377, Exitcode 2
!!! emake failed


Expected Results:  
The build should continue, possibly with warnings, but should not stop.

The reason why the ebuild stops is that warnings generated by the compiler are
treated as errors with the -Werror switch to gcc in the
electricsheep-2.4/mpeg2dec subdirectory. When editing the configure script not
to use -Werror the build completes (and electricsheep works, apparently without
problems), however, not being sure whether a patch to the relevant files
(electricsheep-2.4/mpeg2dec/{configure,configure.in} would be the proper
solution or if this is something that should be solved upstream, I merely report
the error and give the relevant information.

emerge info:

Portage 2.0.49-r7 (default-x86-1.4, gcc-3.3.1, glibc-2.3.2-r1,
2.4.20-gentoo-r7)=================================================================
System uname: 2.4.20-gentoo-r7 i686 Pentium III (Katmai)
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -O3 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config
/usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/"
CONFIG_PROTECT_MASK="/etc/afs/C /etc/afs/afsws /etc/gconf /etc/env.d"
CXXFLAGS="-march=pentium3 -O3 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache autoaddcvs sandbox userpriv usersandbox fixpackages"
GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/
http://mirror.pudas.net/gentoo http://www.fhh.opensource-mirror.de/gentoo.org/
http://mirrors.sec.informatik.tu-darmstadt.de/gentoo http://gentoo.mirror.sdv.fr
http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/
http://ftp.snt.utwente.nl/pub/os/linux/gentoo
http://ftp.gentoo.skynet.be/pub/gentoo/
http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/
http://gentoo.inode.at/ http://gentoo.linux.no/
http://ftp.easynet.nl/mirror/gentoo/ http://darkstar.ist.utl.pt/gentoo/
ftp://trumpetti.atm.tut.fi/gentoo/ http://adelie.polymtl.ca/
http://gentoo.noved.org/ http://mirrors.tds.net/gentoo
http://ftp.rhnet.is/pub/gentoo/
ftp://ftp.fhh.opensource-mirror.de/pub/gentoo.org/ ftp://mirror.pudas.net/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 oss avi crypt cups encode foomaticdb gif jpeg libg++ mad mikmod mmx
mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib directfb
alsa gdbm berkdb slang readline tetex aalib bonobo svga ggi tcltk java guile
ruby mysql X sdl gpm tcpd pam libwww ssl perl python esd imlib oggvorbis gnome
gtk qt motif opengl mozilla ldap cdr 3ds acl acpi acpi4linux afs autofs clamav
cscope curl dga dnd doc dv dvb dvd emacs ethereal faad fbcon fbdev flash fltk
fluidsynth gd gnomedb gphoto2 gstreamer gtk2 gtkhtml imap ipv6 jack jack-tmpfs
junit ladcca lcms libgda maildir mbox mcal md5sum memlimit mng moznocompose
moznoirc mozsvg mpi music oav objc odbc offensive openal plotutils rage128 rplay
samba sasl snmp socks5 sox sse tiff transcode type1 usb v4l vim-with-x wmf
wxwindows X509 Xaw3d xfs xinerama xvid -apm -arts -kde"
Comment 1 SpanKY gentoo-dev 2003-09-29 09:56:06 UTC
fixed in cvs ... i just ended up sed-ing out Werror from the configure script
and sending an e-mail to the upstream author (i've talked to him before so
it shouldnt be a problem there)