alakesh / opendpi

Automatically exported from code.google.com/p/opendpi
GNU Lesser General Public License v3.0
0 stars 0 forks source link

opendpi-netfilter-wrapper-1.2 fails to compile #18

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Is there anything i can do to get through this compile?

make -C src
make[1]: Entering directory `/tmp/opendpi-netfilter-wrapper-1.2/wrapper/src'
if test -d opendpi_cpy; then \
    cp /tmp/opendpi-1.3.0/src/* opendpi_cpy -R; \
else \
    mkdir opendpi_cpy; \
    cp /tmp/opendpi-1.3.0/src/* opendpi_cpy -R; \
fi
make -C /lib/modules/2.6.38.8/build M=$PWD;
make[2]: Entering directory `/usr/src/linux-2.6.38-gentoo-r6'
  LD      /tmp/opendpi-netfilter-wrapper-1.2/wrapper/src/built-in.o
  CC [M]  /tmp/opendpi-netfilter-wrapper-1.2/wrapper/src/main.o
/tmp/opendpi-netfilter-wrapper-1.2/wrapper/src/main.c:362: warning: 'struct 
nf_ct_event' declared inside parameter list
/tmp/opendpi-netfilter-wrapper-1.2/wrapper/src/main.c:362: warning: its scope 
is only this definition or declaration, which is probably not what you want
/tmp/opendpi-netfilter-wrapper-1.2/wrapper/src/main.c: In function 
'opendpi_conntrack_event':
/tmp/opendpi-netfilter-wrapper-1.2/wrapper/src/main.c:364: error: dereferencing 
pointer to incomplete type
/tmp/opendpi-netfilter-wrapper-1.2/wrapper/src/main.c: At top level:
/tmp/opendpi-netfilter-wrapper-1.2/wrapper/src/main.c:383: error: variable 
'osdpi_notifier' has initializer but incomplete type
/tmp/opendpi-netfilter-wrapper-1.2/wrapper/src/main.c:384: error: unknown field 
'fcn' specified in initializer
/tmp/opendpi-netfilter-wrapper-1.2/wrapper/src/main.c:384: warning: excess 
elements in struct initializer
/tmp/opendpi-netfilter-wrapper-1.2/wrapper/src/main.c:384: warning: (near 
initialization for 'osdpi_notifier')
/tmp/opendpi-netfilter-wrapper-1.2/wrapper/src/main.c:457: warning: 'struct 
xt_match_param' declared inside parameter list
/tmp/opendpi-netfilter-wrapper-1.2/wrapper/src/main.c: In function 'opendpi_mt':
/tmp/opendpi-netfilter-wrapper-1.2/wrapper/src/main.c:466: error: dereferencing 
pointer to incomplete type
/tmp/opendpi-netfilter-wrapper-1.2/wrapper/src/main.c:475: warning: passing 
argument 1 of 'nf_ct_is_untracked' from incompatible pointer type
include/net/netfilter/nf_conntrack.h:293: note: expected 'const struct nf_conn 
*' but argument is of type 'const struct sk_buff *'
/tmp/opendpi-netfilter-wrapper-1.2/wrapper/src/main.c: In function 
'opendpi_cleanup':
/tmp/opendpi-netfilter-wrapper-1.2/wrapper/src/main.c:591: error: implicit 
declaration of function 'nf_conntrack_unregister_notifier'
/tmp/opendpi-netfilter-wrapper-1.2/wrapper/src/main.c: At top level:
/tmp/opendpi-netfilter-wrapper-1.2/wrapper/src/main.c:623: warning: 
initialization from incompatible pointer type
/tmp/opendpi-netfilter-wrapper-1.2/wrapper/src/main.c:624: warning: 
initialization from incompatible pointer type
/tmp/opendpi-netfilter-wrapper-1.2/wrapper/src/main.c: In function 
'opendpi_mt_init':
/tmp/opendpi-netfilter-wrapper-1.2/wrapper/src/main.c:677: error: implicit 
declaration of function 'nf_conntrack_register_notifier'
At top level:
cc1: warning: unrecognized command line option "-Wno-unused-but-set-variable"
make[3]: *** [/tmp/opendpi-netfilter-wrapper-1.2/wrapper/src/main.o] Error 1
make[2]: *** [_module_/tmp/opendpi-netfilter-wrapper-1.2/wrapper/src] Error 2
make[2]: Leaving directory `/usr/src/linux-2.6.38-gentoo-r6'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/tmp/opendpi-netfilter-wrapper-1.2/wrapper/src'
make: *** [all] Error 2

Original issue reported on code.google.com by scott.tu...@gmail.com on 12 Aug 2011 at 3:12

GoogleCodeExporter commented 8 years ago
Just try to select 
`Connection tracking events` and
`Connection tracking netlink interface` in the kernel menuconfig.As the README 
file said.

Original comment by Uare...@gmail.com on 13 Sep 2011 at 1:02

GoogleCodeExporter commented 8 years ago
my error message is :
make -C ipt
make[1]: Entering directory `/usr/src/opendpi-netfilter-wrapper-1.2/wrapper/ipt'
if test -d opendpi_cpy; then \
                cp /usr/src/opendpi-1.3.0/src/* opendpi_cpy -R; \
        else \
                mkdir opendpi_cpy; \
                cp /usr/src/opendpi-1.3.0/src/* opendpi_cpy -R; \
        fi
make libxt_opendpi.so
make[2]: Entering directory `/usr/src/opendpi-netfilter-wrapper-1.2/wrapper/ipt'
make[2]: `libxt_opendpi.so' is up to date.
make[2]: Leaving directory `/usr/src/opendpi-netfilter-wrapper-1.2/wrapper/ipt'
rm -r opendpi_cpy
make[1]: Leaving directory `/usr/src/opendpi-netfilter-wrapper-1.2/wrapper/ipt'
make -C src
make[1]: Entering directory `/usr/src/opendpi-netfilter-wrapper-1.2/wrapper/src'
if test -d opendpi_cpy; then \
                cp /usr/src/opendpi-1.3.0/src/* opendpi_cpy -R; \
        else \
                mkdir opendpi_cpy; \
                cp /usr/src/opendpi-1.3.0/src/* opendpi_cpy -R; \
        fi
make -C /lib/modules/2.6.28/build M=$PWD;
make[2]: Entering directory `/usr/src/linux-2.6.28'
  CC [M]  /usr/src/opendpi-netfilter-wrapper-1.2/wrapper/src/main.o
/usr/src/opendpi-netfilter-wrapper-1.2/wrapper/src/main.c:362: warning: 
‘struct nf_ct_event’ declared inside parameter list
/usr/src/opendpi-netfilter-wrapper-1.2/wrapper/src/main.c:362: warning: its 
scope is only this definition or declaration, which is probably not what you 
want
/usr/src/opendpi-netfilter-wrapper-1.2/wrapper/src/main.c: In function 
‘opendpi_conntrack_event’:
/usr/src/opendpi-netfilter-wrapper-1.2/wrapper/src/main.c:364: error: 
dereferencing pointer to incomplete type
/usr/src/opendpi-netfilter-wrapper-1.2/wrapper/src/main.c: At top level:
/usr/src/opendpi-netfilter-wrapper-1.2/wrapper/src/main.c:383: error: variable 
‘osdpi_notifier’ has initializer but incomplete type
/usr/src/opendpi-netfilter-wrapper-1.2/wrapper/src/main.c:384: error: unknown 
field ‘fcn’ specified in initializer
/usr/src/opendpi-netfilter-wrapper-1.2/wrapper/src/main.c:384: warning: excess 
elements in struct initializer
/usr/src/opendpi-netfilter-wrapper-1.2/wrapper/src/main.c:384: warning: (near 
initialization for ‘osdpi_notifier’)
/usr/src/opendpi-netfilter-wrapper-1.2/wrapper/src/main.c:457:2: error: invalid 
preprocessing directive #opendpi_mt
/usr/src/opendpi-netfilter-wrapper-1.2/wrapper/src/main.c:458: warning: 
‘struct xt_action_param’ declared inside parameter list
/usr/src/opendpi-netfilter-wrapper-1.2/wrapper/src/main.c: In function 
‘opendpi_mt’:
/usr/src/opendpi-netfilter-wrapper-1.2/wrapper/src/main.c:467: error: 
dereferencing pointer to incomplete type
/usr/src/opendpi-netfilter-wrapper-1.2/wrapper/src/main.c: In function 
‘opendpi_cleanup’:
/usr/src/opendpi-netfilter-wrapper-1.2/wrapper/src/main.c:592: warning: passing 
argument 1 of ‘nf_conntrack_unregister_notifier’ from incompatible pointer 
type
/usr/src/opendpi-netfilter-wrapper-1.2/wrapper/src/main.c: At top level:
/usr/src/opendpi-netfilter-wrapper-1.2/wrapper/src/main.c:624: warning: 
initialization from incompatible pointer type
/usr/src/opendpi-netfilter-wrapper-1.2/wrapper/src/main.c: In function 
‘opendpi_mt_init’:
/usr/src/opendpi-netfilter-wrapper-1.2/wrapper/src/main.c:678: warning: passing 
argument 1 of ‘nf_conntrack_register_notifier’ from incompatible pointer 
type
make[3]: *** [/usr/src/opendpi-netfilter-wrapper-1.2/wrapper/src/main.o] Error 1
make[2]: *** [_module_/usr/src/opendpi-netfilter-wrapper-1.2/wrapper/src] Error 
2
make[2]: Leaving directory `/usr/src/linux-2.6.28'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/opendpi-netfilter-wrapper-1.2/wrapper/src'
make: *** [all] Error 2

and
my linux kernel is 2.6.28.

Help me

Original comment by 15038051...@163.com on 21 Sep 2011 at 7:29