All of lore.kernel.org
 help / color / mirror / Atom feed
* iptables module linking issue
@ 2005-04-17 12:07 Juha Heljoranta
  0 siblings, 0 replies; only message in thread
From: Juha Heljoranta @ 2005-04-17 12:07 UTC (permalink / raw)
  To: netfilter-devel@lists.netfilter.org

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-04-17 12:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-17 12:07 iptables module linking issue Juha Heljoranta

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.