[squid-users] x-forwarded-for patch (again)
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
RE: [squid-users] x-forwarded-for patch (again)
I don't see anything with regard to the x-forward-patch being included in STABLE12. The diff file does not mention anything either. Is this a distro specific thing? From: [EMAIL PROTECTED] [EMAIL PROTECTED] To: squid-users@squid-cache.org Subject: [squid-users] x-forwarded-for patch (again) Date: Sun, 16 Oct 2005 21:31:40 + 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
Re: [squid-users] x-forwarded-for patch (again)
On Sun, 16 Oct 2005, [EMAIL PROTECTED] wrote: 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 You need to fix this before continuing. Squid-2.5 requires the above autotool versions. Regards Henrik
RE: [squid-users] x-forwarded-for patch (again)
Quoting Lucia Di Occhi [EMAIL PROTECTED]: I don't see anything with regard to the x-forward-patch being included in STABLE12. The diff file does not mention anything either. Is this a distro specific thing? Lucia: Squid has several enhancement options that may or may not fit any particular user, and most (if not all) of them are hosted on a dedicated squid projects page that used to be at squid.sourceforge.net using any one of these enhancements to squid may provide additional functionality that the main squid package is lacking. check it out. Rance
RE: [squid-users] x-forwarded-for patch (again)
On Sun, 16 Oct 2005, Lucia Di Occhi wrote: I don't see anything with regard to the x-forward-patch being included in STABLE12. It's not. The diff file does not mention anything either. Is this a distro specific thing? What is talked about is the Follow X-Forwarded-For headers patch available from devel.squid-cache.org. The author of this patch kindly provided a Squid-2.5 version some years back, but it has not been maintained for more current Squid-2.5 versions (last patch update was 2003/11/23) and manual editing is now required to apply the patch to the current Squid releases. Regards Henrik
RE: [squid-users] x-forwarded-for patch (again)
On Sun, 16 Oct 2005, [EMAIL PROTECTED] wrote: Squid has several enhancement options that may or may not fit any particular user, and most (if not all) of them are hosted on a dedicated squid projects page that used to be at squid.sourceforge.net Uset to? That page is very much still there.. but nowdays perhaps more commonly known as devel.squid-cache.org. Regards Henrik