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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
03-27-2010, 01:51 PM
|
#1
|
|
Member
Registered: Mar 2010
Posts: 31
Rep:
|
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/?Software YMOUM 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.
|
|
|
|
03-27-2010, 03:00 PM
|
#2
|
|
Member
Registered: Mar 2010
Posts: 31
Original Poster
Rep:
|
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 ?
|
|
|
|
03-31-2010, 11:59 AM
|
#3
|
|
Member
Registered: Mar 2010
Posts: 31
Original Poster
Rep:
|
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 ?
|
|
|
|
05-27-2010, 10:26 PM
|
#4
|
|
LQ Newbie
Registered: May 2010
Location: Osaka, Japan
Distribution: Ubuntu, Debian
Posts: 2
Rep:
|
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.
|
|
|
|
05-28-2010, 03:14 PM
|
#5
|
|
Member
Registered: Mar 2010
Posts: 31
Original Poster
Rep:
|
Thanks ochikage.
|
|
|
|
12-19-2010, 05:40 AM
|
#6
|
|
LQ Newbie
Registered: Dec 2010
Posts: 3
Rep:
|
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...
|
|
|
|
12-19-2010, 07:26 AM
|
#7
|
|
Member
Registered: Aug 2007
Location: India
Distribution: Slackware (mainly) and then a lot of others...
Posts: 833
Rep: 
|
Did you try './configure' before running make?
If the Makefile is not there or not created then try 'automake' after deleting the orignal Makefile.
|
|
|
|
12-19-2010, 10:58 AM
|
#8
|
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2012.8, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 11,620
|
@ yat81, post # 6 : Welcome to LQ.
http://masimum.dif.um.es/?Software YMOUM: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.
|
|
|
|
12-20-2010, 04:06 AM
|
#9
|
|
LQ Newbie
Registered: Dec 2010
Posts: 3
Rep:
|
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...
|
|
|
|
12-20-2010, 04:08 AM
|
#10
|
|
LQ Newbie
Registered: Dec 2010
Posts: 3
Rep:
|
Quote:
Originally Posted by knudfl
@ yat81, post # 6 : Welcome to LQ.
http://masimum.dif.um.es/?Software YMOUM: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 ?
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 06:26 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|