Re: /usr/include/bits/local_lim.h:36: linux/limits.h: Permission denied (SOLVED, please read!)
Hello again,
I forgot to mention that this Permission denied doesn't occur when I run
./configure (or another program that does an (implicit) #include
<limits.h>) as root.
Even when I try to compile this program:
#include <limits.h>
int main(void)
{
}
I get this:
/tmp> gcc testing.c -o testing
In file included from /usr/include/bits/posix1_lim.h:126,
from /usr/include/limits.h:144,
from
/usr/lib/gcc-lib/i386-linux/2.95.4/include/limits.h:117,
from
/usr/lib/gcc-lib/i386-linux/2.95.4/include/syslimits.h:7,
from
/usr/lib/gcc-lib/i386-linux/2.95.4/include/limits.h:11,
from testing.c:1:
/usr/include/bits/local_lim.h:36: linux/limits.h: Permission denied
Exit 1
I'm 100% sure it worked before, and it also works on all other Linux
systems I have seen! (Logically...)
I simply can't understand the Permission denied...
What linux/limits.h is it including?
Hmm, now I tried this:
/tmp> gcc-3.0 testing.c -o testing
In file included from /usr/include/bits/posix1_lim.h:126,
from /usr/include/limits.h:144,
from
/usr/lib/gcc-lib/i386-linux/3.0.4/include/limits.h:125,
from
/usr/lib/gcc-lib/i386-linux/3.0.4/include/syslimits.h:7,
from
/usr/lib/gcc-lib/i386-linux/3.0.4/include/limits.h:11,
from testing.c:1:
/usr/include/bits/local_lim.h:36:26: /usr/local/include/linux/limits.h:
Permission denied
Exit 1
Hey, GCC 3.0 gives me a better idea where to look!
/usr/local/include/linux:
this directory was created by the lm-sensors package (as far as I know)
and did not have the right permissions!
Changing the permissions of this directory solved the problem...
Although this /usr/local/include directory does not contain limits.h, it
*does* seem to be search by the include system. And if it cannot search
into it, errors occur.
Is this a package bug? Or is it my own fault? (Maybe I shouldn't have
installed the lm-sensors stuff as root? (How else then? ;-))
Best regards,
Manuel Bilderbeek
Manuel Bilderbeek wrote on debian-user@lists.debian.org:
[Debian Woody]
The problem is that I cannot inlude <limits.h> anymore in programs.
This occurs for example in a standard ./configure script that checks for
GTK. I simply get this:
[see above]
I checked the file permissions and attributes of all limits.h files and
all files that are mentioned in the above list, but all permissions are
OK...
What could be wrong??
Best regards,
Manuel Bilderbeek
--
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: