hi list,
I will build a debian package to have NTLM + ICAP support. I used the
icap 2.5 branch based on STABLE12 - i got compile errors on debian sarge
with ./configure
--prefix=/usr --exec_prefix=/usr --bindir=/usr/sbin --sbindir=/usr/sbin
--libexecdir=/usr/lib/squid --sysconfdir=/etc/squid
--localstatedir=/var/spool/squid --datadir=/usr/share/squid
--enable-async-io --with-pthreads --enable-storeio=ufs,aufs,diskd,null
--enable-arp-acl --enable-removal-policies=lru,heap --enable-delay-pools
--enable-poll --enable-cache-digests --enable-underscores
--enable-referer-log --enable-useragent-log
--enable-auth=basic,digest,ntlm --enable-carp --enable-icap-support
--with-large-files i386-debian-linux
System: Debian 3.1, Sarge, Kernel 2.6.8-2-386
gcc 3.3.5
ii gcc 3.3.5-3
ii gcc-3.3 3.3.5-13
ii gcc-3.3-base 3.3.5-13
ii libgcc1 3.4.3-13
ii autoconf 2.59a-3
ii autoconf2.13 2.13-54
ii automake1.6 1.6.3-12
gcc -DHAVE_CONFIG_H -DDEFAULT_CONFIG_FILE=\"/etc/squid/squid.conf\" -I.
-I. -I../include -I. -I. -I../include -I../include
-D_FILE_OFFSET_BITS=64 -g -O2 -Wall -D_REENTRANT -c `test -f 'debug.c'
|| echo './'`debug.c
In file included from squid.h:418,
from debug.c:36:
protos.h:1295: warning: parameter names (without types) in function
declaration
debug.c:57: error: syntax error before "va_dcl"
debug.c:58: error: syntax error before '{' token
debug.c:71: error: syntax error before "if"
debug.c:78: warning: type defaults to `int' in declaration of `format'
debug.c:78: warning: initialization makes integer from pointer without a
cast
debug.c:78: error: initializer element is not constant
debug.c:78: warning: data definition has no type or storage class
debug.c:80: error: syntax error before numeric constant
debug.c:81: warning: type defaults to `int' in declaration of `snprintf'
debug.c:81: warning: conflicting types for built-in function `snprintf'
debug.c:82: warning: type defaults to `int' in declaration of `format'
debug.c:82: error: syntax error before ')' token
debug.c:83: warning: type defaults to `int' in declaration of
`_db_print_file'
debug.c:83: warning: parameter names (without types) in function declaration
debug.c:83: error: conflicting types for `_db_print_file'
debug.c:49: error: previous declaration of `_db_print_file'
debug.c:83: warning: data definition has no type or storage class
debug.c:84: warning: type defaults to `int' in declaration of
`_db_print_stderr'
debug.c:84: warning: parameter names (without types) in function declaration
debug.c:84: error: conflicting types for `_db_print_stderr'
debug.c:48: error: previous declaration of `_db_print_stderr'
debug.c:84: warning: data definition has no type or storage class
debug.c:86: warning: type defaults to `int' in declaration of
`_db_print_syslog'
debug.c:86: warning: parameter names (without types) in function declaration
debug.c:86: error: conflicting types for `_db_print_syslog'
debug.c:46: error: previous declaration of `_db_print_syslog'
debug.c:86: warning: data definition has no type or storage class
debug.c:88: warning: type defaults to `int' in declaration of
`__builtin_va_end'
debug.c:88: warning: parameter names (without types) in function declaration
debug.c:88: warning: conflicting types for built-in function
`__builtin_va_end'
debug.c:88: warning: data definition has no type or storage class
debug.c:93: error: syntax error before '}' token
debug.c:97: error: conflicting types for `_db_print_file'
debug.c:83: error: previous declaration of `_db_print_file'
debug.c:110: error: conflicting types for `_db_print_stderr'
debug.c:84: error: previous declaration of `_db_print_stderr'
debug.c:121: error: conflicting types for `_db_print_syslog'
debug.c:86: error: previous declaration of `_db_print_syslog'
debug.c:398: warning: `debugLogTime' defined but not used
debug.c:121: warning: `_db_print_syslog' defined but not used
debug.c:110: warning: `_db_print_stderr' defined but not used
debug.c:97: warning: `_db_print_file' defined but not used
debug.c:61: warning: `f' defined but not used
make[3]: *** [debug.o] Error 1
make[3]: Leaving directory `/home/andre/squid/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/andre/squid/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/andre/squid/src'
make: *** [all-recursive] Error 1
I know this has something todo with varargs.h in
/usr/lib/gcc-lib/i486-linux/3.3.5/include/ but how to solve it?
thx
doehni