Dificuldade compilar Squid 3.5.3 [RESOLVIDO]

1. Dificuldade compilar Squid 3.5.3 [RESOLVIDO]

EduardoAlvarenga
ealvarenga_f

(usa Debian)

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.


  


2. Re: Dificuldade compilar Squid 3.5.3 [RESOLVIDO]

Paulo Bonfanti
pbonfanti

(usa Debian)

Enviado em 07/08/2018 - 15:46h

Faz tempo que eu não compilo nada no linux mas, a opção:
cc1plus: all warnings being treated as errors

Indica que as suas flags tratam todo warning como erro e aborta a compilação, caso você remover a flag:
-Werror
É possível que o source compile, mas esses warnings são falhas de programação e não dá pra saber que tipo de anomalia isso pode causar, talvez nem funcione depois de compilado.



3. Re: Dificuldade compilar Squid 3.5.3

Paulo Bonfanti
pbonfanti

(usa Debian)

Enviado em 07/08/2018 - 15:54h

ealvarenga_f escreveu:

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.


Outra alternativa é remover o sistema de arquivos rock da sua compilação, já que a maioria dos erros foram gerados no codigo dele...
--enable-storeio=ufs,aufs,diskd \
Você não precisa compilar com recursos que você não vai utilizar, e realmente é bem melhor compilar sem codigo bugado que só pode lhe causar problema e nenhum benefício.


4. Re: Dificuldade compilar Squid 3.5.3 [RESOLVIDO]

EduardoAlvarenga
ealvarenga_f

(usa Debian)

Enviado em 07/08/2018 - 17:07h

Fiz a mudança, porém apresentou uma mensagem informando que não é possivel gerar o executavel, mas não informa qual o motivo.
Removi somente essas variaveis abaixo:
--enable-storeio=ufs,aufs,diskd,rock
'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'


Deixei assim:
--enable-storeio=ufs,aufs,diskd
'CFLAGS=-g -O2 -fPIE -fstack-protector-strong -Wformat=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=format-security'

Tentei também assim:
Deixei assim:
--enable-storeio=ufs,aufs,diskd
'CFLAGS=-g -O2 -fPIE -fstack-protector-strong -Wformat=format-security' 'LDFLAGS=-fPIE -pie -Wl,-z,relro -Wl,-z,now' 'CPPFLAGS=-D_FORTIFY_SOURCE=2' 'CXXFLAGS=-g -O2 -fPIE -fstack-protector-strong -Wformat=format-security'

Mas apresentou a mensagem abaixo:
./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 --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=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=format-security'
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether UID '0' is supported by ustar format... yes
checking whether GID '0' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/usr/src/squid-3.5.3':
configure: error: C compiler cannot create executables
See `config.log' for more details


Parece que./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 --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=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=format-security'
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether UID '0' is supported by ustar format... yes
checking whether GID '0' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/usr/src/squid-3.5.3':
configure: error: C compiler cannot create executables
See `config.log' for more details

Ele diz que não e possível compilar e criar o executável, alguma sugestão? estou sem noção do que pode ser isso. Como disso, compilar coisa no Linux ainda estou engatinhando mesmo.

Agradeço pela ajuda anterior e se puder me dar mais alguma dica, fico feliz.


5. Re: Dificuldade compilar Squid 3.5.3 [RESOLVIDO]

Matheus
pylm

(usa Gentoo)

Enviado em 07/08/2018 - 17:16h

Dá uma olhada se o binutils ta instalado, na duvida instala o build-essential


6. Re: Dificuldade compilar Squid 3.5.3 [RESOLVIDO]

EduardoAlvarenga
ealvarenga_f

(usa Debian)

Enviado em 07/08/2018 - 17:58h

Esta progredindo, a biblioteca já tinha, então instalei mais:
apt-get install apt-build – ferramenta para compilação do squid
# apt-get build-dep squid3
# apt-get install libssl-dev
# apt-build update

Assim consegui rodar o ./configure acima, porém quando rodei o make, apresentou a mensagem abaixo:
In file included from ../../src/anyp/PortCfg.h:18:0,
from ../../src/AccessLogEntry.h:12,
from ../../src/acl/FilledChecklist.h:12,
from ../../src/acl/Strategised.h:13,
from ../../src/acl/AtStep.h:14,
from AtStep.cc:13:
../../src/ssl/gadgets.h:83:45: error: 'CRYPTO_LOCK_X509' was not declared in this scope
typedef LockingPointer<X509, X509_free_cpp, CRYPTO_LOCK_X509> X509_Pointer;
^~~~~~~~~~~~~~~~
../../src/ssl/gadgets.h:83:61: error: template argument 3 is invalid
typedef LockingPointer<X509, X509_free_cpp, CRYPTO_LOCK_X509> X509_Pointer;
^
../../src/ssl/gadgets.h:89:53: error: 'CRYPTO_LOCK_EVP_PKEY' was not declared in this scope
typedef LockingPointer<EVP_PKEY, EVP_PKEY_free_cpp, CRYPTO_LOCK_EVP_PKEY> EVP_PKEY_Pointer;
^~~~~~~~~~~~~~~~~~~~
../../src/ssl/gadgets.h:89:73: error: template argument 3 is invalid
typedef LockingPointer<EVP_PKEY, EVP_PKEY_free_cpp, CRYPTO_LOCK_EVP_PKEY> EVP_PKEY_Pointer;
^
Makefile:963: recipe for target 'AtStep.lo' failed
make[3]: *** [AtStep.lo] Error 1
make[3]: Leaving directory '/usr/src/squid-3.5.3/src/acl'
Makefile:7101: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/usr/src/squid-3.5.3/src'
Makefile:5989: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/usr/src/squid-3.5.3/src'
Makefile:567: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1

Puderem me dar mais algumas dicas, fico agradecido.


7. Re: Dificuldade compilar Squid 3.5.3 [RESOLVIDO]

Paulo Bonfanti
pbonfanti

(usa Debian)

Enviado em 07/08/2018 - 23:27h

Instala tambem o "libcrypto++-dev " , pois o erro de compilação que você tem agora parece ser referir a isso.


8. Re: Dificuldade compilar Squid 3.5.3 [RESOLVIDO]

EduardoAlvarenga
ealvarenga_f

(usa Debian)

Enviado em 08/08/2018 - 11:19h

Instalei a lib, conforme orientação, ocorreu sem nenhuma mensagem de erro, porém ao compilar o Squid, apresentou mesma mensagem.

Quando executo ./configure, não apresenta nenhuma mensagem de erro; isso somente ocorre quando vou executar o make, que é o segundo passo.

Ilustrando abaixo:
Passo 1
# ./configure + paramentros - Ocorre sem nenhum erro;
# make - Onde apresenta os erros

Mensagem de erro:
../../src/ssl/gadgets.h:83:45: error: 'CRYPTO_LOCK_X509' was not declared in this scope
typedef LockingPointer<X509, X509_free_cpp, CRYPTO_LOCK_X509> X509_Pointer;
^~~~~~~~~~~~~~~~
../../src/ssl/gadgets.h:83:61: error: template argument 3 is invalid
typedef LockingPointer<X509, X509_free_cpp, CRYPTO_LOCK_X509> X509_Pointer;
^
../../src/ssl/gadgets.h:89:53: error: 'CRYPTO_LOCK_EVP_PKEY' was not declared in this scope
typedef LockingPointer<EVP_PKEY, EVP_PKEY_free_cpp, CRYPTO_LOCK_EVP_PKEY> EVP_PKEY_Pointer;
^~~~~~~~~~~~~~~~~~~~
../../src/ssl/gadgets.h:89:73: error: template argument 3 is invalid
typedef LockingPointer<EVP_PKEY, EVP_PKEY_free_cpp, CRYPTO_LOCK_EVP_PKEY> EVP_PKEY_Pointer;
^
Makefile:963: recipe for target 'AtStep.lo' failed
make[3]: *** [AtStep.lo] Error 1
make[3]: Leaving directory '/usr/src/squid-3.5.3/src/acl'
Makefile:7101: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/usr/src/squid-3.5.3/src'
Makefile:5989: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/usr/src/squid-3.5.3/src'
Makefile:567: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1

Lembrando, estou compilando o Squid 3.5.3


9. Re: Dificuldade compilar Squid 3.5.3 [RESOLVIDO]

Paulo Bonfanti
pbonfanti

(usa Debian)

Enviado em 08/08/2018 - 19:56h

É possível que haja um problema de versão, essa mensagem surgiu na lista do squid-users:

Squid-3 on Debian 9+ requires the libssl1.0-dev package instead of the normal libssl-dev package.

http://lists.squid-cache.org/pipermail/squid-users/2018-January/017446.html

Talvez seja o caso de tentar mudar o pacote e tentar de novo.


10. Re: Dificuldade compilar Squid 3.5.3 [RESOLVIDO]

Paulo Bonfanti
pbonfanti

(usa Debian)

Enviado em 09/08/2018 - 00:01h

Eu tentei compilar junto com a libssl1-dev e passou da fase da crypto, mas causou os erros:
../../src/CollapsedForwarding.h:43:17: error: 'template<class>' class std::auto_ ptr is deprecated [-Werror=deprecated-declarations]

../../src/DiskIO/IpcIo/IpcIoFile.h:142:17: error: 'template<class>' class std::auto_ ptr is deprecated [-Werror=deprecated-declarations]

Aí eu adicionei no CXXFLAGS : -Wno-deprecate-declarations
E ele passou desse erro para a proxima etapa:
bio.cc:804:53: error: 'SSLv3_method' was not declared in this scope
const SSL_METHOD *method = SSLv3_method();
E eu realmente não sei como passar disso...
Esse é o configure completo que usei, lembrando que usei a libssl1-dev
./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 \
--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 -Wno-deprecated-declarations'



11. Dificuldade compilar Squid 3.5.3 - Resolvido

EduardoAlvarenga
ealvarenga_f

(usa Debian)

Enviado em 09/08/2018 - 15:24h

Valeu pbonfanti e a todos os demais envolvidos.

instalei todas as dependencias, inclusive as que me orientaram, todas, inclusive a libssl1.0-dev apontado por pbonfanti.

Para a versão 3.5.3 do squid, mesmo com tudo feito apresenta o erro abaixo:
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:920: 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 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/usr/src/squid-3.5.3/src'
Makefile:5989: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/usr/src/squid-3.5.3/src'
Makefile:567: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1


O mesmo ocorria com a versão 3.5.23, dava as mesmas mensagens de erro, porém após instalar a libssl1.0-dev, não consegui compilar o squid 3.5.3, porém a versão 3.5.23 foi compilado com sucesso.

make[2]: Leaving directory '/usr/src/squid3-3.5.23/tools'
make[1]: Leaving directory '/usr/src/squid3-3.5.23/tools'
Making all in test-suite
make[1]: Entering directory '/usr/src/squid3-3.5.23/test-suite'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/usr/src/squid3-3.5.23/test-suite'
make[1]: Entering directory '/usr/src/squid3-3.5.23'
make[1]: Nothing to be done for 'all-am'.
make[1]: Leaving directory '/usr/src/squid3-3.5.23'

Obrigado a todos.






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts