Note: ettercap-ng 0.7.3 is now in the normal ports list, so you should not need to download my version below.
I have been trying to get ettercap built on my Tiger machine for the last few days with little success. I finally came across an entry in the Darwinports Bugzilla which notes the problem, as well as some patches to both update the port to use ettercap-ng 0.7.3, and to fix the build problems on Tiger. Since the files don't seem to have made it to the active ports yet you can grab the updated portfiles here.
Just extract these to your port files directory for ettercap-ng, and install using the port command. The port files are found on my box at /opt / local / var / db / dports / sources / rsync.rsync.opendarwin.org_dpupdate_dports / net / ettercap-ng /
And, just to show that it works, here is Ettercap 0.7.3 (Curses interface) running on my machine:

And the GTK+ interface (build with the gtk variant):

Found this useful? Then Digg It.

Comments (12)
Do you know if there has been a change with DP 1.2? I've been unable to get ettercap-ng to build. Fails with the following error:
checking whether gcc accepts -pthread... no
configure: WARNING: ***************************
configure: WARNING: * PTHREAD ARE REQUIRED !! *
configure: WARNING: ***************************
---> Building ettercap-ng with target all
make: *** No rule to make target `all'. Stop.
Error: Target com.apple.build returned: shell command "cd "/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_net_ettercap-ng/work/ettercap-NG-0.7.3" && make all" returned error 2
Command output: make: *** No rule to make target `all'. Stop.
Warning: the following items did not execute (for ettercap-ng): com.apple.activate com.apple.build com.apple.destroot com.apple.archive com.apple.install
Error: /opt/local/bin/port: Status 1 encountered during processing.
Posted by Andy Black | February 9, 2006 2:51 AM
Posted on February 9, 2006 02:51
Hmm, I'll look into it. libpthread is a requirement for for Ettercap - I'll try it on the PowerMac I have in the lab :-)
Posted by Justin Clarke
|
February 9, 2006 1:23 PM
Posted on February 9, 2006 13:23
I also am experiencing the same failure to compile as the first poster. Is this something that everyone with 10.4.4 and DP 1.2 is having to deal with? Has anyone found any work arounds or patches? I *really* want to get this working!! Thanks in advance!
p.s. I have included my e-mail address above. Just remove the obvious parts ;)
-Fellow Mac/DarwinPorts User
Posted by Eric | February 10, 2006 3:32 AM
Posted on February 10, 2006 03:32
It looks like my e-mail address wasn't included in my above post. Here it is. Of course you know what to add/remove to get it to work!
hartsock dot eric at gmail dot com
Let's get this thing resolved!
Posted by Eric | February 10, 2006 2:03 PM
Posted on February 10, 2006 14:03
It looks like the problem is related to GCC 4.0 rather than Darwinports.
Try running "sudo gcc_select 3.3" to use GCC 3.3 to compile before trying to install ettercap.
Note 1: I had some fun with an error relating to libnet1.1.2.x not being installed - I uninstalled libnet11, removed the package from the /opt/local/var/db/dports/packages/darwin/powerpc directory, and rebuilt the libnet11 package to fix this
Note 2: Change back to GCC 4.0 after you're done with "sudo gcc_select 4.0"
Posted by Justin Clarke
|
February 10, 2006 2:44 PM
Posted on February 10, 2006 14:44
HEY GUYS, I AM HAVING THE SAME DAMN PROBLEM AND I AM GETTING VERY FRUSTRATED. I SWITCHED TO THE GCC 3.3 BUT I HAVE NO IDEA HOW TO REBUILD LIBNET11. I AM VERY NEW WITH MAC'S AND UNIX IN GENERAL. CAN SOMEONE PLEASE PLEASE HELP ME GET THROUG THIS.
I JUST NEED TO KNOW HOW TO REBUILD I GUESS. HOPEFULLY THAT WILL FIX MY PROBLEM!! THANKS IN ADVANCE EVERYONE!
Posted by steve | March 3, 2006 9:45 PM
Posted on March 3, 2006 21:45
Try "sudo port uninstall libnet11"
Then delete the existing libnet package in /opt/local/var/db/dports/packages/darwin/powerpc. It should be obvious what file is the libnet11 package.
Then "sudo port install libnet11"
Posted by Justin Clarke
|
March 3, 2006 9:58 PM
Posted on March 3, 2006 21:58
i tried everything you guys have suggested. I changed it to the gcc 3.3, then uninstalled libnet11 then removed the package then reinstalled libnet11 and I am still getting the same error as mentioned in the earliest post! This is so confusing...any more help would be GREATLY appriciated!
Posted by steve | March 6, 2006 6:59 PM
Posted on March 6, 2006 18:59
getting same results as justin clarke..
im on intel.. but that shouldnt make a dif..
i get the "no libnet 1.1.2.1 thang :(
GURUS PLS HELP
Posted by n0d3 | July 21, 2006 2:01 PM
Posted on July 21, 2006 14:01
anyone found a solution to the problem in the first post?
Posted by criuz | October 16, 2006 9:57 AM
Posted on October 16, 2006 09:57
hi, i try to compile on mi iBook G4 running OS X Tiger 10.4.10, but i have this error:
if /bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../../include -O2 -funroll-loops -fomit-frame-pointer -Wall -g -O2 -MT ec_stp_mangler_la-stp_mangler.lo -MD -MP -MF ".deps/ec_stp_mangler_la-stp_mangler.Tpo" -c -o ec_stp_mangler_la-stp_mangler.lo `test -f 'stp_mangler.c' || echo './'`stp_mangler.c; \
then mv -f ".deps/ec_stp_mangler_la-stp_mangler.Tpo" ".deps/ec_stp_mangler_la-stp_mangler.Plo"; else rm -f ".deps/ec_stp_mangler_la-stp_mangler.Tpo"; exit 1; fi
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I. -I../../include -O2 -funroll-loops -fomit-frame-pointer -Wall -g -O2 -MT ec_stp_mangler_la-stp_mangler.lo -MD -MP -MF .deps/ec_stp_mangler_la-stp_mangler.Tpo -c stp_mangler.c -fno-common -DPIC -o .libs/ec_stp_mangler_la-stp_mangler.o
/bin/sh ../../libtool --mode=link gcc -g -O2 -pthread -o ec_stp_mangler.la -rpath /usr/local/lib/ettercap -module -avoid-version ec_stp_mangler_la-stp_mangler.lo
gcc ${wl}-flat_namespace ${wl}-undefined ${wl}suppress -o .libs/ec_stp_mangler.so -bundle .libs/ec_stp_mangler_la-stp_mangler.o -pthread
gcc: unrecognized option `-pthread'
creating ec_stp_mangler.la
(cd .libs && rm -f ec_stp_mangler.la && ln -s ../ec_stp_mangler.la ec_stp_mangler.la)
make[2]: Nothing to be done for `all-am'.
make[1]: Nothing to be done for `all-am'.
any suggestions?'
salu2
Posted by Mikel Carozzi | August 14, 2007 5:53 PM
Posted on August 14, 2007 17:53
try "sudo port install -f ettercap-ng". it worked for me. had to uninstalled every reference to ettercap-ng and do a new install with the force activation switch.
Posted by LF | November 19, 2007 1:07 AM
Posted on November 19, 2007 01:07