samm-git / btest-opensource

Mikrotik btest (bandwith test) protocol description and opensource implementation
MIT License
143 stars 29 forks source link

Not compiling in CentOS #7

Closed boldmss closed 6 years ago

boldmss commented 6 years ago

Hi, i am having problems compiling BTest in CentOS Here is my output.

[root@localhost btest-opensource]# gcc -o btest *.c -lpthread /tmp/ccL6QCDF.o: In function test_udp_tx': btest.c:(.text+0x1455): undefined reference toclock_gettime' btest.c:(.text+0x15dc): undefined reference to clock_nanosleep' /tmp/ccL6QCDF.o: In functiontest_udp_rx': btest.c:(.text+0x16f2): undefined reference to clock_gettime' /tmp/ccL6QCDF.o: In functiontest_udp': btest.c:(.text+0x1b7f): undefined reference to clock_gettime' btest.c:(.text+0x1bba): undefined reference toclock_gettime' btest.c:(.text+0x1e92): undefined reference to clock_gettime' /tmp/ccu5j117.o: In functionitimer_start': timing_mach.c:(.text+0x20e): undefined reference to clock_gettime' /tmp/ccu5j117.o: In functionitimer_step': timing_mach.c:(.text+0x25f): undefined reference to `clock_nanosleep' collect2: ld returned 1 exit status

What is wrong?

Thanks

samm-git commented 6 years ago

compilation command is wrong. use

autoreconf
./configure
make