Linux Netfilter discussions
 help / color / mirror / Atom feed
* How to install xtables extension to arbitrary path when cross compiling iptables?
@ 2012-04-16 15:19 Kevin Wilson
  2012-04-16 15:59 ` Jan Engelhardt
  0 siblings, 1 reply; 6+ messages in thread
From: Kevin Wilson @ 2012-04-16 15:19 UTC (permalink / raw)
  To: netfilter

how to install xtables extension to arbitrary path when cross compiling?


I have this issue, which I cannot resolve, 
when cross compiling iptables 1.4.8 
with 
./configure --prefix=/home/kevin/fs/test1_iptables ... 
and running afterwards make and make install, and then 

on the target machine (which access the fs by NFS) I run: 

iptables -t nat -A POSTROUTING -o ppp0 -j SNAT -s 10.1.1.25
The error I get is:

./iptables -A FORWARD -i eth1 -j SNAT
iptables v1.4.8: Couldn't load target `SNAT'
:/home/kevin/fs/test1_iptables/libexec/xtables/libipt_SNAT.so: cannot open
shared object file: No such file or directory


Of course I don't have /home/kevin/fs/ on the boards (this path is on the machine
on which I ran the cross compile).
I saw 
this post in gmane.comp.security.firewalls.netfilter.general.
http://comments.gmane.org/gmane.comp.security.firewalls.netfilter.general/40914

but it seems that the problem persists.

I tried also to work with DESTDIR and with other ideas from this post, but
nothing helped. 

What is the problem here, does anybody know ? I believe that cross compiling 
iptables and setting a path to xtables libs not to an absolute path 
is possible. Any ideas ?  


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

* Re: How to install xtables extension to arbitrary path when cross compiling iptables?
  2012-04-16 15:19 How to install xtables extension to arbitrary path when cross compiling iptables? Kevin Wilson
@ 2012-04-16 15:59 ` Jan Engelhardt
  2012-04-17 12:58   ` Kevin Wilson
  0 siblings, 1 reply; 6+ messages in thread
From: Jan Engelhardt @ 2012-04-16 15:59 UTC (permalink / raw)
  To: Kevin Wilson; +Cc: netfilter


On Monday 2012-04-16 17:19, Kevin Wilson wrote:
>
>on the target machine (which access the fs by NFS) I run: 
>
>iptables -t nat -A POSTROUTING -o ppp0 -j SNAT -s 10.1.1.25
>The error I get is:
>
>./iptables -A FORWARD -i eth1 -j SNAT
>iptables v1.4.8: Couldn't load target `SNAT'
>:/home/kevin/fs/test1_iptables/libexec/xtables/libipt_SNAT.so: cannot open
>shared object file: No such file or directory
>how to install xtables extension to arbitrary path when cross compiling?

Like any other automake project, DESTDIR specifies the basepath
for staged installs, and args to configure are what the target looks in.

	./configure --prefix=/test1_iptables
	make install DESTDIR=/home/kevin/fs

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

* Re: How to install xtables extension to arbitrary path when cross compiling iptables?
  2012-04-16 15:59 ` Jan Engelhardt
@ 2012-04-17 12:58   ` Kevin Wilson
  2012-04-17 13:04     ` Jan Engelhardt
  0 siblings, 1 reply; 6+ messages in thread
From: Kevin Wilson @ 2012-04-17 12:58 UTC (permalink / raw)
  To: netfilter

Hi, 

Tried as you said and got 
after make install DESTDIR=/home/kevin/fs

mv -f .deps/iptables_multi-xshared.Tpo .deps/iptables_multi-xshared.Po
make[1]: *** No rule to make target `extensions/libext4.a', needed by
`iptables-multi'.  Stop.
make[1]: Leaving directory `/work/src/iptables-1.4.8'
make: *** [install-recursive] Error 1

----

Any ideas ? 
KW





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

* Re: How to install xtables extension to arbitrary path when cross compiling iptables?
  2012-04-17 12:58   ` Kevin Wilson
@ 2012-04-17 13:04     ` Jan Engelhardt
  2012-04-17 15:09       ` Sri Ram Vemulpali
  0 siblings, 1 reply; 6+ messages in thread
From: Jan Engelhardt @ 2012-04-17 13:04 UTC (permalink / raw)
  To: Kevin Wilson; +Cc: netfilter

On Tuesday 2012-04-17 14:58, Kevin Wilson wrote:

>Hi, 
>
>Tried as you said and got 
>after make install DESTDIR=/home/kevin/fs

You have to run `make` before `make install`.

>mv -f .deps/iptables_multi-xshared.Tpo .deps/iptables_multi-xshared.Po
>make[1]: *** No rule to make target `extensions/libext4.a', needed by
>`iptables-multi'.  Stop.
>make[1]: Leaving directory `/work/src/iptables-1.4.8'
>make: *** [install-recursive] Error 1

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

* Re: How to install xtables extension to arbitrary path when cross compiling iptables?
  2012-04-17 13:04     ` Jan Engelhardt
@ 2012-04-17 15:09       ` Sri Ram Vemulpali
  2012-04-17 15:11         ` Jan Engelhardt
  0 siblings, 1 reply; 6+ messages in thread
From: Sri Ram Vemulpali @ 2012-04-17 15:09 UTC (permalink / raw)
  To: Jan Engelhardt; +Cc: Kevin Wilson, netfilter

Check out cmdline parameter -host, -target, -build for configuring the
build. I think you might have gone wrong in there.

On Tue, Apr 17, 2012 at 9:04 AM, Jan Engelhardt <jengelh@medozas.de> wrote:
> On Tuesday 2012-04-17 14:58, Kevin Wilson wrote:
>
>>Hi,
>>
>>Tried as you said and got
>>after make install DESTDIR=/home/kevin/fs
>
> You have to run `make` before `make install`.
>
>>mv -f .deps/iptables_multi-xshared.Tpo .deps/iptables_multi-xshared.Po
>>make[1]: *** No rule to make target `extensions/libext4.a', needed by
>>`iptables-multi'.  Stop.
>>make[1]: Leaving directory `/work/src/iptables-1.4.8'
>>make: *** [install-recursive] Error 1
> --
> 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



-- 
Regards,
Sri.

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

* Re: How to install xtables extension to arbitrary path when cross compiling iptables?
  2012-04-17 15:09       ` Sri Ram Vemulpali
@ 2012-04-17 15:11         ` Jan Engelhardt
  0 siblings, 0 replies; 6+ messages in thread
From: Jan Engelhardt @ 2012-04-17 15:11 UTC (permalink / raw)
  To: Sri Ram Vemulpali; +Cc: Kevin Wilson, netfilter

On Tuesday 2012-04-17 17:09, Sri Ram Vemulpali wrote:

>Check out cmdline parameter -host, -target, -build for configuring the
>build. I think you might have gone wrong in there.

The value of those parameters is not even used, so no.

>On Tue, Apr 17, 2012 at 9:04 AM, Jan Engelhardt <jengelh@medozas.de> wrote:
>> On Tuesday 2012-04-17 14:58, Kevin Wilson wrote:
>>
>>>Hi,
>>>
>>>Tried as you said and got
>>>after make install DESTDIR=/home/kevin/fs
>>
>> You have to run `make` before `make install`.
>>
>>>mv -f .deps/iptables_multi-xshared.Tpo .deps/iptables_multi-xshared.Po
>>>make[1]: *** No rule to make target `extensions/libext4.a', needed by
>>>`iptables-multi'.  Stop.
>>>make[1]: Leaving directory `/work/src/iptables-1.4.8'
>>>make: *** [install-recursive] Error 1

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

end of thread, other threads:[~2012-04-17 15:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-16 15:19 How to install xtables extension to arbitrary path when cross compiling iptables? Kevin Wilson
2012-04-16 15:59 ` Jan Engelhardt
2012-04-17 12:58   ` Kevin Wilson
2012-04-17 13:04     ` Jan Engelhardt
2012-04-17 15:09       ` Sri Ram Vemulpali
2012-04-17 15:11         ` Jan Engelhardt

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