LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-09-2012, 01:24 AM   #16
edsionwang
LQ Newbie
 
Registered: Oct 2012
Posts: 5

Rep: Reputation: Disabled

Quote:
Originally Posted by fahimeh_ak View Post
hi
for solving my problem I go back to Ubunto 10.04 and used from your helps to install it.
but now, when I ./install it, I have this error
Code:
`.gnu.linkonce.t._ZN6hdr_bt11packet_sizeENS_11packet_typeEi' referenced in section `.rodata' of bluetooth/lmp.o: defined in discarded section `.gnu.linkonce.t._ZN6hdr_bt11packet_sizeENS_11packet_typeEi' of bluetooth/lmp.o
`.gnu.linkonce.t._ZN6hdr_bt11packet_sizeENS_11packet_typeEi' referenced in section `.rodata' of bluetooth/lmp-link.o: defined in discarded section `.gnu.linkonce.t._ZN6hdr_bt11packet_sizeENS_11packet_typeEi' of bluetooth/lmp-link.o
`.gnu.linkonce.t._ZN6hdr_bt11packet_sizeENS_11packet_typeEi' referenced in section `.rodata' of bluetooth/sco-agent.o: defined in discarded section `.gnu.linkonce.t._ZN6hdr_bt11packet_sizeENS_11packet_typeEi' of bluetooth/sco-agent.o
collect2: ld returned 1 exit status
make: *** [ns] Error 1
Ns make failed!
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems
I have got the same error message with you.and I use ubuntu 10.10 with gcc-3.4 and g++-3.4
have you solved this problem or you just change you OS to Cent OS?
 
Old 10-09-2012, 03:08 AM   #17
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Post # 16, @edsionwang : Welcome to LQ.

Please read post #4 : The choice for ns-2.29.3 is gcc/g++ version 4.1.2 ..

Either : Using the old Ubuntu gcc-4.1 / g++-4.1 :
cd ns-allinone-2.29/ && export CC=gcc-4.1 CXX=g++-4.1 && install

Or : Using the gcc41-compat / g++41-compat :
cd ns-allinone-2.29/ && export CC=gcc41 CXX=g++41 && install

gcc41-compat https://docs.google.com/open?id=0B7S...RjNjJhOTZjNjI2
g++41-compat https://docs.google.com/open?id=0B7S...hjMjljN2M2MGU4

sudo dpkg -i gcc41-compat-4.1.2_i386.deb g++41-compat-4.1.2_i386.deb
.. Then reboot, and the binaries gcc41, g++41 are ready for use.

.

Last edited by knudfl; 10-10-2012 at 04:32 AM.
 
Old 10-09-2012, 06:31 AM   #18
edsionwang
LQ Newbie
 
Registered: Oct 2012
Posts: 5

Rep: Reputation: Disabled
@knuldfl
thanks for your reply!I have done like #4.then I got messages as follows:
Quote:
make[1]: 正在进入目录 `/home/wang/Softwares/ns-allinone-2.29/ns-2.29/indep-utils/cmu-scen-gen/setdest'
make[1]: 没有什么可以做的为 `all'。
make[1]:正在离开目录 `/home/wang/Softwares/ns-allinone-2.29/ns-2.29/indep-utils/cmu-scen-gen/setdest'
make[1]: 正在进入目录 `/home/wang/Softwares/ns-allinone-2.29/ns-2.29/indep-utils/webtrace-conv/dec'
make[1]: 没有什么可以做的为 `all'。
make[1]:正在离开目录 `/home/wang/Softwares/ns-allinone-2.29/ns-2.29/indep-utils/webtrace-conv/dec'
make[1]: 正在进入目录 `/home/wang/Softwares/ns-allinone-2.29/ns-2.29/indep-utils/webtrace-conv/epa'
make[1]: 没有什么可以做的为 `all'。
make[1]:正在离开目录 `/home/wang/Softwares/ns-allinone-2.29/ns-2.29/indep-utils/webtrace-conv/epa'
make[1]: 正在进入目录 `/home/wang/Softwares/ns-allinone-2.29/ns-2.29/indep-utils/webtrace-conv/nlanr'
make[1]: 没有什么可以做的为 `all'。
make[1]:正在离开目录 `/home/wang/Softwares/ns-allinone-2.29/ns-2.29/indep-utils/webtrace-conv/nlanr'
make[1]: 正在进入目录 `/home/wang/Softwares/ns-allinone-2.29/ns-2.29/indep-utils/webtrace-conv/ucb'
make[1]: 没有什么可以做的为 `all'。
make[1]:正在离开目录 `/home/wang/Softwares/ns-allinone-2.29/ns-2.29/indep-utils/webtrace-conv/ucb'
I download the NS-MIH-MULTI-CRITERIA.tar.bz2 from sourceforge.net by using ubuntu 10.10 and i installed gcc3.4.Then i installed gcc41 as your guide. Could you please help me ?
 
Old 10-09-2012, 07:51 AM   #19
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 18
Quote:
make[1]: 没有什么可以做的为 `all'。
Nothing to do : Means that nothing has to done because everything is OK.
You already created all ns-2.29/indep-utils/* when ./install was run.

I will have a look at the 'NS-MIH-MULTI-CRITERIA.tar.bz2' package.

.
 
Old 10-09-2012, 10:02 AM   #20
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 18 . NS-MIH-MULTI-CRITERIA ..
http://sourceforge.net/projects/mihnistns229/
> http://switch.dl.sourceforge.net/pro...ITERIA.tar.bz2
> NS-MIH-MULTI-CRITERIA.tar.bz2 > ns-allinone-2.29.zip > ns-allinone-2.29/.

Reinstalling the MIH-MULTI-CRITERIA patched ns-allinone-2.29/ :
rm -r ns-allinone-2.29/bin/ ; rm -r ns-allinone-2.29/lib/
And in tcl8.4.11/unix/, tk8.4.11/unix/, otcl*, tclcl*, ns-2.29/ :
1) rm config.cache ( tcl8*/unix, tk8*/unix )
2) ./configure ( tcl8*/unix, tk8*/unix )
3) make clean
4) rm Makefile ( if any.)

Then : cd ns-allinone-2.29/ && export CC=gcc41 CXX=g++41 && ./install
.. and you have a new binary 'ns' for your OS.

.

Last edited by knudfl; 10-09-2012 at 10:03 AM.
 
Old 10-09-2012, 01:33 PM   #21
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Post #15, @maryemwood

There are some umts examples in the package linked in post #20 :
ns-allinone-2.29/ns-2.29/tcl/hsntg/umts-hier-tcp.tcl etc. etc.
 
Old 10-09-2012, 09:42 PM   #22
edsionwang
LQ Newbie
 
Registered: Oct 2012
Posts: 5

Rep: Reputation: Disabled
Post #20 @knudfl

Thank you very much, and I installed this patched ns for my OS successfully!
 
Old 06-09-2013, 08:55 AM   #23
cio
LQ Newbie
 
Registered: Mar 2013
Location: Indonesia
Posts: 26

Rep: Reputation: Disabled
hi... i trying to install ns2.29 with mob package
i'm using ubuntu 11.04
Linux c11-M720SR 2.6.38-16-generic #67-Ubuntu SMP Thu Sep 6 18:00:43 UTC 2012 i686 i686 i386 GNU/Linux

when i do ./install i got this error messege
checking for sys/filio.h... no
checking FIONBIO vs. O_NONBLOCK for nonblocking I/O... ./configure: 1: Syntax error: Unterminated quoted string
tcl8.3.2 configuration failed! Exiting ...


anyone can help?
thank you before,,,
 
Old 06-09-2013, 10:56 AM   #24
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 23 .
Quote:
./configure: 1: Syntax error: Unterminated quoted string
Happens when you are using the wrong version of ns-allinone-2.29 :
Must be the version for gcc-4.1.2 : ns-allinone-2.29.3.tar.gz
http://sourceforge.net/projects/nsna...allinone-2.29/

The install command : $ export CC=gcc41 CXX=g++41 && ./install

-
 
Old 06-09-2013, 11:05 PM   #25
cio
LQ Newbie
 
Registered: Mar 2013
Location: Indonesia
Posts: 26

Rep: Reputation: Disabled
i've done the installation but when i try to run pmip.tcl this error messege appear

invalid command name "Agent/PMIPv6"
while executing
"Agent/PMIPv6 set debug_ $opt(debug)"
(file "Documents/tcl script/pmip.tcl" line 34)


am i need to edit the .bashrc files and change the path?
 
Old 06-10-2013, 05:40 AM   #26
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 25 .
Quote:
invalid command name "Agent/PMIPv6"
That's a failed build. Or you are using the wrong 'ns'.


Quote:
Am I need to edit the .bashrc files and change the path ?
Never. Not required for a Linux OS.

But : If you have another 'ns' executable in your PATH, you can rename
the new "ns" in ns-allinone-2.29/ns-2.29/ to 'ns-nist-pmipv6',
and copy the file to /usr/local/bin/ . Then you can do :
$ ns-nist-pmipv6 pmip.tcl

-
 
1 members found this post helpful.
Old 06-10-2013, 03:09 PM   #27
cio
LQ Newbie
 
Registered: Mar 2013
Location: Indonesia
Posts: 26

Rep: Reputation: Disabled
okay thank you...
it already works now..
 
Old 11-05-2013, 02:06 AM   #28
AMA21
LQ Newbie
 
Registered: Nov 2013
Posts: 2

Rep: Reputation: Disabled
hi.. I installed MIH NIST module as mention in steps before "ns2.29 in Ubunto 10.4"
and it works and there are some output file ..
the problem with nam when i try to open files in hstng /802.11/
most of them don't work with NAM
NAM windows close from itself and "cannot connect to existing nam instance. starting a new one... segmentation fault"
appears in terminal . how i can fix that problem ?
anyone can help?
 
Old 11-05-2013, 04:44 AM   #29
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Post #28, @AMA21 : Welcome to LQ.
Quote:
I installed MIH NIST module as mention in steps .. "ns2.29 in Ubunto 10.4"
and it works and there are some output file ..
the problem with nam when i try to open files in hstng /802.11/
I guess you mean ns-2.29-nist-mob-022707.tgz, Ubuntu 10.04 ?

"hsntg/802_21/" : Contains c++ code only.
No "simulation files.tcl" . What do you mean ?

-
 
Old 11-05-2013, 03:28 PM   #30
AMA21
LQ Newbie
 
Registered: Nov 2013
Posts: 2

Rep: Reputation: Disabled
knudfl thank you for replay ..
i try to execute .tcl files in ns2-2.29/tcl/hstng /802.11/
there are many files such as scenario1_802.11.tcl ,scenario1_802.16.tcl ,Simple_802_21_WIMAX-WiFi_1BS-2AP_v2.tcl
when i run them in terminal i have two output files one out.res , and the other out .nam .
they have a lot of lines and values it seems work correct but
the problem with NAM animator when execute .tcl file or nam out.nam it closes from it self
sometimes show result in NAM and type "cannot connect to existing nam instance. starting a new one... " i want to see handover in NAM to understand and also to sure the code was executed correctly
also , when i try to run node802.11.tcl have this:
node 3 is not defined... node 4 is not defined... node 4 is not defined... node 5 is not defined... Warning: Tracefile events are not sorted by time.
+ -t 4.54499999999996 -s 0 -d 1 -p cbr -e 1000 -c 0 -i 20287 -a 0 -x {0.0.0.5 1.0.4.1 2530 ------- null}
The above event should occur at or after -t 4.545000.

node 5 is not defined... node 2 is not defined... node 3 is not defined... node 4 is not defined... node 5 is not defined... node 2 is not defined... node 3 is not defined... node 4 is not defined... node 2 is not defined... node 2 is not defined... node 3 is not defined... Warning: Tracefile events are not sorted by time.
+ -t 4.54599999999996 -s 0 -d 1 -p cbr -e 1000 -c 0 -i 20291 -a 0 -x {0.0.0.1 1.0.2.1 2543 ------- null}
The above event should occur at or after -t 4.546000.

node 3 is not defined... node 4 is not defined... node 4 is not defined... node 5 is not defined... Warning: Tracefile events are not sorted by time.
+ -t 4.54599999999996 -s 0 -d 1 -p cbr -e 1000 -c 0 -i 20295 -a 0 -x {0.0.0.5 1.0.4.1 2531 ------- null}
The above event should occur at or after -t 4.546000.

node 5 is not defined... node 2 is not defined... node 3 is not defined... node 4 is not defined... node 5 is not defined...

Last edited by AMA21; 11-06-2013 at 12:12 AM.
 
  


Reply

Tags
mih, ns2, pmip6, umts


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
how to install leach patch in ns2.34 in ubuntu 9.10 anjon.sunny Linux - Newbie 9 04-30-2014 05:05 AM
seeking advice to install 802.11e patch in ns2 stud17 Linux - Newbie 48 11-04-2012 11:09 AM
patch LTE module for ns2 Emna Linux - Newbie 1 03-10-2011 03:59 AM
need 802.11e patch for ns2 stud17 Linux - Software 1 03-09-2011 07:54 AM
integrating patch in ns2 MLinux Linux - Networking 2 11-30-2010 09:26 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:37 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