At Sat, 30 Sep 2000 02:19:39 +0900,
Tony Reed <Callus / sympatico.ca> wrote:
> 
> :are you using some distribution?
> :giving '-v' to gcc might tell? or `echo $CFLAGS`?
> 
> [tony@kubrick tony]$ source /usr/src/linux/scripts/ver_linux
      :
> [tony@kubrick tony]$ gcc -v
> Reading specs from /usr/local/lib/gcc-lib/i586-pc-linux-gnu/2.95.2/specs
> gcc version 2.95.2 19991024 (release)

sorry i wasn't clear enough.  the reason you get compile error is
that, IMHO, you have /usr/include/asm in include search path before
/usr/include. (otherwise asm/resource.h won't get included, unless you
have messed up links, i suppose.)

# i don't know anything specific about RHL, btw.

so I thought you have it either in environment variable or gcc(cpp)
settings.

in my case:

$ echo $CFLAGS
-O6
$ gcc -v -E eval.c 1>/dev/null
Reading specs from /usr/lib/gcc-lib/i586-pc-linux-gnu/2.95.2/specs
[...]
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /usr/lib/gcc-lib/i586-pc-linux-gnu/2.95.2/../../../../i586-pc-linux-gnu/include
 /usr/lib/gcc-lib/i586-pc-linux-gnu/2.95.2/include
 /usr/include
End of search list.
[...]

hope this helps.
--
           yashi