From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1WXdrq-0001Ch-7b for mharc-grub-devel@gnu.org; Tue, 08 Apr 2014 17:47:42 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:32851) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WXdrk-0001CO-EG for grub-devel@gnu.org; Tue, 08 Apr 2014 17:47:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WXdrb-0006Gz-Bh for grub-devel@gnu.org; Tue, 08 Apr 2014 17:47:36 -0400 Received: from mail-ee0-x236.google.com ([2a00:1450:4013:c00::236]:33241) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WXdrb-0006Gl-5H for grub-devel@gnu.org; Tue, 08 Apr 2014 17:47:27 -0400 Received: by mail-ee0-f54.google.com with SMTP id d49so1200510eek.27 for ; Tue, 08 Apr 2014 14:47:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type; bh=2tkg7PQMpzwGuxkb9yQ1sdAkfod2jV0HypYzSQ8L/t4=; b=Vbn9kEfSPlIf8M1OasciRMQRN4b5utJBfmeURzFS1eH9FWbGltM2cE/4WD/n1bjE9B B0tJpl8dqjUfeq2Uf6OK4HTMHvhw4aissWLh1fJzL6TvzkxLav/OzFHZiHkXC7kC25EQ rIsZzPJiJKOdduu/21Bn8qqQyIldMMpyO4UyzO0P57KMnF3f/UtXsDGp8ETzJlPRjKH+ hWzo3ivLt41EjbjZY+UNdA+Qfm1kaepB6KS3ybp9tYMY3TNyalikmqSnQr+e2RyTUoMv MHLd+fBJbeCaRBwWAUh9N+fx00IdIQdW+stOI4dj8SXc2/QabBjIMAfdB5m5j/5Qhwd2 V5WA== X-Received: by 10.14.115.195 with SMTP id e43mr4908513eeh.76.1396993645882; Tue, 08 Apr 2014 14:47:25 -0700 (PDT) Received: from [192.168.42.200] (22-225.197-178.cust.bluewin.ch. [178.197.225.22]) by mx.google.com with ESMTPSA id x45sm7195861eef.15.2014.04.08.14.47.23 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 08 Apr 2014 14:47:24 -0700 (PDT) Message-ID: <53446E60.4040607@gmail.com> Date: Tue, 08 Apr 2014 23:47:12 +0200 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.3.0 MIME-Version: 1.0 To: The development of GNU GRUB Subject: Re: Patch to compile grub2 with Apple compiler References: <6B5724B7-1255-40AA-8CA7-FF60CA96AB57@zetam.org> <534301C7.9060306@gmail.com> <8A285E3D-F116-4C77-8075-AC00FBC6C338@zetam.org> In-Reply-To: X-Enigmail-Version: 1.6 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="IScBRws0ttxHBuraff2xdousqc5L5EVVe" X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4013:c00::236 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Apr 2014 21:47:41 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --IScBRws0ttxHBuraff2xdousqc5L5EVVe Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 08.04.2014 14:27, Yves Blusseau wrote: >=20 > Le 8 avr. 2014 =C3=A0 11:00, Vladimir 'phcoder' Serbinenko > a =C3=A9crit : >=20 >> >> On 8 Apr 2014 10:55, "Yves Blusseau" > > wrote: >> > >> > Hi Vladimir, >> > >> > this patch is needed because the declaration of __bzero must made >> also for non util AND util compilation: __bzero is used in compilation= >> of grub-core/kern/misc.c (line 546). >> > >> > Without this patch we have this error: http://pastebin.com/aiPGcte0 >> > So the declaration must be made even if GRUB_UTIL is defined. >> > >> Not true. You just need to guard implementation as well >> > Don=E2=80=99t understand. What is the solution to solve the problem of = compilation ? >=20 diff --git a/grub-core/kern/misc.c b/grub-core/kern/misc.c index 54db2e1..c5c815d 100644 --- a/grub-core/kern/misc.c +++ b/grub-core/kern/misc.c @@ -542,6 +542,9 @@ memset (void *s, int c, grub_size_t n) return grub_memset (s, c, n); } +#endif + +#if !defined(GRUB_UTIL) && defined(__APPLE__) void GRUB_BUILTIN_ATTR __bzero (void *s, grub_size_t n) { --IScBRws0ttxHBuraff2xdousqc5L5EVVe Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Using GnuPG with Icedove - http://www.enigmail.net/ iF4EAREKAAYFAlNEbmkACgkQmBXlbbo5nOsgFgD/XZSK0tE4jSy4s9aJ2PH/6u0Y c63QDuzxuiLNVaCyW50BAKNXOY+J3q49rj0VpOMK0kQ9Ci5jOS62dgIiZKCrwbzV =d8m2 -----END PGP SIGNATURE----- --IScBRws0ttxHBuraff2xdousqc5L5EVVe--