On Thu, Nov 05, 1998 at 09:45:02AM -0700, Duane Wessels wrote:
> >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
OK. This works fine. Thanks. Now I have one final problem:
gcc -o squid -g access_log.o acl.o asn.o authenticate.o cache_cf.o .. ..
event.c:82: Undefined symbol _drand48 referenced from text segment
*** Error code 1
Stop.
*** Error code 1
Stop.
The source seems to indicate that drand48 is not available on all systems.
On my BSDI 2.1 system, it's definitely not there. What can I use as an
alternative? All I have is random and srandom.
-- AnandReceived on Thu Nov 05 1998 - 23:38:22 MST
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:42:58 MST