Pessoal

Utilizo o kernel 2.4.3-12 com o squid 2.3STABLE1

quando tento compilar o ip_wccp.c

da o seguinte erro

In file included from /usr/include/linux/sched.h:14,
                 from ip_wccp.c:10:
/usr/include/linux/timex.h:159: field `time' has incomplete type
In file included from /usr/include/linux/sched.h:74,
                 from ip_wccp.c:10:
/usr/include/asm/processor.h:285: warning: `struct task_struct' declared
inside parameter list
/usr/include/asm/processor.h:285: warning: its scope is only this definition
or declaration,
/usr/include/asm/processor.h:285: warning: which is probably not what you
want.
/usr/include/asm/processor.h:289: warning: `struct task_struct' declared
inside parameter list
ip_wccp.c: In function `ip_wccp_rcv':
ip_wccp.c:32: warning: assignment makes pointer from integer without a cast
ip_wccp.c:37: invalid type argument of `->'
ip_wccp.c: At top level:
ip_wccp.c:51: variable `ipgre_protocol' has initializer but incomplete type
ip_wccp.c:52: warning: excess elements in struct initializer after
`ipgre_protocol'
ip_wccp.c:53: warning: excess elements in struct initializer after
`ipgre_protocol'
ip_wccp.c:54: warning: excess elements in struct initializer after
`ipgre_protocol'
ip_wccp.c:55: warning: excess elements in struct initializer after
`ipgre_protocol'
ip_wccp.c:56: warning: excess elements in struct initializer after
`ipgre_protocol'
ip_wccp.c:57: warning: excess elements in struct initializer after
`ipgre_protocol'
ip_wccp.c:59: warning: excess elements in struct initializer after
`ipgre_protocol'
ip_wccp.c: In function `init_module':
ip_wccp.c:63: `KERN_INFO' undeclared (first use in this function)
ip_wccp.c:63: (Each undeclared identifier is reported only once
ip_wccp.c:63: for each function it appears in.)
ip_wccp.c:63: parse error before string constant
ip_wccp.c: In function `cleanup_module':
ip_wccp.c:71: `KERN_INFO' undeclared (first use in this function)
ip_wccp.c:71: parse error before string constant

o comando que estou utilizando e o segunte:


gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer

      -fno-strict-aliasing -pipe -mpreferred-stack-boundary=2 -march=i686
-DMODULE -DMODVERSIONS

      -include /usr/src/linux/include/linux/modversions.h   -c -o ip_wccp.o
ip_wccp.c

Onde estou errando?

Obrigado pela ajuda

Dario Rugel


Assinantes em 26/07/2001: 2258
Mensagens recebidas desde 07/01/1999: 125004
Historico e [des]cadastramento: http://linux-br.conectiva.com.br
Assuntos administrativos e problemas com a lista: 
            mailto:[EMAIL PROTECTED]

Responder a