Search squid archive

Re: errors on Make squid 3.1.10, ubuntu 10.04.1 server

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

 



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


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

  Powered by Linux