[Xorp-users] error when compiling xorp1.8.3

颜玮 yanwei at bupt.edu.cn
Mon Jul 4 20:00:06 PDT 2011


Hi,everyone,
I tried to compile xorp 1.8.3,but i failed,the error messages sre as below:
//-----------------------------------------------------------------------
fea/data_plane/firewall/firewall_get_netfilter.cc: In member function
‘virtual int FirewallGetNetfilter::get_table4(std::list<FirewallEntry,
std::allocator<FirewallEntry> >&, std::string&)’:
fea/data_plane/firewall/firewall_get_netfilter.cc:179: error: aggregate
‘ipt_getinfo info4’ has incomplete type and cannot be defined
fea/data_plane/firewall/firewall_get_netfilter.cc:190: error:
‘IPT_SO_GET_INFO’ was not declared in this scope
fea/data_plane/firewall/firewall_get_netfilter.cc:199: error: invalid
application of ‘sizeof’ to incomplete type ‘ipt_get_entries’
fea/data_plane/firewall/firewall_get_netfilter.cc:201: error:
‘IPT_SO_GET_ENTRIES’ was not declared in this scope
fea/data_plane/firewall/firewall_get_netfilter.cc:220: error: invalid
use of incomplete type ‘struct ipt_entry’
fea/data_plane/firewall/firewall_get_netfilter.cc:213: error: forward
declaration of ‘struct ipt_entry’
fea/data_plane/firewall/firewall_get_netfilter.cc:246: error: invalid
use of incomplete type ‘struct ipt_entry’
fea/data_plane/firewall/firewall_get_netfilter.cc:213: error: forward
declaration of ‘struct ipt_entry’
fea/data_plane/firewall/firewall_get_netfilter.cc:249: error: invalid
use of incomplete type ‘struct ipt_entry_target’
fea/data_plane/firewall/firewall_get_netfilter.cc:215: error: forward
declaration of ‘struct ipt_entry_target’
fea/data_plane/firewall/firewall_get_netfilter.cc:249: error:
‘IPT_STANDARD_TARGET’ was not declared in this scope
fea/data_plane/firewall/firewall_get_netfilter.cc:250: error: invalid
use of incomplete type ‘struct ipt_entry_target’
fea/data_plane/firewall/firewall_get_netfilter.cc:215: error: forward
declaration of ‘struct ipt_entry_target’
fea/data_plane/firewall/firewall_get_netfilter.cc:252: error: invalid
use of incomplete type ‘struct ipt_entry_target’
fea/data_plane/firewall/firewall_get_netfilter.cc:215: error: forward
declaration of ‘struct ipt_entry_target’
fea/data_plane/firewall/firewall_get_netfilter.cc:257: error: invalid
use of incomplete type ‘struct ipt_standard_target’
fea/data_plane/firewall/firewall_get_netfilter.cc:216: error: forward
declaration of ‘struct ipt_standard_target’
fea/data_plane/firewall/firewall_get_netfilter.cc:265: error: invalid
use of incomplete type ‘struct ipt_standard_target’
fea/data_plane/firewall/firewall_get_netfilter.cc:216: error: forward
declaration of ‘struct ipt_standard_target’
fea/data_plane/firewall/firewall_get_netfilter.cc:274: error: invalid
use of incomplete type ‘struct ipt_entry’
fea/data_plane/firewall/firewall_get_netfilter.cc:213: error: forward
declaration of ‘struct ipt_entry’
fea/data_plane/firewall/firewall_get_netfilter.cc:275: error: invalid
use of incomplete type ‘struct ipt_entry’
fea/data_plane/firewall/firewall_get_netfilter.cc:213: error: forward
declaration of ‘struct ipt_entry’
fea/data_plane/firewall/firewall_get_netfilter.cc:281: error: invalid
use of incomplete type ‘struct ipt_entry’
fea/data_plane/firewall/firewall_get_netfilter.cc:213: error: forward
declaration of ‘struct ipt_entry’
fea/data_plane/firewall/firewall_get_netfilter.cc:282: error: invalid
use of incomplete type ‘struct ipt_entry’
fea/data_plane/firewall/firewall_get_netfilter.cc:213: error: forward
declaration of ‘struct ipt_entry’
fea/data_plane/firewall/firewall_get_netfilter.cc:283: error: invalid
use of incomplete type ‘struct ipt_entry’
fea/data_plane/firewall/firewall_get_netfilter.cc:213: error: forward
declaration of ‘struct ipt_entry’
fea/data_plane/firewall/firewall_get_netfilter.cc:284: error: invalid
use of incomplete type ‘struct ipt_entry’
fea/data_plane/firewall/firewall_get_netfilter.cc:213: error: forward
declaration of ‘struct ipt_entry’
fea/data_plane/firewall/firewall_get_netfilter.cc:292: error: invalid
application of ‘sizeof’ to incomplete type ‘ipt_entry’
fea/data_plane/firewall/firewall_get_netfilter.cc:292: error: invalid
use of incomplete type ‘struct ipt_entry’
fea/data_plane/firewall/firewall_get_netfilter.cc:213: error: forward
declaration of ‘struct ipt_entry’
fea/data_plane/firewall/firewall_get_netfilter.cc:296: error: invalid
use of incomplete type ‘struct ipt_entry_match’
fea/data_plane/firewall/firewall_get_netfilter.cc:214: error: forward
declaration of ‘struct ipt_entry_match’
fea/data_plane/firewall/firewall_get_netfilter.cc:297: error: invalid
use of incomplete type ‘struct ipt_entry’
fea/data_plane/firewall/firewall_get_netfilter.cc:213: error: forward
declaration of ‘struct ipt_entry’
fea/data_plane/firewall/firewall_get_netfilter.cc:301: error: invalid
use of incomplete type ‘struct ipt_entry_match’
fea/data_plane/firewall/firewall_get_netfilter.cc:214: error: forward
declaration of ‘struct ipt_entry_match’
fea/data_plane/firewall/firewall_get_netfilter.cc:302: error: invalid
use of incomplete type ‘struct ipt_tcp’
fea/data_plane/firewall/firewall_get_netfilter.cc:300: error: forward
declaration of ‘struct ipt_tcp’
fea/data_plane/firewall/firewall_get_netfilter.cc:303: error: invalid
use of incomplete type ‘struct ipt_tcp’
fea/data_plane/firewall/firewall_get_netfilter.cc:300: error: forward
declaration of ‘struct ipt_tcp’
fea/data_plane/firewall/firewall_get_netfilter.cc:304: error: invalid
use of incomplete type ‘struct ipt_tcp’
fea/data_plane/firewall/firewall_get_netfilter.cc:300: error: forward
declaration of ‘struct ipt_tcp’
fea/data_plane/firewall/firewall_get_netfilter.cc:305: error: invalid
use of incomplete type ‘struct ipt_tcp’
fea/data_plane/firewall/firewall_get_netfilter.cc:300: error: forward
declaration of ‘struct ipt_tcp’
fea/data_plane/firewall/firewall_get_netfilter.cc:311: error: invalid
use of incomplete type ‘struct ipt_entry_match’
fea/data_plane/firewall/firewall_get_netfilter.cc:214: error: forward
declaration of ‘struct ipt_entry_match’
fea/data_plane/firewall/firewall_get_netfilter.cc:312: error: invalid
use of incomplete type ‘struct ipt_udp’
fea/data_plane/firewall/firewall_get_netfilter.cc:310: error: forward
declaration of ‘struct ipt_udp’
fea/data_plane/firewall/firewall_get_netfilter.cc:313: error: invalid
use of incomplete type ‘struct ipt_udp’
fea/data_plane/firewall/firewall_get_netfilter.cc:310: error: forward
declaration of ‘struct ipt_udp’
fea/data_plane/firewall/firewall_get_netfilter.cc:314: error: invalid
use of incomplete type ‘struct ipt_udp’
fea/data_plane/firewall/firewall_get_netfilter.cc:310: error: forward
declaration of ‘struct ipt_udp’
fea/data_plane/firewall/firewall_get_netfilter.cc:315: error: invalid
use of incomplete type ‘struct ipt_udp’
fea/data_plane/firewall/firewall_get_netfilter.cc:310: error: forward
declaration of ‘struct ipt_udp’
fea/data_plane/firewall/firewall_get_netfilter.cc:326: error: invalid
use of incomplete type ‘struct ipt_entry’
fea/data_plane/firewall/firewall_get_netfilter.cc:213: error: forward
declaration of ‘struct ipt_entry’
fea/data_plane/firewall/firewall_get_netfilter.cc:327: error: invalid
use of incomplete type ‘struct ipt_entry’
fea/data_plane/firewall/firewall_get_netfilter.cc:213: error: forward
declaration of ‘struct ipt_entry’
scons: ***
[obj/i686-pc-linux-gnu/fea/data_plane/firewall/firewall_get_netfilter.os] Error
1
scons: building terminated because of errors.
//-----------------------------------------------------------------------------

Anybody know how to solve the problem? By the way, i'm using Ubuntu
10.04 with kernel version 2.6.32-21. Thanks a lot!

--yan



More information about the Xorp-users mailing list