Skip to contentSkip to conversation

xtables-addons compile error

DISCUSSION Mr Dash Four 2 participants 7 messages Apr 4, 2012 – Apr 14, 2012 netfilter

lore
Share & tools
lore
#0 lore raw

gcc -Wp,-MMD,./.libxt_DNETMAP.oo.d,-MT,libxt_DNETMAP.oo -D_LARGEFILE_SOURCE=1 -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -D_REENTRANT -I../include -I/builddir/build/BUILD/xtables-addons-1.41/extensions -Wall -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes -Winline -pipe -DPIC -fPIC -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=pentium2 -fasynchronous-unwind-tables -o libxt_DNETMAP.oo -c libxt_DNETMAP.c;
In file included from ../include/net/netfilter/nf_nat.h:5,
from libxt_DNETMAP.c:15:
../include/net/netfilter/nf_conntrack_tuple.h:29: error: redefinition of 'union nf_conntrack_man_proto' make[3]: *** [libxt_DNETMAP.oo] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/builddir/build/BUILD/xtables-addons-1.41/extensions' make[2]: *** [user-all-local] Error 2
make[2]: Leaving directory `/builddir/build/BUILD/xtables-addons-1.41/extensions' make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/builddir/build/BUILD/xtables-addons-1.41'
make: *** [all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.FNo2bg (%build)

I am using/compiling against kernel version 3.3. With v3.2 that doesn't happen. Am I missing something?

#1 lore raw
Quoted 5 lines · Mr Dash Four

gcc -Wp,-MMD,./.libxt_DNETMAP.oo.d,-MT,libxt_DNETMAP.oo -D_LARGEFILE_SOURCE=1 -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -D_REENTRANT -I../include -I/builddir/build/BUILD/xtables-addons-1.41/extensions -Wall -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes -Winline -pipe -DPIC -fPIC -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=pentium2 -fasynchronous-unwind-tables -o libxt_DNETMAP.oo -c libxt_DNETMAP.c;
In file included from ../include/net/netfilter/nf_nat.h:5,
from libxt_DNETMAP.c:15:
../include/net/netfilter/nf_conntrack_tuple.h:29: error: redefinition of 'union nf_conntrack_man_proto' I am using/compiling against kernel version 3.3. With v3.2 that doesn't happen. Am I missing something?

This is resolved in the now-new xtables-addons 1.42.

#2 lore raw
Quoted 3 lines

This is resolved in the now-new xtables-addons 1.42.

Thanks, I'll deploy it later on today.

#3 lore raw

Re: xtables-addons link error

Quoted 1 line

Thanks, I'll deploy it later on today.

When I try to link/build xtables-addons 1.42 against kernel 3.3.1 I get this:

WARNING: /lib/modules/3.3.1-3.fc13.i686/extra/xtables-addons/xt_ECHO.ko needs unknown symbol ip6_dst_hoplimit
WARNING: /lib/modules/3.3.1-3.fc13.i686/extra/xtables-addons/xt_ECHO.ko needs unknown symbol ip6_local_out
WARNING: /lib/modules/3.3.1-3.fc13.i686/extra/xtables-addons/xt_ECHO.ko needs unknown symbol ip6_route_output

I do not have ipv6 enabled at all, maybe that's why this is happening, though I did not have this problem with earlier versions.

#4 lore raw

Re: xtables-addons link error

Quoted 8 lines · Mr Dash Four
Quoted 1 line

Thanks, I'll deploy it later on today.

When I try to link/build xtables-addons 1.42 against kernel 3.3.1 I get this:

WARNING: /lib/modules/3.3.1-3.fc13.i686/extra/xtables-addons/xt_ECHO.ko needs unknown symbol ip6_dst_hoplimit
WARNING: /lib/modules/3.3.1-3.fc13.i686/extra/xtables-addons/xt_ECHO.ko needs unknown symbol ip6_local_out
WARNING: /lib/modules/3.3.1-3.fc13.i686/extra/xtables-addons/xt_ECHO.ko needs unknown symbol ip6_route_output

I do not have ipv6 enabled at all, maybe that's why this is happening, though I did not have this problem with earlier versions.

As a temporary mitigation, please set build_ECHO=n in the mconfig file.

#5 lore raw

Re: xtables-addons link error

Quoted 3 lines

As a temporary mitigation, please set build_ECHO=n in the mconfig file.

Will do, thanks. That will exclude the ECHO module from the final build I take it, right?

On a side note - since I am building/testing kernels for various purposes more often than compiling/building xta kernel modules (I am also pretty fed up with having to build/reinstall my buildsys packages every time I move to another kernel!), I decided to incorporate the xta kernel modules as a kernel patch instead of building them separately each time I build a kernel for testing.

I remember getting the above errors, but since it was the first time I have attempted to include the xta modules as a patch, I thought that I must be doing something wrong. In addition to the above errors I also got a separate error, which stemmed from one of the xta kernel modules (I think it was DNETMAP) using/depending on a separate .o/.so kernel file being built prior to it, hence a few other unresolved symbols during linking. It was the reason I abandoned this effort pretty quickly.

Has this been attempted before - to include the xta modules as part of the kernel? If there is an interest, I could dig in again to see what other linking errors was I getting - just let me know.

#6 lore raw

Re: xtables-addons link error

Quoted 2 lines

Has this been attempted before - to include the xta modules as part of the kernel? If there is an interest, I could dig in again to see what other linking errors was I getting - just let me know.

Forgot to add - for two of the xta modules (don't remember which ones though) there were errors that these are already in the kernel, so perhaps a logic in their code/Makefile could be added to exclude themselves from building if a decent/recent version of the kernel exists.