RES: RES: [Fedora-users-br] (sem assunto) luis 0 x ipp2p 1

Luis Souza - T-leste Telecom luis.souza em tleste.net.br
Qui Jan 5 20:42:43 UTC 2006


"Hau" Hugo 

Hugo, segui as instruções no site mãs..

Não compila nem a pau

Veja o erro que está aparecendo

cat: /lib/modules/2.4.21-20.ELsmp/build/Makefile: No such file or directory
cat: /lib/modules/2.4.21-20.ELsmp/build/Makefile: No such file or directory
gcc -O3 -Wall -I/lib/modules/2.4.21-20.ELsmp/build/include -c ipt_ipp2p.c
-D__KERNEL__ -DMODULE -DMODVERSIONS
In file included from ipt_ipp2p.c:2:
/usr/include/linux/modversions.h:1:2: #error Modules should never use
kernel-headers system headers,
/usr/include/linux/modversions.h:2:2: #error but rather headers from an
appropriate kernel-source package.
/usr/include/linux/modversions.h:3:2: #error Change -I/usr/src/linux/include
(or similar) to
/usr/include/linux/modversions.h:4:2: #error -I/lib/modules/$(uname
-r)/build/include
/usr/include/linux/modversions.h:5:2: #error to build against the
currently-running kernel.
In file included from /usr/include/linux/netfilter_ipv4/ip_tables.h:18,
                 from ipt_ipp2p.c:5:
/usr/include/linux/netfilter_ipv4.h:53: `INT_MIN' undeclared here (not in a
function)
/usr/include/linux/netfilter_ipv4.h:53: enumerator value for
`NF_IP_PRI_FIRST' not integer constant
/usr/include/linux/netfilter_ipv4.h:59: `INT_MAX' undeclared here (not in a
function)
/usr/include/linux/netfilter_ipv4.h:59: enumerator value for
`NF_IP_PRI_LAST' not integer constant
In file included from ipt_ipp2p.c:5:
/usr/include/linux/netfilter_ipv4/ip_tables.h:26: field `src' has incomplete
type
/usr/include/linux/netfilter_ipv4/ip_tables.h:26: field `dst' has incomplete
type
/usr/include/linux/netfilter_ipv4/ip_tables.h:28: field `smsk' has
incomplete type
/usr/include/linux/netfilter_ipv4/ip_tables.h:28: field `dmsk' has
incomplete type
/usr/include/linux/netfilter_ipv4/ip_tables.h:29: `IFNAMSIZ' undeclared here
(not in a function)
/usr/include/linux/netfilter_ipv4/ip_tables.h:29: `IFNAMSIZ' undeclared here
(not in a function)
/usr/include/linux/netfilter_ipv4/ip_tables.h:30: `IFNAMSIZ' undeclared here
(not in a function)
/usr/include/linux/netfilter_ipv4/ip_tables.h:30: `IFNAMSIZ' undeclared here
(not in a function)
/usr/include/linux/netfilter_ipv4/ip_tables.h:33: syntax error before
"u_int16_t"
/usr/include/linux/netfilter_ipv4/ip_tables.h:38: syntax error before
"invflags"
/usr/include/linux/netfilter_ipv4/ip_tables.h:45: syntax error before
"u_int16_t"
/usr/include/linux/netfilter_ipv4/ip_tables.h:51: syntax error before
"u_int16_t"
/usr/include/linux/netfilter_ipv4/ip_tables.h:55: syntax error before '}'
token
/usr/include/linux/netfilter_ipv4/ip_tables.h:58: syntax error before
"match_size"
/usr/include/linux/netfilter_ipv4/ip_tables.h:62: syntax error before '}'
token
/usr/include/linux/netfilter_ipv4/ip_tables.h:68: syntax error before
"u_int16_t"
/usr/include/linux/netfilter_ipv4/ip_tables.h:72: conflicting types for
`user'
/usr/include/linux/netfilter_ipv4/ip_tables.h:49: previous declaration of
`user'
/usr/include/linux/netfilter_ipv4/ip_tables.h:74: syntax error before
"u_int16_t"
/usr/include/linux/netfilter_ipv4/ip_tables.h:78: syntax error before '}'
token
/usr/include/linux/netfilter_ipv4/ip_tables.h:81: syntax error before
"target_size"
/usr/include/linux/netfilter_ipv4/ip_tables.h:85: syntax error before '}'
token
/usr/include/linux/netfilter_ipv4/ip_tables.h:95: syntax error before
"u_int64_t"
/usr/include/linux/netfilter_ipv4/ip_tables.h:117: field `ip' has incomplete
type
/usr/include/linux/netfilter_ipv4/ip_tables.h:123: syntax error before
"u_int16_t"
/usr/include/linux/netfilter_ipv4/ip_tables.h:135: syntax error before '}'
token
/usr/include/linux/netfilter_ipv4/ip_tables.h:160: syntax error before
"u_int16_t"
/usr/include/linux/netfilter_ipv4/ip_tables.h:162: syntax error before
"option"
/usr/include/linux/netfilter_ipv4/ip_tables.h:163: syntax error before
"flg_mask"
/usr/include/linux/netfilter_ipv4/ip_tables.h:164: syntax error before
"flg_cmp"
/usr/include/linux/netfilter_ipv4/ip_tables.h:165: syntax error before
"invflags"
/usr/include/linux/netfilter_ipv4/ip_tables.h:178: syntax error before
"u_int16_t"
/usr/include/linux/netfilter_ipv4/ip_tables.h:180: syntax error before
"invflags"
/usr/include/linux/netfilter_ipv4/ip_tables.h:191: syntax error before
"u_int8_t"
/usr/include/linux/netfilter_ipv4/ip_tables.h:193: syntax error before
"invflags"
/usr/include/linux/netfilter_ipv4/ip_tables.h:251: field `entries' has
incomplete type
/usr/include/linux/netfilter_ipv4/ip_tables.h:263: field `counters' has
incomplete type
/usr/include/linux/netfilter_ipv4/ip_tables.h:276: field `entrytable' has
incomplete type
/usr/include/linux/netfilter_ipv4/ip_tables.h: In function `ipt_get_target':
/usr/include/linux/netfilter_ipv4/ip_tables.h:288: dereferencing pointer to
incomplete type
ipt_ipp2p.c:9:21: net/tcp.h: No such file or directory
ipt_ipp2p.c:10:21: net/udp.h: No such file or directory
ipt_ipp2p.c: In function `udp_search_gnu':
ipt_ipp2p.c:93: warning: implicit declaration of function `memcmp'
ipt_ipp2p.c: In function `udp_search_bit':
ipt_ipp2p.c:136: warning: implicit declaration of function `ntohl'
ipt_ipp2p.c:140: warning: implicit declaration of function
`__constant_htonl'
ipt_ipp2p.c: At top level:
ipt_ipp2p.c:770: `NULL' undeclared here (not in a function)
ipt_ipp2p.c:770: initializer element is not constant
ipt_ipp2p.c:770: (near initialization for `matchlist[9].function_name')
ipt_ipp2p.c:770: initializer element is not constant
ipt_ipp2p.c:770: (near initialization for `matchlist[9]')
ipt_ipp2p.c:785: `NULL' undeclared here (not in a function)
ipt_ipp2p.c:785: initializer element is not constant
ipt_ipp2p.c:785: (near initialization for `udp_list[5].function_name')
ipt_ipp2p.c:785: initializer element is not constant
ipt_ipp2p.c:785: (near initialization for `udp_list[5]')
ipt_ipp2p.c:798: syntax error before "u_int16_t"
ipt_ipp2p.c:801: warning: `struct net_device' declared inside parameter list
ipt_ipp2p.c:801: warning: its scope is only this definition or declaration,
which is probably not what you want
ipt_ipp2p.c:801: warning: `struct sk_buff' declared inside parameter list
ipt_ipp2p.c:802: `match' redeclared as different kind of symbol
/usr/include/linux/netfilter_ipv4/ip_tables.h:54: previous declaration of
`match'
ipt_ipp2p.c: In function `match':
ipt_ipp2p.c:803: `matchinfo' undeclared (first use in this function)
ipt_ipp2p.c:803: (Each undeclared identifier is reported only once
ipt_ipp2p.c:803: for each function it appears in.)
ipt_ipp2p.c:805: `skb' undeclared (first use in this function)
ipt_ipp2p.c:808: warning: implicit declaration of function `ntohs'
ipt_ipp2p.c:808: dereferencing pointer to incomplete type
ipt_ipp2p.c:808: dereferencing pointer to incomplete type
ipt_ipp2p.c:811: `offset' undeclared (first use in this function)
ipt_ipp2p.c:812: warning: implicit declaration of function `printk'
ipt_ipp2p.c:817: warning: implicit declaration of function
`skb_is_nonlinear'
ipt_ipp2p.c:823: dereferencing pointer to incomplete type
ipt_ipp2p.c:825: dereferencing pointer to incomplete type
ipt_ipp2p.c:826: `IPPROTO_TCP' undeclared (first use in this function)
ipt_ipp2p.c:828: dereferencing pointer to incomplete type
ipt_ipp2p.c:830: dereferencing pointer to incomplete type
ipt_ipp2p.c:831: dereferencing pointer to incomplete type
ipt_ipp2p.c:832: dereferencing pointer to incomplete type
ipt_ipp2p.c:833: dereferencing pointer to incomplete type
ipt_ipp2p.c:842: warning: implicit declaration of function `NIPQUAD'
ipt_ipp2p.c:842: dereferencing pointer to incomplete type
ipt_ipp2p.c:842: dereferencing pointer to incomplete type
ipt_ipp2p.c:842: dereferencing pointer to incomplete type
ipt_ipp2p.c:842: dereferencing pointer to incomplete type
ipt_ipp2p.c:851: `IPPROTO_UDP' undeclared (first use in this function)
ipt_ipp2p.c:853: dereferencing pointer to incomplete type
ipt_ipp2p.c:862: dereferencing pointer to incomplete type
ipt_ipp2p.c:862: dereferencing pointer to incomplete type
ipt_ipp2p.c:862: dereferencing pointer to incomplete type
ipt_ipp2p.c:862: dereferencing pointer to incomplete type
ipt_ipp2p.c: At top level:
ipt_ipp2p.c:895: variable `ipp2p_match' has initializer but incomplete type
ipt_ipp2p.c:897: extra brace group at end of initializer
ipt_ipp2p.c:897: (near initialization for `ipp2p_match')
ipt_ipp2p.c:897: `NULL' undeclared here (not in a function)
ipt_ipp2p.c:897: `NULL' undeclared here (not in a function)
ipt_ipp2p.c:897: warning: excess elements in struct initializer
ipt_ipp2p.c:897: warning: (near initialization for `ipp2p_match')
ipt_ipp2p.c:898: warning: excess elements in struct initializer
ipt_ipp2p.c:898: warning: (near initialization for `ipp2p_match')
ipt_ipp2p.c:899: warning: excess elements in struct initializer
ipt_ipp2p.c:899: warning: (near initialization for `ipp2p_match')
ipt_ipp2p.c:900: warning: excess elements in struct initializer
ipt_ipp2p.c:900: warning: (near initialization for `ipp2p_match')
ipt_ipp2p.c:901: `NULL' undeclared here (not in a function)
ipt_ipp2p.c:901: warning: excess elements in struct initializer
ipt_ipp2p.c:901: warning: (near initialization for `ipp2p_match')
ipt_ipp2p.c:910: warning: excess elements in struct initializer
ipt_ipp2p.c:910: warning: (near initialization for `ipp2p_match')
ipt_ipp2p.c:913: syntax error before "init"
ipt_ipp2p.c:914: warning: return type defaults to `int'
ipt_ipp2p.c: In function `init':
ipt_ipp2p.c:915: `KERN_INFO' undeclared (first use in this function)
ipt_ipp2p.c:915: syntax error before string constant
ipt_ipp2p.c:916: warning: implicit declaration of function
`ipt_register_match'
ipt_ipp2p.c: At top level:
ipt_ipp2p.c:919: syntax error before "fini"
ipt_ipp2p.c:920: warning: return type defaults to `int'
ipt_ipp2p.c: In function `fini':
ipt_ipp2p.c:921: warning: implicit declaration of function
`ipt_unregister_match'
ipt_ipp2p.c:922: `KERN_INFO' undeclared (first use in this function)
ipt_ipp2p.c:922: syntax error before string constant
ipt_ipp2p.c: At top level:
ipt_ipp2p.c:925: warning: type defaults to `int' in declaration of
`module_init'
ipt_ipp2p.c:925: warning: parameter names (without types) in function
declaration
ipt_ipp2p.c:925: warning: data definition has no type or storage class
ipt_ipp2p.c:926: warning: type defaults to `int' in declaration of
`module_exit'
ipt_ipp2p.c:926: warning: parameter names (without types) in function
declaration
ipt_ipp2p.c:926: warning: data definition has no type or storage class
/usr/include/linux/netfilter_ipv4/ip_tables.h:131: storage size of
`counters' isn't known
ipt_ipp2p.c:895: storage size of `ipp2p_match' isn't known
make: *** [ipt_ipp2p.o] Error 1

E nada de compilar

O que pode ser?



Luis Souza
Interconnection Administrator , Tleste Telecom
luis.souza em tleste.net.br
http://www.vox2go.com
Profile: https://www.linkedin.com/e/fps/4090844/
-----Mensagem original-----
De: fedora-users-br-bounces em redhat.com
[mailto:fedora-users-br-bounces em redhat.com] Em nome de Hugo Cisneiros
Enviada em: quinta-feira, 5 de janeiro de 2006 15:36
Para: Lista de discussão voltada para os usuários brasileiros do Fedora
Assunto: Re: RES: [Fedora-users-br] (sem assunto)

Luis Souza - T-leste Telecom wrote:
> Hi Hugo

Hau

> Quando eu tento usar o ipp2p, ele apresenta o seguinte erro:
> 
> iptables -A FORWARD -m ipp2p --ipp2p -j DROP
> iptables: No chain/target/match by that name
> 
> Ja desinstalei, reinstalei mas nada resolve.
> 
> Eu instalei uma nova versão do iptables em pacotes rpm e eu achei tb uma
> versão do ipp2p em rpm.
> 
> Instalei tudo mas nada, nada de funcionar.
> 
> Oq eu pode dar errado?

Antes de mais nada, esse erro é porque o ipp2p *não* está instalado no 
netfilter do seu kernel. O firewall do Linux é integrado ao kernel, e 
todas essas opções do iptables são módulos do kernel. Então você 
provavelmente vai precisar de um módulo do ipp2p carregado no kernel. 
Verifique com:

lsmod | grep ipp2p

Para estar certo, esse comando tem que retornar o modulo 'ipt_ipp2p'. 
Com o erro acima, acho improvável que este módulo esteja de pé.

Isso provavelmente acontece porque os pacotes binarios que voce instalou 
  do ipp2p não correspondem à sua versão de kernel atual. Ou seja, 
provavelmente você terá que aplicar os patches do ipp2p no kernel, 
compilá-lo e gerar o módulo do ipp2p, e depois utilizar.

Na página do ipp2p tem algumas instruções para fazer isso :)

http://www.ipp2p.org/ -> Documentation

Vai dar mais trabalho, mas é bem mais certo de funcionar! :P

> Luis Souza
> Interconnection Administrator , Tleste Telecom
> luis.souza em tleste.net.br
> W: 55 11 4743 3400
> M: 55 11 9220 0956
> http://www.vox2go.com
> Profile: https://www.linkedin.com/e/fps/4090844/

-- 
[]'s
Eitch

http://www.devin.com.br/eitch/
"Talk is cheap. Show me the code." - Linus Torvalds

--
Fedora-users-br mailing list
Fedora-users-br em redhat.com
https://www.redhat.com/mailman/listinfo/fedora-users-br



---
msg 1:
T-LESTE TELECOM has scanned this e-mail for virus free


msg 2:
This message is for the designated recipient only and may
contain privileged, proprietary, or otherwise private information.
If you have received it in error, please notify the sender
immediately and delete the original. Any unauthorized use of
this email is prohibited.




Mais detalhes sobre a lista de discussão Fedora-users-br