[squid-users] Compiling Squidn problems with bootstrap.sh

From: Stephane Poirey <poirey@dont-contact.us>
Date: Thu, 31 Mar 2005 09:36:58 +0200

Hi all,
I am trying to compile Squid in order to include the patch "Follow
X-Forwarded-For headers" (see http://squid.sourceforge.net/follow_xff/ ).

I tried with versions 2.5-S9 and 3.0-PRE3-20050331 without success, in
both cases It fails when I try to run bootstrap.sh

* Version 3.0-PRE3-20050331
The patch comes from
http://squid.sourceforge.net/cgi-bin/diff/follow_xff.patch and patching is
ok without error.

But bootstrap runs with errors :
Bootstrapping
Bootstrapping lib/libTrie
Bootstrapping lib/cppunit-1.10.0
doc/Makefile.am:16: DOC does not appear in AM_CONDITIONAL
automake failed
Autotool bootstrapping failed. You will need to investigate and correct
before you can develop on this source tree

configure script runs without errors nor warnings...

But when running make :

 g++ -DHAVE_CONFIG_H -I. -I. -I../../config -I../../include
-I../../include -g -O2 -MT AdditionalMessage.lo -MD -MP -MF
.deps/AdditionalMessage.Tpo -c AdditionalMessage.cpp -fPIC -DPIC -o
.libs/AdditionalMessage.o
In file included from ../../include/cppunit/Message.h:4,
                 from ../../include/cppunit/AdditionalMessage.h:4,
                 from AdditionalMessage.cpp:1:
../../include/cppunit/Portability.h:205:5: #error Cannot define
CppUnit::OStringStream.

* Version 2.5-S9 :

The patch comes from
http://squid.sourceforge.net/follow_xff/follow_xff-2.5.patch + there is a
little work to do to adapt the patch to the S9 release.
When running the bootstrap script I get :

WARNING: Cannot find automake version 1.5
Trying automake (GNU automake) 1.9.2
WARNING: Cannot find autoconf version 2.13
Trying autoconf (GNU Autoconf) 2.59
acinclude.m4:10: warning: underquoted definition of
AC_CHECK_SIZEOF_SYSTYPE
  run info '(automake)Extending aclocal'
  or see
http://sources.redhat.com/automake/automake.html#Extending-aclocal
acinclude.m4:49: warning: underquoted definition of AC_CHECK_SYSTYPE
configure.in:1455: warning: AC_CHECK_TYPE: assuming `u_short' is not a
type
autoconf/types.m4:234: AC_CHECK_TYPE is expanded from...
configure.in:1455: the top level
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.
configure.in:1455: warning: AC_CHECK_TYPE: assuming `u_short' is not a
type
autoconf/types.m4:234: AC_CHECK_TYPE is expanded from...
configure.in:1455: the top level
configure.in:1455: warning: AC_CHECK_TYPE: assuming `u_short' is not a
type
autoconf/types.m4:234: AC_CHECK_TYPE is expanded from...
configure.in:1455: the top level
configure.in:1455: warning: AC_CHECK_TYPE: assuming `u_short' is not a
type
autoconf/types.m4:234: AC_CHECK_TYPE is expanded from...
configure.in:1455: the top level
Autotool bootstrapping complete.

After that configure gives many warnings/errors:

checking linux/netfilter_ipv4.h presence... yes
configure: WARNING: linux/netfilter_ipv4.h: present but cannot be compiled
configure: WARNING: linux/netfilter_ipv4.h: check for missing
prerequisite headers?
configure: WARNING: linux/netfilter_ipv4.h: see the Autoconf documentation
configure: WARNING: linux/netfilter_ipv4.h: section "Present But
Cannot Be Compiled"
configure: WARNING: linux/netfilter_ipv4.h: proceeding with the
preprocessor's result
configure: WARNING: linux/netfilter_ipv4.h: in the future, the compiler
will take precedence
configure: WARNING: ## ------------------------------------------ ##
configure: WARNING: ## Report this to the AC_PACKAGE_NAME lists. ##
configure: WARNING: ## ------------------------------------------ ##
...
./configure: line 11588: u_short: command not found

And finally make fails.

Any help will be most welcome.

My OS is Linux Fedora Core 1

Thank you.

Best regards,
     S.P.
Received on Thu Mar 31 2005 - 00:37:03 MST

This archive was generated by hypermail pre-2.1.9 : Fri Apr 01 2005 - 12:00:03 MST