LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-20-2018, 10:52 PM   #1
Uday J
LQ Newbie
 
Registered: Jan 2018
Posts: 5

Rep: Reputation: Disabled
error in installing ns-allinone-2.35 in fedora 27


hello,

i am getting following error while installing ns-allinone-2.35 in fedora 27. please provide the solution



mdart/mdart_adp.cc
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:6573: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:6573: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;
^~~~
make: *** [Makefile:94: mdart/mdart_adp.o] Error 1
Ns make failed!
 
Old 01-21-2018, 06:01 AM   #2
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,478

Rep: Reputation: Disabled
You're not 'installing' you're 'compiling.
(You install packages.)

Did you read the README file?
Did you configure it before trying to 'make' it?
 
Old 01-21-2018, 07:44 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
@Uday J : Welcome to LQ.

Even the updated ns-2.35 requires g++ version 5.3 or older.
Suggest gcc53-c++-5.3.0-1.el6.x86_64.rpm
https://drive.google.com/file/d/0B7S...ew?usp=sharing

Download, and install
Code:
$ cd Downloads/
# dnf install ./gcc53-c++-5.3.0-1.el6.x86_64.rpm
Build ns-2.35 :
Code:
$ tar xvf ns-allinone-2.35_gcc5.tar.gz
https://drive.google.com/file/d/0B7S...ew?usp=sharing
$ cd ns-allinone-2.35/
$ export CC=gcc53 CXX=g++53 && ./install
$ cd ns-2.35/
# make install
# cd ../nam-1.15/
# make install && exit
 
Old 01-21-2018, 10:29 AM   #4
Uday J
LQ Newbie
 
Registered: Jan 2018
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
@Uday J : Welcome to LQ.

Even the updated ns-2.35 requires g++ version 5.3 or older.
Suggest gcc53-c++-5.3.0-1.el6.x86_64.rpm
https://drive.google.com/file/d/0B7S...ew?usp=sharing

Download, and install
Code:
$ cd Downloads/
# dnf install ./gcc53-c++-5.3.0-1.el6.x86_64.rpm
Build ns-2.35 :
Code:
$ tar xvf ns-allinone-2.35_gcc5.tar.gz
https://drive.google.com/file/d/0B7S...ew?usp=sharing
$ cd ns-allinone-2.35/
$ export CC=gcc53 CXX=g++53 && ./install
$ cd ns-2.35/
# make install
# cd ../nam-1.15/
# make install && exit

it works.....thanks
one more help is needed....
how to install xgraph
 
Old 01-21-2018, 10:58 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #4 : Xgraph.

Package : xgraph-12.1-1.pclos2013.x86_64.rpm
https://drive.google.com/file/d/0B7S...ew?usp=sharing

# dnf install ./xgraph-12.1-1.pclos2013.x86_64.rpm

EDIT : Even the old "2013 build" is not completely stable. Animation.xg fails.
( A build with Fedora 27 will fail all xgraph plot files.)

We have another option :
An older 32bits build, xgraph-12.1-7pclos2011.i586.rpm
https://drive.google.com/file/d/0B7S...ew?usp=sharing

# dnf remove xgraph-12.1-1.pclos2013.x86_64
# dnf install ./xgraph-12.1-7pclos2011.i586.rpm

Test : $ cd xgraph-12.2/examples
$ xgraph Animation.xg


-

Last edited by knudfl; 01-21-2018 at 11:26 AM.
 
Old 01-21-2018, 12:16 PM   #6
Uday J
LQ Newbie
 
Registered: Jan 2018
Posts: 5

Original Poster
Rep: Reputation: Disabled
Smile

Quote:
Originally Posted by knudfl View Post
Re #4 : Xgraph.

Package : xgraph-12.1-1.pclos2013.x86_64.rpm
https://drive.google.com/file/d/0B7S...ew?usp=sharing

# dnf install ./xgraph-12.1-1.pclos2013.x86_64.rpm

EDIT : Even the old "2013 build" is not completely stable. Animation.xg fails.
( A build with Fedora 27 will fail all xgraph plot files.)

We have another option :
An older 32bits build, xgraph-12.1-7pclos2011.i586.rpm
https://drive.google.com/file/d/0B7S...ew?usp=sharing

# dnf remove xgraph-12.1-1.pclos2013.x86_64
# dnf install ./xgraph-12.1-7pclos2011.i586.rpm

Test : $ cd xgraph-12.2/examples
$ xgraph Animation.xg


-
thanks for your help
 
  


Reply

Tags
ns2



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
Problem installing ns-allinone-2.34 on Fedora Core 12 ... shamilsons Linux - Software 28 08-26-2013 06:49 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 mujtiba Linux - General 2 05-23-2011 12:20 PM
Problem in installing NS2 allinone 2.34 into Fedora 8i goroogee Linux - Software 3 04-17-2010 07:02 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 - Software

All times are GMT -5. The time now is 02:07 AM.

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
Open Source Consulting | Domain Registration