[haiku-bugs] Re: [Haiku] #8730: Improve the build system for building on Haiku

  • From: "mmadia" <trac@xxxxxxxxxxxx>
  • Date: Tue, 07 Aug 2012 14:02:35 -0000

#8730: Improve the build system for building on Haiku
----------------------------+----------------------------
   Reporter:  mmadia        |      Owner:  mmadia
       Type:  enhancement   |     Status:  in-progress
   Priority:  normal        |  Milestone:  R1
  Component:  Build System  |    Version:  R1/Development
 Resolution:                |   Keywords:
 Blocked By:                |   Blocking:
Has a Patch:  0             |   Platform:  All
----------------------------+----------------------------

Comment (by mmadia):

 Looking at the headers in that error message,  I noticed that our
 posix_target/target_cdefs.h defines _SYS_CDEFS_H, whereas
 /usr/include/sys/cdefs.h defines _SYS_CDEFS_H_   The latter is what
 /usr/include/machine/_types.h is requiring

 /usr/include/stddef.h
 {{{
 #ifndef _STDDEF_H_
 #define _STDDEF_H_

 #include <sys/cdefs.h>
 #include <sys/_null.h>
 #include <sys/_types.h>
 ...
 }}}

 /usr/include/sys/_types.h
 {{{
 #ifndef _SYS__TYPES_H_
 #define _SYS__TYPES_H_

 #include <sys/cdefs.h>
 #include <machine/_types.h>
 ...
 }}}

 /usr/include/machine/_types.h
 {{{
 #ifndef _MACHINE__TYPES_H_
 #define _MACHINE__TYPES_H_

 #ifndef _SYS_CDEFS_H_
 #error this file needs sys/cdefs.h as a prerequisite
 #endif

 #define __NO_STRICT_ALIGNMENT
 ...
 }}}

 Should our posix_target/target_cdefs.h also define _SYS_CDEFS_H_ ?

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/8730#comment:18>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: