[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ns] nse compiler errors



To all,

I want to compile nse using a Sparc20 running Solaris8.  I was successful at
downloading, compiling and running 
ns-allinone-2.1b7a with out a problem.  How ever, if I try to compile nse in
the ns directory I get the following errors. 
Has anyone been successful at running nse on this platform and OS.  If so
how did you accomplish it?

 In file included from emulate/arp.cc:52:
/usr/include/netinet/if_ether.h:55: warning: `ETHERTYPE_PUP' redefined
/usr/include/sys/ethernet.h:41: warning: this is the location of the
previous definition
/usr/include/netinet/if_ether.h:56: warning: `ETHERTYPE_IP' redefined
/usr/include/sys/ethernet.h:42: warning: this is the location of the
previous definition
/usr/include/netinet/if_ether.h:57: warning: `ETHERTYPE_ARP' redefined
/usr/include/sys/ethernet.h:43: warning: this is the location of the
previous definition
/usr/include/netinet/if_ether.h:58: warning: `ETHERTYPE_REVARP' redefined
/usr/include/sys/ethernet.h:44: warning: this is the location of the
previous definition
/usr/include/netinet/if_ether.h:65: warning: `ETHERTYPE_TRAIL' redefined
/usr/include/sys/ethernet.h:52: warning: this is the location of the
previous definition
/usr/include/netinet/if_ether.h:66: warning: `ETHERTYPE_NTRAILER' redefined
/usr/include/sys/ethernet.h:53: warning: this is the location of the
previous definition
/usr/include/netinet/if_ether.h:68: warning: `ETHERMTU' redefined
/usr/include/sys/ethernet.h:55: warning: this is the location of the
previous definition
/usr/include/netinet/if_ether.h:69: warning: `ETHERMIN' redefined
/usr/include/sys/ethernet.h:56: warning: this is the location of the
previous definition
In file included from emulate/arp.cc:52:
/usr/include/netinet/if_ether.h:42: redefinition of `struct ether_addr'
/usr/include/sys/ethernet.h:30: previous definition here
/usr/include/netinet/if_ether.h:49: redefinition of `struct ether_header'
/usr/include/sys/ethernet.h:39: previous definition here
/usr/include/netinet/if_ether.h:129: member `struct ether_addr
arptab::{anonymous union}::atu_enaddr' with constructor not allowed in union
emulate/arp.cc: In method `ArpAgent::ArpAgent()':
emulate/arp.cc:117: no matching function for call to
`ether_header::ether_header ()'
/usr/include/netinet/if_ether.h:53: candidates are:
ether_header::ether_header(const ether_header &)
emulate/arp.cc:117: no matching function for call to `ether_addr::ether_addr
()'
/usr/include/netinet/if_ether.h:44: candidates are:
ether_addr::ether_addr(const ether_addr &)
emulate/arp.cc:119: no match for `ether_addr &[int]'
emulate/arp.cc:120: no match for `ether_addr &[int]'
emulate/arp.cc:121: no match for `ether_addr &[int]'
emulate/arp.cc:122: no match for `ether_addr &[int]'
emulate/arp.cc:123: no match for `ether_addr &[int]'
emulate/arp.cc:124: no match for `ether_addr &[int]'
emulate/arp.cc:126: `ETHER_ADDR_LEN' undeclared (first use this function)
emulate/arp.cc:126: (Each undeclared identifier is reported only once
emulate/arp.cc:126: for each function it appears in.)
emulate/arp.cc:143: no matching function for call to
`ArpAgent::acache_entry::acache_entry ()'
emulate/arp.cc:78: candidates are:
ArpAgent::acache_entry::acache_entry(const ArpAgent::acache_entry &)
emulate/arp.cc: In method `int ArpAgent::sendresp(ether_addr &, in_addr &,
ether_addr &)':
emulate/arp.cc:239: cannot convert `eh->ether_header::ether_dhost' from type
`ether_addr' to type `void *'
emulate/arp.cc: In method `void ArpAgent::dispatch(int)':
emulate/arp.cc:287: no matching function for call to `ArpAgent::doreply
(ether_arp *&)'
emulate/arp.cc:89: candidates are: void ArpAgent::doreply(ether_addr *)
emulate/arp.cc:290: no matching function for call to `ArpAgent::doreq
(ether_arp *&)'
emulate/arp.cc:88: candidates are: void ArpAgent::doreq(ether_addr *)
emulate/arp.cc: At top level:
emulate/arp.cc:306: prototype for `void ArpAgent::doreply(ether_arp *)' does
not match any in class `ArpAgent'
emulate/arp.cc:89: candidate is: void ArpAgent::doreply(ether_addr *)
emulate/arp.cc: In method `void ArpAgent::doreply(ether_arp *)':
emulate/arp.cc:313: no matching function for call to `ether_addr::ether_addr
()'
/usr/include/netinet/if_ether.h:44: candidates are:
ether_addr::ether_addr(const ether_addr &)
emulate/arp.cc: At top level:
emulate/arp.cc:326: prototype for `void ArpAgent::doreq(ether_arp *)' does
not match any in class `ArpAgent'
emulate/arp.cc:88: candidate is: void ArpAgent::doreq(ether_addr *)
emulate/arp.cc: In method `void ArpAgent::doreq(ether_arp *)':
emulate/arp.cc:339: no matching function for call to `ether_addr::ether_addr
()'
/usr/include/netinet/if_ether.h:44: candidates are:
ether_addr::ether_addr(const ether_addr &)
*** Error code 1
make: Fatal error: Command failed for target `emulate/arp.o' 


Thanks,
ScottS.
[email protected]