[SerialICE] Patch set updated for serialice: 916de93 Fix QEMU build for glibc-2.17

Kyösti Mälkki (kyosti.malkki@gmail.com) gerrit at coreboot.org
Sun Mar 17 19:01:13 CET 2013


Kyösti Mälkki (kyosti.malkki at gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/2504

-gerrit

commit 916de93aa5d883cdae0a4659b8f163a0c3a62229
Author: Idwer Vollering <vidwer at gmail.com>
Date:   Mon Feb 25 03:49:04 2013 +0100

    Fix QEMU build for glibc-2.17
    
    The clock_* functions are no longer in librt starting with glibc-2.17,
    but timer_* functions are.
    
    This solves linker errors similar to this:
    (32-bit archlinux installation with glibc 2.17-3, binutils 2.23.1-3, glib2 2.34.3-1)
    
    /usr/bin/ld: ../qemu-timer.o: undefined reference to symbol 'timer_settime@@GLIBC_2.2'
    /usr/bin/ld: note: 'timer_settime@@GLIBC_2.2' is defined in DSO /usr/lib/librt.so.1 so try adding it to the linker command line
    /usr/lib/librt.so.1: could not read symbols: Invalid operation
    
    Change-Id: I2d335d065457788ef8aada7d0d500e84ba31e4d0
    Signed-off-by: Kyösti Mälkki <kyosti.malkki at gmail.com>
---
 qemu-0.15.x/configure | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/qemu-0.15.x/configure b/qemu-0.15.x/configure
index 24778bf..947fa3f 100755
--- a/qemu-0.15.x/configure
+++ b/qemu-0.15.x/configure
@@ -2401,7 +2401,10 @@ fi
 cat > $TMPC <<EOF
 #include <signal.h>
 #include <time.h>
-int main(void) { clockid_t id; return clock_gettime(id, NULL); }
+int main(void) {
+	timer_t timer; struct itimerspec timeout; timer_settime(timer, 0, &timeout, NULL);
+	clockid_t id; return clock_gettime(id, NULL);
+}
 EOF
 
 if compile_prog "" "" ; then



More information about the SerialICE mailing list