Skip to contentSkip to conversation

ipp2 won't compile with lastest iptables from git

DISCUSSION SŽébastien Cramatte 2 participants 7 messages Jul 4, 2008

lore
Share & tools
lore
#0 lore raw

Hi

I can't compile ipp2p wit the latest iptables from git !
I've applied the ipp2p patch from patch-o-matic git ... When I open libipt_ipp2.c it seems that the source already has the required change for iptables 1.4.x ... biut unfortuanteley doesn't works for me !

...
make[2]: Entering directory `/usr/src/iptables/extensions'
CC libipt_ipp2p.oo
libipt_ipp2p.c:396: error: variable 'ipp2p' has initializer but incomplete type libipt_ipp2p.c:398: error: unknown field 'next' specified in initializer libipt_ipp2p.c:398: warning: excess elements in struct initializer libipt_ipp2p.c:398: warning: (near initialization for 'ipp2p') libipt_ipp2p.c:399: error: unknown field 'name' specified in initializer libipt_ipp2p.c:399: warning: excess elements in struct initializer libipt_ipp2p.c:399: warning: (near initialization for 'ipp2p') libipt_ipp2p.c:400: error: unknown field 'version' specified in initializer libipt_ipp2p.c:400: error: 'IPTABLES_VERSION' undeclared here (not in a function) libipt_ipp2p.c:400: warning: excess elements in struct initializer libipt_ipp2p.c:400: warning: (near initialization for 'ipp2p') libipt_ipp2p.c:401: error: unknown field 'size' specified in initializer libipt_ipp2p.c:401: warning: excess elements in struct initializer libipt_ipp2p.c:401: warning: (near initialization for 'ipp2p') libipt_ipp2p.c:402: error: unknown field 'userspacesize' specified in initializer libipt_ipp2p.c:402: warning: excess elements in struct initializer libipt_ipp2p.c:402: warning: (near initialization for 'ipp2p') libipt_ipp2p.c:403: error: unknown field 'help' specified in initializer libipt_ipp2p.c:403: warning: excess elements in struct initializer libipt_ipp2p.c:403: warning: (near initialization for 'ipp2p') libipt_ipp2p.c:404: error: unknown field 'init' specified in initializer libipt_ipp2p.c:404: warning: excess elements in struct initializer libipt_ipp2p.c:404: warning: (near initialization for 'ipp2p') libipt_ipp2p.c:405: error: unknown field 'parse' specified in initializer libipt_ipp2p.c:405: warning: excess elements in struct initializer libipt_ipp2p.c:405: warning: (near initialization for 'ipp2p') libipt_ipp2p.c:406: error: unknown field 'final_check' specified in initializer libipt_ipp2p.c:406: warning: excess elements in struct initializer libipt_ipp2p.c:406: warning: (near initialization for 'ipp2p') libipt_ipp2p.c:407: error: unknown field 'print' specified in initializer libipt_ipp2p.c:407: warning: excess elements in struct initializer libipt_ipp2p.c:407: warning: (near initialization for 'ipp2p') libipt_ipp2p.c:408: error: unknown field 'save' specified in initializer libipt_ipp2p.c:408: warning: excess elements in struct initializer libipt_ipp2p.c:408: warning: (near initialization for 'ipp2p') libipt_ipp2p.c:409: error: unknown field 'extra_opts' specified in initializer libipt_ipp2p.c:410: warning: excess elements in struct initializer libipt_ipp2p.c:410: warning: (near initialization for 'ipp2p') libipt_ipp2p.c: In function 'libipt_ipp2p_init':
libipt_ipp2p.c:416: warning: implicit declaration of function 'register_match' make[2]: *** [libipt_ipp2p.oo] Error 1
make[2]: Leaving directory `/usr/src/iptables/extensions'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/iptables'
make: *** [all] Error 2

#1 lore raw
Quoted 3 lines · S?ébastien Cramatte

Hi

I can't compile ipp2p wit the latest iptables from git !

The latest ipp2p version is included in Xtables-addons.

Quoted 3 lines

I've applied the ipp2p patch from patch-o-matic git ... When I open libipt_ipp2.c it seems that the source already has the required change for iptables 1.4.x ... biut unfortuanteley doesn't works for me !

Because pom-ng is old and not updated.

#2 lore raw
Quoted 11 lines · Jan Engelhardt
Quoted 4 lines · S?ébastien Cramatte

Hi

I can't compile ipp2p wit the latest iptables from git !

The latest ipp2p version is included in Xtables-addons.

Quoted 7 lines
Quoted 4 lines

I've applied the ipp2p patch from patch-o-matic git ... When I open libipt_ipp2.c it seems that the source already has the required change for iptables 1.4.x ... biut unfortuanteley doesn't works for me !

Because pom-ng is old and not updated.

Yes ! But my problem is that I must package a kernel that use initramfs with all included modules. As pom-ng patch the kernel source was nice for me ...

Moreover I can't use Xtables-addons directly because I compile on dedicaded box that use another kernel than the target ! My target box boot from Compact Flash to memory and doesn't have development tools installed !

Any solutions ?

#3 lore raw
Quoted 5 lines · S?ébastien Cramatte
Quoted 5 lines
Quoted 4 lines

I've applied the ipp2p patch from patch-o-matic git ... When I open libipt_ipp2.c it seems that the source already has the required change for iptables 1.4.x ... biut unfortuanteley doesn't works for me !

Quoted 7 lines
Quoted 2 lines

Because pom-ng is old and not updated.

Yes ! But my problem is that I must package a kernel that use initramfs with all included modules. As pom-ng patch the kernel source was nice for me ...
Moreover I can't use Xtables-addons directly because I compile on dedicaded box that use another kernel than the target !

If it's just that, then that's easy:

1. compile kernel with appropriate cross-compiler
2. compile xtables-addons, pointing it to the kernel dir (you may need to specify the cross-compiler again if you did so in step 1)
3. profit.
4. copy .ko files into initramfs image.

Something missing?

Quoted 2 lines

My target box boot from Compact Flash to memory and doesn't have development tools installed !

#4 lore raw

This what I've done but ...

I can't compile xtables-addons with a 2.6.25.10 kernel
I get the latest sources from git and my setup my kernel before to include CONFIG_NF_CONNTRACK modules and dependencies.

/usr/src/xtables-addons#./configure --with-kbuild=/usr/src/linux --with-ksource=/usr/src/linux --with-xtables=/usr/src/xtables/
/usr/src/xtables-addons# make
make all-recursive
make[1]: Entering directory `/usr/src/xtables-addons'
Making all in extensions
make[2]: Entering directory `/usr/src/xtables-addons/extensions'
make -C /usr/src/linux M=/usr/src/xtables-addons/extensions XA_TOPSRCDIR=/usr/src/xtables-addons modules;
make[3]: Entering directory `/usr/src/etch-router-0.5.1/linux/linux-2.6.25.10'
CC [M] /usr/src/xtables-addons/extensions/xt_LOGMARK.o
In file included from /usr/src/xtables-addons/extensions/xt_LOGMARK.c:17:
/usr/src/xtables-addons/extensions/compat_xtables.h:14:4: warning: #warning You have CONFIG_NF_CONNTRACK enabled, but CONFIG_NF_CONNTRACK_MARK or CONFIG_NF_CONNTRACK_SECMARK are not (please enable). /usr/src/xtables-addons/extensions/xt_LOGMARK.c: In function 'logmark_tg':
/usr/src/xtables-addons/extensions/xt_LOGMARK.c:45: error: 'struct sk_buff' has no member named 'secmark'
make[4]: *** [/usr/src/xtables-addons/extensions/xt_LOGMARK.o] Error 1
make[3]: *** [_module_/usr/src/xtables-addons/extensions] Error 2
make[3]: Leaving directory `/usr/src/etch-router-0.5.1/linux/linux-2.6.25.10'
make[2]: *** [modules] Error 2
make[2]: Leaving directory `/usr/src/xtables-addons/extensions'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/xtables-addons'
make: *** [all] Error 2

Quoted 37 lines · Jan Engelhardt
Quoted 5 lines · S?ébastien Cramatte
Quoted 5 lines
Quoted 5 lines

I've applied the ipp2p patch from patch-o-matic git ... When I open libipt_ipp2.c it seems that the source already has the required change for iptables 1.4.x ... biut unfortuanteley doesn't works for me !

Quoted 9 lines
Quoted 3 lines

Because pom-ng is old and not updated.

Yes ! But my problem is that I must package a kernel that use initramfs with all included modules. As pom-ng patch the kernel source was nice for me ...
Moreover I can't use Xtables-addons directly because I compile on dedicaded box that use another kernel than the target !

If it's just that, then that's easy:

1. compile kernel with appropriate cross-compiler
2. compile xtables-addons, pointing it to the kernel dir (you may need to specify the cross-compiler again if you did so in step 1)
3. profit.
4. copy .ko files into initramfs image.

Something missing?

Quoted 3 lines

My target box boot from Compact Flash to memory and doesn't have development tools installed !

--
To unsubscribe from this list: send the line "unsubscribe netfilter" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#5 lore raw
Quoted 5 lines · S?ébastien Cramatte

This what I've done but ...

I can't compile xtables-addons with a 2.6.25.10 kernel
I get the latest sources from git and my setup my kernel before to include CONFIG_NF_CONNTRACK modules and dependencies.

You can select what modules to build (or not) by editing the 'mconfig' file in the xtables-addons directory. Either you enable said options in the kernel, or disable LOGMARK in mconfig.
Note however that some modules duly require NF_CONNTRACK.

#6 lore raw
Quoted 10 lines · Jan Engelhardt
Quoted 6 lines · S?ébastien Cramatte

This what I've done but ...

I can't compile xtables-addons with a 2.6.25.10 kernel
I get the latest sources from git and my setup my kernel before to include CONFIG_NF_CONNTRACK modules and dependencies.

Quoted 6 lines

You can select what modules to build (or not) by editing the 'mconfig' file in the xtables-addons directory. Either you enable said options in the kernel, or disable LOGMARK in mconfig.
Note however that some modules duly require NF_CONNTRACK.

I've enabled all the NF_CONNTRACK modules available in the kernel ... This is why I don't understand why xt_LOGMARK give this error ...

Please try it with a 2.6.25.10 ...

Regards