[squid-users] Squid2.5Stable9 Compile error

From: Leo <hendry_leo@dont-contact.us>
Date: Mon, 25 Apr 2005 13:10:23 +0700

I have problem compiling Squid 2.5Stable9 with follow_x_forwarded patch.
patching is ok. then bootstraping give me alot of warning and then failed,
complaining about AC_LIBOBJ vs LIBOBJS
i edit configure.in on line 2214
        AC_LIBOBJ(inet_ntoa)
        #LIBOBJS="$LIBOBJS inet_ntoa.o" --> (original line)

after that bootstrap.sh is ok
"./configure --enable-follow-x-forwarded-for" is ok
then make give me this error

source='debug.c' object='debug.o' libtool=no \
depfile='.deps/debug.Po' tmpdepfile='.deps/debug.TPo' \
depmode=gcc3 /bin/sh ../cfgaux/depcomp \
gcc -DHAVE_CONFIG_H -DDEFAULT_CONFIG_FILE=\"/usr/local/squid/etc/squid.conf\
" -I. -I. -I../include -I. -I. -I../include -I../include -g -O2 -Wall -c
`test -f debug.c || echo './'`debug.c
In file included from squid.h:410,
                 from debug.c:36:
protos.h:1296: warning: parameter names (without types) in function
declaration
debug.c:54: error: syntax error before "va_dcl"
debug.c:55: error: syntax error before '{' token
debug.c:68: error: syntax error before "if"
debug.c:75: warning: type defaults to `int' in declaration of `format'
debug.c:75: warning: initialization makes integer from pointer without a
cast
debug.c:75: error: initializer element is not constant
debug.c:75: warning: data definition has no type or storage class
debug.c:77: error: syntax error before numeric constant
debug.c:78: warning: type defaults to `int' in declaration of `snprintf'
debug.c:78: warning: conflicting types for built-in function `snprintf'
debug.c:79: warning: type defaults to `int' in declaration of `format'
debug.c:79: error: syntax error before ')' token
debug.c:80: warning: type defaults to `int' in declaration of
`_db_print_file'
debug.c:80: warning: parameter names (without types) in function declaration
debug.c:80: error: conflicting types for `_db_print_file'
debug.c:46: error: previous declaration of `_db_print_file'
debug.c:80: warning: data definition has no type or storage class
debug.c:81: warning: type defaults to `int' in declaration of
`_db_print_stderr'
debug.c:81: warning: parameter names (without types) in function declaration
debug.c:81: error: conflicting types for `_db_print_stderr'
debug.c:45: error: previous declaration of `_db_print_stderr'
debug.c:81: warning: data definition has no type or storage class
debug.c:83: warning: type defaults to `int' in declaration of
`_db_print_syslog'
debug.c:83: warning: parameter names (without types) in function declaration
debug.c:83: error: conflicting types for `_db_print_syslog'
debug.c:43: error: previous declaration of `_db_print_syslog'
debug.c:83: warning: data definition has no type or storage class
debug.c:85: warning: type defaults to `int' in declaration of
`__builtin_va_end'
debug.c:85: warning: parameter names (without types) in function declaration
debug.c:85: warning: conflicting types for built-in function
`__builtin_va_end'
debug.c:85: warning: data definition has no type or storage class
debug.c:90: error: syntax error before '}' token
debug.c:94: error: conflicting types for `_db_print_file'
debug.c:80: error: previous declaration of `_db_print_file'
debug.c:107: error: conflicting types for `_db_print_stderr'
debug.c:81: error: previous declaration of `_db_print_stderr'
debug.c:118: error: conflicting types for `_db_print_syslog'
debug.c:83: error: previous declaration of `_db_print_syslog'
debug.c:253: warning: `debugLogTime' defined but not used
debug.c:118: warning: `_db_print_syslog' defined but not used
debug.c:107: warning: `_db_print_stderr' defined but not used
debug.c:94: warning: `_db_print_file' defined but not used
debug.c:58: warning: `f' defined but not used
make[3]: *** [debug.o] Error 1
make[3]: Leaving directory `/usr/src/squid-2.5.STABLE9/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/squid-2.5.STABLE9/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/squid-2.5.STABLE9/src'
make: *** [all-recursive] Error 1

any suggestion??
my system is
OS: Clarkconnect3 Home edition
gcc (GCC) 3.4.3
autoconf (GNU Autoconf) 2.57
automake (GNU automake) 1.6.3 (I used 1.8.3-1 before)
GNU Make 3.80
Received on Mon Apr 25 2005 - 00:12:55 MDT

This archive was generated by hypermail pre-2.1.9 : Sun May 01 2005 - 12:00:04 MDT