[Update]: If you’re trying to compile Ettercap on Leopard, check here.
I’ve been trying to get this compiled for 2 days now, finally found out how to do it. Figured I’d share for everyone else.
If you try this without making the change to the configure file it will complain about you not having support for pthreads, so here’s what you do:
Open the configure script, search for the line that say something like "$OS" != "MACOSX", you need to change this line to say "$OS" != "DARWIN", voila!
./configure && make && make install away! Enjoy ettercap!
Now if I could only get dsniff working as well… :-/

8 Comments
October 6, 2007 at 9:59 am
Thanks for the trick.. I was simply using Gcc-4 got from fink as compiler setting CC=/sw/bin/gcc-4
…
Still I get an error in the ./configure script saying
configure: error: libnet >= 1.1.2.1 not found
I tried to get updated version of libnet from fink too but can’t seem to make it recognizi it.
Do you know how to get rid of that error??
Thanks a lot.
October 15, 2007 at 11:37 am
You could always try building libnet from source instead of fink. I’ve found that if you’re going to mix-and-match libraries and programs from Fink and source, it’s best to either do the program and ALL the libraries from source, or the programs and ALL the libraries from fink.
In the fink case, fink install ettercap works great if you just need to binary installed without a lot of hassle.
October 22, 2007 at 10:53 am
Thanks, I never would have figured that out!
November 15, 2007 at 1:13 pm
[...] 15, 2007 · No Comments This is a continuation of the pthread error that I mentioned in a previous [...]
March 7, 2008 at 9:35 pm
You’re AMAZING. Your title is exactly what I would have typed into Google if I’d had any faith that it would work.
August 2, 2008 at 12:43 pm
Anyone stumbling on this would be better served by doing this fix:
– in wdg.h, add the following line after #include
#include
August 2, 2008 at 12:44 pm
filename got removed…
sys/types.h
October 9, 2009 at 4:57 pm
Hi all.
I ‘m trying to get Ettercap running on my 10.5.8.
I used to have the PTHREAD Error and managed it with your trick.
Now I have a different cool new problem. I can’t “MAKE” or “MAKE INSTALL”.
Here it’s the message I have on the ending line :
“checking for libnet… no
configure: error: libnet >= 1.1.2.1 not found”
I’m using MacPorts to manage my ports and libs.
So I Unistall it and Reistall everyting.
Here it’s my ports list from “port installed” command :
“The following ports are currently installed:
autoconf @2.64_2 (active)
automake @1.11_0 (active)
expat @2.0.1_0 (active)
gettext @0.17_4 (active)
gperf @3.0.4_0 (active)
help2man @1.36.4_1 (active)
libiconv @1.13_0 (active)
libnet11 @1.1.4_0 (active)
libpcap @1.0.0_0 (active)
libtool @2.2.6a_0 (active)
m4 @1.4.13_0 (active)
ncurses @5.7_0 (active)
ncursesw @5.7_0 (active)
p5-locale-gettext @1.05_0 (active)
perl5 @5.8.9_0 (active)
perl5.8 @5.8.9_3 (active)
pkgconfig @0.23_1 (active)
xorg-libpthread-stubs @0.1_0 (active)
zlib @1.2.3_3 (active)”
So I obviously Have Libnet Installed.
Any idea what my problem is ?