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

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Thu, 20 Jan 2011 15:44:50 +1300

On 20/01/11 10:07, mbruell wrote:
>
> 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

You have a problem with your libcap package.

Make sure it is a libcap2 library package and matching libcap-dev
headers package version.

You could use the Lucid 3.1.10 source package for an easier build:
   https://launchpad.net/~yadi/+archive/ppa

Amos

-- 
Please be using
   Current Stable Squid 2.7.STABLE9 or 3.1.10
   Beta testers wanted for 3.2.0.4
Received on Thu Jan 20 2011 - 02:44:55 MST

This archive was generated by hypermail 2.2.0 : Sun Jan 23 2011 - 12:00:03 MST