RE: [SQU] Compile problem with ntlm

From: Richard Whelan <rwhelan@dont-contact.us>
Date: Mon, 20 Nov 2000 10:14:51 -0000

Robert,

The problem I had with the patch differed depending on which version of
squid it was applied against. If it was applied to the CVS version from the
sourceforge site, I get three errors. One is the reverse patch, in pump.c,
which from seeing previous messages can be ignored. The second is in
version.c, as the version details you have in the CVS version, says 2.5, and
the patch is looking for 2.4DEVEL4. This obviously goes away when applied to
a 2.4 cut. The last one, seems to be there regardless. It is in
access_log.c. It fails on the second section, starting a line 251. I made
the changes by hand for this part.

The error message on compile was what was in the original message:

Making all in ntlm_auth_modules...
make[1]: Entering directory
`/home/software/Src/Squid/New/squid-2.4-200011150000/ntlm_auth_modules'
make[2]: Entering directory
`/home/software/Src/Squid/New/squid-2.4-200011150000/ntlm_auth_modules/NTLMS
SP'
gcc -g -O2 -Wall -I. -I../../include -I./smbval -I../../include -c -o
ntlm_auth.o ntlm_auth.c
In file included from ntlm_auth.c:37:
ntlm.h:167: parse error before `u_int32_t'
ntlm.h:167: warning: no semicolon at end of struct or union
ntlm.h:171: parse error before `}'
ntlm.h:177: parse error before `u_int32_t'
ntlm.h:177: warning: no semicolon at end of struct or union
ntlm.h:179: parse error before `context_low'
ntlm.h:179: warning: type defaults to `int' in declaration of `context_low'
ntlm.h:179: warning: data definition has no type or storage class
ntlm.h:180: parse error before `context_high'
ntlm.h:180: warning: type defaults to `int' in declaration of `context_high'
ntlm.h:180: warning: data definition has no type or storage class
ntlm.h:182: parse error before `}'
ntlm_auth.c:76: conflicting types for `domain'
ntlm.h:168: previous declaration of `domain'
ntlm_auth.c: In function `cleanup_cache':
ntlm_auth.c:124: warning: int format, pid_t arg (arg 3)
ntlm_auth.c: In function `refresh_challenge':
ntlm_auth.c:164: warning: int format, pid_t arg (arg 3)
ntlm_auth.c: In function `housekeep':
ntlm_auth.c:181: warning: int format, pid_t arg (arg 3)
ntlm_auth.c: In function `manage_request':
ntlm_auth.c:327: warning: int format, pid_t arg (arg 3)
ntlm_auth.c:330: warning: int format, pid_t arg (arg 3)
ntlm_auth.c:331: warning: int format, pid_t arg (arg 3)
ntlm_auth.c:381: warning: int format, pid_t arg (arg 3)
ntlm_auth.c:395: warning: int format, pid_t arg (arg 3)
ntlm_auth.c:426: warning: int format, pid_t arg (arg 3)
ntlm_auth.c:429: warning: int format, pid_t arg (arg 3)
ntlm_auth.c:430: warning: int format, pid_t arg (arg 3)
ntlm_auth.c:435: warning: int format, pid_t arg (arg 3)
ntlm_auth.c:461: warning: int format, pid_t arg (arg 3)
ntlm_auth.c:463: warning: int format, pid_t arg (arg 3)
ntlm_auth.c: In function `main':
ntlm_auth.c:487: warning: int format, pid_t arg (arg 3)
ntlm_auth.c:491: warning: int format, pid_t arg (arg 3)
ntlm_auth.c:503: warning: int format, pid_t arg (arg 3)
ntlm_auth.c:511: warning: int format, pid_t arg (arg 3)
ntlm_auth.c:515: warning: int format, pid_t arg (arg 3)
ntlm_auth.c:520: warning: int format, pid_t arg (arg 3)
make[2]: *** [ntlm_auth.o] Error 1
make[2]: Leaving directory
`/home/software/Src/Squid/New/squid-2.4-200011150000/ntlm_auth_modules/NTLMS
SP'
make[1]: *** [all] Error 1
make[1]: Leaving directory
`/home/software/Src/Squid/New/squid-2.4-200011150000/ntlm_auth_modules'
make: *** [all] Error 1

I hope this helps.

Cheers,

Richard

-----Original Message-----
From: Robert Collins [mailto:robert.collins@itdomain.com.au]
Sent: 16 November 2000 22:35
To: Richard Whelan; squid-users@ircache.net
Subject: Re: [SQU] Compile problem with ntlm

----- Original Message -----
From: "Richard Whelan" <rwhelan@highwayone.net>
To: <squid-users@ircache.net>
Sent: Friday, November 17, 2000 1:30 AM
Subject: [SQU] Compile problem with ntlm

> Thought this looked like a useful addon, as I'm looking at implementing
> authentication.
>
> I'm currently running 2.3STABLE3, but for this I have basically followed
the
> comments already made in this list.
>
> I have tried both the daily snapshot version, squid-2.4-20001115000 off
the
> main Squid site, and the CVS version from squid.sourceforge (2.5 ??).
>
> I couldn't get the patch to apply, until I pulled down GNU patch, and then
> it all went through OK, except for two/three areas. Nothing major there.

Please report the failed areas. Without those we cannot even guess.....

> Ran autoheader, autoconf, and then set off the configure. Again no problem
> there.

good.

> When it gets to the compilation of the ntlm code though, it bombs. Not
being
> a developer, I wouldn't have the first clue where to look, so here is what
I
> get.

<snip>

Rob

--
To unsubscribe, see http://www.squid-cache.org/mailing-lists.html

----------------------------------------- (on ukadmin1)

This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
AntiVirus VirusWall for the presence of computer viruses.

HighwayOne Corporation Ltd

---------------------------------------------------------

--
To unsubscribe, see http://www.squid-cache.org/mailing-lists.html
Received on Mon Nov 20 2000 - 03:17:10 MST

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