[squid-users] Problem building Squid4

Eliezer Croitoru eliezer at ngtech.co.il
Mon Jan 9 07:35:25 UTC 2017


With hope I will have time I will try to build a tar.xz of latest 4 branch on 16.04.
The last I have built was 4.0.14.

Eliezer

----
Eliezer Croitoru
Linux System Administrator
Mobile: +972-5-28704261
Email: eliezer at ngtech.co.il


-----Original Message-----
From: squid-users [mailto:squid-users-bounces at lists.squid-cache.org] On Behalf Of matg2s
Sent: Sunday, January 8, 2017 11:32 AM
To: squid-users at lists.squid-cache.org
Subject: [squid-users] Problem building Squid4

Hey,

I'm trying to compile Squid 4 (on Ubuntu 14/16) and am getting the following
error:

In file included from ../../src/base/AsyncCall.h:14:0,
                 from ../../src/comm/IoCallback.h:12,
                 from ../../src/comm.h:12,
                 from ../../src/client_side.h:16,
                 from ServerBump.cc:13:
../../src/base/RefCount.h: In instantiation of ‘void RefCount<C>::dereference(const C*) [with C = AnyP::PortCfg]’:
../../src/base/RefCount.h:35:20:   required from ‘RefCount<C>::~RefCount()
[with C = AnyP::PortCfg]’
../../src/servers/Server.h:31:23:   required from here
../../src/base/RefCount.h:96:40: error: invalid use of incomplete type ‘const class AnyP::PortCfg’
         if (tempP_ && tempP_->unlock() == 0)
                                        ^ In file included from ../../src/MasterXaction.h:12:0,
                 from ../../src/CommCalls.h:16,
                 from ../../src/comm.h:13,
                 from ../../src/client_side.h:16,
                 from ServerBump.cc:13:
../../src/anyp/forward.h:17:7: note: forward declaration of ‘class AnyP::PortCfg’
 class PortCfg;
       ^
In file included from ../../src/base/AsyncCall.h:14:0,
                 from ../../src/comm/IoCallback.h:12,
                 from ../../src/comm.h:12,
                 from ../../src/client_side.h:16,
                 from ServerBump.cc:13:
../../src/base/RefCount.h:97:13: error: possible problem detected in invocation of delete operator: [-Werror=delete-incomplete]
             delete tempP_;
             ^
../../src/base/RefCount.h:93:19: error: ‘tempP_’ has incomplete type [-Werror]
         C const (*tempP_) (p_);
                   ^
In file included from ../../src/MasterXaction.h:12:0,
                 from ../../src/CommCalls.h:16,
                 from ../../src/comm.h:13,
                 from ../../src/client_side.h:16,
                 from ServerBump.cc:13:
../../src/anyp/forward.h:17:7: note: forward declaration of ‘class AnyP::PortCfg’
 class PortCfg;
       ^
In file included from ../../src/base/AsyncCall.h:14:0,
                 from ../../src/comm/IoCallback.h:12,
                 from ../../src/comm.h:12,
                 from ../../src/client_side.h:16,
                 from ServerBump.cc:13:
../../src/base/RefCount.h:97:13: note: neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined
             delete tempP_;
             ^
cc1plus: error: unrecognized command line option ‘-Wno-deprecated-register’
[-Werror]

I'm using the following to build:
wget http://www.squid-cache.org/Versions/v4/squid-4.0.17.tar.gz
I used various configurations, from:
./configure --enable-ssl-crtd
to
./configure --sysconfdir=/etc/squid  --mandir=/usr/share/man --with-default-user=proxy  --disable-maintainer-mode --disable-dependency-tracking  --enable-inline  --enable-async-io=8 --enable-storeio="ufs,aufs,diskd"  --enable-removal-policies="lru,heap" 
--enable-poll  --enable-delay-pools  --enable-cache-digests --enable-snmp --enable-htcp  --enable-select  --enable-carp  --with-large-files --enable-underscores  --disable-arch-native  --disable-auth --with-krb5-config=no  --disable-external-acl-helpers  --disable-eui
--with-filedescriptors=65536  --enable-epoll  --enable-linux-netfilter --enable-ssl-crtd --with-openssl 

and then "make" but I'm keep getting compilation errors and the problem seems to lies with sslcrtd. 
I used the following versions:
gcc (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609
g++ (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609
But also other gcc versions (4.8, 4.9 and later) and even clang (3.5) but to no avail.

Any help would be appreciated!
Thanks,
Matt



--
View this message in context: http://squid-web-proxy-cache.1019090.n4.nabble.com/Problem-building-Squid4-tp4681090.html
Sent from the Squid - Users mailing list archive at Nabble.com.
_______________________________________________
squid-users mailing list
squid-users at lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users



More information about the squid-users mailing list