egcs-1.1.2-12

Jarek Woloszyn yossa@devil.inside.pin.pl
Mon Sep 6 07:05:00 GMT 1999


I've got egcs-1.1.2-12 from RedHat 6.0
I was trying to compile my program using limits.h from kernel headers.

file:
#include <linux/limits.h>

main()
{}

but I get:
[yossa@spike gettext-1.00]$ gcc -c a.c
a.c:2: linux/limits.h: Permission denied

[yossa@spike gettext-1.00]$ ls -l /usr/include/linux/limits.h
-rw-r--r--   1 root     root          744 Dec  2  1997
/usr/include/linux/limits.h

so I have permissions to read this file. I think the problem is that
/usr/include/linux is a sym link to /usr/src/linux/include/linux.
It seems that egcs have a problem with it.

When I just copied /usr/src/linux/include/linux to /usr/include/linux (it
was a directory, not link), everything was correct.

Another bug made by RH team? Or maybe a bug in egcs. If there is a newer
version without this bug please send me the number.



-- 
 ( Jarek Woloszyn ) ( yossa@pld.org.pl ) ( member of the GNU generation )
 ( Certificated in C & Linux adm. - http://www.tekmetrics.com  ID=85232 )
 ( HomePage http://dione.ids.pl/~yossa - PGP and Monopoly <ppp counter> ) 



More information about the Gcc-bugs mailing list