[squid-users] Problem compiling rproxy

From: Roberto Puertas Lorenzo <rpl55@dont-contact.us>
Date: Tue, 17 Aug 2004 16:53:43 +0200

I was unable to patch the sources with the rproxy.patch so I checked out
the cvs 'rproxy' branch but I'm unable to compile that too under Solaris 8.

./bootstrap.sh gives me some warnings:

WARNING: Cannot find automake version 1.6 1.5
Trying automake (GNU automake) 1.8b
WARNING: Cannot find autoconf version 2.53 2.52
Trying autoconf (GNU Autoconf) 2.59
acinclude.m4:3: warning: underquoted definition of SQUID_DEFAULT_INCLUDES
  run info '(automake)Extending aclocal'
  or see
http://sources.redhat.com/automake/automake.html#Extending%20aclocal
acinclude.m4:25: warning: underquoted definition of
SQUID_DEFAULT_SIZEOF_INCLUDES
acinclude.m4:31: warning: underquoted definition of SQUID_BSDNET_INCLUDES
autoheader: WARNING: Using auxiliary files such as `acconfig.h',
`config.h.bot'
autoheader: WARNING: and `config.h.top', to define templates for
`config.h.in'
autoheader: WARNING: is deprecated and discouraged.
autoheader:
autoheader: WARNING: Using the third argument of `AC_DEFINE' and
autoheader: WARNING: `AC_DEFINE_UNQUOTED' allows to define a template
without
autoheader: WARNING: `acconfig.h':
autoheader:
autoheader: WARNING: AC_DEFINE([NEED_FUNC_MAIN], 1,
autoheader: [Define if a function `main' is needed.])
autoheader:
autoheader: WARNING: More sophisticated templates can also be produced,
see the
autoheader: WARNING: documentation.
autoheader: warning: missing template: AUTH_ON_ACCELERATION
autoheader: Use AC_DEFINE([AUTH_ON_ACCELERATION], [], [Description])
Autotool bootstrapping complete.

./compile doesn't return any erro/warning 'make' fails:

Making all in lib
make[1]: Entering directory `/tmp/rproxy/squid-pru/lib'
if gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I../include
-g -O2 -Wall -MT MemPool.o -MD -MP -MF ".deps/MemPool.Tpo" -c -o
MemPool.o MemPool.c; \
then mv -f ".deps/MemPool.Tpo" ".deps/MemPool.Po"; else rm -f
".deps/MemPool.Tpo"; exit 1; fi
In file included from MemPool.c:83:
../include/config.h:196:2: #error NO 16 bit signed type available
In file included from MemPool.c:83:
../include/config.h:205: error: parse error before "u_int16_t"
../include/config.h:205: warning: type defaults to `int' in declaration
of `u_int16_t'
../include/config.h:205: warning: data definition has no type or storage
class
../include/config.h:216:2: #error NO 32 bit signed type available
../include/config.h:225: error: parse error before "u_int32_t"
../include/config.h:225: warning: type defaults to `int' in declaration
of `u_int32_t'
../include/config.h:225: warning: data definition has no type or storage
class
../include/config.h:238:2: #error NO 64 bit signed type available
../include/config.h:247: error: parse error before "u_int64_t"
../include/config.h:247: warning: type defaults to `int' in declaration
of `u_int64_t'
../include/config.h:247: warning: data definition has no type or storage
class
../include/config.h:253: error: conflicting types for `pid_t'
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.3.2/include/sys/types.h:450:
error: previous declaration of `pid_t'
../include/config.h:257: warning: redefinition of `size_t'
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.3.2/include/sys/types.h:464:
warning: `size_t' previously declared here
../include/config.h:261: warning: redefinition of `ssize_t'
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.3.2/include/sys/types.h:475:
warning: `ssize_t' previously declared here
../include/config.h:265: error: conflicting types for `off_t'
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.3.2/include/sys/types.h:149:
error: previous declaration of `off_t'
../include/config.h:269: error: conflicting types for `mode_t'
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.3.2/include/sys/types.h:344:
error: previous declaration of `mode_t'
../include/config.h:273: error: conflicting types for `fd_mask'
/usr/include/sys/select.h:45: error: previous declaration of `fd_mask'
In file included from /usr/include/netdb.h:98,
                 from ../include/util.h:51,
                 from ../include/MemPool.h:7,
                 from MemPool.c:93:
/usr/include/sys/socket.h:61: error: conflicting types for `socklen_t'
../include/config.h:277: error: previous declaration of `socklen_t'
make[1]: *** [MemPool.o] Error 1
make[1]: Leaving directory `/tmp/rproxy/squid-pru/lib'
make: *** [all-recursive] Error 1

I've tried several combinations and everyone of then gives me the same
results. Compiling the main source (without rproxy) works flawlessly.

Thanks in advance. (Sorry about my english).
Received on Tue Aug 17 2004 - 08:51:05 MDT

This archive was generated by hypermail pre-2.1.9 : Wed Sep 01 2004 - 12:00:02 MDT