[beports] Re: fpurge.c - "_IO_ferror_unlocked" maybe missing from Haiku?
- From: "scott mc" <scottmc2@xxxxxxxxx>
- To: beports@xxxxxxxxxxxxx
- Date: Fri, 29 Aug 2008 08:24:48 -0700
On Tue, Aug 26, 2008 at 4:55 PM, scott mc <scottmc2@xxxxxxxxx> wrote:
> I've located a possible fix for the fpurge.c issue, but don't know for
> sure which way to fix it. Check my update to ticket #70
> http://ports.haiku-files.org/ticket/70
> Seems BeOS must be setting one of those two, is this something that
> Haiku should also be setting? Or should I just add an || defined
> __HAIKU__ to the end of those lines?
> Coreutils, m4, findutils, gnulib and others are affected by this.
> You'll note that I was trying this on coreutils-6.12 which now
> contains our gnulib stdbool.h fix, and updated config.guess and
> config.sub files.
> -scottmc
>
I managed to get findutils-4.4.0 to build. I did this by applying the
stdbool fix, the adding an || defined __HAIKU__ to the files that
checked "_IO_ferror_unlocked", and also had to patch parser.c as it
had a function where it declared variable inside an if statement
rather than at the top of the function, i guess that's a gcc 2.95
issue? Anyways Haiku was happy once I moved them to the top of the
function.
Question is, does BeOS set _IO_ferror_unlocked and Haiku doesn't, but
maybe it should be?
This affects the gnulib files listed in:
http://ports.haiku-files.org/ticket/70
-scottmc
--
HaikuPorts homepage - http://ports.haiku-files.org
List archives: http://www.freelists.org/archives/beports
Administrative contact: brecht@xxxxxxxxxxx
Other related posts: