[ns] running leach code

Saravanan Subramanian sara_jul26 at rediffmail.com
Sun Feb 15 11:21:27 PST 2004


An HTML attachment was scrubbed...
URL: http://gamma.isi.edu/pipermail/ns-users/attachments/20040215/f7080bf9/attachment.html
-------------- next part --------------
Hello sir,
 I am doing postgraduate in Computer Science. I am doing my project in wireless
 sensor network. I do my project based on the clustering protocol. So, I follow
 the LEACH protocol as the base one.

 Regarding to that i downloaded the ns2.1b5 allinone package from net (ns2
 homepage) and also downloaded the MIT uAMPS changes (LEACH extension) to
 ns2.1b5.

 Now i have a problem in running the LEACH code. Actually i installed the
 ns2.1b5 package in Redhat linux 7.2 in celeron 466MHz system. After
 installation i try to add the LEACH extension code to the ns2.1b5.

 After addition i try to recompile the ns2.1b5 package and while doing so i get
 the following error:

--------------------------------------------------------------------------------
 mit/rca/rcagent.o: In function `RCAgent::sendmsg(int, char const *, int, int,
 double, int)':
/root/ns2.15/ns-2.1b5/mit/rca/rcagent.cc:136: undefined reference to
 `hdr_rca::offset_'
mit/rca/rcagent.o: In function `RCAgent::recv(Packet *, Handler *)':
/root/ns2.15/ns-2.1b5/mit/rca/rcagent.cc:162: undefined reference to
 `hdr_rca::offset_'
mit/rca/rca-ll.o: In function `RCALinkLayerClass type_info function':
/root/ns2.15/ns-2.1b5/mit/rca/rca-ll.cc(.text+0x1d): undefined reference to
 `hdr_rca::offset_'
mit/rca/rca-ll.o: In function `RCALinkLayer::sendUp(Packet *)':
/root/ns2.15/ns-2.1b5/mit/rca/rca-ll.cc:56: undefined reference to
 `hdr_rca::offset_'
mac-sensor.o: In function `MacSensor::send(Packet *, Handler *)':
/root/ns2.15/ns-2.1b5/mac-sensor.cc:111: undefined reference to
 `hdr_rca::offset_'
mac-sensor.o:/root/ns2.15/ns-2.1b5/mac-sensor.cc:194: more undefined references
 to `hdr_rca::offset_' follow
collect2: ld returned 1 exit status
make: *** [ns] Error 1
Ns make failed! Exiting ...

--------------------------------------------------------------------------------

 I verified the packet.h and ns-packet.tcl files and everything is perfect about
 the structure hdr_rca. Even then i am getting the above mentioned error. So i
 kindly request you to help me in clearing this error as soon as possible.

 Kindly yours,
 Saravanan

Saravanan (M.Tech)
Pondicherry
They alone live who live for others.


More information about the Ns-users mailing list