Linux Netfilter discussions
 help / color / mirror / Atom feed
* ipp2 won't compile with lastest  iptables from  git
@ 2008-07-04 15:33 SŽébastien Cramatte
  2008-07-04 16:46 ` Jan Engelhardt
  0 siblings, 1 reply; 7+ messages in thread
From: SŽébastien Cramatte @ 2008-07-04 15:33 UTC (permalink / raw)
  To: netfilter

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




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: ipp2 won't compile with lastest  iptables from  git
  2008-07-04 15:33 ipp2 won't compile with lastest iptables from git SŽébastien Cramatte
@ 2008-07-04 16:46 ` Jan Engelhardt
  2008-07-04 19:11   ` SŽébastien Cramatte
  0 siblings, 1 reply; 7+ messages in thread
From: Jan Engelhardt @ 2008-07-04 16:46 UTC (permalink / raw)
  To: SŽébastien Cramatte; +Cc: netfilter


On Friday 2008-07-04 17:33, S?ébastien Cramatte wrote:

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

The latest ipp2p version is included in Xtables-addons.

> 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.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: ipp2 won't compile with lastest  iptables from  git
  2008-07-04 16:46 ` Jan Engelhardt
@ 2008-07-04 19:11   ` SŽébastien Cramatte
  2008-07-04 19:25     ` Jan Engelhardt
  0 siblings, 1 reply; 7+ messages in thread
From: SŽébastien Cramatte @ 2008-07-04 19:11 UTC (permalink / raw)
  To: netfilter; +Cc: Jan Engelhardt

Jan Engelhardt escribió:
> On Friday 2008-07-04 17:33, S?ébastien Cramatte wrote:
>
>   
>> Hi
>>
>> I can't compile ipp2p wit the latest iptables from git !
>>     
>
> The latest ipp2p version is included in Xtables-addons.
>
>   
>> 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 ?


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: ipp2 won't compile with lastest  iptables from  git
  2008-07-04 19:11   ` SŽébastien Cramatte
@ 2008-07-04 19:25     ` Jan Engelhardt
  2008-07-04 19:29       ` SŽébastien Cramatte
  0 siblings, 1 reply; 7+ messages in thread
From: Jan Engelhardt @ 2008-07-04 19:25 UTC (permalink / raw)
  To: SŽébastien Cramatte; +Cc: netfilter


On Friday 2008-07-04 21:11, S?ébastien Cramatte wrote:
>> > 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 !

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?

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: ipp2 won't compile with lastest  iptables from  git
  2008-07-04 19:25     ` Jan Engelhardt
@ 2008-07-04 19:29       ` SŽébastien Cramatte
  2008-07-04 20:17         ` Jan Engelhardt
  0 siblings, 1 reply; 7+ messages in thread
From: SŽébastien Cramatte @ 2008-07-04 19:29 UTC (permalink / raw)
  To: Jan Engelhardt; +Cc: netfilter

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

Jan Engelhardt escribió:
> On Friday 2008-07-04 21:11, S?ébastien Cramatte wrote:
>   
>>>> 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 !
>>     
>
> 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?
>
>   
>> 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 majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>   


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: ipp2 won't compile with lastest  iptables from  git
  2008-07-04 19:29       ` SŽébastien Cramatte
@ 2008-07-04 20:17         ` Jan Engelhardt
  2008-07-04 20:26           ` SŽébastien Cramatte
  0 siblings, 1 reply; 7+ messages in thread
From: Jan Engelhardt @ 2008-07-04 20:17 UTC (permalink / raw)
  To: SŽébastien Cramatte; +Cc: netfilter


On Friday 2008-07-04 21:29, S?ébastien Cramatte wrote:

> 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.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: ipp2 won't compile with lastest  iptables from  git
  2008-07-04 20:17         ` Jan Engelhardt
@ 2008-07-04 20:26           ` SŽébastien Cramatte
  0 siblings, 0 replies; 7+ messages in thread
From: SŽébastien Cramatte @ 2008-07-04 20:26 UTC (permalink / raw)
  To: Jan Engelhardt; +Cc: netfilter

Jan Engelhardt escribió:
> On Friday 2008-07-04 21:29, S?ébastien Cramatte wrote:
>
>   
>> 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.
>   
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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-07-04 20:26 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-04 15:33 ipp2 won't compile with lastest iptables from git SŽébastien Cramatte
2008-07-04 16:46 ` Jan Engelhardt
2008-07-04 19:11   ` SŽébastien Cramatte
2008-07-04 19:25     ` Jan Engelhardt
2008-07-04 19:29       ` SŽébastien Cramatte
2008-07-04 20:17         ` Jan Engelhardt
2008-07-04 20:26           ` SŽébastien Cramatte

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox