I am trying to install qemu-0.14.1 in ubuntu 15.04 64 bit system. On giving the make command it gives following errors:
../slirp/misc.o: In function memset':
/usr/include/x86_64-linux-gnu/bits/string3.h:86: warning: memset used with constant zero length parameter; this could be due to transposed parameters
../qemu-timer.o: In functiondynticks_start_timer':
/home/shruti/Downloads/qemu-0.14.1/qemu-timer.c:862: undefined reference to timer_create'
../qemu-timer.o: In functiondynticks_rearm_timer':
/home/shruti/Downloads/qemu-0.14.1/qemu-timer.c:901: undefined reference to timer_gettime'
/home/shruti/Downloads/qemu-0.14.1/qemu-timer.c:914: undefined reference totimer_settime'
../qemu-timer.o: In function dynticks_stop_timer':
/home/shruti/Downloads/qemu-0.14.1/qemu-timer.c:880: undefined reference totimer_delete'
collect2: error: ld returned 1 exit status
Makefile:347: recipe for target 'qemu-system-arm' failed
make[1]: * [qemu-system-arm] Error 1
Makefile:84: recipe for target 'subdir-arm-softmmu' failed
make: * [subdir-arm-softmmu] Error 2
Can anyone please guide with correct steps and why this error is coming related to timer object file.
Issue is solved by editing two files, Makefile and Makefile.target by adding
LIBS+=-lz -lrt -lm