alakesh / opendpi

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

problems compiling opendpi wrapper 1.1 for Fedora 13 #10

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Fedora 13 + all updates
2. make in wrapper directory
3.

What is the expected output? What do you see instead?

This is my command line output:

[root@s1 wrapper]# make
make -C ipt
make[1]: Entering directory `/media/DATA/opendpi_wrapper_normal/wrapper/ipt'
if test -d opendpi_cpy; then \
        cp /media/DATA/__neu_AXP/opendpi_wrapper_axp/opendpi-1.2.0/src/* opendpi_cpy -R; \
    else \
        mkdir opendpi_cpy; \
        cp /media/DATA/__neu_AXP/opendpi_wrapper_axp/opendpi-1.2.0/src/* opendpi_cpy -R; \
    fi
make libxt_opendpi.so
make[2]: Entering directory `/media/DATA/opendpi_wrapper_normal/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: In function ‘opendpi_mt_init’:
libxt_opendpi.c:115: warning: unused variable ‘info’
libxt_opendpi.c: At top level:
libxt_opendpi.c:132: warning: implicit declaration of function ‘ALIGN’
libxt_opendpi.c:132: error: initializer element is not constant
libxt_opendpi.c:132: error: (near initialization for ‘opendpi_mt4_reg.size’)
libxt_opendpi.c:133: error: initializer element is not constant
libxt_opendpi.c:133: error: (near initialization for 
‘opendpi_mt4_reg.userspacesize’)
make[2]: *** [libxt_opendpi.o] Error 1
make[2]: Leaving directory `/media/DATA/opendpi_wrapper_normal/wrapper/ipt'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/media/DATA/opendpi_wrapper_normal/wrapper/ipt'
make: *** [all] Error 2

What version of the product are you using? On what operating system?

Fedora 13 with 2.6.34.7-66.fc13.i686.PAE kernel
kernel-devel, iptables-devel, kernel-headers-2.6.34.7-66.fc13 installed
opendpi wrapper 1.1 without special patches and opendpi 1.2

Please provide any additional information below.

Original issue reported on code.google.com by szczepan...@gmail.com on 24 Feb 2011 at 2:31

GoogleCodeExporter commented 8 years ago
Inserting this line:
"#define XT_ALIGN(s) (((s) + (__alignof__(struct _xt_align)-1)) & 
~(__alignof__(struct _xt_align)-1))"

Into '/usr/include/linux/netfilter/x_tables.h' at around line 100 fixed this 
problem for me on Fedora 13. Here is the original bug report: 
https://bugzilla.redhat.com/show_bug.cgi?id=579120

Original comment by cdhb...@gmail.com on 22 Aug 2011 at 11:45