Temat: Speedtest w konsoli - jak skompilować?
Chodzi o projekt: https://github.com/mobrembski/SpeedTestC
Na PC kompilacja przebiega poprawnie i program działa. Niestety nie umiem tego zrobić na routerze:
make
[SpeedTestC] CC Speedtest.o
[SpeedTestC] CC SpeedtestConfig.o
[SpeedTestC] CC SpeedtestDownloadTest.o
[SpeedTestC] CC SpeedtestLatencyTest.o
[SpeedTestC] CC SpeedtestServers.o
[SpeedTestC] CC SpeedtestUploadTest.o
[SpeedTestC] CC http.o
src/http.c: In function 'httpPut':
src/http.c:77:22: warning: implicit declaration of function 'gethostbyname'; did you mean 'gethostname'? [-Wimplicit-function-declaration]
if ((hostEntry = gethostbyname(pAddress)) == NULL)
^~~~~~~~~~~~~
gethostname
src/http.c:77:20: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
if ((hostEntry = gethostbyname(pAddress)) == NULL)
^
src/http.c: In function 'httpGet':
src/http.c:124:20: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
if ((hostEntry = gethostbyname(pAddress)) == NULL)
^
[SpeedTestC] CC url.o
[SpeedTestC] CC SpeedTestC
/usr/bin/ld: cannot find -lpthread
/usr/bin/ld: cannot find -lcrypto
collect2: error: ld returned 1 exit status
make: *** [Makefile:26: SpeedTestC] Error 1