Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Denys Vlasenko <vda.linux@googlemail.com>
To: Saravanan Chanemouganandam <schane@osmozis.com>
Cc: busybox@busybox.net, netfilter@vger.kernel.org
Subject: Re: iptables - Couldn't load target error
Date: Thu, 20 Dec 2007 17:26:06 +0000	[thread overview]
Message-ID: <200712201726.06492.vda.linux@googlemail.com> (raw)
In-Reply-To: <200712201449.43555.schane@osmozis.com>

On Thursday 20 December 2007 13:49, Saravanan Chanemouganandam wrote:
> Hi vda,
>
> I accept your comment and others that it was not a busybox related issue.
>
> Well, here is my situation.I built a small rootfs for my arm pxa270 target
> board on the host x86 machine using the latest Buildroot. I then downloaded
> & installed iptables(v1.3.8)  using
>
> make KERNEL_DIR=/home/sara/cm-x270/linux-2.6.16
> CC=/home/sara/BuildRoot/buildroot/build_arm/staging_dir/usr/bin/arm-linux-g
>cc
> LD=/home/sara/BuildRoot/buildroot/build_arm/staging_dir/usr/bin/arm-linux-l
>d BINDIR=/home/sara/BuildRoot/buildroot/project_build_arm/uclibc/root/sbin
> LIBDIR=/home/sara/BuildRoot/buildroot/project_build_arm/uclibc/root/lib
>
> make
> BINDIR=/home/sara/BuildRoot/buildroot/project_build_arm/uclibc/root/sbin
> LIBDIR=/home/sara/BuildRoot/buildroot/project_build_arm/uclibc/root/lib
> install
>
> command install all iptables into the rootfs under
> "/home/sara/BuildRoot/buildroot/project_build_arm/uclibc/root" with all
> iptables and extension supports are built into linux kernel
> "/home/sara/cm-x270/linux-2.6.16" image.

Yes, but iptable developers meant that option to indicate
_where to find_ modules at runtime!

You need to have different LIBDIR= settings for "make" and "make install".

make LIBDIR=/where/to/look/for/modules/at/runtime
make LIBDIR=/where/to/install/modules              install

If it will not work (say, make install will start rebuilding stuff
due to changed LIBDIR), you will need to do "make install" -
by hand copying stuff. Feel free to curse a lot in the process.

--
vda

      reply	other threads:[~2007-12-20 17:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-19 11:21 iptables - Couldn't load target error Saravanan Chanemouganandam
2007-12-19 11:56 ` Alexander Griesser
2007-12-19 12:48 ` Mike Frysinger
2007-12-20 10:03 ` Denys Vlasenko
2007-12-20 13:49   ` Saravanan Chanemouganandam
2007-12-20 17:26     ` Denys Vlasenko [this message]

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=200712201726.06492.vda.linux@googlemail.com \
    --to=vda.linux@googlemail.com \
    --cc=busybox@busybox.net \
    --cc=netfilter@vger.kernel.org \
    --cc=schane@osmozis.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox