« OS X on Intel | Main | Hydra 4.7 and libssh 0.11 for Darwinports on OS X »


Building ettercap-ng 0.7.3 on Tiger using Darwinports

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.

Justin Clarke [TypeKey Profile Page]:

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 :-)

Eric:

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

Eric:

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!

Justin Clarke [TypeKey Profile Page]:

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"

steve:

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!

Justin Clarke [TypeKey Profile Page]:

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"

steve:

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!

n0d3:

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

criuz:

anyone found a solution to the problem in the first post?

Mikel Carozzi:

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

LF:

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.

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

All spam will be reported

About

This page contains a single entry from the blog posted on August 15, 2005 2:49 PM.

The previous post in this blog was OS X on Intel.

The next post in this blog is Hydra 4.7 and libssh 0.11 for Darwinports on OS X.

Many more can be found on the main index page or by looking through the archives.

Creative Commons License
This weblog is licensed under a Creative Commons License.
Powered by
Movable Type 3.36

Valid XHTML 1.0!