Enviado em 07/08/2018 - 15:30h
Boa tarde,
Estou tentando compilar o Squid através do fonte, porém recebi o retorno abaixo:
IoState.Tpo -c rock/RockIoState.cc -fPIC -DPIC -o rock/.libs/RockIoState.o
In file included from rock/RockIoState.cc:13:0:
../../src/CollapsedForwarding.h:43:17: error: 'template<class> class std::auto_ptr' is deprecated [-Werror=deprecated-declarations]
static std::auto_ptr<Queue> queue; ///< IPC queue
^~~~~~~~
In file included from /usr/include/c++/6/memory:81:0,
from /usr/include/cppunit/extensions/HelperMacros.h:16,
from ../../compat/cppunit.h:16,
from ../../compat/compat.h:131,
from ../../include/squid.h:43,
from rock/RockIoState.cc:11:
/usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
cc1plus: all warnings being treated as errors
Makefile:915: recipe for target 'rock/RockIoState.lo' failed
make[3]: *** [rock/RockIoState.lo] Error 1
make[3]: Leaving directory '/usr/src/squid-3.5.3/src/fs'
Makefile:7101: recipe for target 'install-recursive' failed
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory '/usr/src/squid-3.5.3/src'
Makefile:7564: recipe for target 'install' failed
make[1]: *** [install] Error 2
make[1]: Leaving directory '/usr/src/squid-3.5.3/src'
Makefile:567: recipe for target 'install-recursive' failed
make: *** [install-recursive] Error 1
Obs: Minha distribuição e o Debian, versão 9.4, o Squid que estou tentando compilar e 3.5.3
Paramentos utilizados para compilar e instalar:
./configure --build=x86_64-linux-gnu \
--prefix=/usr \
--includedir=${prefix}/include \
--mandir=${prefix}/share/man \
--infodir=${prefix}/share/info \
--sysconfdir=/etc \
--localstatedir=/var \
--libexecdir=${prefix}/lib/squid3 \
--srcdir=. \
--disable-maintainer-mode \
--disable-dependency-tracking \
--disable-silent-rules \
--datadir=/usr/share/squid3 \
--sysconfdir=/etc/squid3 \
--mandir=/usr/share/man \
--enable-inline \
--disable-arch-native \
--enable-async-io=8 \
--enable-storeio=ufs,aufs,diskd,rock \
--enable-removal-policies=lru,heap \
--enable-delay-pools \
--enable-cache-digests \
--enable-icap-client \
--enable-follow-x-forwarded-for \
--enable-auth-basic=DB,fake,getpwnam,LDAP,NCSA,NIS,PAM,POP3,RADIUS,SASL,SMB \
--enable-auth-digest=file,LDAP \
--enable-auth-negotiate=kerberos,wrapper \
--enable-auth-ntlm=fake,smb_lm \
--enable-external-acl-helpers=file_userip,kerberos_ldap_group,LDAP_group,session,SQL_session,unix_group,wbinfo_group \
--enable-url-rewrite-helpers=fake \
--enable-eui \
--enable-esi \
--enable-icmp \
--enable-zph-qos \
--enable-ecap \
--enable-arp-acl \
--disable-translation \
--with-swapdir=/var/spool/squid3 \
--with-logdir=/var/log/squid3 \
--with-pidfile=/var/run/squid3.pid \
--with-filedescriptors=65536 \
--with-large-files \
--with-default-user=proxy \
--with-openssl \
--enable-ssl \
--with-open-ssl=/etc/ssl/openssl.cnf \
--enable-ssl-crtd \
--enable-linux-netfilter \
'CFLAGS=-g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -Wall' \
'LDFLAGS=-fPIE -pie -Wl,-z,relro -Wl,-z,now' \
'CPPFLAGS=-D_FORTIFY_SOURCE=2' \
'CXXFLAGS=-g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security'
Estou seguindo a sugestão do link abaixo. Durante preparação não ocorreu nenhuma mensagem de erro.
http://www.evence.com.br/blog/como-compilar-o-squid-com-suporte-a-ssl-no-debian/
Fico no aguardo de qualquer ajuda.
Estou tentando compilar o Squid através do fonte, porém recebi o retorno abaixo:
IoState.Tpo -c rock/RockIoState.cc -fPIC -DPIC -o rock/.libs/RockIoState.o
In file included from rock/RockIoState.cc:13:0:
../../src/CollapsedForwarding.h:43:17: error: 'template<class> class std::auto_ptr' is deprecated [-Werror=deprecated-declarations]
static std::auto_ptr<Queue> queue; ///< IPC queue
^~~~~~~~
In file included from /usr/include/c++/6/memory:81:0,
from /usr/include/cppunit/extensions/HelperMacros.h:16,
from ../../compat/cppunit.h:16,
from ../../compat/compat.h:131,
from ../../include/squid.h:43,
from rock/RockIoState.cc:11:
/usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here
template<typename> class auto_ptr;
^~~~~~~~
cc1plus: all warnings being treated as errors
Makefile:915: recipe for target 'rock/RockIoState.lo' failed
make[3]: *** [rock/RockIoState.lo] Error 1
make[3]: Leaving directory '/usr/src/squid-3.5.3/src/fs'
Makefile:7101: recipe for target 'install-recursive' failed
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory '/usr/src/squid-3.5.3/src'
Makefile:7564: recipe for target 'install' failed
make[1]: *** [install] Error 2
make[1]: Leaving directory '/usr/src/squid-3.5.3/src'
Makefile:567: recipe for target 'install-recursive' failed
make: *** [install-recursive] Error 1
Obs: Minha distribuição e o Debian, versão 9.4, o Squid que estou tentando compilar e 3.5.3
Paramentos utilizados para compilar e instalar:
./configure --build=x86_64-linux-gnu \
--prefix=/usr \
--includedir=${prefix}/include \
--mandir=${prefix}/share/man \
--infodir=${prefix}/share/info \
--sysconfdir=/etc \
--localstatedir=/var \
--libexecdir=${prefix}/lib/squid3 \
--srcdir=. \
--disable-maintainer-mode \
--disable-dependency-tracking \
--disable-silent-rules \
--datadir=/usr/share/squid3 \
--sysconfdir=/etc/squid3 \
--mandir=/usr/share/man \
--enable-inline \
--disable-arch-native \
--enable-async-io=8 \
--enable-storeio=ufs,aufs,diskd,rock \
--enable-removal-policies=lru,heap \
--enable-delay-pools \
--enable-cache-digests \
--enable-icap-client \
--enable-follow-x-forwarded-for \
--enable-auth-basic=DB,fake,getpwnam,LDAP,NCSA,NIS,PAM,POP3,RADIUS,SASL,SMB \
--enable-auth-digest=file,LDAP \
--enable-auth-negotiate=kerberos,wrapper \
--enable-auth-ntlm=fake,smb_lm \
--enable-external-acl-helpers=file_userip,kerberos_ldap_group,LDAP_group,session,SQL_session,unix_group,wbinfo_group \
--enable-url-rewrite-helpers=fake \
--enable-eui \
--enable-esi \
--enable-icmp \
--enable-zph-qos \
--enable-ecap \
--enable-arp-acl \
--disable-translation \
--with-swapdir=/var/spool/squid3 \
--with-logdir=/var/log/squid3 \
--with-pidfile=/var/run/squid3.pid \
--with-filedescriptors=65536 \
--with-large-files \
--with-default-user=proxy \
--with-openssl \
--enable-ssl \
--with-open-ssl=/etc/ssl/openssl.cnf \
--enable-ssl-crtd \
--enable-linux-netfilter \
'CFLAGS=-g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -Wall' \
'LDFLAGS=-fPIE -pie -Wl,-z,relro -Wl,-z,now' \
'CPPFLAGS=-D_FORTIFY_SOURCE=2' \
'CXXFLAGS=-g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security'
Estou seguindo a sugestão do link abaixo. Durante preparação não ocorreu nenhuma mensagem de erro.
http://www.evence.com.br/blog/como-compilar-o-squid-com-suporte-a-ssl-no-debian/
Fico no aguardo de qualquer ajuda.