exported / opendpi

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

Netfilter wrapper - kernel < 2.6.35 - compile problem #25

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Here is the error I'm getting when trying to compile.

My distribution is Centos 5.5
Kernel: 2.6.18-194.32.1.el5

OPENDPI_PATH=/usr/local/src/opendpi-1.3.0 make
make -C ipt
make[1]: Entering directory 
`/usr/local/src/opendpi-netfilter-wrapper-1.2/wrapper/ipt'
if test -d opendpi_cpy; then \
        cp /usr/local/src/opendpi-1.3.0/src/* opendpi_cpy -R; \
    else \
        mkdir opendpi_cpy; \
        cp /usr/local/src/opendpi-1.3.0/src/* opendpi_cpy -R; \
    fi
make libxt_opendpi.so
make[2]: Entering directory 
`/usr/local/src/opendpi-netfilter-wrapper-1.2/wrapper/ipt'
gcc -fPIC -Iopendpi_cpy/include -Iopendpi_cpy/lib -I../src 
-DOPENDPI_NETFILTER_MODULE -O2 -Wall -D_INIT=libxt_opendpi_init -c -o 
libxt_opendpi.o libxt_opendpi.c;
libxt_opendpi.c:34: warning: ‘struct xt_entry_match’ declared inside 
parameter list
libxt_opendpi.c:34: warning: its scope is only this definition or declaration, 
which is probably not what you want
libxt_opendpi.c: In function ‘opendpi_mt4_save’:
libxt_opendpi.c:36: error: dereferencing pointer to incomplete type
libxt_opendpi.c: At top level:
libxt_opendpi.c:49: warning: ‘struct xt_entry_match’ declared inside 
parameter list
libxt_opendpi.c: In function ‘opendpi_mt4_print’:
libxt_opendpi.c:51: error: dereferencing pointer to incomplete type
libxt_opendpi.c: At top level:
libxt_opendpi.c:64: warning: ‘struct xt_entry_match’ declared inside 
parameter list
libxt_opendpi.c: In function ‘opendpi_mt4_parse’:
libxt_opendpi.c:66: error: dereferencing pointer to incomplete type
libxt_opendpi.c:76: error: ‘true’ undeclared (first use in this function)
libxt_opendpi.c:76: error: (Each undeclared identifier is reported only once
libxt_opendpi.c:76: error: for each function it appears in.)
libxt_opendpi.c:80: error: ‘false’ undeclared (first use in this function)
libxt_opendpi.c: In function ‘opendpi_mt_check’:
libxt_opendpi.c:91: warning: implicit declaration of function ‘exit_error’
libxt_opendpi.c:91: error: ‘PARAMETER_PROBLEM’ undeclared (first use in 
this function)
libxt_opendpi.c: At top level:
libxt_opendpi.c:111: warning: ‘struct xt_entry_match’ declared inside 
parameter list
libxt_opendpi.c: In function ‘opendpi_mt_init’:
libxt_opendpi.c:113: error: dereferencing pointer to incomplete type
libxt_opendpi.c:113: warning: unused variable ‘info’
libxt_opendpi.c: At top level:
libxt_opendpi.c:121: error: variable ‘opendpi_mt4_reg’ has initializer but 
incomplete type
libxt_opendpi.c:122: error: unknown field ‘version’ specified in initializer
libxt_opendpi.c:122: error: ‘XTABLES_VERSION’ undeclared here (not in a 
function)
libxt_opendpi.c:122: warning: excess elements in struct initializer
libxt_opendpi.c:122: warning: (near initialization for ‘opendpi_mt4_reg’)
libxt_opendpi.c:123: error: unknown field ‘name’ specified in initializer
libxt_opendpi.c:123: warning: excess elements in struct initializer
libxt_opendpi.c:123: warning: (near initialization for ‘opendpi_mt4_reg’)
libxt_opendpi.c:124: error: unknown field ‘revision’ specified in 
initializer
libxt_opendpi.c:124: warning: excess elements in struct initializer
libxt_opendpi.c:124: warning: (near initialization for ‘opendpi_mt4_reg’)
libxt_opendpi.c:125: error: unknown field ‘family’ specified in initializer
libxt_opendpi.c:125: warning: excess elements in struct initializer
libxt_opendpi.c:125: warning: (near initialization for ‘opendpi_mt4_reg’)
libxt_opendpi.c:126: error: unknown field ‘size’ specified in initializer
libxt_opendpi.c:126: warning: implicit declaration of function ‘XT_ALIGN’
libxt_opendpi.c:126: warning: excess elements in struct initializer
libxt_opendpi.c:126: warning: (near initialization for ‘opendpi_mt4_reg’)
libxt_opendpi.c:127: error: unknown field ‘userspacesize’ specified in 
initializer
libxt_opendpi.c:127: warning: excess elements in struct initializer
libxt_opendpi.c:127: warning: (near initialization for ‘opendpi_mt4_reg’)
libxt_opendpi.c:128: error: unknown field ‘help’ specified in initializer
libxt_opendpi.c:128: warning: excess elements in struct initializer
libxt_opendpi.c:128: warning: (near initialization for ‘opendpi_mt4_reg’)
libxt_opendpi.c:129: error: unknown field ‘init’ specified in initializer
libxt_opendpi.c:129: warning: excess elements in struct initializer
libxt_opendpi.c:129: warning: (near initialization for ‘opendpi_mt4_reg’)
libxt_opendpi.c:130: error: unknown field ‘parse’ specified in initializer
libxt_opendpi.c:130: warning: excess elements in struct initializer
libxt_opendpi.c:130: warning: (near initialization for ‘opendpi_mt4_reg’)
libxt_opendpi.c:131: error: unknown field ‘final_check’ specified in 
initializer
libxt_opendpi.c:131: warning: excess elements in struct initializer
libxt_opendpi.c:131: warning: (near initialization for ‘opendpi_mt4_reg’)
libxt_opendpi.c:132: error: unknown field ‘print’ specified in initializer
libxt_opendpi.c:132: warning: excess elements in struct initializer
libxt_opendpi.c:132: warning: (near initialization for ‘opendpi_mt4_reg’)
libxt_opendpi.c:133: error: unknown field ‘save’ specified in initializer
libxt_opendpi.c:133: warning: excess elements in struct initializer
libxt_opendpi.c:133: warning: (near initialization for ‘opendpi_mt4_reg’)
libxt_opendpi.c:134: error: unknown field ‘extra_opts’ specified in 
initializer
libxt_opendpi.c:134: warning: excess elements in struct initializer
libxt_opendpi.c:134: warning: (near initialization for ‘opendpi_mt4_reg’)
libxt_opendpi.c: In function ‘_init’:
libxt_opendpi.c:143: error: ‘false’ undeclared (first use in this function)
libxt_opendpi.c:151: warning: implicit declaration of function 
‘xtables_register_match’
make[2]: *** [libxt_opendpi.o] Error 1
make[2]: Leaving directory 
`/usr/local/src/opendpi-netfilter-wrapper-1.2/wrapper/ipt'
make[1]: *** [all] Error 2
make[1]: Leaving directory 
`/usr/local/src/opendpi-netfilter-wrapper-1.2/wrapper/ipt'
make: *** [all] Error 2

Is it possible I can compile netfilter-wrapper under < 2.6.35 kernel?

Original issue reported on code.google.com by lewa...@gmail.com on 8 Feb 2012 at 12:35