Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 258382

Summary: net-analyzer/ettercap-0.7.3-r2 fails ( _FORTIFY_SOURCE)
Product: Gentoo Linux Reporter: Patrizio Bassi <patrizio.bassi>
Component: New packagesAssignee: Gentoo Netmon project <netmon>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: 2008.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 259417    
Attachments: ettercap-0.7.3-open_missing_mode.patch

Description Patrizio Bassi 2009-02-09 23:28:57 UTC
In function ‘open’,                                                                                                                                                                     
    inlined from ‘log_open’ at ec_log.c:193:                                                                                                                                            
/usr/include/bits/fcntl2.h:51: error: call to ‘__open_missing_mode’ declared with attribute error: open with O_CREAT in second argument needs 3 arguments                               
if x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../include    -O2 -funroll-loops -fomit-frame-pointer -Wall -I/usr/include/pcap  -I/usr/include   -pipe -mtune=core2 -march=core2 -O2 -MT ettercap-ec_main.o -MD -MP -MF ".deps/ettercap-ec_main.Tpo" -c -o ettercap-ec_main.o `test -f 'ec_main.c' || echo './'`ec_main.c; \                                              
        then mv -f ".deps/ettercap-ec_main.Tpo" ".deps/ettercap-ec_main.Po"; else rm -f ".deps/ettercap-ec_main.Tpo"; exit 1; fi                                                        
make[2]: *** [ettercap-ec_log.o] Error 1
make[2]: *** Waiting for unfinished jobs....
ec_main.c: In function ‘main’:
ec_main.c:151: warning: pointer targets in passing argument 1 of ‘set_utf8_encoding’ differ in signedness
ec_main.c: In function ‘time_check’:
ec_main.c:288: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
make[2]: Leaving directory `/mnt/Dati/Gentoo/tmp/portage/net-analyzer/ettercap-0.7.3-r2/work/ettercap-NG-0.7.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/mnt/Dati/Gentoo/tmp/portage/net-analyzer/ettercap-0.7.3-r2/work/ettercap-NG-0.7.3/src'
make: *** [all-recursive] Error 1

Portage 2.1.6.7 (default/linux/amd64/2008.0/desktop, gcc-4.3.3, glibc-2.9_p20081201-r1, 2.6.28 x86_64)                      
=================================================================                                                           
System uname: Linux-2.6.28-x86_64-Intel-R-_Core-TM-2_CPU_6300_@_1.86GHz-with-glibc2.2.5                                     
Timestamp of tree: Mon, 09 Feb 2009 19:45:01 +0000                                                                          
distcc 3.1 x86_64-pc-linux-gnu [disabled]                                                                                   
ccache version 2.4 [disabled]                                                                                               
app-shells/bash:     3.2_p48-r1                                                                                             
dev-java/java-config: 1.3.7-r1, 2.1.7                                                                                       
dev-lang/python:     2.5.4-r2                                                                                               
dev-python/pycrypto: 2.0.1-r6                                                                                               
dev-util/ccache:     2.4-r8                                                                                                 
dev-util/cmake:      2.6.2-r1                                                                                               
sys-apps/baselayout: 2.0.0                                                                                                  
sys-apps/openrc:     0.4.2                                                                                                  
sys-apps/sandbox:    1.3.5
sys-devel/autoconf:  2.13, 2.63
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
sys-devel/binutils:  2.19.1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -pipe -mtune=core2 -march=core2 -fomit-frame-pointer -mmmx -msse -msse2 -msse3 -mfpmath=sse"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/mail/dspam /usr/lib/mozilla/defaults/pref /usr/share/config /var/run/dspam"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/eselect/postgresql /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/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O3 -pipe -mtune=core2 -march=core2 -fomit-frame-pointer -mmmx -msse -msse2 -msse3 -mfpmath=sse"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="39"
LC_ALL="it_IT.utf8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--enable-new-dtags -Wl,--as-needed -Wl,--hash-style=gnu"
LINGUAS="it"
MAKEOPTS="-j3"
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="/mnt/Dati/Gentoo/tmp/"
PORTDIR="/mnt/Dati/Gentoo/portage/"
PORTDIR_OVERLAY="/usr/local/portage/myportage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac aalib ace acl acpi alias alsa amd64 ao apache2 audacious bash-completion branding bzip2 cairo caps cddb cdio cdparanoia cdr chroot clamav cli connectionstatus cracklib crypt cscope css ctype cups curl custom-cpuopts custom-optimization cvs daemon dbus dga dhcp directfb divx djbfft dri dvd dvdr dvdread emboss encode evo exif expat ffmpeg fftw firefox firefox3 flac fortran ftp gcj gd gdbm gif glibc-omitfp glitz glut gnutls gpm gstreamer hal hddtemp iconv idn ipod ipv6 irc isdnlog java java6 javascript jpeg jpeg2k justify kde kde4 kdeenablefinal kdehiddenvisibility kqemu lame ldap libv4l2 lilo live lm_sensors lzo mad matroska mdnsresponder-compat midi mikmod mime mmx mmxext mng mono mozdevelop mp3 mp4 mp4live mpegmpeg2 mplayer msn mudflap multilib musepack mysql ncurses network networkmanager nls nntp nptl nptlonly nsplugin ntfs nvidia oav ogg opengl openmp openssl pam pcre pdf php plasma png ppds pppd qt3support qt4 quicktime readline reflection reiserfs rtc samba scanner sdl session slang smp sockets socks5 speex spell spl sse sse2 sse3 ssl ssse3 startup-notification sysfs tao tcpd theora threads tiff truetype unicode usb userlocales v4l v4l2 vhook vorbis webkit wma wmf wxwindows x264 xanim xcomposite xine xml xorg xpm xprint xsl xulrunner xv xvid xvmczlib" 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it" USERLAND="GNU" VIDEO_CARDS="vga nv nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jonathan-Christofer Demay 2009-02-16 21:12:18 UTC
Created attachment 182275 [details, diff]
ettercap-0.7.3-open_missing_mode.patch

Here is a patch that should fix this.
Comment 2 Magnus Granberg gentoo-dev 2009-02-27 22:37:44 UTC
(In reply to comment #1)
> Created an attachment (id=182275) [edit]
> ettercap-0.7.3-open_missing_mode.patch
> 
> Here is a patch that should fix this.
> 
The patch looks okey for me.

Comment 3 Patrick Lauer gentoo-dev 2009-03-01 20:20:36 UTC
+*ettercap-0.7.3-r3 (01 Mar 2009)
+
+  01 Mar 2009; Patrick Lauer <patrick@gentoo.org>
+  +files/ettercap-0.7.3-open_missing_mode.patch, +ettercap-0.7.3-r3.ebuild:
+  Fix for gcc 4.3.3 / fortify_sources. Patch by Jonathan-Christofer Demay.
+