Search squid archive

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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Okey here is my dirty solution (for release 3) , it works but I don't know 
exactly why...

1. Extract the sources
2. Execute the patch file
3. Execute bootstrap.sh
4. After failure, execute autoreconf -fvi
5. Execute ./configure --enable-follow-x-forwarded-for
6. Make

Now everything works just fine, I can get the source IP in the squid 
access.log although using dansguardian in front of squeed.

Best regards,
     S.P.

-- 
Stephane Poirey - UN ESCWA ASD/SSS/ITU - Room F219
Tel : +961.1.978.224 (ext. 1224) 


Stephane Poirey/ESCWA/UNO wrote on 03/31/2005 10:36:58 AM:

> 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.

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux