Skip to contentSkip to conversation

Compilation problem??

DISCUSSION Daniel Corrêa de Azevedo 1 participant 1 message Jun 30, 2004 netfilter

lore
Share & tools
lore
#0 lore raw

Hi there.
Another problem I'm having with my little HA project is that I added some feature to
iptables-standalone.c source (basically, add code so that it can send what args it received to some other machine that will do the same 'do_command()' call) and I compile only it successfully but get a erro message whenever I try to add a rule:

# ./iptables-ha -A INPUT -i ! eth0 -j DROP 
iptables-ha v0.0.99: Couldn't load target `standard':/usr/local/lib/iptables/libipt_standard.so: 
undefined symbol: register_target 

I've searched this at google and I found the same question in a developers mail list, but no
one answered the question. I was hoping that any of you guys might have a clue of how to solve this.
If it helps, I'm compiling my iptables-ha-standalone.c with this:

#gcc -o iptables-ha iptables-ha-standalone.c -I ./iptables-ha.o /usr/local/src/iptables-1.2.9/include/ /usr/local/src/iptables-1.2.9/iptables.o /usr/local/lib/libiptc.a -ldl -g

I've also tryied with adding the libext.a library, but got the same error.

Thanks in advance for any help,

Daniel C. Azevedo