Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 63030 - ettercap doesn't build
Summary: ettercap doesn't build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-06 09:48 UTC by katerina
Modified: 2004-11-04 04:59 UTC (History)
1 user (show)

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


Attachments
Compiletime fix for ettercap-0.7.0 (ettercap-0.7.0.ebuild,1.73 KB, text/plain)
2004-09-06 17:43 UTC, Phillip L
Details

Note You need to log in before you can comment on or make changes to this bug.
Description katerina 2004-09-06 09:48:22 UTC
gcc -DHAVE_CONFIG_H -I. -I. -I../include    -g -ggdb -Wmissing-prototypes -Wno-uninitialized -Werror -Wformat-security -Wsign-compare -Wall   -I/usr/include   -O3 -march=pentium3 -fprefetch-loop-arrays -funroll-loops -pipe -c -o ettercap-ec_error.o `test -f 'ec_error.c' || echo './'`ec_error.c
ec_conntrack.c: In function `conntrack_timeouter':
ec_conntrack.c:452: warning: no return statement in function returning non-void
distcc[5799] ERROR: compile on 192.168.0.25 failed
make[2]: *** [ettercap-ec_conntrack.o] Error 1
make[2]: *** Waiting for unfinished jobs....
ec_dispatcher.c: In function `top_half':
ec_dispatcher.c:146: warning: no return statement in function returning non-void
distcc[5813] ERROR: compile on 192.168.0.25 failed
make[2]: *** [ettercap-ec_dispatcher.o] Error 1
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/ettercap-0.7.0/work/ettercap-NG-0.7.0/src'
make: *** [all-recursive] Error 1

!!! ERROR: net-analyzer/ettercap-0.7.0 failed.
!!! Function src_compile, Line 58, Exitcode 2
!!! emake failed

With distcc off: 
gcc -DHAVE_CONFIG_H -I. -I. -I../include    -g -ggdb -Wmissing-prototypes -Wno-uninitialized -Werror -Wformat-security -Wsign-compare -Wall   -I/usr/include   -O3 -march=pentium3 -fprefetch-loop-arrays -funroll-loops -pipe -c -o ettercap-ec_connbuf.o `test -f 'ec_connbuf.c' || echo './'`ec_connbuf.c
gcc -DHAVE_CONFIG_H -I. -I. -I../include    -g -ggdb -Wmissing-prototypes -Wno-uninitialized -Werror -Wformat-security -Wsign-compare -Wall   -I/usr/include   -O3 -march=pentium3 -fprefetch-loop-arrays -funroll-loops -pipe -c -o ettercap-ec_conntrack.o `test -f 'ec_conntrack.c' || echo './'`ec_conntrack.c
ec_conntrack.c: In function `conntrack_timeouter':
ec_conntrack.c:452: warning: no return statement in function returning non-void
make[2]: *** [ettercap-ec_conntrack.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/ettercap-0.7.0/work/ettercap-NG-0.7.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/ettercap-0.7.0/work/ettercap-NG-0.7.0/src'
make: *** [all-recursive] Error 1

!!! ERROR: net-analyzer/ettercap-0.7.0 failed.
!!! Function src_compile, Line 58, Exitcode 2
!!! emake failed



Reproducible: Always
Steps to Reproduce:
1. emerge ettercap




Expected Results:  
It should compile successfully.

Portage 2.0.50-r10 (default-x86-1.4, gcc-3.3.4, glibc-2.3.3.20040420-r1,
2.6.0-test8)
=================================================================
System uname: 2.6.0-test8 i686 Pentium III (Coppermine)
Gentoo Base System version 1.4.16
distcc 2.13 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium3 -fprefetch-loop-arrays -funroll-loops -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config
/usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/fenris /etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium3 -fprefetch-loop-arrays -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs buildpkg ccache distcc sandbox userpriv usersandbox"
GENTOO_MIRRORS="http://mirror.switch.ch/mirror/gentoo/
ftp://gd.tuwien.ac.at/opsys/linux/gentoo/
http://gd.tuwien.ac.at/opsys/linux/gentoo/ http://194.149.10.102/"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aalib acl alsa apm arts audiofile avi berkdb bidi cairo canna cdr cjk
crypt cscope cups debug directfb doc dvd dvdr emacs encode faad flac foomaticdb
freewnn gatos gd gdbm gimpprint gphoto2 gpm gtk gtk2 guile imagemagick imlib
jack java javascript jikes jpeg junit kde libg++ libwww mad mikmod mmx mng mpeg
ncurses nls oggvorbis opengl pam pcre pdflib perl php pic png postgres ppds
python qt quicktime readline ruby scanner sdl slang socks5 softmmu spell sse ssl
tcltk tcpd tetex theora tiff truetype unicode usb video_cards_rage128 wmf x86
xinerama xml2 xmms xv zlib"
Comment 1 Phillip L 2004-09-06 17:43:54 UTC
Created attachment 39102 [details]
Compiletime fix for ettercap-0.7.0

This is a problem with gcc optimization (most likely inline's) updated ebuild
to inherit flag-o-matic and filter optimizations greater than -02
Comment 2 Alberto Ornaghi 2004-09-21 07:31:44 UTC
the problem has been fixed in the 0.7.1 version.  the bug can be closed.

bye
Comment 3 Eldad Zack (RETIRED) gentoo-dev 2004-11-04 04:59:53 UTC
strip-flags does a better job: it removes everything but "sane" flags.
fixed in portage.