LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices


Reply
  Search this Thread
Old 12-05-2018, 08:53 PM   #1
James Baldwin
LQ Newbie
 
Registered: Dec 2018
Posts: 15
Blog Entries: 1

Rep: Reputation: Disabled
Question error in installing ns-allinone-2.35 in Ubuntu18.04


Holle!
I am getting following error while installing ns-allinone-2.35 in UBUNTU18.04. please provide the solution for this, as i am new for this :


mdart/mdart_adp.cc: In member function ‘void ADP::sendDarq(nsaddr_t, int)’:
mdart/mdart_adp.cc:108:21: error: reference to ‘hash’ is ambiguous
nsaddr_t dstAdd_ = hash(reqId);
^~~~
In file included from ./mdart/mdart.h:52:0,
from ./mdart/mdart_adp.h:51,
from mdart/mdart_adp.cc:47:
./mdart/mdart_function.h:230:17: note: candidates are: nsaddr_t hash(nsaddr_t)
inline nsaddr_t hash(nsaddr_t id) {
^~~~
In file included from /usr/include/c++/7/bits/basic_string.h:6578:0,
from /usr/include/c++/7/string:52,
from /usr/include/c++/7/bitset:47,
from ./mdart/mdart_function.h:62,
from ./mdart/mdart.h:52,
from ./mdart/mdart_adp.h:51,
from mdart/mdart_adp.cc:47:
/usr/include/c++/7/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^~~~
mdart/mdart_adp.cc: In member function ‘void ADP::sendDaup()’:
mdart/mdart_adp.cc:396:21: error: reference to ‘hash’ is ambiguous
nsaddr_t dstAdd_ = hash(mdart_->id_);
^~~~
In file included from ./mdart/mdart.h:52:0,
from ./mdart/mdart_adp.h:51,
from mdart/mdart_adp.cc:47:
./mdart/mdart_function.h:230:17: note: candidates are: nsaddr_t hash(nsaddr_t)
inline nsaddr_t hash(nsaddr_t id) {
^~~~
In file included from /usr/include/c++/7/bits/basic_string.h:6578:0,
from /usr/include/c++/7/string:52,
from /usr/include/c++/7/bitset:47,
from ./mdart/mdart_function.h:62,
from ./mdart/mdart.h:52,
from ./mdart/mdart_adp.h:51,
from mdart/mdart_adp.cc:47:
/usr/include/c++/7/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^~~~
Makefile:93: recipe for target 'mdart/mdart_adp.o' failed
make: *** [mdart/mdart_adp.o] Error 1
Ns make failed!
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems
 
Old 12-16-2018, 05:37 PM   #2
ilesterg
Member
 
Registered: Jul 2012
Location: Kuala Lumpur
Distribution: Debian, CentOS/RHEL
Posts: 582

Rep: Reputation: 61
This doesn't help answer your question directly, but any particular reason why you're trying to install NS2?and also on Ubuntu 18.x?
 
Old 12-23-2018, 08:13 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2019 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,268

Rep: Reputation: 3568Reputation: 3568Reputation: 3568Reputation: 3568Reputation: 3568Reputation: 3568Reputation: 3568Reputation: 3568Reputation: 3568Reputation: 3568Reputation: 3568
@James Baldwin, welcome to LQ.

ns2 can be compiled with a "no PIE" g++ version 4.4 .. 5.4 , no later.

Solution for Ubuntu 18.04 : $ sudo apt install g++-4.8

ns-2.35 :
Code:
tar xvf ns-allinone-2.35_gcc5.tar.gz     // 2014 .. 2017 update
https://drive.google.com/file/d/0B7S...ew?usp=sharing
cd ns-allinone-2.35/
export CC=gcc-4.8 CXX=g++-4.8 && ./install

Last edited by knudfl; 12-23-2018 at 08:16 AM.
 
Old 12-23-2018, 10:54 AM   #4
James Baldwin
LQ Newbie
 
Registered: Dec 2018
Posts: 15

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
@knudfl
thanks!
i want to implement ospf in ns-2.35.but i meet some problem.


the following:

(TCL) Creating simulator & trace files...
(TCL) Setting up nodes and links...
(TCL) Configuring traffic objects...
(TCL) Configuring routing protocol...
invalid command name "Agent/rtProto/OSPF"
while executing
"Agent/rtProto/OSPF set helloInterval 1"
(file "ospf0.tcl" line 132)

the other ways i have tried are as followed(but i failed):
https://www.linuxquestions.org/quest...-a-4175514187/

https://www.linuxquestions.org/quest...-a-4175492253/



thanks!
 
Old 12-23-2018, 10:56 AM   #5
James Baldwin
LQ Newbie
 
Registered: Dec 2018
Posts: 15

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
@ilesterg

because i want to implement ospf in ns-2.34.thank you for yourresponse.
 
Old 12-23-2018, 05:43 PM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2019 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,268

Rep: Reputation: 3568Reputation: 3568Reputation: 3568Reputation: 3568Reputation: 3568Reputation: 3568Reputation: 3568Reputation: 3568Reputation: 3568Reputation: 3568Reputation: 3568
Post #4 says "want to implement ospf in ns-2.35."
Post #5 says "want to implement ospf in ns-2.34."
? ? Which one is it ? ?

ns-2.35 : Please read https://www.linuxquestions.org/quest...4175492253/#11

-
 
  


Reply

Tags
ns2, ospf


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] error in installing ns-allinone-2.35 in fedora 27 Uday J Linux - Software 5 01-21-2018 12:16 PM
error in installing ns-allinone-2.35 in fedora 27 Uday J Fedora 1 01-21-2018 06:59 AM
[SOLVED] Error while installing ns-allinone-2.29 on windows nkokos Linux - Newbie 3 03-02-2013 03:27 AM
I am getting problem in nam-1.11 while installing ns-allinone-2.29 on fedora core 5 deodutta Linux - General 0 02-03-2007 10:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions

All times are GMT -5. The time now is 12:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration