Problems with 2.0 on Digital UNIX 4.0

From: Sergey S. Kosyakov <>
Date: Fri, 09 Oct 1998 09:52:23 +0400 (MSD)


I found and roughly hack some bugs which prevented compiling and/or operating of
Squid-2.0 on Digital UNIX 4.0:

1. Configuration script erroneously checks <stdargs.h> and va_* functions in
that header file, but it should use <varargs.h>. I simply made

2. int hashPrime(int n) in lib/hash.c contains very dangerous code like
"log(n)", where n is "int", but log() expects "double" - it leads to garbage
in log() input and, finally, to FPE on Digital UNIX, at least with native cc.
I replaced all entries like log(integer) with log((double)integer).

3. If you wish '--enable-async-io', do something like
CC="cc -pthread"; export CC

I used "cc -O -pthread".


Sergey Kosyakov
Laboratory of Distributed Computing
Department of High-Performance Computing and Applied Network Research
Landau Institute for Theoretical Physics
Date: 09-Oct-98
Time: 09:22:21
Received on Thu Oct 08 1998 - 22:51:38 MDT

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