UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
problem installing ns-allinone-2.29.3 on ubuntu 10.10
Hello knudfl,
Thanks a lot for the reply.
I think the ns2.29.3 installation is working except that i am including the patch for clustering-2.29 for which i am getting errors; and this makes the ns-allinone-2.29.3 installation incomplete. I want to believe the error is due to the patch. Pls do u have any idea about this clustering patch? below is the error message:
clustering/rajaraman/definitions_raj.h:105: error: from definition of ‘bool std::less<_Tp>:perator()(const _Tp&, const _Tp&) const [with _Tp = _AlgorithmTime]’
make: *** [clustering/rajaraman/rajaraman.o] Error 1
Ns make failed!
below is the content of the definitions_raj.h file --- i have indicated where the line 105 is
Code:
typedef struct _AlgorithmTime {
// Round.
int round;
// Fase.
int fase;
// Valore massimo di fase.
int last_fase;
public:
_AlgorithmTime() {
round = 0;
fase = 0;
last_fase = 0;
}
// Costruttore.
_AlgorithmTime(int r, int f, int l) {
round = r;
fase = f;
last_fase = l;
}
// Costruttore.
_AlgorithmTime(const _AlgorithmTime & t) {
round = t.round;
fase = t.fase;
last_fase = t.last_fase;
}
// Operatore di uguaglianza.
bool operator== (struct _AlgorithmTime & t) {
return ((t.fase == fase) && (t.round == round));
}
// Operatore minore.
bool operator < (struct _AlgorithmTime & t) {
if (round < t.round)
return true;
if (round > t.round)
return false;
if (fase < t.fase)
return true;
return false;
}
// Operatore maggiore.
bool operator > (struct _AlgorithmTime & t) {
if (round > t.round)
return true;
if (round < t.round)
return false;
if (fase > t.fase)
return true;
return false;
}
void operator++ () {
if (fase == last_fase) {
round++;
fase = 0;
return;
}
fase++;
}
void operator-- () {
if (fase == 0) {
round--;
fase = last_fase;
return;
}
fase--;
}
} AlgorithmTime;
bool
std::less<AlgorithmTime>::operator()(const AlgorithmTime & t1, const AlgorithmTime & t2) const
{
if (t1.round < t2.round)
return true;
if (t1.round > t2.round)
return false;
if (t1.fase < t2.fase)
return true;
return false;
}
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517
Rep:
# 32 .
Please hit the 'Edit' button, and delete the code in post #32.
And then reenter the real code to post #32 : In code tags .. http://www.linuxquestions.org/questi...gs-4175464257/
I.e. type [/code] at code end, and [code] at code start.
Or use the # button in the 'Advanced Editor'.
problem installing ns-allinone-2.29.3 on ubuntu 10.10
Hi Knudfl,
Thanks a lot for the reply. I find the [/code] and [code] tags very useful. Really makes the post quite clear; differentiating questions and comments from real program codes. thanks a lot.
Yeah, it is the same link i got the clustering patch from:
The code compiles OK here :
$ cd ns-allinone-2.29/
$ patch -p1 < clustering-2.29.patch
$ export CC=gcc-3.4 CXX=g++-3.4 && ./install
... i.e. the "clustering-2.29 code" is old, requires gcc/g++ version 3.4.6 .
? What's the output from the command $ uname -m <Enter>
problem installing ns-allinone-2.29.3 on ubuntu 10.10
Hi Knudfl,
so should i install the g++-3.4.6?
the output from the command $ uname -m is
i686
I did just as you did and got the following message :
Code:
.gnu.linkonce.t._ZN11taskPending10taskStatusEh' referenced in section `.rodata' of wpan/p802_15_4mac.o: defined in discarded section `.gnu.linkonce.t._ZN11taskPending10taskStatusEh' of wpan/p802_15_4mac.o
collect2: ld returned 1 exit status
make: *** [ns] Error 1
Ns make failed!
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517
Rep:
# 36 .
OK, the 32bits (i686) Ubuntu 10.10 : Right, g++34 is no good with some files.
$ cd ns-allinone-2.29/ns-2.29/
.. Then edit the Makefile, line 37 to : CXX = g++41
$ make clean && make
.. When the errors appear, edit the Makefile to : CXX = g++-3.4
( Or whatever the naming is for your g++ version 3.4 ).
And : $ make
.. Ends OK here, the executable 'ns' is created.
Binary package : clustering-ns-2.29-ubuntu10_i386.deb, 4.1 MB https://docs.google.com/file/d/0B7S2...it?usp=sharing
.. provides /usr/local/bin/ns-clustering
Using : $ ns-clustering <example>.tcl -t <?> -<etc. etc. options>
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.