All of lore.kernel.org
 help / color / mirror / Atom feed
From: Juha Heljoranta <juha.heljoranta@evtek.fi>
To: "netfilter-devel@lists.netfilter.org"
	<netfilter-devel@lists.netfilter.org>
Subject: iptables module linking issue
Date: Sun, 17 Apr 2005 15:07:45 +0300	[thread overview]
Message-ID: <42625191.8060805@evtek.fi> (raw)

Hi,

I had a trouble while trying to get iptables to load my extension. Here
is what I mean:


$ /usr/local/sbin/iptables -A INPUT -m vmexec --vmexec-file \
/usr/bin/wget -j ACCEPT
iptables v1.2.11: Couldn't load match
`vmexec':/usr/local/lib/iptables/libipt_vmexec.so: undefined symbol: stat

Try `iptables -h' or 'iptables --help' for more information.
$ # libc is missing, fix it with -lc
$ ld -shared  -o extensions/libipt_vmexec.so \
extensions/libipt_vmexec_sh.o -lc
$ cp extensions/libipt_vmexec.so \
/usr/local/lib/iptables/libipt_vmexec.so
$ # now it works
$ /usr/local/sbin/iptables -A INPUT -m vmexec --vmexec-file \
/usr/bin/wget -j ACCEPT


I tried to compile iptables with NO_SHARED_LIBS=1 resulting lot of
compile errors.

I also tried to add #include <sys/stat.h> into iptables.c with no effect.

What would be the correct way to get some symbol properly linked into
iptables module?

Regards,
Juha Heljoranta

                 reply	other threads:[~2005-04-17 12:07 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=42625191.8060805@evtek.fi \
    --to=juha.heljoranta@evtek.fi \
    --cc=netfilter-devel@lists.netfilter.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.