Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Ettercap-0.7.3-r2 fails to emerge
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
PM17E5
Apprentice
Apprentice


Joined: 10 Feb 2009
Posts: 230

PostPosted: Tue Feb 10, 2009 6:33 pm    Post subject: Ettercap-0.7.3-r2 fails to emerge Reply with quote

I can't seem to get ettercap to emerge no matter what I try. I read somewhere that it needs to have lsresolv inserted and I tried it as an ldflag without any different results.

Code:
ec_log.c: In function 'log_packet':
ec_log.c:248: warning: pointer targets in passing argument 2 of 'regexec' differ in signedness
ec_log.c: In function 'log_write_info':
ec_log.c:491: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
ec_log.c:491: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness
ec_log.c:491: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
ec_log.c:491: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness
ec_log.c:491: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness
ec_log.c:491: warning: pointer targets in passing argument 1 of '__builtin_strcmp' differ in signedness
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
make[2]: *** [ettercap-ec_log.o] Error 1
make[2]: Leaving directory `/var/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 `/var/tmp/portage/net-analyzer/ettercap-0.7.3-r2/work/ettercap-NG-0.7.3/src'
make: *** [all-recursive] Error 1
 *
 * ERROR: net-analyzer/ettercap-0.7.3-r2 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2844:  Called die
 * The specific snippet of code:
 *       emake || die "emake failed"
 *  The die message:
 *   emake failed


Code:
Portage 2.1.6.7 (default/linux/x86/2008.0, gcc-4.3.3, glibc-2.9_p20081201-r1, 2.6.28-hardened-one i686)
=================================================================
System uname: Linux-2.6.28-hardened-one-i686-Intel-R-_Atom-TM-_CPU_N270_@_1.60GHz-with-glibc2.0
Timestamp of tree: Tue, 10 Feb 2009 17:35:01 +0000
app-shells/bash:     3.2_p48-r1
dev-lang/python:     2.5.4-r2
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.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="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CHOST="i686-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/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=native -pipe"
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"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j1"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl alsa berkdb bzip2 cli cracklib crypt dri fortran gdbm iconv isdnlog midi mudflap ncurses nptl nptlonly opengl openmp pam pcre perl pppd python readline reflection session spl ssl symlink sysfs tcpd threads unicode x86 xinerama xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 synaptics mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="intel"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Back to top
View user's profile Send private message
Hu
Watchman
Watchman


Joined: 06 Mar 2007
Posts: 9131

PostPosted: Wed Feb 11, 2009 3:22 am    Post subject: Reply with quote

This is bug #258382.
Back to top
View user's profile Send private message
PM17E5
Apprentice
Apprentice


Joined: 10 Feb 2009
Posts: 230

PostPosted: Wed Feb 11, 2009 5:25 pm    Post subject: Reply with quote

I know, I was just curious if anyone had any solutions. I'd really like to install this program.

Edit:
I found why this is done:
http://sourceforge.net/tracker/index.php?func=detail&aid=1776264&group_id=17435&atid=117435

Patch, as currently implemented, which works:

Code:
--- src/ec_log.c 2007-08-17 07:46:06.000000000 -0500
+++ src/ec_log.c 2007-08-17 07:46:06.000000000 -0500
@@ -190,7 +190,7 @@
if (fd->cfd == NULL)
SEMIFATAL_ERROR("%s", gzerror(fd->cfd, &zerr));
} else {
- fd->fd = open(filename, O_CREAT | O_TRUNC | O_RDWR | O_BINARY);
+ fd->fd = open(filename, O_CREAT | O_TRUNC | O_RDWR | O_BINARY,
0644);
if (fd->fd == -1)
SEMIFATAL_ERROR("Can't create %s: %s", filename,
strerror(errno));
}
Back to top
View user's profile Send private message
fedex
n00b
n00b


Joined: 02 Oct 2006
Posts: 56

PostPosted: Mon Feb 23, 2009 12:22 am    Post subject: Hi Reply with quote

I'm very sorry if this sounds like a stupid question but unfortunately I don't understand what you did to successfully install ettercap.
Can you please be more explicit?

Thank you

Best regards
Back to top
View user's profile Send private message
PM17E5
Apprentice
Apprentice


Joined: 10 Feb 2009
Posts: 230

PostPosted: Mon Feb 23, 2009 4:34 pm    Post subject: Reply with quote

Not at all, I was a bit confused by it too at first. I didn't emerge it because I don't know how to modify the ebuild and distribution file (not bothered enough to look it up). Instead I just downloaded it directly from their website (I think they have a newer version anyways). Then I unarchived it went into the oflder, and modified src/ec_log.c. Just change the line

Code:
fd->fd = open(filename, O_CREAT | O_TRUNC | O_RDWR | O_BINARY);

into

Code:
fd->fd = open(filename, O_CREAT | O_TRUNC | O_RDWR | O_BINARY,
0644);

Then go back into the main folder and as root do

Code:
./configure && make && make install

Hope that helps.

Just watch where it installs those files so that if you do ever emerge it (when they finally update that bug) then you can remove the manually installed files and just let portage take care of it.
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 5654

PostPosted: Mon Feb 23, 2009 5:55 pm    Post subject: Reply with quote

PM17E5 wrote:

Then go back into the main folder and as root do

Code:
./configure && make && make install

Just watch where it installs those files so that if you do ever emerge it (when they finally update that bug) then you can remove the manually installed files and just let portage take care of it.

As you said yourself, it's not a way to fix things, it a way to break things.
Back to top
View user's profile Send private message
PM17E5
Apprentice
Apprentice


Joined: 10 Feb 2009
Posts: 230

PostPosted: Mon Feb 23, 2009 9:37 pm    Post subject: Reply with quote

There is no breaking being done by performing that. You simply find the installed files later and remove them, not very hard for a program that size. All I did was offer a practical solution.
Back to top
View user's profile Send private message
Arfrever
Bodhisattva
Bodhisattva


Joined: 29 Apr 2006
Posts: 2460
Location: Polska / Lenkija

PostPosted: Tue Feb 24, 2009 11:45 am    Post subject: Reply with quote

PM17E5 wrote:
There is no breaking being done by performing that. You simply find the installed files later and remove them, not very hard for a program that size. All I did was offer a practical solution.


You should use epatch in src_prepare() or src_unpack() of given ebuild.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum