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

Bug 63831

Summary: Porting: ettercap
Product: Gentoo Linux Reporter: jorge <programmerjorge>
Component: Current packagesAssignee: osx porters <osx>
Status: RESOLVED WONTFIX    
Severity: blocker    
Priority: High    
Version: 2004.2   
Hardware: PPC   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 61599, 62069    
Bug Blocks:    

Description jorge 2004-09-12 14:37:18 UTC
When I try to emerge ettercap, it seems to go along compiling properly until ec_capture.c, at which point it gives quite a few errors about undefined symbols and parse errors.

Reproducible: Always
Steps to Reproduce:
1.Install portage on OS X
2. Emerge the dependencies for ettercap
3. type "emerge ettercap"
Actual Results:  
jorge@localhost ettercap$ USE="-ncurses -ssl" emerge ettercap
Calculating dependencies ...done!
>>> emerge (1 of 1) net-analyzer/ettercap-0.7.0 to /
>>> md5 src_uri ;-) ettercap-NG-0.7.0.tar.gz
>>> Checking ettercap-NG-0.7.0.tar.gz's mtime...
>>> WORKDIR is up-to-date, keeping...
..........
..........
gcc -DHAVE_CONFIG_H -I. -I. -I../include    -O2 -funroll-loops -fomit-frame-pointer -Wall      -O2 
-pipe -c -o ettercap-ec_conntrack.o `test -f 'ec_conntrack.c' || echo './'`ec_conntrack.c
ec_capture.c: In function `capture_init':
ec_capture.c:192: warning: implicit declaration of function `pcap_datalink_val_to_description'
ec_capture.c: In function `capture_getifs':
ec_capture.c:286: error: `pcap_if_t' undeclared (first use in this function)
ec_capture.c:286: error: (Each undeclared identifier is reported only once
ec_capture.c:286: error: for each function it appears in.)
ec_capture.c:286: error: `dev' undeclared (first use in this function)
ec_capture.c:286: error: `pdev' undeclared (first use in this function)
ec_capture.c:286: error: `ndev' undeclared (first use in this function)
ec_capture.c:286: warning: left-hand operand of comma expression has no effect
ec_capture.c:286: warning: left-hand operand of comma expression has no effect
ec_capture.c:292: warning: implicit declaration of function `pcap_findalldevs'
ec_capture.c:292: error: parse error before ')' token
ec_capture.c:296: error: parse error before ')' token
ec_capture.c:302: error: `PCAP_IF_LOOPBACK' undeclared (first use in this function)
make[2]: *** [ettercap-ec_capture.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1

!!! ERROR: net-analyzer/ettercap-0.7.0 failed.
!!! Function src_compile, Line 62, Exitcode 2
!!! emake failed
!!! If you need support, post the topmost build error, NOT this status message.

Expected Results:  
Ettercap should have compiled properly and installed

I tried several combination of use flags, but it didn't seem to make a difference
Comment 1 Otavio Piske (RETIRED) gentoo-dev 2004-09-20 13:45:11 UTC
Reassigned to Gentoo/MacOS team since it's not fbsd/obsd related.
Comment 2 Alberto Ornaghi 2004-09-21 07:33:40 UTC
it seems that the pcap version used to compile it is not the required one (0.8.3).
try upgrading libpcap to that version (and be sure to not have another different header file in the path).

bye
Comment 3 Markus Ullmann (RETIRED) gentoo-dev 2007-06-12 17:09:59 UTC
old osx related, see you in prefix