Re: Squid on Linux Alpha?
Roberto Lumbreras (rover@lander.es)
Tue, 20 Jan 1998 06:45:57 +0100
jhohertz@golden.net dijo a las 18:57:36 del día 18-01-98:
: I get when compiling under (RH5.0):
:
: gcc -g -O2 -Wall -I. -I../include -I./../include -c tools.c -o
: tools.o
: tools.c: In function `leave_suid':
: tools.c:519: warning: implicit declaration of function `setresuid'
: tools.c: In function `setMaxFD':
: tools.c:621: storage size of `rl' isn't known
: tools.c:621: warning: unused variable `rl'
: make[1]: *** [tools.o] Error 1
: make[1]: Leaving directory `/usr/src/squid-1.1.19/src'
: make: *** [all] Error 1
:
: Anyone have any thoughts? Almost looks like a missing include.
setresuid system call onlys exists in linux > 2.1.something, so you
have (like me) to #undef HAVE_SETRESUID in include/autoconf.h, or
hack configure script;
About "rl"..., it seems like "rlimit" is an undefined struct, you
have to look for it in /usr/include/*/* and include the missing .h
In my debian/alpha box it is defined in <resourcebits.h>, included
in <sys/resource.h> (which is in "squid.h"...) so... ???
: Joe
Regards,
Roberto Lumbreras
rover@lander.es | rover@etsit.upm.es | rover@debian.org & pgp 143BE391
Lander Internet, Madrid-Spain-UE; http://www.lander.es
"Unix? What's that? Is that like Linux?"