check this out http://nuraini.wordpress.com/2007/08/05/undefined-reference-to/ --------------- Nur Aini Rakhmawati Touch the sky, Down to the earth http://ai23.wordpress.com/
----- Original Message ---- From: jilly126 <[EMAIL PROTECTED]> To: ns-users <ns-users@ISI.EDU> Sent: Wednesday, August 8, 2007 8:37:27 AM Subject: [ns] problem with make Hello, I am trying to add diffserv and mpls modules to ns2.29. When I execute I execute "./configure" and "make clean" without problems, but when I execute "make", the next error appears on my screen: trace/trace.o(.text+0xe4): In function `Trace::Trace[not-in-charge](int)': : undefined reference to `BaseTrace::BaseTrace[in-charge]()' trace/trace.o(.text+0x240): In function `Trace::Trace[in-charge](int)': : undefined reference to `BaseTrace::BaseTrace[in-charge]()' common/agent.o(.text+0x14d4): In function `Agent::initpkt(Packet*) const': : undefined reference to `NixNode::GetNodeObject(unsigned long)' common/agent.o(.text+0x14f1): In function `Agent::initpkt(Packet*) const': : undefined reference to `NixNode::GetNixVector(unsigned long)' common/agent.o(.text+0x1502): In function `Agent::initpkt(Packet*) const': : undefined reference to `NixVec::Reset()' common/agent.o(.gnu.linkonce.t._ZN6hdr_nv6accessEP6Packet+0xb): In function `hdr_nv::access(Packet*)': : undefined reference to `hdr_nv::offset_' queue/errmodel.o(.gnu.linkonce.t._ZN7hdr_pgm6accessEPK6Packet+0xb): In function `hdr_pgm::access(Packet const*)': : undefined reference to `hdr_pgm::offset_' queue/errmodel.o(.gnu.linkonce.t._ZN7hdr_lms6accessEP6Packet+0xb): In function `hdr_lms::access(Packet*)': : undefined reference to `hdr_lms::offset_' mac/mac-802_11.o(.gnu.linkonce.t._ZN10EventTraceC1Ev+0xd): In function `EventTrace::EventTrace[in-charge]()': : undefined reference to `BaseTrace::BaseTrace[not-in-charge]()' mac/mac-802_11.o(.gnu.linkonce.t._ZN10EventTraceC1Ev+0x19): In function `EventTrace::EventTrace[in-charge]()': : undefined reference to `vtable for EventTrace' common/node.o(.text+0x292): In function `Node::Node[not-in-charge]()': : undefined reference to `NixNode::NixNode[in-charge]()' common/node.o(.text+0x3fe): In function `Node::Node[in-charge]()': : undefined reference to `NixNode::NixNode[in-charge]()' common/node.o(.text+0x5e8): In function `Node::command(int, char const* const*)': : undefined reference to `NixNode::PopulateObjects()' common/node.o(.text+0x68d): In function `Node::command(int, char const* const*)': : undefined reference to `NixNode::GetNixVector(unsigned long)' common/node.o(.text+0x6e3): In function `Node::command(int, char const* const*)': : undefined reference to `NixNode::AddAdj(unsigned long)' common/node.o(.text+0x99d): In function `Node::route_notify(RoutingModule*)': : undefined reference to `RoutingModule::route_notify(RoutingModule*)' common/node.o(.text+0x9de): In function `Node::unreg_route_notify(RoutingModule*)': : undefined reference to `RoutingModule::unreg_route_notify(RoutingModule*)' common/node.o(.text+0xa68): In function `Node::set_table_size(int)': : undefined reference to `RoutingModule::set_table_size(int)' common/node.o(.text+0xa91): In function `Node::set_table_size(int, int)': : undefined reference to `RoutingModule::set_table_size(int, int)' trace/cmu-trace.o(.text+0x2825): In function `CMUTrace::nam_format(Packet*, int)': : undefined reference to `Nam802_15_4::Nam_Status' trace/cmu-trace.o(.text+0x284a): In function `CMUTrace::nam_format(Packet*, int)': : undefined reference to `p802_15_4macSA(Packet*)' trace/cmu-trace.o(.text+0x285e): In function `CMUTrace::nam_format(Packet*, int)': : undefined reference to `p802_15_4macDA(Packet*)' trace/cmu-trace.o(.text+0x28d1): In function `CMUTrace::nam_format(Packet*, int)': : undefined reference to `findAttrLink(packet_t, int, int)' trace/cmu-trace.o(.text+0x2905): In function `CMUTrace::nam_format(Packet*, int)': : undefined reference to `findAttrLink(packet_t, int, int)' trace/cmu-trace.o(.text+0x2c9e): In function `CMUTrace::nam_format(Packet*, int)': : undefined reference to `Nam802_15_4::Nam_Status' trace/cmu-trace.o(.text+0x2d3b): In function `CMUTrace::nam_format(Packet*, int)': : undefined reference to `Nam802_15_4::Nam_Status' trace/cmu-trace.o(.gnu.linkonce.t._ZN9Simulator8instanceEv+0x4): In function `Simulator::instance()': : undefined reference to `Simulator::instance_' trace/cmu-trace.o(.gnu.linkonce.t._ZN10hdr_lrwpan6accessEPK6Packet+0xb): In function `hdr_lrwpan::access(Packet const*)': : undefined reference to `hdr_lrwpan::offset_' collect2: ld returned 1 exit status make: *** [ns] Error 1 Can you help me? Thanks in advance. Best regards, jilly126 2007-08-07 ____________________________________________________________________________________ Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games. http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow