[squid-users] errors on Make squid 3.1.10, ubuntu 10.04.1 server

From: mbruell <mbruell_at_gmail.com>
Date: Wed, 19 Jan 2011 13:07:41 -0800 (PST)

Hi,

I'm trying to build a transparent proxy using squid 3.1.10, iptables 1.4.10,
and a custom kernel based on the standard kernel for ubuntu server 10.04
LTS, but using 2.6.37 source with the following additional kernel configs:

NF_CONNTRACK=m
NETFILTER_TPROXY=m
NETFILTER_XT_MATCH_SOCKET=m
NETFILTER_XT_TARGET_TPROXY=m

To build squid, I run the .configure with the following options:

--enable-linux-netfilter
--prefix=/usr
--localstatedir=/var
--libexecdir=${prefix}/lib/squid
--srcdir=.
--datadir=${prefix}/share/squid
--sysconfdir=/etc/squid
--with-default-user=proxy
--with-logdir=/var/log
--with-pidfile=/var/run/squid.pid

and it appears to work okay (though I can post the config.log if that's
helpful).

However, when I run "make" I see errors. These are last few lines of the
output from make:

        mv -f $depbase.Tpo $depbase.Po
tools.cc: In function ‘void restoreCapabilities(int)’:
tools.cc:1233: error: ‘cap_t’ was not declared in this scope
tools.cc:1233: error: expected ‘;’ before ‘caps’
tools.cc:1235: error: ‘caps’ was not declared in this scope
tools.cc:1235: error: ‘cap_get_proc’ was not declared in this scope
tools.cc:1237: error: ‘caps’ was not declared in this scope
tools.cc:1237: error: ‘cap_init’ was not declared in this scope
tools.cc:1238: error: ‘caps’ was not declared in this scope
tools.cc:1243: error: ‘cap_value_t’ was not declared in this scope
tools.cc:1243: error: expected ‘;’ before ‘cap_list’
tools.cc:1244: error: ‘cap_list’ was not declared in this scope
tools.cc:1253: error: ‘CAP_EFFECTIVE’ was not declared in this scope
tools.cc:1253: error: ‘cap_clear_flag’ was not declared in this scope
tools.cc:1254: error: ‘CAP_SET’ was not declared in this scope
tools.cc:1254: error: ‘cap_set_flag’ was not declared in this scope
tools.cc:1255: error: ‘CAP_PERMITTED’ was not declared in this scope
tools.cc:1257: error: ‘cap_set_proc’ was not declared in this scope
tools.cc:1260: error: ‘cap_free’ was not declared in this scope
make[3]: *** [tools.o] Error 1
make[3]: Leaving directory `/usr/src/squid-3.1.10/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/squid-3.1.10/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/squid-3.1.10/src'
make: *** [all-recursive] Error 1

Thanks for any help you can give.

Marc

-- 
View this message in context: http://squid-web-proxy-cache.1019090.n4.nabble.com/errors-on-Make-squid-3-1-10-ubuntu-10-04-1-server-tp3225450p3225450.html
Sent from the Squid - Users mailing list archive at Nabble.com.
Received on Wed Jan 19 2011 - 21:07:43 MST

This archive was generated by hypermail 2.2.0 : Thu Jan 20 2011 - 12:00:03 MST