davidmoreno / onion

C library to create simple HTTP servers and Web Applications.
http://www.coralbits.com/libonion/
Other
2.02k stars 252 forks source link

darwin branch fails to build on yosemite #119

Open msoulier opened 9 years ago

msoulier commented 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

msoulier commented 9 years ago

http://stackoverflow.com/questions/1413785/sem-init-on-os-x

anuragagarwal561994 commented 8 years ago

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.