LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-23-2012, 08:45 AM   #1
engr
Member
 
Registered: Jan 2012
Posts: 33

Rep: Reputation: Disabled
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...
 
Old 12-23-2012, 09:54 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,625

Rep: Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266
? 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 ?


.
 
Old 12-23-2012, 11:45 AM   #3
engr
Member
 
Registered: Jan 2012
Posts: 33

Original Poster
Rep: Reputation: Disabled
i have downloaded them...

and i m using 64 bits version of redhat.

how can i make them work?
 
Old 12-23-2012, 11:56 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,625

Rep: Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266
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

.
 
Old 12-23-2012, 12:02 PM   #5
engr
Member
 
Registered: Jan 2012
Posts: 33

Original Poster
Rep: Reputation: Disabled
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?
 
Old 12-24-2012, 01:17 AM   #6
engr
Member
 
Registered: Jan 2012
Posts: 33

Original Poster
Rep: Reputation: Disabled
file names are project.tcl.. with leach.h and leach .cc
i have to confiure that project.tcl file
 
Old 12-24-2012, 03:37 AM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,625

Rep: Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266
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


.
 
Old 12-24-2012, 05:40 AM   #8
engr
Member
 
Registered: Jan 2012
Posts: 33

Original Poster
Rep: Reputation: Disabled
sorry..

here is the o/p
cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.1 (Santiago)
 
Old 12-26-2012, 09:48 AM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,625

Rep: Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266
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".
 
Old 12-26-2012, 09:57 AM   #10
engr
Member
 
Registered: Jan 2012
Posts: 33

Original Poster
Rep: Reputation: Disabled
hi unable to locate the site.. but how can i attache the files its a folder should i attache the whole folder?
 
Old 12-26-2012, 10:07 AM   #11
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,625

Rep: Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266
# 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'.

.
 
Old 12-26-2012, 10:14 AM   #12
engr
Member
 
Registered: Jan 2012
Posts: 33

Original Poster
Rep: Reputation: Disabled
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?
 
Old 12-26-2012, 10:38 AM   #13
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,625

Rep: Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266
# 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

.
 
Old 01-14-2013, 06:56 AM   #14
engr
Member
 
Registered: Jan 2012
Posts: 33

Original Poster
Rep: Reputation: Disabled
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
 
Old 01-14-2013, 07:14 AM   #15
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,625

Rep: Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266
# 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

-
 
  


Reply


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
OCFS2 on redhat6.2 procfs Linux - Newbie 9 10-24-2012 01:12 PM
Oracle redhat6.1 x86 install Oracle 11g r2 error. reconcil Linux - Newbie 3 11-03-2011 10:11 AM
how to use my data cartridge tape in redhat6.2? lzyking Linux - Hardware 2 12-01-2003 06:18 PM
can I use redhat6.2 for sparc on sun1000e? lzyking Linux - Software 1 12-14-2002 11:10 PM
Installing RedHat6.0 on 10Gig harddrive samuel Linux - Software 0 03-26-2001 10:31 AM


All times are GMT -5. The time now is 05:13 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration