[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [inbox] RES: erro ao compilar iptables-p2p



Instalei sim...  inclusive instalei o 1.2.9 que aparentemente é o mais
recomendavel, segundo o que li no INSTALL que vem junto com ele...


----- Original Message -----
From: "Raphael Costa" <raphaelbscosta@yahoo.com.br>
To: "'Daniel'" <da_picon@yahoo.com.br>; "'Lista Debian'"
<debian-user-portuguese@lists.debian.org>
Sent: Monday, September 27, 2004 12:41 PM
Subject: [inbox] RES: erro ao compilar iptables-p2p


Você instalou o iptables-dev ?

Raphael Costa

-----Mensagem original-----
De: Daniel [mailto:da_picon@yahoo.com.br]
Enviada em: segunda-feira, 27 de setembro de 2004 09:56
Para: Lista Debian
Assunto: erro ao compilar iptables-p2p

    pessoal, seguindo a dica de um colega da lista estou tentando
instalar o
iptables-p2p no meu micro para bloquear kazaa, e-mule e afins.
Infelizmente, não existe um mirror para o apt-get para instalar esse
módulo,
então tive que baixar o pacote e tentar compila-lo, mas como nunca tinha
feito isso antes (graças ao maravilhoso apt-get do debian =) ) estou
apanhando para faze-lo.

eis o erro, se alguém puder me ajudar, eu agradeço muito, estou
realmente
precisando urgentemente bloquear o kazaa na minha rede...

grato

Daniel

erro:

zeus:/usr/include# make
make -C iptables
make[1]: Entering directory `/usr/include/iptables'
gcc -O2 -Wall -DIPTABLES_VERSION=\"1.2.9\" -I../common  -c -o
libipt_p2p.o
libipt_p2p.c
libipt_p2p.c:18:19: stdio.h: No such file or directory
libipt_p2p.c:19:20: stdlib.h: No such file or directory
libipt_p2p.c:20:20: string.h: No such file or directory
libipt_p2p.c:21:20: getopt.h: No such file or directory
In file included from
/usr/lib/gcc-lib/i486-linux/3.3.4/include/syslimits.h:7,
                 from
/usr/lib/gcc-lib/i486-linux/3.3.4/include/limits.h:11,
                 from /usr/include/libiptc/ipt_kernel_headers.h:6,
                 from /usr/include/libiptc/libiptc.h:5,
                 from /usr/include/iptables.h:5,
                 from libipt_p2p.c:23:
/usr/lib/gcc-lib/i486-linux/3.3.4/include/limits.h:122:75: limits.h: No
such
file or directory
In file included from /usr/include/libiptc/libiptc.h:5,
                 from /usr/include/iptables.h:5,
                 from libipt_p2p.c:23:
/usr/include/libiptc/ipt_kernel_headers.h:17:24: sys/socket.h: No such
file
or directory
/usr/include/libiptc/ipt_kernel_headers.h:18:22: linux/ip.h: No such
file or
directory
/usr/include/libiptc/ipt_kernel_headers.h:19:22: linux/in.h: No such
file or
directory
/usr/include/libiptc/ipt_kernel_headers.h:20:22: linux/if.h: No such
file or
directory
/usr/include/libiptc/ipt_kernel_headers.h:21:24: linux/icmp.h: No such
file
or directory
/usr/include/libiptc/ipt_kernel_headers.h:22:23: linux/tcp.h: No such
file
or directory
/usr/include/libiptc/ipt_kernel_headers.h:23:23: linux/udp.h: No such
file
or directory
/usr/include/libiptc/ipt_kernel_headers.h:24:25: linux/types.h: No such
file
or directory
/usr/include/libiptc/ipt_kernel_headers.h:25:23: linux/in6.h: No such
file
or directory
In file included from /usr/include/iptables.h:5,
                 from libipt_p2p.c:23:
/usr/include/libiptc/libiptc.h:6:44: linux/netfilter_ipv4/ip_tables.h:
No
such file or directory
In file included from libipt_p2p.c:23:
/usr/include/iptables.h:17: error: parse error before "size_t"
/usr/include/iptables.h:57: error: parse error before '}' token
/usr/include/iptables.h:68: error: parse error before "size_t"
/usr/include/iptables.h:77: error: conflicting types for `init'
/usr/include/iptables.h:26: error: previous declaration of `init'
/usr/include/iptables.h:83: error: conflicting types for `parse'
/usr/include/iptables.h:33: error: previous declaration of `parse'
/usr/include/iptables.h:90: error: conflicting types for `print'
/usr/include/iptables.h:40: error: previous declaration of `print'
/usr/include/iptables.h:94: error: conflicting types for `save'
/usr/include/iptables.h:44: error: previous declaration of `save'
/usr/include/iptables.h:97: error: conflicting types for `extra_opts'
/usr/include/iptables.h:47: error: previous declaration of `extra_opts'
/usr/include/iptables.h:107: error: parse error before '}' token
/usr/include/iptables.h:122: error: parse error before "parse_protocol"
libipt_p2p.c:52: error: `help' redeclared as different kind of symbol
/usr/include/iptables.h:74: error: previous declaration of `help'
libipt_p2p.c:53: error: `init' redeclared as different kind of symbol
/usr/include/iptables.h:77: error: previous declaration of `init'
libipt_p2p.c:56: error: `parse' redeclared as different kind of symbol
/usr/include/iptables.h:83: error: previous declaration of `parse'
libipt_p2p.c:57: error: `final_check' redeclared as different kind of
symbol
/usr/include/iptables.h:86: error: previous declaration of `final_check'
libipt_p2p.c:59: warning: `struct ipt_ip' declared inside parameter list
libipt_p2p.c:59: error: `print' redeclared as different kind of symbol
/usr/include/iptables.h:90: error: previous declaration of `print'
libipt_p2p.c:60: warning: `struct ipt_ip' declared inside parameter list
libipt_p2p.c:60: error: `save' redeclared as different kind of symbol
/usr/include/iptables.h:94: error: previous declaration of `save'
libipt_p2p.c:62: error: elements of array `opts' have incomplete type
libipt_p2p.c:64: warning: excess elements in struct initializer
libipt_p2p.c:64: warning: (near initialization for `opts[0]')
libipt_p2p.c:64: warning: excess elements in struct initializer
libipt_p2p.c:64: warning: (near initialization for `opts[0]')
libipt_p2p.c:64: error: `NULL' undeclared here (not in a function)
libipt_p2p.c:64: warning: excess elements in struct initializer
libipt_p2p.c:64: warning: (near initialization for `opts[0]')
libipt_p2p.c:64: warning: excess elements in struct initializer
libipt_p2p.c:64: warning: (near initialization for `opts[0]')
libipt_p2p.c:65: warning: excess elements in struct initializer
libipt_p2p.c:65: warning: (near initialization for `opts[1]')
libipt_p2p.c:65: warning: excess elements in struct initializer
libipt_p2p.c:65: warning: (near initialization for `opts[1]')
libipt_p2p.c:65: error: `NULL' undeclared here (not in a function)
libipt_p2p.c:65: warning: excess elements in struct initializer
libipt_p2p.c:65: warning: (near initialization for `opts[1]')
libipt_p2p.c:65: warning: excess elements in struct initializer
libipt_p2p.c:65: warning: (near initialization for `opts[1]')
libipt_p2p.c:66: error: `NULL' undeclared here (not in a function)
libipt_p2p.c:66: warning: excess elements in struct initializer
libipt_p2p.c:66: warning: (near initialization for `opts[2]')
libipt_p2p.c:69: error: variable `p2p' has initializer but incomplete
type
libipt_p2p.c:71: error: `NULL' undeclared here (not in a function)
libipt_p2p.c:71: warning: excess elements in struct initializer
libipt_p2p.c:71: warning: (near initialization for `p2p')
libipt_p2p.c:72: warning: excess elements in struct initializer
libipt_p2p.c:72: warning: (near initialization for `p2p')
libipt_p2p.c:73: warning: excess elements in struct initializer
libipt_p2p.c:73: warning: (near initialization for `p2p')
libipt_p2p.c:74: error: invalid application of `__alignof__' to an
incomplete type
libipt_p2p.c:74: error: invalid application of `__alignof__' to an
incomplete type
libipt_p2p.c:74: warning: excess elements in struct initializer
libipt_p2p.c:74: warning: (near initialization for `p2p')
libipt_p2p.c:75: error: invalid application of `__alignof__' to an
incomplete type
libipt_p2p.c:75: error: invalid application of `__alignof__' to an
incomplete type
libipt_p2p.c:75: warning: excess elements in struct initializer
libipt_p2p.c:75: warning: (near initialization for `p2p')
libipt_p2p.c:76: warning: excess elements in struct initializer
libipt_p2p.c:76: warning: (near initialization for `p2p')
libipt_p2p.c:77: warning: excess elements in struct initializer
libipt_p2p.c:77: warning: (near initialization for `p2p')
libipt_p2p.c:78: warning: excess elements in struct initializer
libipt_p2p.c:78: warning: (near initialization for `p2p')
libipt_p2p.c:79: warning: excess elements in struct initializer
libipt_p2p.c:79: warning: (near initialization for `p2p')
libipt_p2p.c:80: warning: excess elements in struct initializer
libipt_p2p.c:80: warning: (near initialization for `p2p')
libipt_p2p.c:81: warning: excess elements in struct initializer
libipt_p2p.c:81: warning: (near initialization for `p2p')
libipt_p2p.c:83: warning: excess elements in struct initializer
libipt_p2p.c:83: warning: (near initialization for `p2p')
libipt_p2p.c: In function `help':
libipt_p2p.c:99: warning: implicit declaration of function `printf'
libipt_p2p.c: In function `init':
libipt_p2p.c:115: error: dereferencing pointer to incomplete type
libipt_p2p.c:118: error: `NFC_UNKNOWN' undeclared (first use in this
function)
libipt_p2p.c:118: error: (Each undeclared identifier is reported only
once
libipt_p2p.c:118: error: for each function it appears in.)
libipt_p2p.c: In function `arg_to_proto':
libipt_p2p.c:131: warning: implicit declaration of function `strtoul'
libipt_p2p.c:145: warning: implicit declaration of function `strcasecmp'
libipt_p2p.c: In function `arglist_to_proto':
libipt_p2p.c:168: error: `size_t' undeclared (first use in this
function)
libipt_p2p.c:168: error: parse error before "protolen"
libipt_p2p.c:178: error: `protolen' undeclared (first use in this
function)
libipt_p2p.c:178: warning: implicit declaration of function `strcspn'
libipt_p2p.c:184: warning: implicit declaration of function `strncpy'
libipt_p2p.c: In function `proto_to_arg':
libipt_p2p.c:209: error: `size_t' undeclared (first use in this
function)
libipt_p2p.c:209: error: parse error before "buflen"
libipt_p2p.c:212: error: `buflen' undeclared (first use in this
function)
libipt_p2p.c:216: warning: implicit declaration of function `strcpy'
libipt_p2p.c:224: error: parse error before "namelen"
libipt_p2p.c:226: error: `namelen' undeclared (first use in this
function)
libipt_p2p.c:226: warning: implicit declaration of function `strlen'
libipt_p2p.c: In function `parse':
libipt_p2p.c:252: error: dereferencing pointer to incomplete type
libipt_p2p.c:260: error: `optarg' undeclared (first use in this
function)
libipt_p2p.c:260: error: `optind' undeclared (first use in this
function)
libipt_p2p.c: At top level:
libipt_p2p.c:285: warning: `struct ipt_ip' declared inside parameter
list
libipt_p2p.c:286: error: conflicting types for `print'
libipt_p2p.c:59: error: previous declaration of `print'
libipt_p2p.c: In function `print':
libipt_p2p.c:287: error: dereferencing pointer to incomplete type
libipt_p2p.c: At top level:
libipt_p2p.c:292: warning: `struct ipt_ip' declared inside parameter
list
libipt_p2p.c:293: error: conflicting types for `save'
libipt_p2p.c:60: error: previous declaration of `save'
libipt_p2p.c: In function `save':
libipt_p2p.c:294: error: dereferencing pointer to incomplete type
libipt_p2p.c: At top level:
libipt_p2p.c:69: error: storage size of `p2p' isn't known
make[1]: *** [libipt_p2p.o] Error 1
make[1]: Leaving directory `/usr/include/iptables'
make: *** [linux-2.4] Error 2
zeus:/usr/include#



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





Reply to: