sighttpd icon indicating copy to clipboard operation
sighttpd copied to clipboard

error compiling on Mint 18 (Ubuntu 16.04)

Open ghost opened this issue 8 years ago • 1 comments

Hi

I did checkout source and trying to compile as is in read me but got error:

uiomux.c:88:9: warning: return makes pointer from integer without a cast [-Wint-conversion] mv -f .deps/sighttpd-uiomux.Tpo .deps/sighttpd-uiomux.Po gcc -g -O2 -lpthread -lrt -lpthread -o sighttpd sighttpd-list.o sighttpd-ringbuffer.o sighttpd-params.o sighttpd-dictionary.o sighttpd-jhash.o sighttpd-x_tree.o sighttpd-http-date.o sighttpd-http-reqline.o sighttpd-http-response.o sighttpd-http-status.o sighttpd-sighttpd.o sighttpd-main.o sighttpd-log.o sighttpd-resource.o sighttpd-stream.o sighttpd-shell.o sighttpd-cfg-parse.o sighttpd-cfg-read.o sighttpd-fdstream.o sighttpd-flim.o sighttpd-kongou.o sighttpd-statictext.o sighttpd-status.o sighttpd-tempfd.o sighttpd-uiomux.o sighttpd-main.o: In functionmain': /home/dale/sighttpd-master/src/main.c:221: undefined reference to pthread_create' sighttpd-stream.o: In functionstream_open': /home/dale/sighttpd-master/src/stream.c:68: undefined reference to pthread_create' /home/dale/sighttpd-master/src/stream.c:69: undefined reference topthread_detach' collect2: error: ld returned 1 exit status Makefile:755: recipe for target 'sighttpd' failed make[2]: *** [sighttpd] Error 1 make[2]: Leaving directory '/home/dale/sighttpd-master/src' Makefile:364: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory '/home/dale/sighttpd-master' Makefile:305: recipe for target 'all' failed make: *** [all] Error 2 `

this is last part of building process hope will help my assumption is that flags needed for gcc -lpthread are not set in Automake.am (maybe I'm wrong) will try to play and find soulution or you could fix it faster, anyway let me know for update

ghost avatar Jul 18 '16 15:07 ghost

same problem

OliverLonghi avatar Jun 02 '17 21:06 OliverLonghi