Open msoulier opened 9 years ago
[ 7%] Building C object src/onion/CMakeFiles/onion.dir/url.c.o [ 7%] Building C object src/onion/CMakeFiles/onion.dir/poller_libev.c.o /Users/msoulier/work/mitool-mgmt-proj/onion/src/onion/poller_libev.c:91:2: error: 'sem_init' is deprecated [-Werror,-Wdeprecated-declarations] sem_init(&ret->sem, 0, 1); ^ /usr/include/sys/semaphore.h:55:5: note: 'sem_init' has been explicitly marked deprecated here int sem_init(semt , int, unsigned int) _deprecated; ^ 1 error generated. make[2]: ** [src/onion/CMakeFiles/onion.dir/poller_libev.c.o] Error 1 make[1]: * [src/onion/CMakeFiles/onion.dir/all] Error 2 make: * [all] Error 2
http://stackoverflow.com/questions/1413785/sem-init-on-os-x
I would like to submit a PR for this issue. But if you need to install it at present, you can instead add flag -Wno-deprecated-declarations in the CMakeLists.txt and it will install with no issues.
[ 7%] Building C object src/onion/CMakeFiles/onion.dir/url.c.o [ 7%] Building C object src/onion/CMakeFiles/onion.dir/poller_libev.c.o /Users/msoulier/work/mitool-mgmt-proj/onion/src/onion/poller_libev.c:91:2: error: 'sem_init' is deprecated [-Werror,-Wdeprecated-declarations] sem_init(&ret->sem, 0, 1); ^ /usr/include/sys/semaphore.h:55:5: note: 'sem_init' has been explicitly marked deprecated here int sem_init(semt , int, unsigned int) _deprecated; ^ 1 error generated. make[2]: ** [src/onion/CMakeFiles/onion.dir/poller_libev.c.o] Error 1 make[1]: * [src/onion/CMakeFiles/onion.dir/all] Error 2 make: * [all] Error 2