This is a change in glibc. Since version 2.17, clock_gettime() and friends were moved from -lrt to the main libc, so for linking with clock_gettime(), -lrt isn't needed anymore.
However, (old) qemu configure only checked clock_gettime(), and used other functions like timer_create() &Co above. There was a patch: commit 8bacde8d86a09699207d85d4bab06162aed18dc4 Author: Natanael Copa <natanael.c...@gmail.com> Date: Wed Sep 12 09:06:51 2012 +0000 configure: properly check if -lrt and -lm is needed Fixes build against uClibc. uClibc provides 2 versions of clock_gettime(), one with realtime support and one without (this is so you can avoid linking in -lrt unless actually needed). This means that the clock_gettime() don't need -lrt. We still need it for timer_create() so we check for this function in addition. We also need check if -lm is needed for isnan(). Both -lm and -lrt are needed for libs_qga. which was applied past qemu-1.2, so 1.4 and 1.5 versions have it, and _should_ work fine. Thanks, /mjt -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1193628 Title: Undefined References Status in QEMU: New Bug description: I've been able to make qemu on ubuntu 13.04 for all last releases: 1.4.0 -> 1.5.0 Unfortunately, when I launch one of them with a Cisco ASA, it crashes inside GNS3 (latest release) for Ubuntu. The top GNS3 developer told me they experienced similar results and advised me to use qemu 1.1.0. The problem is that I cannot link that version. I always have these errors: "LINK qemu-ga qemu-timer.o: In function `dynticks_rearm_timer': /home/actionmystique/Downloads/qemu-1.1.0/qemu-timer.c:538: undefined reference to `timer_gettime' /home/actionmystique/Downloads/qemu-1.1.0/qemu-timer.c:551: undefined reference to `timer_settime' qemu-timer.o: In function `dynticks_stop_timer': /home/actionmystique/Downloads/qemu-1.1.0/qemu-timer.c:524: undefined reference to `timer_delete' qemu-timer.o: In function `dynticks_start_timer': /home/actionmystique/Downloads/qemu-1.1.0/qemu-timer.c:510: undefined reference to `timer_create' collect2: error: ld returned 1 exit status make: *** [qemu-ga] Error 1" The man pages say we need to link with '-lrt' option, but I could not find it in the Makefile. I do not know how to correct this issue. To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1193628/+subscriptions