Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kdp6Y-0001Kf-Tv for qemu-devel@nongnu.org; Thu, 11 Sep 2008 12:33:15 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kdp6X-0001Ii-Lv for qemu-devel@nongnu.org; Thu, 11 Sep 2008 12:33:14 -0400 Received: from [199.232.76.173] (port=39458 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kdp6X-0001IS-FQ for qemu-devel@nongnu.org; Thu, 11 Sep 2008 12:33:13 -0400 Received: from bay0-omc1-s17.bay0.hotmail.com ([65.54.246.89]:15787) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Kdp6X-00053h-8n for qemu-devel@nongnu.org; Thu, 11 Sep 2008 12:33:13 -0400 Message-ID: Message-Id: From: C.W. Betts In-Reply-To: Content-Type: multipart/alternative; boundary=Apple-Mail-5-177929037 Mime-Version: 1.0 (Apple Message framework v928.1) Subject: Re: [Qemu-devel] [5194] Fix the build on non-Linux systems Date: Thu, 11 Sep 2008 10:33:01 -0600 References: Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --Apple-Mail-5-177929037 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Actually, it builds in 10.5. Using the 10.4 SDK causes the problems. On Sep 11, 2008, at 9:26 AM, C.W. Betts wrote: > Now it complains about missing symbols: > Undefined symbols: > "_sigwaitinfo", referenced from: > _sigwait_compat in compatfd.o > ld: symbol(s) not found > collect2: ld returned 1 exit status > make: *** [qemu-img] Error 1 > This happened both when trying to compile qemu-img and qemu-nbd. > On Sep 11, 2008, at 8:18 AM, Anthony Liguori wrote: > >> Revision: 5194 >> http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5194 >> Author: aliguori >> Date: 2008-09-11 14:18:56 +0000 (Thu, 11 Sep 2008) >> >> Log Message: >> ----------- >> Fix the build on non-Linux systems >> >> It turns out, we're never reading from the signalfd() which is >> causing it to >> remain readable forever. I'll fix this up but I thought I'd commit >> this fix >> in the interim. >> >> Signed-off-by: Anthony Liguori >> >> Modified Paths: >> -------------- >> trunk/compatfd.h >> >> Modified: trunk/compatfd.h >> =================================================================== >> --- trunk/compatfd.h 2008-09-10 20:09:22 UTC (rev 5193) >> +++ trunk/compatfd.h 2008-09-11 14:18:56 UTC (rev 5194) >> @@ -16,14 +16,10 @@ >> >> #include >> >> -#if defined(__linux__) && !defined(SYS_signalfd) >> -struct signalfd_siginfo { >> +struct qemu_signalfd_siginfo { >> uint32_t ssi_signo; >> uint8_t pad[124]; >> }; >> -#else >> -#include >> -#endif >> >> int qemu_signalfd(const sigset_t *mask); >> >> >> >> >> > --Apple-Mail-5-177929037 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Actually, it builds in 10.5. =  Using the 10.4 SDK causes the problems.
On Sep 11, = 2008, at 9:26 AM, C.W. Betts wrote:

Now it complains about missing = symbols:
Undefined symbols:
  "_sigwaitinfo", = referenced from:
      _sigwait_compat in = compatfd.o
ld: symbol(s) not found
collect2: ld returned 1 exit = status
make: *** [qemu-img] Error 1
This = happened both when trying to compile qemu-img and = qemu-nbd.
On Sep 11, 2008, at 8:18 AM, Anthony Liguori = wrote:

Revision: 5194
=          http://svn.sv.gnu.org/viewvc/?view=3Drev&root=3Dqemu&r= evision=3D5194
Author:   aliguori
Date: =     2008-09-11 14:18:56 +0000 (Thu, 11 Sep = 2008)

Log Message:
-----------
Fix the build on non-Linux = systems

It turns out, we're never reading from the signalfd() = which is causing it to
remain readable forever.  I'll fix this = up but I thought I'd commit this fix
in the = interim.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

Mod= ified Paths:
--------------
=    trunk/compatfd.h

Modified: = trunk/compatfd.h
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D--- trunk/compatfd.h 2008-09-10 20:09:22 UTC (rev = 5193)
+++ trunk/compatfd.h 2008-09-11 14:18:56 UTC (rev = 5194)
@@ -16,14 +16,10 @@

#include = <signal.h>

-#if defined(__linux__) && = !defined(SYS_signalfd)
-struct signalfd_siginfo {
+struct = qemu_signalfd_siginfo {
    uint32_t = ssi_signo;
    uint8_t pad[124];
= };
-#else
-#include <linux/signalfd.h>
-#endif

= int qemu_signalfd(const sigset_t = *mask);







= --Apple-Mail-5-177929037--