grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GRUB2 on OpenBSD 5.3-amd64: linking problem


From: Grégoire Sutre
Subject: Re: GRUB2 on OpenBSD 5.3-amd64: linking problem
Date: Wed, 14 Aug 2013 15:49:03 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130116 Icedove/10.0.12

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 <stddef.h>
#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 <stddef.h>
+#endif

 typedef struct mbstate {
   grub_uint32_t code;


Grégoire



reply via email to

[Prev in Thread] Current Thread [Next in Thread]