jonhoo / volley

Volley is a benchmarking tool for measuring the performance of server networking stacks.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't compile C client

diegobernardes opened this issue · comments

When i execute make i get this error:

mkdir -p target
cc -Wall -g -o target/client -pthread -lm -lbsd -O3 -std=gnu11 client/main.c
/tmp/cc3g8JPd.o: na função `client':
/home/diego/Projetos/volley/client/main.c:266: referência indefinida para `arc4random'
/tmp/cc3g8JPd.o: na função `main':
/home/diego/Projetos/volley/client/main.c:132: referência indefinida para `ceil'
/home/diego/Projetos/volley/client/main.c:127: referência indefinida para `sqrt'
collect2: error: ld returned 1 exit status
Makefile:9: recipe for target 'target/client' failed
make: *** [target/client] Error 1

For Debian, it requires libbsd-dev.

Ah, yes, this is because of the use of arc4random in client/main.c. If someone wants to submit a PR replacing it with some other good (and thread-safe) source of randomness, I'd consider merging it to get rid of this dependency.

@xekoukou im using libbsd-dev, but still give this error.