RE: patch error

From: R.Ilker Gokhan <IlkerG@dont-contact.us>
Date: Fri, 14 Apr 2000 20:31:43 +0300

Thanks again Henrik and all,

Unfortunately, it doesn't work ! i have applied your
s.2.3.STABLE1.strict_authenticate_ip_ttl.patch after applied
Squid/2.3.STABLE1-hno.20000202. But I couldn't seen the patched lines at the
patch file when i've checked acl.c structs.h and other file. So i have added
neccassary lines manually to these files. After make, i recevied the
following error:
 

./cf_gen cf.data
gcc -g -O2 -Wall -I. -I../include -I../include -c acl.c -o acl.o
acl.c: In function `aclMatchProxyAuth':
acl.c:1132: parse error before `else'
acl.c:1137: warning: control reaches end of non-void function
acl.c: At top level:
acl.c:1137: parse error before `else'
acl.c:1142: parse error before `('
acl.c:1143: warning: type defaults to `int' in declaration of
`aclFreeProxyAuthU
ser'
acl.c:1143: warning: parameter names (without types) in function declaration
acl.c:1143: conflicting types for `aclFreeProxyAuthUser'
acl.c:55: previous declaration of `aclFreeProxyAuthUser'
acl.c:1143: warning: data definition has no type or storage class
acl.c:1146: parse error before `return'
acl.c:1807: conflicting types for `aclFreeProxyAuthUser'
acl.c:1143: previous declaration of `aclFreeProxyAuthUser'
make[1]: *** [acl.o] Error 1
make[1]: Leaving directory `/usr/local/squid/src/squid-2.3.STABLE1/src'
make: *** [all] Error 1

If i remove line 1143 in the acl.c:
gcc -g -O2 -Wall -I. -I../include -I../include -c acl.c -o acl.o
acl.c: In function `aclMatchProxyAuth':
acl.c:1131: parse error before `else'
acl.c:1137: warning: control reaches end of non-void function
acl.c: At top level:
acl.c:1137: parse error before `else'
acl.c:1141: parse error before `('
make[1]: *** [acl.o] Error 1
make[1]: Leaving directory `/usr/local/squid/src/squid-2.3.STABLE1/src'
make: *** [all] Error 1
I've removed the lines into the acl.c and then i've continued patching
process. (make and make install etc) But nothing is change...

<if(!Config.authenticateIpTTL > 0){
<............
<...........
<}

How can i fix the auth_ip_ttl?
greetings from Istanbul..

Ilker G.

-----Original Message-----
From: Henrik Nordstrom [mailto:hno@hem.passagen.se]
Sent: Thursday, April 13, 2000 7:46 PM
To: R.Ilker Gokhan
Cc: squid-users@ircache.net
Subject: Re: patch error

R.Ilker Gokhan wrote:
>
> Error:
> WARNING: No units on 'authenticate_ttl 1', assuming 1.000000 second
> WARNING: No units on 'authenticate_ip_ttl -100', assuming -100.000000
> second
>
> Yes I have read and updated...

Well.. the unit is changed from seconds to time, so you must specify
what time unit you use or Squid will warn that you haven't specified the
unit and assume it is in seconds.. hmm, maybe this wasn't that obvious
in the patch without the other cleanup...

Anyway, the above should lock the user to one single IP address for 100
seconds.

/Henrik
Received on Fri Apr 14 2000 - 11:40:57 MDT

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