I'm trying to compile
Linsched, and keep getting the following error:
Code:
CC UNIX_TEST unix-mcarlo-sim
/usr/bin/ld: cannot find -lrt
/usr/bin/ld: cannot find -lpcre
collect2: error: ld returned 1 exit status
What the Makefile is trying to do here is:
Code:
${UNIX_TESTS}: ${OBJ_FILES} $$@.o
@echo CC UNIX_TEST $@
@${LD_PERCPU} -o $@.percpu $^
#two definitions of mktime
@${CC} -Wl,--allow-multiple-definition -static -o $@ $@.percpu -lrt -lm -lpcre
I have librt.so and libpcre.so in /usr/lib. My ld.so.conf is empty, but I think /usr/lib should be searched anyway.
Some threads seemed to imply that I need some headers too, and I do have pcre.h under /usr/include, but I don't see why I'd need this just to compile with -lrt and -lpcre.
What am I missing here?