<div dir="ltr">When trying to compile squid 4.0.7 I have the following errors (see bellow)<div><br></div><div>I am using gcc 5.2.1 compiler and libecap 1.0.0</div><div>I compile on Ubuntu 15.10</div><div><br></div><div>What am I missing here ? Please help</div><div><br></div><div><br></div><div><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">libtool: compile:  g++ -DHAVE_CONFIG_H -I../.. -I../../include -I../../lib -I../../src -I../../include -I../../libltdl -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Wshadow -Werror -Wno-deprecated-register -pipe -D_REENTRANT -m64 -march=native -std=c++11 -c ServerBump.cc  -fPIC -DPIC -o .libs/ServerBump.o</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">In file included from <b>../../src/base/AsyncCall.h:14:0</b>,</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">                 from <b>../../src/comm/IoCallback.h:12</b>,</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">                 from <b>../../src/comm.h:12</b>,</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">                 from <b>../../src/client_side.h:16</b>,</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">                 from <b>ServerBump.cc:13</b>:</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">../../src/base/RefCount.h: In instantiation of ‘<b>void RefCount<C>::dereference(const C*) [with C = AnyP::PortCfg]</b>’:</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><b>../../src/base/RefCount.h:35:20:</b>   required from ‘<b>RefCount<C>::~RefCount() [with C = AnyP::PortCfg]</b>’</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><b>../../src/servers/Server.h:31:23:</b>   required from here</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><b>../../src/base/RefCount.h:96:40:</b> <span style="color:rgb(195,55,32)"><b>error: </b></span>invalid use of incomplete type ‘<b>const class AnyP::PortCfg</b>’</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">         if (tempP_ && tempP_->unlock() == 0)</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(52,189,38)"><b>                                        ^</b></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">In file included from <b>../../src/MasterXaction.h:12:0</b>,</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">                 from <b>../../src/CommCalls.h:16</b>,</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">                 from <b>../../src/comm.h:13</b>,</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">                 from <b>../../src/client_side.h:16</b>,</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">                 from <b>ServerBump.cc:13</b>:</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><b>../../src/anyp/forward.h:17:7:</b> <span style="color:rgb(52,187,199)"><b>note: </b></span>forward declaration of ‘<b>class AnyP::PortCfg</b>’</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"> class PortCfg;</p><div><br></div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 4, 2016 at 10:24 AM, Alex Rousskov <span dir="ltr"><<a href="mailto:rousskov@measurement-factory.com" target="_blank">rousskov@measurement-factory.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 03/04/2016 09:54 AM, bma wrote:<br>
<br>
> I want to start evaluating squid 4 beta version.<br>
> Is there a tutorial or a step by step document I can use to setup a proxy<br>
> that would do the following:<br>
> - intercept traffic (transparent proxy)<br>
> - handles HTTP and HTTPS (handles gracefully sites that cannot be 'bumped')<br>
> - attach an ICAP server.<br>
<br>
</span>Sadly, no, there is no such tutorial or a step by step document,<br>
especially when it comes to bumping with its highly environment-specific<br>
definitions of "can be bumped" and the timing of applying that definition.<br>
<br>
The wiki has working examples hiding among the noise of incorrect advice<br>
and outdated or partial information.<br>
<br>
When you make your setup work, please consider writing a good tutorial.<br>
<br>
<br>
Thank you,<br>
<br>
Alex.<br>
<br>
</blockquote></div><br></div>