[squid-users] ntlm and compile problems

From: Thomas Goebel <thomas@dont-contact.us>
Date: Mon, 02 Apr 2001 12:31:23 +0200

nobody answers me. So i send the message again.
-----------------------------------------------

hello,

one of our users try to open an page wich is protected bei a "http
passwdbox" with IE.

I use the NTLM helper (squid 2.5 DEVEL).

If this page was tryed to open, the following error occurs:

2001/03/27 16:03:12| authenticateNTLMFixErrorHeader: state 4.
2001/03/27 16:03:12| storeDirWriteCleanLogs: Starting...
2001/03/27 16:03:12| WARNING: Closing open FD 9
2001/03/27 16:03:12| 65536 entries written so far.
2001/03/27 16:03:13| 131072 entries written so far.
2001/03/27 16:03:13| WARNING: Closing open FD 14
2001/03/27 16:03:13| Finished. Wrote 186750 entries.
2001/03/27 16:03:13| Took 0.4 seconds (464537.2 entries/sec).
FATAL: unexpected state in AuthenticateNTLMFixErrorHeader.
 
Squid Cache (Version 2.5.DEVEL): Terminated abnormally.
CPU Usage: 165.980 seconds = 78.340 user + 87.640 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 63423
Memory usage for squid via mallinfo():
        total space in arena: 20245 KB
        Ordinary blocks: 20211 KB 32 blks
        Small blocks: 0 KB 0 blks
        Holding blocks: 436 KB 2 blks
        Free Small blocks: 0 KB
        Free Ordinary blocks: 34 KB
        Total in use: 20647 KB 102%
        Total free: 34 KB 0%
fgets() failed! dying..... errno=0 (Success)
2001/03/27 16:03:16| Starting Squid Cache version 2.5.DEVEL for
i686-pc-linux-gnu...
2001/03/27 16:03:16| Process ID 32386
2001/03/27 16:03:16| With 1024 file descriptors
available
.....

No page was disaplayd on the IE. (With NS it works fine - no NTLM)

If the ntlm authentication was disabled in the squid.conf, this page was
succesfully loaded.

------

So i download the "version"

#> rm -r squid-ntlm
#> cvs -z3 -d :pserver:anonymous@cvs.sourceforge.net:/cvsroot/squid
co -r ntlm -d squid-ntlm squid

and than i try to compile this one.

fwi:/DOWN/squid-ntlm # autoheader
configure.in:992: warning: AC_TRY_RUN called without default to allow
cross compiling
configure.in:1427: warning: AC_TRY_RUN called without default to allow
cross compiling
fwi:/DOWN/squid-ntlm # autoconf
configure.in:992: warning: AC_TRY_RUN called without default to allow
cross compiling
configure.in:1088: warning: AC_TRY_RUN called without default to allow
cross compiling
configure.in:1089: warning: AC_TRY_RUN called without default to allow
cross compiling
configure.in:1090: warning: AC_TRY_RUN called without default to allow
cross compiling
configure.in:1091: warning: AC_TRY_RUN called without default to allow
cross compiling
configure.in:1092: warning: AC_TRY_RUN called without default to allow
cross compiling
configure.in:1093: warning: AC_TRY_RUN called without default to allow
cross compiling
configure.in:1094: warning: AC_TRY_RUN called without default to allow
cross compiling
configure.in:1095: warning: AC_TRY_RUN called without default to allow
cross compiling
configure.in:1096: warning: AC_TRY_RUN called without default to allow
cross compiling
configure.in:1097: warning: AC_TRY_RUN called without default to allow
cross compiling
configure.in:1098: warning: AC_TRY_RUN called without default to allow
cross compiling
configure.in:1099: warning: AC_TRY_RUN called without default to allow
cross compiling
configure.in:1100: warning: AC_TRY_RUN called without default to allow
cross compiling
configure.in:1101: warning: AC_TRY_RUN called without default to allow
cross compiling
configure.in:1102: warning: AC_TRY_RUN called without default to allow
cross compiling
configure.in:1427: warning: AC_TRY_RUN called without default to allow
cross compiling

fwi:/DOWN/squid-ntlm # ./configure --enable-ntlm-auth-helpers
--enable-snmp --prefix=/usr --enable-auth
.... WORKS FINE WITHOUT ERROR ....

!!! ERROR !!!

gcc -g -Wall -I../include -I../include -c -o ntlmauth.o ntlmauth.c
In file included from ntlmauth.c:24:
../include/ntlmauth.h:121: parse error before `gint16'
../include/ntlmauth.h:121: warning: no semicolon at end of struct or
union
../include/ntlmauth.h:122: warning: type defaults to `int' in
declaration of `maxlen'
../include/ntlmauth.h:122: warning: data definition has no type or
storage class
../include/ntlmauth.h:123: parse error before `offset'
../include/ntlmauth.h:123: warning: type defaults to `int' in
declaration of `offset'
../include/ntlmauth.h:123: warning: data definition has no type or
storage class
../include/ntlmauth.h:124: warning: type defaults to `int' in
declaration of `strhdr'
../include/ntlmauth.h:124: warning: data definition has no type or
storage class
../include/ntlmauth.h:128: parse error before `gint32'
../include/ntlmauth.h:128: warning: no semicolon at end of struct or
union
../include/ntlmauth.h:130: parse error before `}'
../include/ntlmauth.h:130: warning: type defaults to `int' in
declaration of `lstring'
../include/ntlmauth.h:130: warning: data definition has no type or
storage class
../include/ntlmauth.h:136: parse error before `gint32'
../include/ntlmauth.h:136: warning: no semicolon at end of struct or
union
../include/ntlmauth.h:137: warning: type defaults to `int' in
declaration of `ntlmhdr'
../include/ntlmauth.h:137: warning: data definition has no type or
storage class
../include/ntlmauth.h:142: parse error before `gint32'
../include/ntlmauth.h:142: warning: no semicolon at end of struct or
union
../include/ntlmauth.h:143: warning: type defaults to `int' in
declaration of `hdr'
../include/ntlmauth.h:143: warning: data definition has no type or
storage class
../include/ntlmauth.h:145: parse error before `domain'
../include/ntlmauth.h:145: warning: type defaults to `int' in
declaration of `domain'
../include/ntlmauth.h:145: warning: data definition has no type or
storage class
../include/ntlmauth.h:146: parse error before `workstation'
../include/ntlmauth.h:146: warning: type defaults to `int' in
declaration of `workstation'
../include/ntlmauth.h:146: warning: data definition has no type or
storage class
../include/ntlmauth.h:148: parse error before `}'
../include/ntlmauth.h:148: warning: type defaults to `int' in
declaration of `ntlm_negotiate'
../include/ntlmauth.h:148: warning: data definition has no type or
storage class
../include/ntlmauth.h:153: parse error before `gint32'
../include/ntlmauth.h:153: warning: no semicolon at end of struct or
union
../include/ntlmauth.h:154: warning: type defaults to `int' in
declaration of `target'
../include/ntlmauth.h:154: warning: data definition has no type or
storage class
../include/ntlmauth.h:160: parse error before `}'
../include/ntlmauth.h:160: warning: type defaults to `int' in
declaration of `ntlm_challenge'
../include/ntlmauth.h:160: warning: data definition has no type or
storage class
../include/ntlmauth.h:165: parse error before `gint32'
../include/ntlmauth.h:165: warning: no semicolon at end of struct or
union
../include/ntlmauth.h:166: warning: type defaults to `int' in
declaration of `lmresponse'
../include/ntlmauth.h:166: warning: data definition has no type or
storage class
../include/ntlmauth.h:167: parse error before `ntresponse'
../include/ntlmauth.h:167: warning: type defaults to `int' in
declaration of `ntresponse'
../include/ntlmauth.h:167: warning: data definition has no type or
storage class
../include/ntlmauth.h:168: parse error before `domain'
../include/ntlmauth.h:168: warning: type defaults to `int' in
declaration of `domain'
../include/ntlmauth.h:168: warning: data definition has no type or
storage class
../include/ntlmauth.h:169: parse error before `user'
../include/ntlmauth.h:169: warning: type defaults to `int' in
declaration of `user'
../include/ntlmauth.h:169: warning: data definition has no type or
storage class
../include/ntlmauth.h:170: parse error before `workstation'
../include/ntlmauth.h:170: warning: type defaults to `int' in
declaration of `workstation'
../include/ntlmauth.h:170: warning: data definition has no type or
storage class
../include/ntlmauth.h:171: parse error before `sessionkey'
../include/ntlmauth.h:171: warning: type defaults to `int' in
declaration of `sessionkey'
../include/ntlmauth.h:171: warning: data definition has no type or
storage class
../include/ntlmauth.h:172: parse error before `flags'
../include/ntlmauth.h:172: warning: type defaults to `int' in
declaration of `flags'
../include/ntlmauth.h:172: conflicting types for `flags'
../include/ntlmauth.h:155: previous declaration of `flags'
../include/ntlmauth.h:172: warning: data definition has no type or
storage class
../include/ntlmauth.h:173: conflicting types for `payload'
../include/ntlmauth.h:159: previous declaration of `payload'
../include/ntlmauth.h:174: parse error before `}'
../include/ntlmauth.h:174: warning: type defaults to `int' in
declaration of `ntlm_authenticate'
../include/ntlmauth.h:174: warning: data definition has no type or
storage class
../include/ntlmauth.h:178: parse error before `ntlm_fetch_string'
../include/ntlmauth.h:178: parse error before `gint32'
../include/ntlmauth.h:178: warning: type defaults to `int' in
declaration of `ntlm_fetch_string'
../include/ntlmauth.h:178: warning: data definition has no type or
storage class
../include/ntlmauth.h:180: parse error before `strhdr'
ntlmauth.c:65: parse error before `ntlm_fetch_string'
ntlmauth.c:65: parse error before `gint32'
ntlmauth.c:66: warning: return-type defaults to `int'
ntlmauth.c: In function `ntlm_fetch_string':
ntlmauth.c:67: `gint16' undeclared (first use in this function)
ntlmauth.c:67: (Each undeclared identifier is reported only once
ntlmauth.c:67: for each function it appears in.)
ntlmauth.c:67: parse error before `l'
ntlmauth.c:68: `gint32' undeclared (first use in this function)
ntlmauth.c:69: `lstring' undeclared (first use in this function)
ntlmauth.c:71: `rv' undeclared (first use in this function)
ntlmauth.c:73: `l' undeclared (first use in this function)
ntlmauth.c:73: request for member `len' in something not a structure or
union
ntlmauth.c:74: `o' undeclared (first use in this function)
ntlmauth.c:74: request for member `offset' in something not a structure
or union
ntlmauth.c:77: `length' undeclared (first use in this function)
ntlmauth.c:81: `packet' undeclared (first use in this function)
ntlmauth.c:85: warning: control reaches end of non-void function
ntlmauth.c: At top level:
ntlmauth.c:95: parse error before `strhdr'
ntlmauth.c: In function `ntlm_add_to_payload':
ntlmauth.c:99: `payload_length' undeclared (first use in this function)
ntlmauth.c:100: `toadd' undeclared (first use in this function)
ntlmauth.c:100: `toadd_length' undeclared (first use in this function)
ntlmauth.c:102: invalid type argument of `->'
ntlmauth.c:103: invalid type argument of `->'
ntlmauth.c:104: invalid type argument of `->'
ntlmauth.c:104: `base_offset' undeclared (first use in this function)
ntlmauth.c: In function `ntlm_make_challenge':
ntlmauth.c:118: `ntlm_challenge' undeclared (first use in this function)
ntlmauth.c:118: parse error before `ch'
ntlmauth.c:121: `ch' undeclared (first use in this function)
make[1]: *** [ntlmauth.o] Error 1
make[1]: Leaving directory `/DOWN/squid-ntlm/lib'
make: *** [all] Error
1

Regards,

Thomas
Received on Mon Apr 02 2001 - 04:32:37 MDT

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