[squid-users] Problem building Squid4

matg2s matg2s at gmail.com
Sun Jan 8 09:31:51 UTC 2017


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.


More information about the squid-users mailing list