[haiku-development] Re: BeOS/Dano/Zeta build broken

  • From: Ingo Weinhold <ingo_weinhold@xxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Tue, 26 Feb 2008 15:44:42 +0100

On 2008-02-26 at 11:43:46 [+0100], Axel Dörfler <axeld@xxxxxxxxxxxxxxxx> 
wrote:
> 
> after Ingo's latest changes, I cannot build Haiku anymore on BeOS;
> might be related that I compile under Dano:

Yep, this must be Dano related, as R5 doesn't even have the 
posix/be_errors.h header, and the database_support.o compiles just well.

[...]
> Any good advise?
> There are probably several ways to solve this issue, I just hope that
> Ingo has a good idea about that :-)

Yes, the best solution would be to also build libbe_build.so for BeOS 
compatible build platforms. The quickest solution is probably to 
change/extend the work-arounds. My first try would be to pre-define the 
be_errors.h header guard in src/tools/Jamfile, i.e. in the "if 
$(HOST_PLATFORM) in r5 bone dano {" block add

        DEFINES += ... ;

This may already solve the problem or cause others. If it works for 
database_support.o, but causes problems with other files, try

        ObjectDefines database_support.cpp : ... ;

Alternatively you could try to force the inclusion of 
HaikuBuildCompatibility.h and remove the "UseHeaders ... support ..." line 
I introduced:

        ObjectC++Flags database_support.cpp ... : -include
                [ FDirName $(HAIKU_TOP) headers build HaikuBuildCompatibility.h 
] ;

Good luck! And don't for get to rebuild the affected stuff from the 
scratch, when everything seems to work.

CU, Ingo

Other related posts: