LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 02-24-2011, 02:31 AM   #1
tootz
Member
 
Registered: Feb 2011
Posts: 47

Rep: Reputation: 1
running of tcl error


hi have change the makefile n try to recompile by
PHP Code:
make 
PHP Code:
make install 
can anyone resolve this?
source of code: http://nile.wpi.edu/NS/linkage.html

invalid command name "Agent/MyAgentOtcl"
while executing
"Agent/MyAgentOtcl create _o3 "
invoked from within
"catch "$className create $o $args" msg"
invoked from within
"if [catch "$className create $o $args" msg] {
if [string match "__FAILED_SHADOW_OBJECT_" $msg] {
delete $o
return ""
}
global errorInfo
error "class $..."
(procedure "new" line 3)
invoked from within
"new Agent/MyAgentOtcl"
invoked from within
"set myagent [new Agent/MyAgentOtcl]"
(file "ex-linkage.tcl" line 5)

Last edited by tootz; 02-24-2011 at 08:57 AM.
 
Old 02-24-2011, 04:18 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,393

Rep: Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607
One more time http://linuxsilo.net/docs/smart-questions_en.html
For every question, tell what you use: ? ns-allinone-2.34, Ubuntu 10.04 Lucid 64bits ?
And please edit post #1 to use code tags.
Has also been explained to you a couple of times.

http://nile.wpi.edu/NS/ is not a link to any code. It's a front page.
Please show a download link for the code.

"Agent/MyAgentOtcl" is an inside command in the binary 'ns'.
Either the 'ns' is compiled wrongly. Or it is used from a wrong location.

..
 
Old 02-24-2011, 04:28 AM   #3
tootz
Member
 
Registered: Feb 2011
Posts: 47

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by knudfl View Post
One more time http://linuxsilo.net/docs/smart-questions_en.html
For every question, tell what you use: ? ns-allinone-2.34, Ubuntu 10.04 Lucid 64bits ?
And please edit post #1 to use code tags.
Has also been explained to you a couple of times.

http://nile.wpi.edu/NS/ is not a link to any code. It's a front page.
Please show a download link for the code.

"Agent/MyAgentOtcl" is an inside command in the binary 'ns'.
Either the 'ns' is compiled wrongly. Or it is used from a wrong location.

..
i m sorry.
okie, the link is http://nile.wpi.edu/NS/linkage.html
i m using ns-allinone-2.34, Ubuntu 10.04 LTS
 
Old 02-25-2011, 04:23 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,393

Rep: Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607
# 3.
Ubuntu 10.04, the required information is :
Ubuntu 10.04 , 64bits. Or Ubuntu 10.04 , 32bits.
The command 'uname -a' will tell if you have "x86_64".


It appears that the "linkage files" work OK in ns-2.34
http://www.linuxquestions.org/questi...mple-851790/#2

So I don't know, why your errors occurs. Post #1 : 'make install' : Why ?
Should be : 'mv ns ns.org && make clean && make'.

..
 
Old 02-25-2011, 11:57 AM   #5
tootz
Member
 
Registered: Feb 2011
Posts: 47

Original Poster
Rep: Reputation: 1
Linux wee-desktop 2.6.32-28-generic #55-Ubuntu SMP Mon Jan 10 21:21:01 UTC 2011 i686 GNU/Linux

i have try using "mv ns ns.org && make clean && make"
but still having post #1 error.
however when i need to type sudo to permit clean, is that the reason why i m still having problem?

Last edited by tootz; 02-25-2011 at 12:05 PM.
 
Old 02-25-2011, 03:05 PM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,393

Rep: Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607
# 5.

When sudo is required : Either ns-allinone-2.34/ is in a wrong directory.
Or some other commands have been executed with sudo, thus changing the permissions.

ns-allinone-2.34/ must have a location like /home/tootz/ns2/ns-allinone-2.34/.
( Or some other folder in /home/tootz/.)
And please never use any 'sudo <commands>' with ns-allinone.


Exception : sudo cp ns* /usr/local/bin/ and sudo cp nam /usr/local/bin/.

..
 
Old 02-25-2011, 03:20 PM   #7
tootz
Member
 
Registered: Feb 2011
Posts: 47

Original Poster
Rep: Reputation: 1
i place my ns-2.34 in /usr/local/ns-allinone-2.34/ns-2.34 directory.

is it okie to place it there?
or it is in the wrong directory?
 
Old 02-25-2011, 03:31 PM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,393

Rep: Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607
# 7.

Using /usr/local/ is asking for trouble.

'/home/<user-name>/tmp/' or any other folder in '/home/<user-name>/' always works.
 
Old 02-25-2011, 03:37 PM   #9
tootz
Member
 
Registered: Feb 2011
Posts: 47

Original Poster
Rep: Reputation: 1
okie, thanks alot,
but how come i can pass all my validation test?
what is the issue in installing in /usr/local?
do you have any trustable website on how to install ns-2.34?

sorry 1 more question, how to check the path of ns-2.34 is taking? and how do we edit it?

Last edited by tootz; 02-25-2011 at 04:26 PM.
 
Old 02-25-2011, 06:02 PM   #10
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,393

Rep: Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607
Quote:
what is the issue in installing in /usr/local ?
* Difficult to use.
* Insecure : sudo is required. And sudo is for administrative tasks only.
I.e. using sudo is meant to be an exception.
Not for commands, that the unprivileged user could easily do.

Path : Install (copy) ns* and nam to /usr/local/bin/.
Set an LD_LIBRARY_PATH to /home/<name>/ns2/ns-allinone-2.34/lib:
/home/<name>/ns2/ns-allinone-2.34/otcl-1.13:
/home/<name>/ns2/ns-allinone-2.34/tclcl-1.19,
like the documentation says.
( The path will be shown, when ./install has finished.)
Quote:
how can I pass all my validation test ?
Usually no problem with ns-2.34.

..
 
Old 02-25-2011, 10:56 PM   #11
tootz
Member
 
Registered: Feb 2011
Posts: 47

Original Poster
Rep: Reputation: 1
okie. i have installed my ns-2.34 in /home/wee/ns-allinone-2.34

however in /allinone-2.34/ns-2.34, when i "make" this error shows

/usr/bin/ld: ns: hidden symbol `__stack_chk_fail_local' in /usr/lib/libc_nonshared.a(stack_chk_fail_local.oS) is referenced by DSO
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: ld returned 1 exit status
make: *** [ns] Error 1

kindly guide me along thanks

Last edited by tootz; 02-25-2011 at 11:03 PM.
 
Old 02-26-2011, 05:19 AM   #12
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,393

Rep: Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607
#11 : There is no "make". ( And no "make install".) :

cd ns-allinone-2.34/ && ./install

Can you see, which application is making the errors ?

Looks like ns-allinone-2.34/ns-2.34 ?
I don't think I have seen an error like that ever with ns-2.34.
http://www.linuxquestions.org/questi...612/page2.html #19

No errors with ns-allinone-2.34 on my two Ubuntu 10.04 systems,
but the again, I didn't do any updates.
Which compiler are you using ? 'g++ --version' will show.
..
 
Old 02-26-2011, 10:32 AM   #13
tootz
Member
 
Registered: Feb 2011
Posts: 47

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by knudfl View Post
#11 : There is no "make". ( And no "make install".) :

cd ns-allinone-2.34/ && ./install

Can you see, which application is making the errors ?

Looks like ns-allinone-2.34/ns-2.34 ?
I don't think I have seen an error like that ever with ns-2.34.
http://www.linuxquestions.org/questi...612/page2.html #19

No errors with ns-allinone-2.34 on my two Ubuntu 10.04 systems,
but the again, I didn't do any updates.
Which compiler are you using ? 'g++ --version' will show.
..
i have cd ns-allinone-2.34/ && ./install

Ns-allinone package has been installed successfully.
Here are the installation places:
tcl8.4.18: /home/wee/ns-allinone-2.34/{bin,include,lib}
tk8.4.18: /home/wee/ns-allinone-2.34/{bin,include,lib}
otcl: /home/wee/ns-allinone-2.34/otcl-1.13
tclcl: /home/wee/ns-allinone-2.34/tclcl-1.19
ns: /home/wee/ns-allinone-2.34/ns-2.34/ns
nam: /home/wee/ns-allinone-2.34/nam-1.14/nam
gt-itm: /home/wee/ns-allinone-2.34/itm, edriver, sgb2alt, sgb2ns, sgb2comns, sgb2hierns

surprisingly in cd /home/wee/ns-allinone-2.34/ns-2.34, when i 'make clean' and 'make' again there is no error.

my compiler is:
wee@wee-desktop:~$ g++ --version
g++ (Ubuntu 4.4.3-4ubuntu5) 4.4.3

when i 'echo $PATH' this appears

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/ns-allinone-2.34/bin:/usr/local/ns-allinone-2.34/tcl8.4.18/unix:/usr/local/ns-allinone-2.34/tk8.4.18/unix:/usr/local/ns-allinone-2.34/ns-2.34/:/usr/local/ns-allinone-2.34/nam-1.14/:/home/wee/ns-allinone-2.34/bin:/home/wee/ns-allinone-2.34/tcl8.4.18/unix:/home/wee/ns-allinone-2.34/tk8.4.18/unix:/home/wee/ns-allinone-2.34/xgraph-12.1/:/home/wee/ns-allinone-2.34/ns-2.34/:/home/wee/ns-allinone-2.34/nam-1.14/

i have deleted the path of /usr/local/ns-allinone-2.34, but how come is it still here?

as for the post #1 error, i tried to compile it again, but the error pops up again...
1) i saved the ex-linkage.cc, ex-linkage.tcl in '/home/wee/ns-allinone-2.34/ex-linkage' folder
2) i added in 'ex-linkage/ex-linkage.o \' in the make file.
3) 'make clean' && 'make'
but i still couldnt get the result in #3
did i miss any steps?

sorry i packed all e info in 1 post....
could anyone advice, thank you

Last edited by tootz; 02-26-2011 at 01:40 PM.
 
Old 02-26-2011, 02:26 PM   #14
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,393

Rep: Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607Reputation: 3607
Quote:
I have deleted the path of /usr/local/ns-allinone-2.34, but how come is it still here ?
I'd guess, you once added the path to ~.bashrc, and forgot to delete the text.
And : An extra unused path is not important, shouldn't do any harm.


If you want to add ex-linkage, this will do :
ns-allinone-2.34/ns-2.34/ex-linkage.cc
ns-allinone-2.34/ns-2.34/ex-linkage.tcl
The above location is the proof one, no folder "linkage" is required.

A directory linkage/ will probably work too, must be inside 'ns-2.34/'.

..
 
Old 02-26-2011, 03:30 PM   #15
tootz
Member
 
Registered: Feb 2011
Posts: 47

Original Poster
Rep: Reputation: 1
omg!i m still have the error in #1.try to put ex-linkage.tcl in /ns/ns-2.34 and
i have done everything u have told me to, is there ways to troubleshoot?
help me i m lost!

Last edited by tootz; 02-26-2011 at 03:31 PM.
 
  


Reply

Tags
linkage, linkage-ns2, ns2


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
problem with running tcl script under ns 2.33 manjunath11 Linux - Newbie 56 02-11-2014 09:26 AM
problem with running tcl for mobile ipv6 manjunath11 Linux - Newbie 9 04-17-2012 08:25 AM
Running tcl script in LINUX smruthana Linux - General 1 01-28-2007 04:04 AM
problems running textSTAT with python and tcl sigma1 Linux - Software 0 09-17-2006 10:38 AM
tcl error ! wizex Debian 3 09-05-2005 04:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:22 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
Open Source Consulting | Domain Registration