2010-05-07 01:42:10     iptables: can't resolve symbol '_register_target'

Document created by Aaronwu Employee on Aug 21, 2013
Version 1Show Document
  • View in full screen mode

2010-05-07 01:42:10     iptables: can't resolve symbol '_register_target'

w w (CHINA)

Message: 89208   

 

Hi, all

 

when I use iptables under uClinux-dist-2009R1.1-RC4, the err is like this:

 

root:/home/usr/bin> iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -j MASQUERADE

iptables: can't resolve symbol '_register_target'

root:/home/usr/bin>

 

It's the err about "-j MASQUERADE" and there is no error If I use "-j ACCEPT".

 

In my linux kernel, both ACCEPT and MASSUERADE are selected, like

 

CONFIG_IP_NF_FILTER=y

CONFIG_IP_NF_TARGET_REJECT=y

CONFIG_IP_NF_TARGET_LOG=y

CONFIG_IP_NF_TARGET_ULOG=y

CONFIG_NF_NAT=y

CONFIG_NF_NAT_NEEDED=y

CONFIG_IP_NF_TARGET_MASQUERADE=y

CONFIG_IP_NF_TARGET_NETMAP=y

CONFIG_IP_NF_TARGET_REDIRECT=y

CONFIG_NF_NAT_SNMP_BASIC=y

 

Any suggestions?

QuoteReplyEditDelete

 

 

2010-05-10 13:10:35     Re: iptables: can't resolve symbol '_register_target'

Mike Frysinger (UNITED STATES)

Message: 89290   

 

you didnt say what file format you're actually using

QuoteReplyEditDelete

 

 

2010-05-10 21:24:11     Re: iptables: can't resolve symbol '_register_target'

w w (CHINA)

Message: 89296   

 

My nor flash is jffs2 file system,my nand flash is yaffs file system. My kernel and file system is on nor flash.

QuoteReplyEditDelete

 

 

2010-05-10 22:23:17     Re: iptables: can't resolve symbol '_register_target'

w w (CHINA)

Message: 89297   

 

I use FDPIC_ELF FMT. My config file is like this:

#

# Blackfin build options

#

# CONFIG_FMT_USE_FLAT is not set

# CONFIG_FMT_USE_SEP_DATA is not set

# CONFIG_FMT_USE_SHARED_FLAT is not set

CONFIG_FMT_USE_FDPIC_ELF=y

CONFIG_INSTALL_ELF_SHARED_LIBS=y

# CONFIG_INSTALL_ELF_TRIM_LIBS is not set

# CONFIG_INSTALL_FLAT_SHARED_LIBS is not set

CONFIG_USER_CFLAGS="-g -O2"

# CONFIG_BLACKFIN_CHECK_STACKFLOW is not set

# CONFIG_BLACKFIN_CHECK_POINTER is not set

# CONFIG_BLACKFIN_INSTALL_UCLINUX_CONFIG is not set

 

thank you !

QuoteReplyEditDelete

 

 

2010-05-10 23:38:51     Re: iptables: can't resolve symbol'_register_target'

Mike Frysinger (UNITED STATES)

Message: 89298    should be fixed in latest svn branch now

QuoteReplyEditDelete

 

 

2010-05-11 04:06:26     Re: iptables: can't resolve symbol'_register_target'

w w (CHINA)

Message: 89319   

 

It's ok, thanks.

Attachments

    Outcomes