From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LdUQ4-0007Tk-Vf for qemu-devel@nongnu.org; Sat, 28 Feb 2009 14:00:17 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LdUQ3-0007S6-MG for qemu-devel@nongnu.org; Sat, 28 Feb 2009 14:00:16 -0500 Received: from [199.232.76.173] (port=36197 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LdUQ3-0007Rn-BU for qemu-devel@nongnu.org; Sat, 28 Feb 2009 14:00:15 -0500 Received: from smtp1-g21.free.fr ([212.27.42.1]:56390) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LdUQ2-0000CL-ET for qemu-devel@nongnu.org; Sat, 28 Feb 2009 14:00:15 -0500 In-Reply-To: Subject: Re: [HaikuPorts-devs] [Qemu-devel] Re: [PATCH] [RFC] Haiku host =?utf-8?q?support?= and general configure issues From: "=?utf-8?q?Fran=C3=A7ois?= Revol" Date: Sat, 28 Feb 2009 20:01:54 +0100 CET Message-Id: <12802905713-BeMail@laptop> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Andreas =?utf-8?q?F=C3=A4rber?= Cc: haikuports-devs@ports.haiku-files.org, qemu-devel@nongnu.org > >> Unresolved issues include that AIO is detected, and as a > > > consequence > > > > Then the test is buggy as we don't have AIO in Haiku that I know of > > :) > > Hm, the so-called AIO check is rather a pthreads check: > > #include > int main(void) { pthread=5Fmutex=5Ft lock; return 0; } > > If that compiles, a working -lpthread is assumed. It's buggy in > itself > because it first sets AIOLIBS=3D"", then compiles with unchanged empty > $AIOLIBS and then sets AIOLIBS=3D"-lpthread". > > > > >> AIOLIBS is set to -lpthread but that is not available on Haiku. > > > > Well we should have a pthread lib available though... > > It's part of libroot.so, I thought, and thus referenced without extra > linker arguments. Not sure we really want to keep it that way in Haiku then... > > Another big issue that I mentionned earlier here is the widely used > > assumption that error codes are positive, which is not the case for > > BeOS and Haiku. > > Not fixing this will result in a dangerous binary. > > Thanks for the reminder. But that also reminds me, you wanted to > supply a patch for that! :) You can always beat me to it. Fran=C3=A7ois.