i tried to patch the aodv file with
$ patch -p0 < watchdog-bayesian2.0_ns235.patch
got the help from
http://www.linuxquestions.org/questi...s2-4175504181/
this is the error msg
-lm
aodv/aodv.o: In function `AODV::command(int, char const* const*)':
aodv.cc
.text+0x38f): undefined reference to `WATCHDOG::updateMAC(int)'
aodv/aodv.o: In function `AODV::AODV(int)':
aodv.cc
.text+0x551): undefined reference to `WATCHDOG::WATCHDOG(int, int)'
aodv/aodv.o: In function `AODV::AODV(int)':
aodv.cc
.text+0x961): undefined reference to `WATCHDOG::WATCHDOG(int, int)'
aodv/aodv.o: In function `AODV::sendToWatchdog(Packet const*)':
aodv.cc
.text+0x3a12): undefined reference to `WATCHDOG::newPacket(int, int, int, int, int, int, unsigned int, char*, double)'
aodv/aodv.o: In function `AODV::sendToWatchdog(Packet const*, int)':
aodv.cc
.text+0x3c62): undefined reference to `WATCHDOG::newPacket(int, int, int, int, int, int, unsigned int, char*, double)'
collect2: ld returned 1 exit status
make: *** [ns] Error 1
Ns make failed!