pellegre / libcrafter-examples

You can find *a lot* of libcrafter code right over here
53 stars 19 forks source link

Mac OS X not supported? #1

Closed sebastiaanluca closed 10 years ago

sebastiaanluca commented 12 years ago

I tried to compile a working set of files I could use in C++, but it has some missing files so the "make install …" commands never produce anything I can use. So it's only Linux then, or am I missing something?

In file included from crafter/Packet.h:38,
                 from crafter/Packet.cpp:30:
crafter/Utils/RawSocket.h:39:22: error: features.h: No such file or directory
crafter/Utils/RawSocket.h:40:29: error: linux/if_packet.h: No such file or directory
crafter/Utils/RawSocket.h:41:28: error: linux/if_ether.h: No such file or directory
In file included from crafter/Packet.h:38,
                 from crafter/Packet.cpp:30:
crafter/Utils/RawSocket.h:68: error: ‘ETH_P_ALL’ was not declared in this scope
crafter/Utils/RawSocket.h:69: error: ‘ETH_P_ALL’ was not declared in this scope
make[1]: *** [crafter/Packet.lo] Error 1
make: *** [all] Error 2
pellegre commented 12 years ago

Yes, only linux for now. Actually I isolate all the linux dependent code on that file (RawSocket.h). Is pretty trivial to port libcrafter to Mac OS X and I was planning to do it.

Let me work on this and I let you know when Mac OS X is supported.

pellegre commented 10 years ago

mac osx is supported on latest libcrafter

mikeguidry commented 8 years ago

pc:libcrafter mike$ ./autogen.sh autoreconf: Entering directory .' autoreconf: configure.ac: not using Gettext autoreconf: running: /opt/local/bin/aclocal --force ${ACLOCAL_FLAGS} autoreconf: configure.ac: tracing autoreconf: configure.ac: not using Libtool autoreconf: running: /opt/local/bin/autoconf --force autoreconf: configure.ac: not using Autoheader autoreconf: configure.ac: not using Automake autoreconf: Leaving directory.' ./configure: line 1: syntax error near unexpected token (' ./configure: line 1:m4trace:configure.ac:4: -1- AC_INIT([libcrafter], [0.3], [pellegre.esteban@gmail.com], [crafter], [http://code.google.com/p/libcrafter/])' pc:libcrafter mike$

I had this error on the OSX attempting to use autogen..

brifordwylie commented 7 years ago

@mikeguidry so at least on my mac sierra (10.12.3) this worked for me.

$ brew install autoconf libtool automake
$ ./autogen.sh
$ make
$ make install