sockperf will not compile on macOS
NickZ opened this issue · 1 comments
NickZ commented
Attempting to compile this on macOS 10.12 with autoconf, etc. installed, I run into this issue:
In file included from src/aopt.cpp:33:
src/os_abstract.h:138:10: fatal error: 'endian.h' file not found
#include <endian.h>
^
1 error generated.
make[2]: *** [src/aopt.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
I used this gist for endian.h and put it into /usr/include: https://gist.github.com/yinyin/2027912
Then I get this error:
In file included from src/aopt.cpp:33:
src/os_abstract.h:193:2: error: unknown type name 'cpu_set_t'
cpu_set_t cpuset;
^
1 error generated.
make[2]: *** [src/aopt.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
EmbeddedPenTest commented
I've got it compiling on OS X: https://github.com/EmbeddedPenTester/sockperf