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 03-27-2010, 01:51 PM   #1
Bringo
Member
 
Registered: Mar 2010
Posts: 31

Rep: Reputation: 16
Question Makefile: file not recognized:File format not recognized collect2: ld returned 1 exit


Hello folks, I was installing DYMOUM from http://masimum.dif.um.es/?SoftwareYMOUM in ns-2.34. "make" command is issuing this error:
Code:
...
...
common/main-monolithic.o dymoum/libdymoum.a Makefile -L/ns-allinone-2.34/tclcl-1.19 -ltclcl -L/ns-allinone-2.34/otcl -lotcl -L/ns-allinone-2.34/lib -ltk8.4 -L/ns-allinone-2.34/lib -ltcl8.4 -lXext -lX11 -lnsl -ldl -lm -lm -Ldymoum -ldymoum
Makefile: file not recognized: File format not recognized
collect2: ld returned 1 exit status
make: *** [ns] Error 1
Prior to this, ns-2.34 was working fine. Patches are applied very well.
I am in under fedora 9 and:
Code:
gcc (GCC) 4.3.0 20080428 (Red Hat 4.3.0-8)
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE
I am unable to figure out what is this an issue of.

Last edited by Bringo; 03-27-2010 at 01:53 PM.
 
Old 03-27-2010, 03:00 PM   #2
Bringo
Member
 
Registered: Mar 2010
Posts: 31

Original Poster
Rep: Reputation: 16
I guess I have to extract (or do something like that with) the file "libdymoum.a" before giving "make" command. What are your opinions guys ?
 
Old 03-31-2010, 11:59 AM   #3
Bringo
Member
 
Registered: Mar 2010
Posts: 31

Original Poster
Rep: Reputation: 16
I have now installed the same dymoum in ns-2.29 under the same system. Do someone has any ideas what goes wrong when I try to install dymoum in ns-2.34 ?
 
Old 05-27-2010, 10:26 PM   #4
ochikage
LQ Newbie
 
Registered: May 2010
Location: Osaka, Japan
Distribution: Ubuntu, Debian
Posts: 2

Rep: Reputation: 1
Makefile has a problem

Hi,

I installed ns-2.34 and DYMOUM on Ubuntu 10.04 and I also had a same problem.

In short, L409 of ns-2.34/Makefile is wrong, I guess.

Quote:
# DYMO_UM
$(NS): $(DYMO_UM_DIR)/$(DYMO_UM_LIB) $(OBJ) common/tclAppInit.o Makefile
$(LINK) $(LDFLAGS) $(LDOUT)$@ \
common/tclAppInit.o $(OBJ) $(LIB)
Delete the statement "Makefile" as follows,

Quote:
# DYMO_UM
$(NS): $(DYMO_UM_DIR)/$(DYMO_UM_LIB) $(OBJ) common/tclAppInit.o
$(LINK) $(LDFLAGS) $(LDOUT)$@ \
common/tclAppInit.o $(OBJ) $(LIB)
then, run "make clean" and "make". This had DYMOUM work in my environment.

Makefile is re-writed when you configure. So, it's better to modify Makefile.in or pach file.
 
Old 05-28-2010, 03:14 PM   #5
Bringo
Member
 
Registered: Mar 2010
Posts: 31

Original Poster
Rep: Reputation: 16
Thanks ochikage.
 
Old 12-19-2010, 05:40 AM   #6
yat81
LQ Newbie
 
Registered: Dec 2010
Posts: 3

Rep: Reputation: 0
do u guys applying a patch that they provide? my ns does not work when i try to install DYMO and i have to delete folder path everything, and install ns2.34 again from scratch because of the DYMO problem....

if u guys have any manual, appreciate it...
 
Old 12-19-2010, 07:26 AM   #7
honeybadger
Member
 
Registered: Aug 2007
Location: India
Distribution: Slackware (mainly) and then a lot of others...
Posts: 847

Rep: Reputation: Disabled
Did you try './configure' before running make?
If the Makefile is not there or not created then try 'automake' after deleting the orignal Makefile.
 
Old 12-19-2010, 10:58 AM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,522

Rep: Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503
@ yat81, post # 6 : Welcome to LQ.

http://masimum.dif.um.es/?SoftwareYMOUM:Patches
The patch is dymoum ported to ns-2.34.

Example : Starting from scratch with a "clean" ns-allinone-2.34/ :
mv dymoum_ns-2.34_v0.3.patch ns-allinone-2.34/ns-2.34/
cd ns-allinone-2.34/ns-2.34/
patch -p1 dymoum_ns-2.34_v0.3.patch
tar xvf dynoum-0.3.tar.gz
ln -s dynoum-0.3/ dynoum
cd .. && ./install
.. is supposed to work.

EDIT : Compiles OK in ns-2.33, but not ns-2.34.
Stops with: File format not recognized (libdymoum.a ?).
..

Last edited by knudfl; 12-19-2010 at 11:50 AM.
 
Old 12-20-2010, 04:06 AM   #9
yat81
LQ Newbie
 
Registered: Dec 2010
Posts: 3

Rep: Reputation: 0
well i follow the instruction from the website, but when i apply the patch, some of the patch said 'hunk failed'...but i proceed with ./configure, make distclean, ./configure and make, and it has some error (it even doesn't recognised the ns command), i try it two times, but will try it later and post the error message...
 
Old 12-20-2010, 04:08 AM   #10
yat81
LQ Newbie
 
Registered: Dec 2010
Posts: 3

Rep: Reputation: 0
Quote:
Originally Posted by knudfl View Post
@ yat81, post # 6 : Welcome to LQ.

http://masimum.dif.um.es/?SoftwareYMOUM:Patches
The patch is dymoum ported to ns-2.34.

Example : Starting from scratch with a "clean" ns-allinone-2.34/ :
mv dymoum_ns-2.34_v0.3.patch ns-allinone-2.34/ns-2.34/
cd ns-allinone-2.34/ns-2.34/
patch -p1 dymoum_ns-2.34_v0.3.patch
tar xvf dynoum-0.3.tar.gz
ln -s dynoum-0.3/ dynoum
cd .. && ./install
.. is supposed to work.

EDIT : Compiles OK in ns-2.33, but not ns-2.34.
Stops with: File format not recognized (libdymoum.a ?).
..
shouldn't it be patch -p1 < dymoum_ns-2.34_v0.3.patch ?
 
  


Reply

Tags
dymo, dymoum, 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
A different collect2: ld returned 1 exit status old_as_a_fossil Linux - General 0 01-28-2010 09:57 AM
Compiler error : /usr/lib/libc.so: file not recognized: File format not recognized kreena Solaris / OpenSolaris 7 12-14-2009 02:51 AM
/usr/lib/libgd.so: file not recognized: File format not recognized kimjao Linux - Software 2 07-24-2009 11:46 AM
not in executable format: File format not recognized ypy13 Linux - Newbie 9 07-09-2008 11:33 PM
File Format not recognized eachow Linux - Hardware 2 07-10-2006 03:52 PM


All times are GMT -5. The time now is 04:31 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration