From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1V9bS2-0007hq-L8 for mharc-grub-devel@gnu.org; Wed, 14 Aug 2013 09:49:26 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50397) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9bRr-0007g9-PQ for grub-devel@gnu.org; Wed, 14 Aug 2013 09:49:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V9bRj-00005d-AZ for grub-devel@gnu.org; Wed, 14 Aug 2013 09:49:15 -0400 Received: from mail-wg0-x235.google.com ([2a00:1450:400c:c00::235]:33625) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9bRj-00005P-4A for grub-devel@gnu.org; Wed, 14 Aug 2013 09:49:07 -0400 Received: by mail-wg0-f53.google.com with SMTP id c11so7774447wgh.32 for ; Wed, 14 Aug 2013 06:49:05 -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:content-transfer-encoding; bh=UPGolRwFzk9JA6Y5Lr5TvxgT2irMsAnDZZCRIERzqSM=; b=zOl/hP9Vx+TxFKuAT5F69BDvoL0EC/AfE4JjusZSlamyxRKa17dPAY6me4vuGq/1wS CibdxQxbLpWr1QmhLiVJOwnR9TZ/XtVLf4hq6BDx/IPYZGEuw155elYQyH/ytZVgmsM0 9wNg/byn+LZ2rBQvRIJOEZPV9N0IgmEtAW2c79lIQBpmgu2pUGGm89hmpsc8urVfxl5a +KvjyO5+zQqTS62yPqasQxJUueWGrtLusVTNLhm6bydrszHZNUYpUslAYGkIykzEs5ZG YVNEf73wM6KyDripP3f8C6sOkNmYvmfIzjyCBkr2H+8xuqkktHS86v6ifSzDIZegc38M UoXA== X-Received: by 10.194.235.138 with SMTP id um10mr6794626wjc.30.1376488145755; Wed, 14 Aug 2013 06:49:05 -0700 (PDT) Received: from [192.168.1.37] (c2433-1-88-160-112-182.fbx.proxad.net. [88.160.112.182]) by mx.google.com with ESMTPSA id eb3sm3162447wic.10.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 14 Aug 2013 06:49:04 -0700 (PDT) Message-ID: <520B8ACF.4010309@gmail.com> Date: Wed, 14 Aug 2013 15:49:03 +0200 From: =?UTF-8?B?R3LDqWdvaXJlIFN1dHJl?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130116 Icedove/10.0.12 MIME-Version: 1.0 To: The development of GNU GRUB Subject: Re: GRUB2 on OpenBSD 5.3-amd64: linking problem References: <201308091537.37473.Ilya_Bakulin@genua.de> <520A9F30.6080901@gmail.com> <520B46EC.1000600@gmail.com> <201308141509.16841.Ilya_Bakulin@genua.de> <520B86BB.20208@gmail.com> In-Reply-To: <520B86BB.20208@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c00::235 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: Wed, 14 Aug 2013 13:49:25 -0000 On 08/14/2013 03:31 PM, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > On 14.08.2013 15:09, Ilya Bakulin wrote: >> ./lib/posix_wrap/sys/types.h:25: error: conflicting types for 'size_t' >> /usr/include/stddef.h:48: error: previous declaration of 'size_t' was >> here >> gmake[3]: *** [fs/squash4_module-squash4.o] Error 1 > You need to modify following: > #ifndef __APPLE__ > typedef grub_size_t size_t; > #else > #include > #endif > to > #if !defined (__APPLE__) && !defined (__OPENBSD__) For the record, this is also needed for NetBSD (when building within the pkgsrc framework -- see pkgsrc's sysutils/grub2 package). A similar patch (for NetBSD, but maybe also for OpenBSD?) is: --- grub-core/lib/posix_wrap/wchar.h.orig 2012-02-08 20:34:24.000000000 +0000 +++ grub-core/lib/posix_wrap/wchar.h @@ -29,7 +29,11 @@ enum }; /* UCS-4. */ +#if !defined(__NetBSD__) typedef grub_int32_t wchar_t; +#else +#include +#endif typedef struct mbstate { grub_uint32_t code; Grégoire