salamo alikom
when i recompile ns2.32
it give me this error
[r...@localhost ns-2.32]# make
g++ -c -Wall  -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR  -DNDEBUG 
-DLINUX_TCP_HEADER -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_13 
-DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H -DHAVE_LIBTCL8_4 -DHAVE_TCL_H  
-DHAVE_CONFIG_H -DNS_DIFFUSION -DSMAC_NO_SYNC -DCPP_NAMESPACE=std 
-DUSE_SINGLE_ADDRESS_SPACE -Drng_test  -I. -I. 
-I/home/mohammed_saad/nsrasha/ns-allinone-2.32/tclcl-1.19 
-I/home/mohammed_saad/nsrasha/ns-allinone-2.32/otcl-1.13 
-I/home/mohammed_saad/nsrasha/ns-allinone-2.32/include 
-I/home/mohammed_saad/nsrasha/ns-allinone-2.32/include -I/usr/include/pcap 
-I./tcp -I./sctp -I./common -I./link -I./queue -I./adc -I./apps -I./mac 
-I./mobile -I./trace -I./routing -I./tools -I./classifier -I./mcast 
-I./diffusion3/lib/main -I./diffusion3/lib -I./diffusion3/lib/nr 
-I./diffusion3/ns -I./diffusion3/filter_core -I./asim/ -I./qs -I./diffserv 
-I./satellite -I./wpan -o dsdv/dsdv.o dsdv/dsdv.cc
dsdv/dsdv.cc:16:27: cmu/cmu-trace.h: No such file or directory
dsdv/dsdv.cc: In member function `void DSDV_Agent::trace(char*, ...)':
dsdv/dsdv.cc:50: error: 'class Trace' has no member named 'buffer'
dsdv/dsdv.cc:51: error: 'class Trace' has no member named 'dump'
dsdv/dsdv.cc: In member function `void DSDV_Agent::lost_link(Packet*)':
dsdv/dsdv.cc:302: error: `DROP_RTR_MAC_CALLBACK' undeclared (first use this 
function)
dsdv/dsdv.cc:302: error: (Each undeclared identifier is reported only once for 
each function it appears in.)
dsdv/dsdv.cc:309: error: `off_ip_' undeclared (first use this function)
dsdv/dsdv.cc: In member function `Packet* DSDV_Agent::makeUpdate(int&)':
dsdv/dsdv.cc:382: error: `off_ip_' undeclared (first use this function)
dsdv/dsdv.cc:397: error: no match for 'operator=' in 'iph->hdr_ip::dst_ = 
IP_BROADCAST'
./config.h:80: note: candidates are: ns_addr_t& ns_addr_t::operator=(const 
ns_addr_t&)
dsdv/dsdv.cc:398: error: 'struct hdr_ip' has no member named 'dport_'
dsdv/dsdv.cc:442: error: cannot convert `ns_addr_t' to `nsaddr_t' in assignment
dsdv/dsdv.cc: In member function `void DSDV_Agent::updateRoute(rtable_ent*, 
rtable_ent*)':
dsdv/dsdv.cc:550: warning: converting of negative value `-0x000000001' to 
`unsigned int'
dsdv/dsdv.cc:551: warning: converting of negative value `-0x000000001' to 
`unsigned int'
dsdv/dsdv.cc: In member function `void DSDV_Agent::processUpdate(Packet*)':
dsdv/dsdv.cc:568: error: `off_ip_' undeclared (first use this function)
dsdv/dsdv.cc:602: error: cannot convert `ns_addr_t' to `nsaddr_t' in assignment
dsdv/dsdv.cc:770: error: no matching function for call to 
`RoutingTable::GetEntry(ns_addr_t&)'
dsdv/rtable.h:103: note: candidates are: rtable_ent* 
RoutingTable::GetEntry(nsaddr_t)
dsdv/dsdv.cc:792: error: cannot convert `ns_addr_t' to `nsaddr_t' in assignment
dsdv/dsdv.cc:793: error: cannot convert `ns_addr_t' to `nsaddr_t' in assignment
dsdv/dsdv.cc: In member function `void DSDV_Agent::forwardPacket(Packet*)':
dsdv/dsdv.cc:818: error: `off_ip_' undeclared (first use this function)
dsdv/dsdv.cc:824: error: no matching function for call to 
`RoutingTable::GetEntry(ns_addr_t&)'
dsdv/rtable.h:103: note: candidates are: rtable_ent* 
RoutingTable::GetEntry(nsaddr_t)
dsdv/dsdv.cc:841: error: cannot convert `ns_addr_t' to `nsaddr_t' in assignment
dsdv/dsdv.cc:845: error: 'struct hdr_ip' has no member named 'sport_'
dsdv/dsdv.cc:845: error: 'struct hdr_ip' has no member named 'dport_'
dsdv/dsdv.cc:868: error: 'struct hdr_ip' has no member named 'sport_'
dsdv/dsdv.cc:868: error: 'struct hdr_ip' has no member named 'dport_'
dsdv/dsdv.cc:871: error: `DROP_RTR_QFULL' undeclared (first use this function)
dsdv/dsdv.cc:879: error: cannot convert `ns_addr_t' to `nsaddr_t' in assignment
dsdv/dsdv.cc:880: error: cannot convert `ns_addr_t' to `nsaddr_t' in assignment
dsdv/dsdv.cc:898: error: 'struct hdr_ip' has no member named 'sport_'
dsdv/dsdv.cc:898: error: 'struct hdr_ip' has no member named 'dport_'
dsdv/dsdv.cc: In member function `virtual void DSDV_Agent::recv(Packet*, 
Handler*)':
dsdv/dsdv.cc:906: error: `off_ip_' undeclared (first use this function)
dsdv/dsdv.cc:907: error: `off_cmn_' undeclared (first use this function)
dsdv/dsdv.cc:912: error: no match for 'operator==' in 'iph->hdr_ip::src_ == 
((DSDV_Agent*)this)->DSDV_Agent::myaddr_'
dsdv/dsdv.cc:923: error: no match for 'operator==' in 'iph->hdr_ip::src_ == 
((DSDV_Agent*)this)->DSDV_Agent::myaddr_'
dsdv/dsdv.cc:924: error: `DROP_RTR_ROUTE_LOOP' undeclared (first use this 
function)
dsdv/dsdv.cc:935: error: `DROP_RTR_TTL' undeclared (first use this function)
dsdv/dsdv.cc:940: error: no match for 'operator!=' in 'iph->hdr_ip::src_ != 
((DSDV_Agent*)this)->DSDV_Agent::myaddr_'
dsdv/dsdv.cc:940: error: 'struct hdr_ip' has no member named 'dport_'
dsdv/dsdv.cc: In member function `virtual int DSDV_Agent::command(int, const 
char* const*)':
dsdv/dsdv.cc:1035: error: `off_ip_' undeclared (first use this function)
dsdv/dsdv.cc:1039: error: 'struct hdr_ip' has no member named 'sport_'
dsdv/dsdv.cc:1041: error: 'struct hdr_ip' has no member named 'sport_'
make: *** [dsdv/dsdv.o] Error 1
[r...@localhost ns-2.32]#
how can i solve this error
please help me
mohammed saad


      

Reply via email to