Re: trouble compiling squid 2.0

From: Duane Wessels <[email protected]>
Date: Thu, 05 Nov 1998 09:45:02 -0700

Anand Buddhdev writes:

>I'm having trouble compiling squid 2.0 PATCH 2 on a BSDI 2.1 system with
>gcc version 2.7.2. The specific error is:
>
>gcc -g -O2 -Wall -I. -I../include -I../include -c access_log.c
>In file included from access_log.c:38:
>squid.h:257: redefinition of `struct rusage'
>*** Error code 1
>
>Stop.
>*** Error code 1
>
>Stop.
>
>
>Any ideas on how to fix this?

Edit include/autoconf.h, look for HAVE_STRUCT_RUSAGE, and set it:

        #define HAVE_STRUCT_RUSAGE 1

then recompile.

Duane W.
Received on Thu Nov 05 1998 - 09:46:47 MST

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