creationix / moonslice-luv

A port of moonslice running on top of luv and lhttp_parser
39 stars 4 forks source link

lhttp_parser: "ld: library not found for -lrt" #13

Closed wscherphof closed 10 years ago

wscherphof commented 10 years ago

On OSX Mavericks

/Applications/Xcode.app/Contents/Developer/usr/bin/make -C lhttp_parser
make[1]: Circular lhttp_parser.o <- lhttp_parser.o dependency dropped.
cc -c lhttp_parser.c -o lhttp_parser.o -Ihttp-parser -I/usr/local/include/luajit-2.0 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -Werror -fPIC
CPPFLAGS=-fPIC /Applications/Xcode.app/Contents/Developer/usr/bin/make -C http-parser http_parser.o
cc -fPIC -I. -DHTTP_PARSER_STRICT=0  -Wall -Wextra -Werror -O3  -c http_parser.c
cc -o lhttp_parser.so lhttp_parser.o http-parser/http_parser.o -lm -lpthread -lrt -shared
ld: library not found for -lrt
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [lhttp_parser.so] Error 1
make: *** [lhttp_parser/lhttp_parser.so] Error 2

(If I copy the contents of the current master of lhttp_parser, the submodule builds successfully)

devurandom commented 10 years ago

Should also be fixed by 42837781430442c12dadc3b0505dce5b96c58caa