Search squid archive

Re: Problem building Squid4

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

 



On 01/08/2017 02:31 AM, matg2s wrote:

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

Builds OK here with similar SSL-related ./configure options. Could be an
OpenSSL library version incompatibility or a similar problem. If you are
building with OpenSSL v1.0, then I suggest posting complete build log or
at least your "./configure ..." output. Otherwise, try that version
instead of OpenSSL v1.1.

Alex.


> 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@xxxxxxxxxxxxxxxxxxxxx
> http://lists.squid-cache.org/listinfo/squid-users
> 

_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users




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

  Powered by Linux