[FUGSPBR] kernek 5.2 e -current + ipfilter

Renato Botelho renato em galle.com.br
Sex Dez 12 14:30:11 BRST 2003


Carlos Alberto wrote:

> pessoal, 
>  
> estou tentando recompilar o kernel no FreeBSD 5.2, e estou tendo a 
> seguinte mensagem de erro: 
> cc -c -O -pipe -mcpu=pentiumpro -Wall -Wredundant-decls 
> -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith 
> -Winline -Wcast-qual  -fformat-extensions -std=c99  -nostdinc -I-  -I. -I../../.. 
> -I../../../contrib/dev/acpica -I../../../contrib/ipfilter -I../../../contrib/dev/ath 
> -I../../../contrib/dev/ath/freebsd -I../../../contrib/ngatm -D_KERNEL -include 
> opt_global.h -fno-common -finline-limit=15000 -fno-strict-aliasing  
> -mno-align-long-strings -mpreferred-stack-boundary=2 -ffreestanding 
> -Werror  ../../../contrib/ipfilter/netinet/ip_fil.c 
> ../../../contrib/ipfilter/netinet/ip_fil.c: In function `fr_check_wrapper': 
> ../../../contrib/ipfilter/netinet/ip_fil.c:319: `PFIL_OUT' undeclared (first use in 
> this function) 
> ../../../contrib/ipfilter/netinet/ip_fil.c:319: (Each undeclared identifier is 
> reported only once 
> ../../../contrib/ipfilter/netinet/ip_fil.c:319: for each function it appears in.) 
> cc1: warnings being treated as errors 
> ../../../contrib/ipfilter/netinet/ip_fil.c: In function `iplattach': 
> ../../../contrib/ipfilter/netinet/ip_fil.c:376: warning: unused variable `ph_inet' 
> machine/in_cksum.h: At top level: 
> ../../../contrib/ipfilter/netinet/ip_fil.c:317: warning: `fr_check_wrapper' defined 
> but not used 
> *** Error code 1 
>  
> atualizei para -current e tambem esta ocorrendo o mesmo problema. 
> verifiquei via google uma possivel correcao, que nao funcionou. alguem 
> por ai tem mais informacoes a respeito, ou algum patch ? 

Voce colocou a opcao PFIL_HOOKS no seu kernel?

Se nao colocou eh necessario colocar, como esta descrito no 
/usr/src/UPDATING, segue abaixo:

20030925:
         Configuring a system to use IPFILTER now requires that PFIL_HOOKS
         also be explicitly configured.  Previously this dependency was
         magically handled through some cruft in net/pfil.h; but that has
         been removed.  Building a kernel with IPFILTER but not PFIL_HOOKS
         will fail with obtuse errors in ip_fil.c.

Aconselho vc a sempre dar uma lida no UPDATING antes de atualizar.

[]s
-- 
Renato Botelho
Developer & Unix Admin

_______________________________________________________________
Sair da Lista: http://lists.fugspbr.org/listinfo.cgi
Historico: http://www4.fugspbr.org/lista/html/FUG-BR/



Mais detalhes sobre a lista de discussão freebsd