Squid + HTB Tools - Cache indo a FULL!

Esse artigo ensina como aplicar o patch ZPH no Squid, tendo a finalidade de deixar passando tudo que está no cache a full na rede, ou seja, controla a banda normalmente, mas quando se trata de tudo que está em cache, vai passar sem o controle de banda.

[ Hits: 82.870 ]

Por: Emanuel Magalhães Cunha em 22/10/2006


Squid e o patch ZPH



Na shell crie ou vá para uma pasta temporária. Se essa for sua escolha, digite:

# wget http://200.141.162.221/squid-2.5.STABLE7-ToS_Hit.patch
# wget http://www.squid-cache.org/Versions/v2/2.5/squid-2.5.STABLE7.tar.gz

Feito isso e tendo os arquivos armazenados no HD, vamos descompactar o Squid digitando:

# tar zxfv squid-2.5.STABLE7.tar.gz

Depois de descompactar o Squid, vamos aplicar o PATCH usando a seguinte linha de comando:

# cd squid-2.5.STABLE7.tar.gz
# patch -p1 < ../squid-2.5.STABLE7-ToS_Hit.patch


Vai aparecer uma mensagem com a seguinte informação:

patching file src/cache_cf.c
patching file src/cf.data.pre
patching file src/client_side.c
patching file src/structs.h

Isso quer dizer que o PATCH foi aplicado perfeitamente em seu Squid. Agora vamos configurar e instalar seu Squid.

OBS: Remova antes o seu Squid atual e não esqueça de matar o processo do mesmo.

Dentro da pasta onde estão os arquivos do Squid, faça a seguinte linha de comando:

# ./configure \
--exec_prefix=/usr \
--localstatedir=/var \
--sysconfdir=/etc/squid \
--enable-poll \
--enable-snmp \
--enable-removal-policies=heap,lru \
--enable-storeio=aufs,coss,diskd,null,ufs \
--enable-ssl \
--enable-delay-pools \
--enable-linux-netfilter \
--enable-useragent-log \
--enable-referer-log \
--disable-dependency-tracking \
--enable-cachemgr-hostname=localhost \
--disable-ident-lookups \
--enable-truncate


Essa linha você já deve saber para que serve né?!

O próximo passo é digitar "make", feito isso digita-se "make install".

Pronto, seu Squid já está instalado com o PATCH do ZPH, o próximo passo é instalar o HTB TOOLS.

Página anterior     Próxima página

Páginas do artigo
   1. Introdução
   2. Squid e o patch ZPH
   3. Instalando o HTB
Outros artigos deste autor
Nenhum artigo encontrado.
Leitura recomendada

Controle de acesso à internet com Squid

Squid 3.1.5 com suporte a TPROXY (sem bridge)

Squid Plus 2007 para Debian 4

Squid3 no Debian 8 (Jessie) com suporte a filtro de páginas HTTPS

OpenBSD Proxy - Squid, SquidGuard, SquidClamAV e AdZapper

  
Comentários
[1] Comentário enviado por roberva em 23/10/2006 - 16:08h

Muito bom Artigo cara, eu estava a seculos atras desse patch!
velho só preciso dos links q estes estão down :(

Esse patch funciona com o 2.6.STABLE4 ???
valeu irmao!

[2] Comentário enviado por marceloespindola em 03/11/2006 - 10:22h

amigo infelizmente o link que aponta para ero Penalty Hit patch for SQUID (ZPH) não está funcionando e já tentei procurar pelo google e todos eles também não estão funcionando, será vc conhece uma outra fonte para baixar este arquivo?

[3] Comentário enviado por tianguapontocom em 03/11/2006 - 19:37h

veio vi esse erro faz dias, so q não achei a opcao de corrigir
mas o link correto e:
http://200.141.162.221/squid-2.5.STABLE7-zph.patch

[4] Comentário enviado por tianguapontocom em 03/11/2006 - 19:40h

cara mudando de mel pra kbaca to com mo problemao aki
to com um cliente que quer por que quer sair do windows para o linux dai o problema e o seguinte:
o cara faz gravacao de DVDinstlei uns soft usando o wine o problema e, como configurar o wine para reconhecer as unidades de CD como CD pq fazer link simbolico nao rola pq os soft so funfa com o sistema reconhecendo como unidade de CD.
se vc tiver alguma dica veio da o tok ai

[5] Comentário enviado por tianguapontocom em 03/11/2006 - 19:47h

esqueci de mais uma coisa
quem nao quiser aplicar o patch tenho aki umas linhas de iptables q fazem o mesmo servico porem nao tao eficiente quanto o patch ZPH e sem contar q come do processador.
Mas para quem tem curiosidade e quer testar aki vai a dita cuja escondida por alguns marmanjos

iptables -A OUTPUT -t mangle -j CONNMARK --restore-mark
iptables -A OUTPUT -t mangle -m mark ! --mark 0 -j ACCEPT
iptables -A OUTPUT -t mangle -m string --string 'X-Cache: MISS from ' --algo kmp -j MARK --set-mark 5
iptables -A OUTPUT -t mangle -m string --string 'X-Cache: HIT from ' --algo kmp -j MARK --set-mark 6
iptables -A OUTPUT -t mangle -j CONNMARK --save-mark

o resto acho q vcś sabem fazer que e so usar a marca.... 6 no seu controle de banda fazendo uma classe do tipo 10 ceuil 100

[6] Comentário enviado por nixius em 26/11/2006 - 10:26h

Como vai ficar meu squid.conf?
Existe algum parametro que devo acrescentar ou alterar no mesmo?

[7] Comentário enviado por tianguapontocom em 27/11/2006 - 13:57h

não vai ser preciso mexer em seu squid conf

[8] Comentário enviado por chaplinux em 03/12/2006 - 16:01h

Dica para Debian:

#Instalar o pacotes:
- openssl
- libssl-dev

#Preparar o configure

./configure --prefix=/usr --datadir=/usr/share --exec_prefix=/usr --localstatedir=/var --sysconfdir=/etc/squid --infodir=/usr/share/info --mandir=/usr/share/man --enable-poll --enable-snmp --enable-removal-policies=heap,lru --enable-storeio=aufs,coss,diskd,null,ufs --enable-ssl --enable-delay-pools --enable-linux-netfilter --enable-useragent-log --enable-referer-log --disable-dependency-tracking --enable-cachemgr-hostname=localhost --disable-ident-lookups --enable-truncate

[9] Comentário enviado por nixius em 05/12/2006 - 14:08h

Valeu a dica irmão...
Tava apanhando um monte aqui...
Agora funcionou maravilha!!!
Valeu!!!

[10] Comentário enviado por guttoballa em 05/12/2006 - 17:34h

Tinguapontocom,
Cara... eu já tinha desistido do ZPH, tinha olhado esta dica acima q vc postou com o iptables... depois vi o cahplinux postar isso aí acima... Sou usuário do slack 9.1 e slack 11 (um em cada máquina), sou novo em linux... mas estas coisas consigo fazer... o problema é q as informações são pela metade... tipo no slack tenho q usar esse tal de openssl? libssl-dev? da informação do colega acima, só pude aproveitar o ./configure... q sei como usar... já tinha aplicado esse patch umas duzentas vezes... vou tentar mais uma...

[11] Comentário enviado por guttoballa em 05/12/2006 - 21:11h

Quando eu apliquei o patch q vc corrigiu o link acima... só deu esta mensagem... já tou ficando maluco... mas vou seguir em frente pra ver o q vai dar...

patching file src/client_side.c

[12] Comentário enviado por nixius em 05/12/2006 - 23:03h

Pessoal, pode ser necessario carregar os seguintes modulos:
HTB - Módulo HTB do Kernel:
# modprobe sch_htb
SFQ - Módulo SFQ do Kernel:
# modprobe sch_sfq
U32 - Módulo U32 do Kernel:
# modprobe cls_u32
Como explica detalhadamente nosso amigo "fseco" no artigo aqui mesmo na VOL no link a seguir:
http://www.vivaolinux.com.br/artigos/verArtigo.php?codigo=5344&pagina=2

[13] Comentário enviado por tianguapontocom em 06/12/2006 - 01:50h

guttoballa, entao a aplicação do patch esta correta.
qualquer coisa tamos aki pode perguntar q constante mente estou por aki tamo ai pra ahdyar
e se vc usa o slack, concerteza o openssl ja esta instalado se nao me engano ele e instalado...

[14] Comentário enviado por guttoballa em 06/12/2006 - 15:30h

Tianguapontocom,
Como vc falow, a aplicação do patch estava correta:
patching file src/client_side.c

Havia estranhado pq vc postou no artigo q sairia assim:
patching file src/cache_cf.c
patching file src/cf.data.pre
patching file src/client_side.c
patching file src/structs.h

Mas no final tudo deu certo, e como vc mesmo citou q é bem eficiente...
Desde já agradeço a pelo artigo e pela atenção, o artigo está ótimo, faltou somente as correções dos links... mas quem ler os comentários vai conseguir resolver o problema.

[15] Comentário enviado por tianguapontocom em 06/12/2006 - 19:54h

cara o pior foi q procurei onde re-editar esse artigo e nao achei....
e esse tutorial eu coloquei primeiro na viva o linux so depois de muito tempo, muito tempo mesmo foi q ele foi publicado.
depois eu coloquei na under e entro no mesmo dia eo admin coloco em cartaz.
mas se souber como corrigir me da um tok ai

[16] Comentário enviado por xtremezone em 24/01/2007 - 16:07h

Primeiramente obrigado pelo artigo e a todos q aqui estao participando, sou noob em linux, estou com a ultima versao do debian e esse comando nao esta funcionando comigo:

patch -p1 < ../squid-2.5.STABLE7-ToS_Hit.patch

Desde de ja agradeco a todos.

[17] Comentário enviado por tianguapontocom em 24/01/2007 - 20:19h

cabra seguinte, onde ta o < ../squid-2.5.STABLE7-ToS_Hit.patch esses ../ indica que o patch esta a uma subpasta atraz, verifique se o mesmo esta na subpasta atraz caso ele esteja dentro do source do squid e vc estiver aplicando o patch dentro da pasta do squid e so botar < squid-2.5.STABLE7-ToS_Hit.patch

[18] Comentário enviado por kerneldark em 27/01/2007 - 12:00h

Parabens pelo tutorial, alguem conseguiu fazer o mesmo com o squid 2.6 do gentoo? Eu fiz o seguinte editei /etc/make.conf e adcionei USE=zero-penalty-hit. Mas não funcionou, alguem pode da uma luz?

[19] Comentário enviado por gerusso em 25/02/2007 - 20:18h

Alguem conseguiu realizar o cache full no debian.
Instalaei compilei e tudo rola o controle de banda o squid mas nao consigo o cache full.
Estou utilizando um debian etch com kernel 2.6.18.

Alguma luz!!!!!!!!!

Desde ja agradeço qualquer contribuiçao.


[20] Comentário enviado por joseluiz_1021 em 11/05/2007 - 12:14h

ajuda

[21] Comentário enviado por joseluiz_1021 em 11/05/2007 - 12:18h

boa tarde galera estou aqui porque fiz tudo que estava ai nesse forom e ficou #1000 mais só que quando eu ativo o HTB e tbm controla a banda do cache e quando o htb "stop" o cache funciona a 3Mb queria saber qual a configuração que faço no htb para que ele deixe o cache passar full?

ja agradeço a atenção de todos.

[22] Comentário enviado por Corujitu em 11/05/2007 - 13:16h

Olá Galera, o artigo é muito interessante, pois com o acesso ao cache passando a full, têm-se um ganho enorme na navegação. Mas tem um pequeno probleminha: Não uso HTB. Uso o CBQ. Minha distro é a Debian Etch. A pergunta é: existeme alguma maneira de deixar o cache passando a full só que usando o CBQ? estou no aguardo.

[23] Comentário enviado por cmercaldo em 17/07/2007 - 21:20h

Pessoal.

Mesmo seguindo o tutorial encontrei alguns problemas para instalação no DEBIAN e um deles foi que mesmo instalando as libs do openssl o erro abaixo persistiu:

"error Cannot find OpenSSL headers"

Além de instalar os pacotes (openssl e libssl-dev) conforme citado pelo nosso amigo "chaplinux", se faz necessário mais dois passos:

1- Se aparecer o erro do OPENSSL mesmo depois da instalação, siga os passos abaixo no diretório de compilação:

rm -fr config.cache
e altere a linha do ssl para
--enable-ssl--with-openssl=/usr/include/openssl/

Não esqueça que este é o caminho do openssl.

instale também...
apt-get install flex



Quando dei o MAKE para o htb apareceu este erro...já mudei o arquivo, mas nada até agora.....

sys/q_parser.c:304: error: ‘struct q_client’ has no member named ‘upload’

Vou continuar testando....

Até mais!!

ClaudioM

[24] Comentário enviado por cmercaldo em 19/07/2007 - 22:07h

Depois de baixar o HTB novamente.....http://htb-tools.arny.ro/download.php?view.16

Consegui......Esta funcionando perfeitamente!!!!

Até mais!!

Att.
ClaudioM

[25] Comentário enviado por vander_adm em 14/08/2007 - 10:13h

Bom dia!!!
Estou com a seguinte duvida.... segui todos os passos desritos acima...
Só que quando uso o comando /etc/init.d/rc.htb show_eth1.. Pois a minha eth1 é a rede local só aparece o primeiro cliente cadastrado no eth1-qos.cfg
Voce saberia me dizer o porque não mostra todos os clientes que está cadastrados lá....

[26] Comentário enviado por cmercaldo em 14/08/2007 - 20:18h

Publique o seu .cfg para analisarmos.

[27] Comentário enviado por alex_a_souza em 11/10/2007 - 15:28h

Tem alguma forma de colocar no FreeBSD???

[28] Comentário enviado por corujitu em 23/10/2007 - 16:36h

Olá Galerinha, oha eu aqui perturbando de novo. Minha distro é a Debian Etch e a pergunta continua: existeme alguma maneira de deixar o cache passando a full só que usando o CBQ? estou no aguardo.

[29] Comentário enviado por cirinho em 08/12/2009 - 05:17h

class netgame {
bandwidth 2500;
limit 3500;
burst 2;
priority 1;

client server {
bandwidth 1024;
limit 2500;
burst 2;
priority 1;
# upload 150;
dst {
10.0.0.100/32;
};
};
};



class default { bandwidth 64; };


Veja o meu exemplo ai

dá erro no upload, tive q comentar a linha para funcionar

como faço para implementar o upload ?

[30] Comentário enviado por onslaught.ieu em 16/04/2010 - 13:51h

Ola sou noob no mundo linux...

hj depois de uns problemas com hd usado consegui estabilizar o Mandriva.

O motiovo claro alem de aprender, e montar um servidor p 12 maquinas com squid + controle Mac + Controle de Banda + Cache Full.

Versao do Squid: squid-3.0.STABLE8, Versao HTB Tools: 0.3.0 a

Kernel Versao:

2.6.31.5-desktop-1mnb #1 SMP Fri Oct 23 00:05:22 EDT 2009 x86_64 AMD Sempron(tm) Processor 2800+ GNU/Linux


So que ao tentar compilar o squid tenho a seguinte mensagem:

# ./configure \
> --enable-arp-acl
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... 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 for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl.exe... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking dependency style of g++... none
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... no
checking for g95... no
checking for xlf95... no
checking for f95... no
checking for fort... no
checking for ifort... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for ftn... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether accepts -g... no
checking the maximum length of command line arguments... 1572864
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
appending configuration tag "F77" to libtool
checking for shl_load... no
checking for shl_load in -ldld... no
checking for dlopen in -ldl... yes
checking for dlerror... yes
checking for ranlib... (cached) ranlib
checking whether compiler accepts -fhuge-objects... no
Store modules built: ufs
IO Modules built: Blocking
Removal policies built: lru
ARP ACL lists enabled (ether address)
Auth scheme modules built: ntlm basic digest negotiate
unlinkd enabled
checking for cppunit-config... false
cppunit does not appear to be installed. squid does not require this, but code testing with 'make check' will fail.
checking how to run the C preprocessor... gcc -E
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for sh... /bin/sh
checking for false... /bin/false
checking for true... /bin/true
checking for rm... /bin/rm
checking for mv... /bin/mv
checking for mkdir... /bin/mkdir
checking for ln... /bin/ln
checking for perl... /usr/bin/perl
checking for ar... /usr/bin/ar
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for ANSI C header files... (cached) yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking arpa/nameser.h usability... yes
checking arpa/nameser.h presence... yes
checking for arpa/nameser.h... yes
checking assert.h usability... yes
checking assert.h presence... yes
checking for assert.h... yes
checking bstring.h usability... no
checking bstring.h presence... no
checking for bstring.h... no
checking crypt.h usability... yes
checking crypt.h presence... yes
checking for crypt.h... yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking execinfo.h usability... yes
checking execinfo.h presence... yes
checking for execinfo.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking fnmatch.h usability... yes
checking fnmatch.h presence... yes
checking for fnmatch.h... yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking glob.h usability... yes
checking glob.h presence... yes
checking for glob.h... yes
checking gnumalloc.h usability... no
checking gnumalloc.h presence... no
checking for gnumalloc.h... no
checking grp.h usability... yes
checking grp.h presence... yes
checking for grp.h... yes
checking ip_compat.h usability... no
checking ip_compat.h presence... no
checking for ip_compat.h... no
checking ip_fil_compat.h usability... no
checking ip_fil_compat.h presence... no
checking for ip_fil_compat.h... no
checking ip_fil.h usability... no
checking ip_fil.h presence... no
checking for ip_fil.h... no
checking ip_nat.h usability... no
checking ip_nat.h presence... no
checking for ip_nat.h... no
checking ipl.h usability... no
checking ipl.h presence... no
checking for ipl.h... no
checking libc.h usability... no
checking libc.h presence... no
checking for libc.h... no
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking math.h usability... yes
checking math.h presence... yes
checking for math.h... yes
checking for memory.h... (cached) yes
checking mount.h usability... no
checking mount.h presence... no
checking for mount.h... no
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking netinet/ip_fil_compat.h usability... no
checking netinet/ip_fil_compat.h presence... no
checking for netinet/ip_fil_compat.h... no
checking netinet/tcp.h usability... yes
checking netinet/tcp.h presence... yes
checking for netinet/tcp.h... yes
checking openssl/err.h usability... no
checking openssl/err.h presence... no
checking for openssl/err.h... no
checking openssl/md5.h usability... no
checking openssl/md5.h presence... no
checking for openssl/md5.h... no
checking openssl/ssl.h usability... no
checking openssl/ssl.h presence... no
checking for openssl/ssl.h... no
checking openssl/engine.h usability... no
checking openssl/engine.h presence... no
checking for openssl/engine.h... no
checking paths.h usability... yes
checking paths.h presence... yes
checking for paths.h... yes
checking poll.h usability... yes
checking poll.h presence... yes
checking for poll.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking shadow.h usability... yes
checking shadow.h presence... yes
checking for shadow.h... yes
checking regex.h usability... yes
checking regex.h presence... yes
checking for regex.h... yes
checking sched.h usability... yes
checking sched.h presence... yes
checking for sched.h... yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking sys/bitypes.h usability... yes
checking sys/bitypes.h presence... yes
checking for sys/bitypes.h... yes
checking sys/bswap.h usability... no
checking sys/bswap.h presence... no
checking for sys/bswap.h... no
checking sys/endian.h usability... no
checking sys/endian.h presence... no
checking for sys/endian.h... no
checking sys/file.h usability... yes
checking sys/file.h presence... yes
checking for sys/file.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/prctl.h usability... yes
checking sys/prctl.h presence... yes
checking for sys/prctl.h... yes
checking sys/md5.h usability... no
checking sys/md5.h presence... no
checking for sys/md5.h... no
checking sys/msg.h usability... yes
checking sys/msg.h presence... yes
checking for sys/msg.h... yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking for sys/stat.h... (cached) yes
checking sys/statvfs.h usability... yes
checking sys/statvfs.h presence... yes
checking for sys/statvfs.h... yes
checking syscall.h usability... yes
checking syscall.h presence... yes
checking for syscall.h... yes
checking sys/syscall.h usability... yes
checking sys/syscall.h presence... yes
checking for sys/syscall.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for sys/types.h... (cached) yes
checking sys/un.h usability... yes
checking sys/un.h presence... yes
checking for sys/un.h... yes
checking sys/vfs.h usability... yes
checking sys/vfs.h presence... yes
checking for sys/vfs.h... yes
checking sys/wait.h usability... yes
checking sys/wait.h presence... yes
checking for sys/wait.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking for unistd.h... (cached) yes
checking utime.h usability... yes
checking utime.h presence... yes
checking for utime.h... yes
checking varargs.h usability... no
checking varargs.h presence... no
checking for varargs.h... no
checking byteswap.h usability... yes
checking byteswap.h presence... yes
checking for byteswap.h... yes
checking glib.h usability... no
checking glib.h presence... no
checking for glib.h... no
checking for stdint.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for grp.h... (cached) yes
checking nss_common.h usability... no
checking nss_common.h presence... no
checking for nss_common.h... no
checking nss.h usability... yes
checking nss.h presence... yes
checking for nss.h... yes
checking db.h usability... no
checking db.h presence... no
checking for db.h... no
checking db_185.h usability... no
checking db_185.h presence... no
checking for db_185.h... no
checking sys/capability.h usability... no
checking sys/capability.h presence... no
checking for sys/capability.h... no
checking for linux/netfilter_ipv4.h... yes
checking for linux/netfilter_ipv4/ip_tproxy.h... no
checking for net/if.h... yes
checking for net/pfvar.h... no
checking for netinet/if_ether.h... yes
checking for netinet/ip.h... yes
checking for netinet/ip_compat.h... no
checking for netinet/ip_fil.h... no
checking for netinet/ip_icmp.h... yes
checking for netinet/ip_nat.h... no
checking for netinet/ipl.h... no
checking for sys/mount.h... yes
checking for resolv.h... yes
checking libxml/parser.h usability... no
checking libxml/parser.h presence... no
checking for libxml/parser.h... no
checking libxml/parser.h usability... no
checking libxml/parser.h presence... no
checking for libxml/parser.h... no
checking for an ANSI C-conforming const... yes
checking whether byte ordering is bigendian... no
checking whether struct tm is in sys/time.h or time.h... time.h
checking for struct tm.tm_gmtoff... yes
checking for struct mallinfo... yes
checking for struct mallinfo.mxfast... no
checking for struct rusage... yes
checking for struct iphdr.ip_hl... yes
checking for void *... yes
checking size of void *... 8
checking for int8_t... yes
checking for int8_t... (cached) yes
checking size of int8_t... 1
checking for char... yes
checking for char... (cached) yes
checking size of char... 1
checking for u_int8_t... yes
checking for u_int8_t... (cached) yes
checking size of u_int8_t... 1
checking for uint8_t... yes
checking for uint8_t... (cached) yes
checking size of uint8_t... 1
checking for int16_t... yes
checking for int16_t... (cached) yes
checking size of int16_t... 2
checking for short... yes
checking for short... (cached) yes
checking size of short... 2
checking for int... yes
checking for int... (cached) yes
checking size of int... 4
checking for u_int16_t... yes
checking for u_int16_t... (cached) yes
checking size of u_int16_t... 2
checking for uint16_t... yes
checking for uint16_t... (cached) yes
checking size of uint16_t... 2
checking for int32_t... yes
checking for int32_t... (cached) yes
checking size of int32_t... 4
checking for long... yes
checking for long... (cached) yes
checking size of long... 8
checking for u_int32_t... yes
checking for u_int32_t... (cached) yes
checking size of u_int32_t... 4
checking for uint32_t... yes
checking for uint32_t... (cached) yes
checking size of uint32_t... 4
checking for int64_t... yes
checking for int64_t... (cached) yes
checking size of int64_t... 8
checking for __int64... no
checking for long long... yes
checking for long long... (cached) yes
checking size of long long... 8
checking for u_int64_t... yes
checking for u_int64_t... (cached) yes
checking size of u_int64_t... 8
checking for uint64_t... yes
checking for uint64_t... (cached) yes
checking size of uint64_t... 8
checking for pad128_t... no
checking for upad128_t... no
checking for pid_t... yes
checking for size_t... yes
checking for size_t... (cached) yes
checking size of size_t... 8
checking for ssize_t... yes
checking for off_t... yes
checking for off_t... (cached) yes
checking size of off_t... 8
checking for mode_t... yes
checking for fd_mask... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for socklen_t... yes
checking for mtyp_t... no
checking for main in -lnsl... yes
checking for main in -lsocket... no
checking for unix domain sockets... yes
checking for main in -lgnumalloc... no
checking for main in -lmalloc... no
checking for main in -lbsd... yes
checking for main in -lregex... no
checking for gethostbyname in -lbind... no
checking for inet_aton in -lresolv... yes
checking for inet_aton in -l44bsd... no
checking for main in -lresolv... yes
checking for main in -lm... yes
checking for crypt in -lcrypt... yes
checking for MD5Init in -lmd5... no
checking for main in -llber... no
checking if dbopen needs -ldb... no
checking for backtrace_symbols_fd... yes
checking for bcopy... yes
checking for bswap_16... no
checking for bswap_32... no
checking for bswap16... no
checking for bswap32... no
checking for fchmod... yes
checking for getdtablesize... yes
checking for getpagesize... yes
checking for getpass... yes
checking for getrlimit... yes
checking for getrusage... yes
checking for getspnam... yes
checking for gettimeofday... yes
checking for glob... yes
checking for htobe16... no
checking for htole16... no
checking for kqueue... no
checking for lrand48... yes
checking for mallinfo... yes
checking for mallocblksize... no
checking for mallopt... yes
checking for memcpy... yes
checking for memmove... yes
checking for memset... yes
checking for mkstemp... yes
checking for mktime... yes
checking for mstats... no
checking for poll... yes
checking for prctl... yes
checking for pthread_attr_setschedparam... yes
checking for pthread_attr_setscope... yes
checking for pthread_setschedparam... yes
checking for pthread_sigmask... no
checking for putenv... yes
checking for random... yes
checking for regcomp... yes
checking for regexec... yes
checking for regfree... yes
checking for res_init... no
checking for __res_init... yes
checking for rint... yes
checking for sbrk... yes
checking for select... yes
checking for seteuid... yes
checking for setgroups... yes
checking for setpgrp... yes
checking for setrlimit... yes
checking for setsid... yes
checking for sigaction... yes
checking for snprintf... yes
checking for socketpair... yes
checking for srand48... yes
checking for srandom... yes
checking for statfs... yes
checking for strsep... yes
checking for strtoll... yes
checking for sysconf... yes
checking for syslog... yes
checking for timegm... yes
checking for vsnprintf... yes
checking for drand48... yes
checking for initgroups... yes
checking for strerror... yes
checking for tempnam... yes
checking for crypt... yes
checking for epoll_ctl in -lepoll... no
checking for epoll_ctl... yes
checking if epoll works... yes
Using epoll for the IO loop.
checking if setresuid is implemented... yes
checking if strnstr is well implemented... no
checking if va_copy is implemented... yes
checking if __va_copy is implemented... yes
checking if GNUregex needs to be compiled... no
checking Default FD_SETSIZE value... 1024
checking Maximum number of filedescriptors we can open... 1024
checking Default UDP send buffer size... 129024
checking Default UDP receive buffer size... 129024
checking Default TCP send buffer size... 16384
checking Default TCP receive buffer size... 87380
Limiting receive buffer size to 64K
checking if sys_errlist is already defined... no
checking for libresolv _dns_ttl_ hack... no
checking if inet_ntoa() actually works... "yes"
checking for working statvfs() interface... yes
checking for _res.nsaddr_list... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating lib/Makefile
config.status: creating scripts/Makefile
config.status: creating scripts/RunCache
config.status: creating scripts/RunAccel
config.status: creating src/Makefile
config.status: creating src/fs/Makefile
config.status: creating src/repl/Makefile
config.status: creating src/auth/Makefile
config.status: creating contrib/Makefile
config.status: creating snmplib/Makefile
config.status: creating icons/Makefile
config.status: creating errors/Makefile
config.status: creating test-suite/Makefile
config.status: creating doc/Makefile
config.status: creating helpers/Makefile
config.status: creating helpers/basic_auth/Makefile
config.status: creating helpers/basic_auth/LDAP/Makefile
config.status: creating helpers/basic_auth/MSNT/Makefile
config.status: creating helpers/basic_auth/NCSA/Makefile
config.status: creating helpers/basic_auth/PAM/Makefile
config.status: creating helpers/basic_auth/SMB/Makefile
config.status: creating helpers/basic_auth/mswin_sspi/Makefile
config.status: creating helpers/basic_auth/YP/Makefile
config.status: creating helpers/basic_auth/getpwnam/Makefile
config.status: creating helpers/basic_auth/multi-domain-NTLM/Makefile
config.status: creating helpers/basic_auth/SASL/Makefile
config.status: creating helpers/basic_auth/POP3/Makefile
config.status: creating helpers/basic_auth/DB/Makefile
config.status: creating helpers/basic_auth/squid_radius_auth/Makefile
config.status: creating helpers/digest_auth/Makefile
config.status: creating helpers/digest_auth/password/Makefile
config.status: creating helpers/digest_auth/ldap/Makefile
config.status: creating helpers/digest_auth/eDirectory/Makefile
config.status: creating helpers/ntlm_auth/Makefile
config.status: creating helpers/ntlm_auth/fakeauth/Makefile
config.status: creating helpers/ntlm_auth/no_check/Makefile
config.status: creating helpers/ntlm_auth/SMB/Makefile
config.status: creating helpers/ntlm_auth/SMB/smbval/Makefile
config.status: creating helpers/ntlm_auth/mswin_sspi/Makefile
config.status: creating helpers/negotiate_auth/Makefile
config.status: creating helpers/negotiate_auth/mswin_sspi/Makefile
config.status: creating helpers/negotiate_auth/squid_kerb_auth/Makefile
config.status: creating helpers/external_acl/Makefile
config.status: creating helpers/external_acl/ip_user/Makefile
config.status: creating helpers/external_acl/ldap_group/Makefile
config.status: creating helpers/external_acl/session/Makefile
config.status: creating helpers/external_acl/unix_group/Makefile
config.status: creating helpers/external_acl/wbinfo_group/Makefile
config.status: creating helpers/external_acl/mswin_ad_group/Makefile
config.status: creating helpers/external_acl/mswin_lm_group/Makefile
config.status: creating tools/Makefile
config.status: creating include/autoconf.h
config.status: include/autoconf.h is unchanged
config.status: executing depfiles commands
=== configuring in lib/libTrie (/home/leandro/Downloads/squid-3.0.STABLE8/lib/libTrie)
configure: running /bin/sh ./configure '--prefix=/usr/local/squid' '--enable-arp-acl' --cache-file=/dev/null --srcdir=.
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl.exe... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking for C++ compiler default output file name...
configure: error: C++ compiler cannot create executables
See `config.log' for more details.
configure: error: ./configure failed for lib/libTrie
[root@serv_proxy squid-3.0.STABLE8]# --exec_prefix=/usr \
> --localstatedir=/var \
> --sysconfdir=/etc/squid \
> --enable-poll \
> --enable-snmp \
> --enable-removal-policies=heap,lru \
> --enable-storeio=aufs,coss,diskd,null,ufs \
> --enable-ssl \
> --enable-delay-pools \
> --enable-linux-netfilter \
> --enable-useragent-log \
> --enable-referer-log \
> --disable-dependency-tracking \
> --enable-cachemgr-hostname=localhost \
> --disable-ident-lookups \
> --enable-truncate
bash: --exec_prefix=/usr: Arquivo ou diretório não encontrado

se puderem me ajudar, acho tbm que o gcc nao esta totalmente instalado por limitações da versao mandriva 2010 free.


Contribuir com comentário




Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts