How to install libcrafter on Mac os x?

83 views
Skip to first unread message

Romain CHATRAS

unread,
Mar 25, 2015, 10:51:59 AM3/25/15
to libcr...@googlegroups.com
hi, I'm unable to install "libcrafter3.0" on my macbook pro (Yosemite 10.10.2)
can you hep me ? (if it's possible?)

fore more information :

MBPF:crafter-0.3 Freek$ ./configure && sudo make install

 



In file included from crafter/Utils/BitHandling.cpp:28:

crafter/Utils/BitHandling.h:69:11: error: expected ')'

        uint64_t htonll(uint64_t value);

...

In file included from crafter/Utils/BitHandling.cpp:28:

crafter/Utils/BitHandling.h:71:11: error: expected ')'

        uint64_t ntohll(uint64_t value);


crafter/Utils/BitHandling.cpp:101:19: error: unexpected parenthesis after '::'

uint64_t Crafter::htonll(uint64_t value) {


crafter/Utils/BitHandling.cpp:101:19: error: expected function body after

      function declarator

/usr/include/sys/_endian.h:141:25: note: expanded from macro 'htonll'

#define htonll(x)       __DARWIN_OSSwapInt64(x)


crafter/Utils/BitHandling.cpp:101:19: error: expected unqualified-id

/usr/include/sys/_endian.h:141:25: note: expanded from macro 'htonll'

#define htonll(x)       __DARWIN_OSSwapInt64(x)



crafter/Utils/BitHandling.cpp:112:19: error: unexpected parenthesis after '::'

uint64_t Crafter::ntohll(uint64_t value) {

crafter/Utils/BitHandling.cpp:112:19: error: expected function body after

      function declarator

/usr/include/sys/_endian.h:140:25: note: expanded from macro 'ntohll'

#define ntohll(x)       __DARWIN_OSSwapInt64(x)



crafter/Utils/BitHandling.cpp:112:19: error: expected unqualified-id

/usr/include/sys/_endian.h:140:25: note: expanded from macro 'ntohll'

#define ntohll(x)       __DARWIN_OSSwapInt64(x)

                        ^

/usr/include/libkern/_OSByteOrder.h:78:78: note: expanded from macro

      '__DARWIN_OSSwapInt64'

    (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : _OSSwapInt64(x))

                                                                             ^

8 errors generated.

make: *** [crafter/Utils/BitHandling.lo] Error 1

MBPF:crafter-0.3 Freek$ 


Thx for your help ! 


Reply all
Reply to author
Forward
0 new messages