[squid-users] x-forwarded-for patch (again)

From: <rance@dont-contact.us>
Date: Sun, 16 Oct 2005 21:31:40 +0000

After following some instrucions on this list I downloaded
squid-2.5.STABLE9 and patched with the x_forwarded_for patch and
nothing works.

here is a summary of what I did:

downloaded and untarred STABLE9

Stefano (the squid package maintainer for squid) graciously provided me
the ./configure statement he uses to build the slackware package and
Ive enclosed that ./configure line below for reference.

./configure --bindir=/usr/sbin --sysconfdir=/etc/squid
--datadir=/etc/squid --libexecdir=/usr/libexec/squid
--localstatedir=/var/log/squid --enable-removal-policies="lru heap"
--enable-auth="basic ntlm digest" --enable-basic-auth-helpers="NCSA
MSNT SMB winbind YP" --enable-digest-auth-helpers=password
--enable-external-acl-helpers="ip_user unix_group wbinfo_group
winbind_group" --enable-ntlm-auth-helpers="SMB winbind"
--enable-async-io --with-pthreads --with-aio --enable-storeio="ufs null
aufs coss" --enable-delay-pools --enable-snmp --enable-ssl --enable-icmp
--enable-cache-digests --disable-wccp --disable-http-violations
--disable-ident-lookups --enable-useragent-log --enable-arp-acl
--prefix=/usr

(please excuse the wordwrap)

STABLE9 configure works fine, and so does make all (I didnt make install)

I patched the source with x_forwarded_for patch and manually applied
the 2 failed hunks src/structs.h

as instructed I ran ./bootstrap.sh and I get this output and error message:

WARNING: Cannot find automake version 1.5
Trying automake (GNU automake) 1.9.5
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
/usr/share/aclocal/pkg.m4:5: warning: underquoted definition of
PKG_CHECK_MODULES
/usr/share/aclocal/libIDL.m4:6: warning: underquoted definition of
AM_PATH_LIBIDL
/usr/share/aclocal/imlib.m4:9: warning: underquoted definition of
AM_PATH_IMLIB
/usr/share/aclocal/imlib.m4:167: warning: underquoted definition of
AM_PATH_GDK_IMLIB
/usr/share/aclocal/gtk.m4:7: warning: underquoted definition of AM_PATH_GTK
/usr/share/aclocal/glib.m4:8: warning: underquoted definition of AM_PATH_GLIB
/usr/share/aclocal/gdk-pixbuf.m4:12: warning: underquoted definition of
AM_PATH_GDK_PIXBUF
/usr/share/aclocal/audiofile.m4:12: warning: underquoted definition of
AM_PATH_AUDIOFILE
/usr/share/aclocal/aalib.m4:12: warning: underquoted definition of
AM_PATH_AALIB
/usr/share/aclocal/ORBit.m4:4: warning: underquoted definition of
AM_PATH_ORBIT
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
configure.in:2214: error: do not use LIBOBJS directly, use AC_LIBOBJ
(see section `AC_LIBOBJ vs LIBOBJS'
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
autoconf failed
Autotool bootstrapping failed. You will need to investigate and correct
before you can develop on this source tree

As you can see the bootstrap of the new patch fails

if I run /bootstrap.sh again then the output is the same as above but
somehow the last sentence about the failure is gone, and all seems to
have worked.

however if you try to make all you are going to get a make warning
stating that the linux_netfilter was found but that it couldnt be
compiled against and it wont be installed.

could someone please tell me what is going on here?

Stefano has graciously offered to make the x_forwarded_for patch a part
of the slackware package from STABLE12 on

I would suggest that if you are on another distro that you contact your
package maintainer and ask that the x_forwarded_for patch be available
in your distros package.

however, not wanting to wait till STABLE12 is released, can someone
tell what I am doing wrong from the above?

Thanks

Rance Hall
Received on Sun Oct 16 2005 - 15:31:50 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Nov 01 2005 - 12:00:04 MST