From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Gc3Ev-0000U0-Dz for qemu-devel@nongnu.org; Mon, 23 Oct 2006 13:05:29 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Gc3Eq-0000OQ-O6 for qemu-devel@nongnu.org; Mon, 23 Oct 2006 13:05:29 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gc3Eq-0000OC-I4 for qemu-devel@nongnu.org; Mon, 23 Oct 2006 13:05:24 -0400 Received: from [213.165.64.20] (helo=mail.gmx.net) by monty-python.gnu.org with smtp (Exim 4.52) id 1Gc3Ep-0002C6-O1 for qemu-devel@nongnu.org; Mon, 23 Oct 2006 13:05:24 -0400 Message-ID: <453CF547.1020004@gmx.com> Date: Mon, 23 Oct 2006 19:00:55 +0200 From: Martin Bochnig MIME-Version: 1.0 Subject: Re: [Qemu-devel] qemu-0.8.2 on glibc 2.2.5: CLOCK_MONOTONIC not defined References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 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: qemu-devel@nongnu.org Wolfgang Schildbach wrote: >I stumbled upon the same problem as Bill Rossi (see his post below): > >The current cvs version of qemu fails to compile on my machine because >CLOCK_MONOTONIC is not defined in my glibc. According to clock_gettime(3), >systems that define this functionality have _POSIX_MONOTONIC_CLOCK and >_POSIX_TIMERS set. Updating the ifdef (see patch below) to include these >makes the offending code go away on my CLOCK_MONOTONIC-less system >(gcc3.3), but continues to include it on a newer system with a later >libgcc. Not sure if the __linux__ in there is still necessary, but I left > > The same happens on Solaris(11, but probably all versions). (Note: Solaris uses its own libc not glibc.) A complete merge of opensolaris.org's current QEMU patch http://opensolaris.org/os/project/qemu/downloads/ from 0.8.2 to cvs may follow some time next week. Two other things needed to be changed for cvs.current to build on Solaris/SunOS5.x. Martin Bochnig at nowhere