|
Re: Ref - Packet Filter compilation problem
|
06/25/2009 2:30 AM
post32496
|
Re: Ref - Packet Filter compilation problem
On Thu, Jun 25, 2009 at 01:53:05AM -0400, Senthil K wrote:
> Hi,
>
> I copied from their and compile the previous problem got solved but another problem i faced.
>
> Please find the below errors
>
> make -j 1 -Cx86 -fMakefile
> make[1]: Entering directory `/home/senthil/pfil/x86'
> make -j 1 -Cdll -fMakefile
> make[2]: Entering directory `/home/senthil/pfil/x86/dll'
> /usr/qnx640/host/qnx6/x86/usr/bin/qcc -Vgcc_ntox86 -c -Wc,-Wall -Wc,-Wno-parentheses -O -DNDEBUG -I. -I/home/
senthil/pfil/x86/dll -I/home/senthil/pfil/x86 -I/home/senthil/pfil -I/usr/qnx640/target/qnx6/usr/include -shared -
DVARIANT_dll -DBUILDENV_qss /home/senthil/pfil/pfhook.c
> /home/senthil/pfil/pfhook.c: In function 'deinit_module':
> /home/senthil/pfil/pfhook.c:61: warning: implicit declaration of function 'pfil_remove_hook'
> /home/senthil/pfil/pfhook.c:63: warning: implicit declaration of function 'pfil_head_get'
> /home/senthil/pfil/pfhook.c:63: warning: assignment makes pointer from integer without a cast
> /home/senthil/pfil/pfhook.c: At top level:
> /home/senthil/pfil/pfhook.c:78: warning: 'struct _iopkt_self' declared inside parameter list
> /home/senthil/pfil/pfhook.c:78: warning: its scope is only this definition or declaration, which is probably not what
you want
> /home/senthil/pfil/pfhook.c: In function 'pfil_entry':
> /home/senthil/pfil/pfhook.c:83: warning: implicit declaration of function 'pfil_add_hook'
> /home/senthil/pfil/pfhook.c:86: warning: assignment makes pointer from integer without a cast
> /home/senthil/pfil/pfhook.c: At top level:
> /home/senthil/pfil/pfhook.c:98: warning: parameter names (without types) in function declaration
You need to include <net/pfil.h> and have _KERNEL defined.
> -------------------------------------------------------------------------------
> /home/senthil/pfil/pfhook.c:98: error: function 'IOPKT_LSM_ENTRY_SYM' is initialized like a variable
> /home/senthil/pfil/pfhook.c:99: warning: implicit declaration of function 'IOPKT_LSM_ENTRY_SYM_INIT'
> cc: /usr/qnx640/host/qnx6/x86/usr/lib/gcc/i386-pc-nto-qnx6.4.0/4.2.4/cc1 error 1
> make[2]: *** [pfhook.o] Error 1
> -------------------------------------------------------------------------------
<sys/io-pkt.h>
-seanb
|
|
|