I could not execute the command patch -p0 < ns230_gcc44.patch
It claims that the file ns230_gcc44.patch does not exist.
I skipped it and when I run the command ./install, the following problem dispaly:
linkstate/ls.cc: In member function LsLinkStateList* LsTopoMap::insertLinkState(int, const LsLinkState&):
linkstate/ls.cc:134:48: warning: deprecated conversion from string constant to char* [-Wwrite-strings]
ls_error("LsTopoMap::insertLinkState failed\n"); // debug
^
linkstate/ls.cc: In member function LsMessage* LsMessageCenter::newMessage(int, ls_message_type_t):
linkstate/ls.cc:326:37: warning: deprecated conversion from string constant to char* [-Wwrite-strings]
"LsMessageCenter::newMessage.\n");
^
linkstate/ls.cc: In member function int LsRetransmissionManager::messageOut(int, const LsMessage&):
linkstate/ls.cc:408:29: warning: deprecated conversion from string constant to char* [-Wwrite-strings]
ls_error ("Can't insert.");
^
linkstate/ls.cc: In member function int LsRetransmissionManager::ackIn(int, const LsMessage&):
linkstate/ls.cc:447:50: warning: suggest parentheses around && within || [-Wparentheses]
(peerPtr->tpmSeq_ == LS_INVALID_MESSAGE_ID) &&
^
linkstate/ls.cc: In member function int LsRetransmissionManager::resendMessages(int):
linkstate/ls.cc:488:63: warning: deprecated conversion from string constant to char* [-Wwrite-strings]
ls_error ("Wait a minute, nothing to send for this neighbor");
^
linkstate/ls.cc: In member function void LsRouting::linkStateChanged():
linkstate/ls.cc:531:66: warning: deprecated conversion from string constant to char* [-Wwrite-strings]
ls_error("LsRouting::linkStateChanged: linkStateListPtr null\n");
^
linkstate/ls.cc:537:60: warning: deprecated conversion from string constant to char* [-Wwrite-strings]
ls_error("LsRouting::linkStateChanged: oldLsPtr null!!\n");
^
linkstate/ls.cc:560:61: warning: deprecated conversion from string constant to char* [-Wwrite-strings]
ls_error("New and old link State list are not aligned.\n");
^
linkstate/ls.cc: In member function bool LsRouting::sendLinkStates(bool):
linkstate/ls.cc:696:76: warning: deprecated conversion from string constant to char* [-Wwrite-strings]
ls_error ("Can't get new link state list, in LsRouting::sendLinkStates\n");
^
linkstate/ls.cc: In member function void LsRouting::regenAndSend(int, int, const LsLinkStateList&):
linkstate/ls.cc:799:57: warning: deprecated conversion from string constant to char* [-Wwrite-strings]
ls_error("lsl is empty, in LsRouting::regenAndSend.\n");
^
linkstate/ls.cc:803:34: warning: deprecated conversion from string constant to char* [-Wwrite-strings]
"LsRouting::sendLinkStates\n");
^
linkstate/ls.cc: In member function LsPaths* LsRouting::_computeRoutes():
linkstate/ls.cc:877:46: warning: deprecated conversion from string constant to char* [-Wwrite-strings]
ls_error("computeRoutes: nhlp == NULL \n");
^
linkstate/ls.cc:914:44: warning: deprecated conversion from string constant to char* [-Wwrite-strings]
ls_error (" popShortestPath() failed\n");
^
In file included from linkstate/ls.cc:67:0:
linkstate/ls.h: In instantiation of void LsMap<Key, T>::eraseAll() [with Key = int; T = LsIdSeq]:
linkstate/ls.cc:396:28: required from here
linkstate/ls.h:137:58: error: erase was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
void eraseAll() { erase(baseMap::begin(), baseMap::end()); }
^
linkstate/ls.h:137:58: note: declarations in dependent base std::map<int, LsIdSeq, std::less<int>, std::allocator<std:
air<const int, LsIdSeq> > > are not found by unqualified lookup
linkstate/ls.h:137:58: note: use this->erase instead
make: *** [linkstate/ls.o] Error 1
Ns make failed!
See
http://www.isi.edu/nsnam/ns/ns-problems.html for problems