RE: [SQU] Compile problem with ntlm

From: Richard Whelan <rwhelan@dont-contact.us>
Date: Mon, 20 Nov 2000 15:47:35 -0000

Craig,

Just pulled down the latest squid-head, and the repulled down the ntlm
patch, which has changed. Applying that patch now complains in two
locations. One is on version.h, which considering that patch looks for 2.5
and this is the 2.4 release, I would expect, and on the pump.c file again.
Other than that, straight through this time.

Ran, autoconf, autoheader.

Did the configure, and typed make.

The initial compile does through, I have a squid executable, but when it
gets to the ntlm section it dies with the same message.

Making all in ntlm_auth_modules...
make[1]: Entering directory
`/home/software/Src/Squid/New/squid-2.4-200011200000/ntlm_auth_modules'
make[2]: Entering directory
`/home/software/Src/Squid/New/squid-2.4-200011200000/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-200011200000/ntlm_auth_modules/NTLMS
SP'
make[1]: *** [all] Error 1
make[1]: Leaving directory
`/home/software/Src/Squid/New/squid-2.4-200011200000/ntlm_auth_modules'
make: *** [all] Error 1

Any more ideas ?

Cheers,

Richard

-----Original Message-----
From: Craig Fels [mailto:csfels@swbell.net]
Sent: 20 November 2000 14:51
To: Richard Whelan; Robert Collins; squid-users@ircache.net
Subject: Re: [SQU] Compile problem with ntlm

Richard,

I applied the ntlm.patch to squid-head-20001113000.tar.gz. I've had the
best luck applying the patch to this snapshot of Squid. I also get the
reversed patch on pump.c but everything else was OK (SO FAR!).

Don't forget, after applying the patch run:

autoconf
autoheader

then

make distclean
./configure --enable-auth_modules="NCSA,
NTLM" --enable-ntlm-auth-modules=NTLMSSP etc.....
make
make install

This is where I am right now.
I have just modified my squid.conf file and I need to remember how to link a
directory to another location. Squid's executable is looking for squid.conf
in /etc/squid but its compiled in /usr/local/squid/etc/

Good luck....
Craig

----- Original Message -----
From: "Richard Whelan" <rwhelan@highwayone.net>
To: "Robert Collins" <robert.collins@itdomain.com.au>;
<squid-users@ircache.net>
Sent: Monday, November 20, 2000 4:14 AM
Subject: RE: [SQU] Compile problem with ntlm

> 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

----------------------------------------- (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 - 08:47:57 MST

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