Estou compilando o kernel 2.6.26 com suporte ao layer 7. A compilação do kernel
foi fácil, sem nenhum problema, mas, quando tento compilar o iptables-1.4.3 com
o patch do layer 7, ele não conclui, apresentado os erros que seguem abaixo:

g49655:~/layer.7/iptables-1.4.3# make KERNEL_DIR=/usr/src/linux-source-2.6.26
BINDIR=/sbin LIBDIR=/lib
make  all-recursive
make[1]: Entrando no diretório `/root/layer.7/iptables-1.4.3'
Making all in extensions
make[2]: Entrando no diretório `/root/layer.7/iptables-1.4.3/extensions'
  GEN      matches4.man
  GEN      matches6.man
  GEN      targets4.man
  GEN      targets6.man
  CC       libipt_layer7.oo
libipt_layer7.c:27:39: warning: linux/netfilter/xt_layer7.h: Arquivo ou 
diretório
não encontrado
libipt_layer7.c:52: warning: ‘struct xt_layer7_info’ declared inside parameter 
list
libipt_layer7.c:52: warning: its scope is only this definition or declaration,
which
is probably not what you want
libipt_layer7.c:52: warning: no previous prototype for ‘parse_protocol_file’
libipt_layer7.c: In function ‘parse_protocol_file’:
libipt_layer7.c:55: warning: declaration of ‘line’ shadows a global declaration
../include/iptables/internal.h:11: warning: shadowed declaration is here
libipt_layer7.c:92: warning: implicit declaration of function ‘exit_error’
libipt_layer7.c:96: error: ‘MAX_PROTOCOL_LEN’ undeclared (first use in this
function)
libipt_layer7.c:96: error: (Each undeclared identifier is reported only once
libipt_layer7.c:96: error: for each function it appears in.)
libipt_layer7.c:99: error: dereferencing pointer to incomplete type
libipt_layer7.c:105: error: ‘MAX_PATTERN_LEN’ undeclared (first use in this
function)
libipt_layer7.c:107: error: dereferencing pointer to incomplete type
libipt_layer7.c: In function ‘pre_process’:
libipt_layer7.c:152: warning: declaration of ‘rindex’ shadows a global 
declaration
/usr/include/string.h:313: warning: shadowed declaration is here
libipt_layer7.c: At top level:
libipt_layer7.c:205: warning: no previous prototype for ‘readl7dir’
libipt_layer7.c:260: warning: ‘struct xt_layer7_info’ declared inside parameter
list
libipt_layer7.c: In function ‘parse_layer7_protocol’:
libipt_layer7.c:287: warning: passing argument 3 of ‘parse_protocol_file’ from
incompatible pointer type
libipt_layer7.c:305: error: dereferencing pointer to incomplete type
libipt_layer7.c:305: error: dereferencing pointer to incomplete type
libipt_layer7.c:305: error: ‘MAX_PATTERN_LEN’ undeclared (first use in this
function)
libipt_layer7.c: In function ‘parse’:
libipt_layer7.c:317: warning: implicit declaration of function ‘check_inverse’
libipt_layer7.c:318: warning: passing argument 2 of ‘parse_layer7_protocol’ from
incompatible pointer type
libipt_layer7.c:320: error: dereferencing pointer to incomplete type
libipt_layer7.c: In function ‘print’:
libipt_layer7.c:365: error: dereferencing pointer to incomplete type
libipt_layer7.c:366: error: dereferencing pointer to incomplete type
libipt_layer7.c: In function ‘save’:
libipt_layer7.c:374: error: dereferencing pointer to incomplete type
libipt_layer7.c:374: error: dereferencing pointer to incomplete type
libipt_layer7.c: At top level:
libipt_layer7.c:377: error: variable ‘layer7’ has initializer but incomplete 
type
libipt_layer7.c:378: error: unknown field ‘name’ specified in initializer
libipt_layer7.c:378: warning: excess elements in struct initializer
libipt_layer7.c:378: warning: (near initialization for ‘layer7’)
libipt_layer7.c:379: error: unknown field ‘version’ specified in initializer
libipt_layer7.c:379: warning: excess elements in struct initializer
libipt_layer7.c:379: warning: (near initialization for ‘layer7’)
libipt_layer7.c:380: error: unknown field ‘size’ specified in initializer
libipt_layer7.c:380: error: invalid application of ‘sizeof’ to incomplete type
‘struct xt_layer7_info’
libipt_layer7.c:380: warning: excess elements in struct initializer
libipt_layer7.c:380: warning: (near initialization for ‘layer7’)
libipt_layer7.c:381: error: unknown field ‘userspacesize’ specified in 
initializer
libipt_layer7.c:381: error: invalid application of ‘sizeof’ to incomplete type
‘struct xt_layer7_info’
libipt_layer7.c:381: warning: excess elements in struct initializer
libipt_layer7.c:381: warning: (near initialization for ‘layer7’)
libipt_layer7.c:382: error: unknown field ‘help’ specified in initializer
libipt_layer7.c:382: warning: excess elements in struct initializer
libipt_layer7.c:382: warning: (near initialization for ‘layer7’)
libipt_layer7.c:383: error: unknown field ‘parse’ specified in initializer
libipt_layer7.c:383: warning: excess elements in struct initializer
libipt_layer7.c:383: warning: (near initialization for ‘layer7’)
libipt_layer7.c:384: error: unknown field ‘final_check’ specified in initializer
libipt_layer7.c:384: warning: excess elements in struct initializer
libipt_layer7.c:384: warning: (near initialization for ‘layer7’)
libipt_layer7.c:385: error: unknown field ‘print’ specified in initializer
libipt_layer7.c:385: warning: excess elements in struct initializer
libipt_layer7.c:385: warning: (near initialization for ‘layer7’)
libipt_layer7.c:386: error: unknown field ‘save’ specified in initializer
libipt_layer7.c:386: warning: excess elements in struct initializer
libipt_layer7.c:386: warning: (near initialization for ‘layer7’)
libipt_layer7.c:387: error: unknown field ‘extra_opts’ specified in initializer
libipt_layer7.c:388: warning: excess elements in struct initializer
libipt_layer7.c:388: warning: (near initialization for ‘layer7’)
libipt_layer7.c: In function ‘libipt_layer7_init’:
libipt_layer7.c:392: warning: implicit declaration of function ‘register_match’
make[2]: ** [libipt_layer7.oo] Erro 1
make[2]: Saindo do diretório `/root/layer.7/iptables-1.4.3/extensions'
make[1]: ** [all-recursive] Erro 1
make[1]: Saindo do diretório `/root/layer.7/iptables-1.4.3'
make: ** [all] Erro 2

Alguem tem alguma ideia do que eu possa fazer?


-- 
To UNSUBSCRIBE, email to debian-user-portuguese-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Responder a