All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Engelhardt <jengelh@medozas.de>
To: Mr Dash Four <mr.dash.four@googlemail.com>
Cc: Fabrice <fabricedeyber@agilemesh.com>, netfilter@vger.kernel.org
Subject: Re: how to install xtables extension to arbitrary path?
Date: Mon, 14 Feb 2011 15:50:34 +0100 (CET)	[thread overview]
Message-ID: <alpine.LNX.2.01.1102141548410.5842@obet.zrqbmnf.qr> (raw)
In-Reply-To: <4D593F90.5020609@googlemail.com>


On Monday 2011-02-14 15:43, Mr Dash Four wrote:
>
>>> When building iptables, we can use "configure" to specify the xtables
>>> extension install path by "prefix" or "withxtlibdir". And when we
>>> running the iptables, iptables seems to search for the xtables extension
>>> libraries only in the path that was specified by "configure". If we move
>>> the xtables extension libraries to some other place, iptables will
>>> report failing to load the "so" files.
>>>
>>> Because I'm doing cross compiling, and I will place the xtables
>>> extension libraries in the target board, and the final path might be
>>> different than the "configure" path. Do you know how to make iptables to
>>> load the correct xtables extensions?
>> Hi Xing,
>> I'm having the same issue. I'm able to cross compile but when I install to
>> another file system the libraries always look at the absolute path which is
>> not valid anymore. How did you get around the issue?

 --prefix/--with-xtlibdir is only meant to specify the directory
relative to the root of the final running system. To stage files
elsewhere, use the DESTDIR variable on make install.
See autoconf info, section 16.4 "Installation names".

>One possible solution to this (though not ideal by any means!) is to use
>modprobe and force the .so files to be loaded in advance as soon as the system
>is initialised (possibly through rc.sysinit).

Finding the .so files has nothing to do with modprobe however.

  reply	other threads:[~2011-02-14 14:50 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-14 14:25 how to install xtables extension to arbitrary path? Xing Qianqian
2010-10-14 15:40 ` Jan Engelhardt
2011-02-14 14:25 ` Fabrice
2011-02-14 14:43   ` Mr Dash Four
2011-02-14 14:50     ` Jan Engelhardt [this message]
2011-02-14 14:55       ` Mr Dash Four
2011-02-14 15:03       ` Fabrice
2011-02-14 15:20         ` Jan Engelhardt
2011-02-14 15:25           ` Fabrice
2011-02-14 15:43             ` Jan Engelhardt
2011-02-14 16:19               ` Fabrice
2011-02-14 17:43                 ` Fabrice
2011-02-14 22:53                   ` Jan Engelhardt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.LNX.2.01.1102141548410.5842@obet.zrqbmnf.qr \
    --to=jengelh@medozas.de \
    --cc=fabricedeyber@agilemesh.com \
    --cc=mr.dash.four@googlemail.com \
    --cc=netfilter@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.