From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1V9z39-0004tV-Cn for mharc-grub-devel@gnu.org; Thu, 15 Aug 2013 11:01:19 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58775) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9z2r-0004rY-Gw for grub-devel@gnu.org; Thu, 15 Aug 2013 11:01:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V9z2b-0003Nz-6k for grub-devel@gnu.org; Thu, 15 Aug 2013 11:01:01 -0400 Received: from mail-we0-x22a.google.com ([2a00:1450:400c:c03::22a]:32829) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9z2a-0003NS-WB for grub-devel@gnu.org; Thu, 15 Aug 2013 11:00:45 -0400 Received: by mail-we0-f170.google.com with SMTP id w60so685805wes.1 for ; Thu, 15 Aug 2013 08:00:43 -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=nHY9Q7m0b8ym5syhnk0fceLwyx/tcyhBPleXxC33+Z8=; b=iSjeCqW4x96B847xTh484jyq3V5KfEbqbLnC+T6BThGrZizHgA8StQkYjP8LGeINFd No05plOzJSqwS6vvpzEXSshRANzRGABSGf70IOlx5kgiTmLoSO0BAIllXPnOEr3nNOsf /RXI8ZWS9e+Ko98XxKaUxG2nt49JT4PFfwMb7sQoUtCx/yVpwMZDLvGUIJPPv59ppgHr Da1NGHqU3TFQ0zS3Ftn/zbqIbj48tHq6foiiEyvassLePxib9Nu2fJmFSALWv3LBood8 8Q5zotR94BvQKvy7zfny9W/g2X+JRFRkUFB6i66Ig29rmeOL5Ov3nXuhHAaqr5WkjkJn Nq6g== X-Received: by 10.180.12.243 with SMTP id b19mr2123554wic.18.1376578843359; Thu, 15 Aug 2013 08:00:43 -0700 (PDT) Received: from [192.168.42.216] (212-228.197-178.cust.bluewin.ch. [178.197.228.212]) by mx.google.com with ESMTPSA id e7sm6593wiy.4.2013.08.15.08.00.40 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 15 Aug 2013 08:00:42 -0700 (PDT) Message-ID: <520CED0F.4070008@gmail.com> Date: Thu, 15 Aug 2013 17:00:31 +0200 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130630 Icedove/17.0.7 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> <520B8ACF.4010309@gmail.com> In-Reply-To: <520B8ACF.4010309@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:c03::22a 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: Thu, 15 Aug 2013 15:01:16 -0000 On 14.08.2013 15:49, Grégoire Sutre wrote: > 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 > This is not right fix. Many systems incorrectly define wchar_t as 16-bit type whil GRUB needs at least 21 as we handle all unicode characters. Please try: === modified file 'grub-core/lib/posix_wrap/wchar.h' --- grub-core/lib/posix_wrap/wchar.h 2012-02-09 13:24:55 +0000 +++ grub-core/lib/posix_wrap/wchar.h 2013-08-15 14:55:59 +0000 @@ -21,6 +21,11 @@ #include +#if defined(__NetBSD__) || defined(__OPENBSD__) +#define wchar_t grub_posix_wchar_t +#define mbstate_t grub_posix_mbstate_t +#endif + /* UCS-4. */ typedef grub_int32_t wint_t; enum