Re: squid-1.1.2 core dumping on Linux

From: Duane Wessels <wessels@dont-contact.us>
Date: Fri, 03 Jan 97 09:55:23 -0800

karl@tower.net.au writes:

>At 05:22 AM 1/3/97 +0100, Roberto Lumbreras Pastor wrote:
>>: I have just (up)graded to squid-1.1.2, and am using Linux 2.0.27 on a
>>: Pentium system with 64MB RAM. I am having problems with squid core dumping
>>: and dying. Has anybody had similar experiences? Can anyone suggest a stable
>>: version of Squid for my system?
>
>>No problems here with Linux 2.0.27 on a Pentium & squid-1.1.2.
>
>Well, you both got further than I've gotten so far. I've run 1.1.1 running
>perfectly, but 1.1.2 wont even compile for me (incidently, I've emailed
>squid-bugs with this, but no answers as yet):
>
>Making all in src...
>make[1]: Entering directory `/root/squid-1.1.2/src'
>gcc -g -O2 -Wall -m486 -s -I. -I../include -I./../include -c
>acl.c -o acl.o
>In file included from /usr/include/waitstatus.h:70,
> from /usr/include/sys/wait.h:77,
> from squid.h:125,
> from acl.c:31:
>/usr/include/endian.h:37: warning: `LITTLE_ENDIAN' redefined
>/usr/include/asm/byteorder.h:10: warning: this is the location of the
>previous definition
>In file included from acl.c:31:
>squid.h:260: parse error
>make[1]: *** [acl.o] Error 1
>make[1]: Leaving directory `/root/squid-1.1.2/src'
>make: *** [all] Error 2
>
>As I said - 1.1.1 works and compiles great, but in 1.1.2 something must've
>changed I'd say.

There have been no end of troubles getting Squid to "do the right thing"
with FD_SETSIZE, etc on Linux. I don't have access to a linux box
where it won't compile. Maybe this will help:

Index: squid.h
===================================================================
RCS file: /surf1/CVS/squid/src/squid.h,v
retrieving revision 1.87
diff -w -u -r1.87 squid.h
--- squid.h 1996/12/20 23:45:44 1.87
+++ squid.h 1997/01/03 17:53:07
@@ -257,9 +257,11 @@
  * we might really be able to open more than FD_SETSIZE descriptors.
  * happy happy happy joy joy joy.
  */
+#if defined(FD_SETSIZE) && defined(SQUID_MAXFD)
 #if FD_SETSIZE < SQUID_MAXFD
 #undef SQUID_MAXFD
 #define SQUID_MAXFD FD_SETSIZE
+#endif
 #endif
 
 typedef void (*SIH) (int, void *); /* swap in */

Duane W.
Received on Fri Jan 03 1997 - 10:05:54 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:33:59 MST