On Mon, 12 Oct 1998, Klier Rainer wrote:
> Now it compiles some more. Now it stops here:
>
> gcc -g -O2 -Wall -D_REENTRANT -I. -I../include -I../include -c tools.c -o
> tools.o
> tools.c: In function `rusage_maxrss':
> tools.c:182: structure has no member named `ru_maxrss'
> tools.c:194: warning: control reaches end of non-void function
> tools.c: In function `rusage_pagefaults':
> tools.c:199: structure has no member named `ru_majflt'
> tools.c:200: warning: control reaches end of non-void function
> make[1]: *** [tools.o] Error 1
> make[1]: Leaving directory `/proxy/src/squid-2.0.RELEASE/src'
> make: *** [all] Error 1
>
> Any clues about this ? :)
The following patch may help you. There may be a cleaner solution that I am
not aware about.
--- tools.c Wed Sep 23 13:03:51 1998
+++ /tmp/tools.c.new Mon Oct 12 07:44:59 1998
@@ -1,6 +1,6 @@
/*
- * $Id: tools.c,v 1.168 1998/09/22 17:50:33 wessels Exp $
+ * $Id: tools.c,v 1.167 1998/08/24 22:06:49 wessels Exp $
*
* DEBUG: section 21 Misc Functions
* AUTHOR: Harvest Derived
@@ -179,7 +179,11 @@
rusage_maxrss(struct rusage *r)
{
#if defined(_SQUID_SGI_)
+#if _ABIAPI
+ return r->ru_pad[0];
+#else
return r->ru_maxrss;
+#endif
#elif defined(_SQUID_OSF_)
return r->ru_maxrss;
#elif defined(BSD4_4)
@@ -196,7 +200,11 @@
int
rusage_pagefaults(struct rusage *r)
{
+#if defined(_SQUID_SGI_) && _ABIAPI
+ return r->ru_pad[5];
+#else
return r->ru_majflt;
+#endif
}
> Besides I have the effect, that the dnsserver always resolves
> any FQHN either to 0.0.0.0 or to 255.255.255.255
Don't know anything about that.
Alex.
Received on Mon Oct 12 1998 - 06:54:03 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:42:26 MST