LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   redhat6 ns-2.34 error (https://www.linuxquestions.org/questions/linux-newbie-8/redhat6-ns-2-34-error-4175442674/)

engr 12-23-2012 08:45 AM

redhat6 ns-2.34 error
 
hi all...
i have some files to run on ns-2.34 after giving 'make' command it gives following error at the end

/usr/bin/ld: i386 architecture of input file
`common/main-monolithic.o' is incompatible with i386:x86-64 output
collect2: ld returned 1 exit status
make: *** [ns] Error 1

can any one help me to solve this error...

knudfl 12-23-2012 09:54 AM

? Probably RedHat EL 6.x, not the 1999 Redhat 6.0 ?

Is your OS 64bits or 32bits ? This command will tell : uname -m


Quote:

I have some files to run on ns-2.34
Which files ? And where did you get the incompatible object files ?


.

engr 12-23-2012 11:45 AM

i have downloaded them...

and i m using 64 bits version of redhat.

how can i make them work?

knudfl 12-23-2012 11:56 AM

Quote:

I have downloaded them...
Well, then please show 1) a link to the site where you got the files.

2) And the file names for all the files referred in post #1 as "some files".


And please show the output from the command : cat /etc/redhat-release

.

engr 12-23-2012 12:02 PM

here is the output

cat/etc/redhat-release
bash: cat/etc/redhat-release: No such file or directory
You have new mail in /var/spool/mail/root
i dont exactly remember the site from where i got them.

as far as i knw these files have been created in 32 bits version, is there anyway to make them work for 64 bits?

engr 12-24-2012 01:17 AM

file names are project.tcl.. with leach.h and leach .cc
i have to confiure that project.tcl file

knudfl 12-24-2012 03:37 AM

Please read post #4 : It is not cat/etc/redhat-release
But : cat /etc/redhat-release , i.e. cat<space>/etc/redhat-release


Nobody can know which unknown 32bits files, you are talking about,
when no link is provided. Thus no answer to your questions.

http://www.linuxquestions.org/linux/...Ask_a_Question
http://linuxsilo.net/docs/smart-questions_en.html


.

engr 12-24-2012 05:40 AM

sorry..

here is the o/p
cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.1 (Santiago)

knudfl 12-26-2012 09:48 AM

You are still missing out the most important information, ref. #4:

.. please show 1) a link to the site where you got the files.
2) And the file names for all the files referred in post #1 as "some files".

engr 12-26-2012 09:57 AM

hi unable to locate the site.. but how can i attache the files its a folder should i attache the whole folder?

knudfl 12-26-2012 10:07 AM

# 10

tar -cf name.tar <folder>/
... and then upload the package to 'Google Docs'.


Small files can also be attached to a new post ( 3 per post),
with a suffix .txt, like file.cc.txt and file.tcl.txt .


Howto attach : Please use the 'paper clip tool' in the 'Advanced Editor'.

.

engr 12-26-2012 10:14 AM

ok thnx.. one morething i have installed ns2 on centos recentlly for my frend.. but it is giving the output of ns
segmentation fault
why id this so?

knudfl 12-26-2012 10:38 AM

# 12 . First : ns2 is for i686, not x86_64.
Will usually work on x86_64, but with a slightly reduced functionality.

Prerequisites : # yum install \
gcc-c++ compat-gcc-34-c++ automake autoconf libtool libX11-devel \
libXext-devel libXau-devel libXmu-devel xorg-x11-proto-devel

Example, ns-allinone-2.34 :
cd ns-allinone-2.34/ && export CC=gcc34 CXX=g++34 && ./install

.

engr 01-14-2013 06:56 AM

hi knudfl

i have solved those problems but now the issue is
whenever i run ./test for leach
it gives
[root@localhost ns-2.34]# ./test
num_nodes is set 3
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
warning: no class variable Phy/WirelessPhy::E_elec

see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable Phy/WirelessPhy::e_mp

warning: no class variable Phy/WirelessPhy::e_fs

INITIALIZE THE LIST xListHead
warning: no class variable Phy/WirelessPhy::E_elec

see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable Phy/WirelessPhy::e_mp

warning: no class variable Phy/WirelessPhy::e_fs

warning: no class variable Phy/WirelessPhy::E_elec

see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable Phy/WirelessPhy::e_mp

warning: no class variable Phy/WirelessPhy::e_fs

Loading connection pattern...
Loading scenario file...
Starting Simulation...
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5, distCST_ = 550.0
SORTING LISTS ...DONE!
Attempting to cancel timer at 0x2d770c8 which is not scheduled

plz help

knudfl 01-14-2013 07:14 AM

# 14 : Not really an issue. Warnings are information, not errors.
Your result is a perfect output.

For more information : Please have a look at the two "long LEACH threads".
( There are ways to omit the warnings, if you don't want to see them.)
1. http://www.linuxquestions.org/questi...2-27-a-785379/
2. http://www.linuxquestions.org/questi...2-34-a-870368/

Other leach threads : LQ Search → → Tag = leach

-


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