Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.34) id 1BSugY-0000bS-78 for qemu-devel@nongnu.org; Wed, 26 May 2004 05:26:54 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.34) id 1BSuUz-0005wy-DO for qemu-devel@nongnu.org; Wed, 26 May 2004 05:15:28 -0400 Received: from [213.146.154.40] (helo=pentafluge.infradead.org) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1BSuGp-00023s-ET for qemu-devel@nongnu.org; Wed, 26 May 2004 05:00:19 -0400 Subject: Re: [Qemu-devel] QEMU crash with Fedora Core 2 From: David Woodhouse In-Reply-To: <200405260147.48047.hetz@witch.dyndns.org> References: <200405260147.48047.hetz@witch.dyndns.org> Content-Type: text/plain Message-Id: <1085562014.3456.1171.camel@hades.cambridge.redhat.com> Mime-Version: 1.0 Date: Wed, 26 May 2004 10:00:14 +0100 Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: hetz@witch.dyndns.org, qemu-devel@nongnu.org Cc: Fabrice Bellard On Wed, 2004-05-26 at 01:47 +0300, Hetz Ben Hamo wrote: > qemu: relocation error: qemu: symbol __libc_sigaction, version GLIBC_PRIVATE > not defined in file libc.so.6 with link time reference > > Googling this error brings a link to a redhat 7.3 bug ;) __libc_sigaction is a glibc private function. Explicitly linking to it is an application bug. I believe it's done to work around an old linuxthreads-related SDL bug which doesn't actually exist any more. --- qemu-0.5.4/vl.c.orig 2004-05-02 11:58:59.852195291 +0100 +++ qemu-0.5.4/vl.c 2004-05-02 11:59:37.856959391 +0100 @@ -56,18 +56,6 @@ #define memalign(align, size) malloc(size) #endif -#ifdef CONFIG_SDL -/* SDL use the pthreads and they modify sigaction. We don't - want that. */ -#if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) -extern void __libc_sigaction(); -#define sigaction(sig, act, oact) __libc_sigaction(sig, act, oact) -#else -extern void __sigaction(); -#define sigaction(sig, act, oact) __sigaction(sig, act, oact) -#endif -#endif /* CONFIG_SDL */ - #include "disas.h" #include "exec-all.h" -- dwmw2