August 10, 2007...10:10 am

How to compile ettercap NG 0.7.3 on Mac OSX when you get that annoying pthread error

Jump to Comments

[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

  • 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.

  • 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.

  • Thanks, I never would have figured that out!

  • [...] 15, 2007 · No Comments This is a continuation of the pthread error that I mentioned in a previous [...]

  • You’re AMAZING. Your title is exactly what I would have typed into Google if I’d had any faith that it would work.

  • Anyone stumbling on this would be better served by doing this fix:

    – in wdg.h, add the following line after #include

    #include

  • filename got removed…

    sys/types.h

  • 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 ?


Leave a Reply