Sorry? I forgot to mention:
Linux - Slackware7.0 - 2.3.35
Can anyone give me a hint why I get this error while compiling Squid ?
tools.c : in function 'leave_suid':
tools.c: 500: warning: implicit declaration of function 'setresuid'
tools.c: in function 'setMaxFD':
tools.c: 605: storage size of 'rl' isn't known
tools.c: 605: warning: unused variable 'rl'
make[1]: *** [tools.o] Error 1
make[1]: Leaving directory '/usr/src/squid-2.2-STABLE5/src'
make: *** [all] Error 1
Regards,
You are of course using a development linux kernel, so you should expect to
see problems such as this. I hope this wasn't your production machine...
reuben
Or actually Linus is claiming it is a glibc bug where glibc depends on
Linux kernel headers it should not depend on. See Linux kernel-hacker
archives for details.
For the time being, make sure /usr/include/linux and /usr/include/asm is
from a recent Linux-2.2.X source tree.
--
Henrik Nordstrom
Squid hacker
Well no, not quite.
Glibc (or rather, your distributions glibc-devel package) should come
with a copy of the kernel headers that were used to compile glibc
against in /usr/include/linux and /usr/include/asm. You cannot simply
put new headers there and expect glibc (which was itself compiled
against and developed to work with another set of headers) to work 100%
>For the time being, make sure /usr/include/linux and /usr/include/asm is
>from a recent Linux-2.2.X source tree.
Don't follow this advice on all systems, *especially* not Debian systems.
Just make sure you use the latest glibc-devel (or, on Debian,
libc6-dev) package.
On RedHat it may be different, but indeed, broken as well ..
It was about time I put this in a FAQ somewhere. I keep fighting over
this with other people who do not understand what Linus and Ulrich
mean exactly.
Mike.
--
There's a lot to be said for not saying a lot.
--
The From: and Reply-To: addresses are internal news2mail gateway addresses.
Reply to the list or to miq...@cistron.nl (Miquel van Smoorenburg)