On 5/20/2012 2:46 AM, Phil Pennock wrote:
> On 2012-05-19 at 18:21 -0500, René Berber wrote:
>> Building on Linux ( 2.6.12 ), with gcc 4.5.3 :
>
> Which version of glibc ? Which distribution of Linux?
An old one, 2.3.6; no distribution, its the custom version on a NAS (ARM
processor).
The only usual problem with this old libc is having to use
-fgnu89-inline all the time to avoid macro errors.
[snip]
> According to this post:
> http://sources.redhat.com/ml/libc-alpha/2000-07/msg00067.html
> and then this follow-up from Ulrich Drepper:
> http://sources.redhat.com/ml/libc-alpha/2000-07/msg00074.html
> this appears to have been fixed in<features.h> in 2000.
>
> If you edit OS/os.h-Linux to add:
> #include<features.h>
> at the top, does that fix the problem? And if so, does it require
> -std=gnu99 (or invocation as CC=c99) to fix it, or is it generically
> fixed?
Yes it fixes it, and yes it requires CC="gcc -fgnu89-inline -std=gnu99"
--
René Berber