[haiku-development] Re: gcc on haiku

[discussion redirected to this list as input from others would be nice]

Hi Pier Luigi (and everyone else on this list),

On 2007-10-26 at 08:51:29 [+0200], Pier Luigi Fiorini 
<pierluigi.fiorini@xxxxxxxxx> wrote:
> > On 2007-10-25 at 21:04:56 [+0200], Pier Luigi Fiorini
> > <pierluigi.fiorini@xxxxxxxxx> wrote:
> >> i tried replacing /boot/develop/headers with the haiku headers but they
> >> are
> >> incompatible with your gcc port on beos so i thoght it would be better to
> >> build gcc on haiku. have you ever considered building it on haiku?
> >
> > What exactly do you mean by the haiku headers are incompatible with my gcc
> > port? What did you try to do and what happens instead?
> 
> I tried to compile some programs on Haiku (the Haikuware VMware image).
> Perl was the first one, but it requires some sockets-related headers. Those
> headers was not provided in /boot/develop/headers in BeOS R5, so I replaced
> /boot/develop/headers with the Haiku headers folder.

Yes, and I think this should work (at least in theory) as haiku should be 
compatible with R5.

> Unfortunately some headers in
> /boot/develop/tools/gnupro/i586-pc-beos/include requires headers like
> be_setup.h, _G_config.h which was available on R5 but not in Haiku.

I have checked myself and indeed there are references to these files. While I 
don't know about be_setup.h, I think _G_config.h is indeed required to be 
provided by haiku, as it contains the glibc-setup of the system.

> Something tells me that is better to recompile gcc 2.95.3 on Haiku instead
> of using the old gcc for BeOS.
> Or is there another way to build applications which requires the Haiku
> headers with the BeOS gcc?

Actually, I don't really know yet. Guys, do we have a plan here?

cheers,
        Oliver

Other related posts: