seemoo-lab / owl

An open Apple Wireless Direct Link (AWDL) implementation written in C
https://owlink.org
GNU General Public License v3.0
1.25k stars 87 forks source link

Cannot build on MacOS < High Sierra #33

Closed Ocelot124286 closed 4 years ago

Ocelot124286 commented 4 years ago

I tried building owl on my MacBook Pro late 2009 running MacOS El Capitan and I get this error when I run make:

[ 10%] Building C object src/CMakeFiles/awdl.dir/state.c.o /Users/bryce/owl/src/state.c:100:11: warning: implicit declaration of function 'clock_gettime' is invalid in C99 [-Wimplicit-function-declaration] result = clock_gettime(CLOCK_MONOTONIC, &now); ^ /Users/bryce/owl/src/state.c:100:25: error: use of undeclared identifier 'CLOCK_MONOTONIC' result = clock_gettime(CLOCK_MONOTONIC, &now); ^ 1 warning and 1 error generated. make[2]: [src/CMakeFiles/awdl.dir/state.c.o] Error 1 make[1]: [src/CMakeFiles/awdl.dir/all] Error 2 make: *** [all] Error 2


I found that there should be some workaround similar to this pull for hashcat:

https://github.com/hashcat/hashcat/pull/1480

Thanks for your help!

Ocelot124286 commented 4 years ago

I think ":100" is replaced with a 100 emoji

Ocelot124286 commented 4 years ago

While the issue has been resolved by installing High Sierra with a patch from dosdude1, I have a new issue which I will post up.