LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora > Fedora - Installation
User Name
Password
Fedora - Installation This forum is for the discussion of installation issues with Fedora.

Notices



Reply
 
Search this Thread
Old 12-26-2004, 10:03 PM   #1
niteshg
LQ Newbie
 
Registered: Nov 2004
Location: NJ
Posts: 29

Rep: Reputation: 15
make modules_install


Hi,
I was trying to compile fedora 2.6.5-1.358 kernel.
I get the following error when i run
make modules_install command

ln: when making multiple links, last argument must be a directory
make: *** [_modinst_] Error 1

What could be the problem?
Thanks,
Nitesh
 
Old 12-26-2004, 10:54 PM   #2
Moy Easwaran
Member
 
Registered: Dec 2004
Distribution: Slackware, OpenBSD
Posts: 44

Rep: Reputation: 19
Did you run make modules_install as root?
 
Old 12-27-2004, 12:59 AM   #3
niteshg
LQ Newbie
 
Registered: Nov 2004
Location: NJ
Posts: 29

Original Poster
Rep: Reputation: 15
yes I am running it as root.
Makefile
EXTRAVERSION option is changed.I do everything ars per the instructions given by everyone on the net but the problem persists.I was googling to get an answer but some people have reported this error but no solution.
 
Old 12-27-2004, 04:53 AM   #4
Moy Easwaran
Member
 
Registered: Dec 2004
Distribution: Slackware, OpenBSD
Posts: 44

Rep: Reputation: 19
What are your version parameters set to? You don't want spaces, semicolons, etc. in this line:
KERNELRELEASE=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)$(LOCALVERSION)

If you insert the following line as the first target in _modinst_ in your Makefile, you'll know if make thinks your KERNELRELEASE is a filename (note the tab at the beginning of the line):
Code:
    @mkdir foo; cd foo; touch $(KERNELRELEASE); cd -; ls -la foo
Moy
 
Old 12-27-2004, 03:27 PM   #5
niteshg
LQ Newbie
 
Registered: Nov 2004
Location: NJ
Posts: 29

Original Poster
Rep: Reputation: 15
evrything is okay.
I did whatever u said $(KERNELRELEASE) is 2.6.5-1.358
in my /lib/modules/ i have a directory 2.6.5-1.358
in /usr/src there is a directory linux-2.6.5-1.358

the following is the script
$(TOPDIR) is /usr/src/linux-2.6.5-1.358
$(MODLIB) is /lib/modules/2.6.5-1.358

@ln -s $(TOPDIR) $(MODLIB)/build

this line in the Makefile generates the error i feel.But why it does it i dont know.
 
Old 12-28-2004, 02:33 PM   #6
Moy Easwaran
Member
 
Registered: Dec 2004
Distribution: Slackware, OpenBSD
Posts: 44

Rep: Reputation: 19
A bandaid solution would be to hack the Makefile a little, remove the ln lines and make those links yourself, and then run the rest. It really just calls scripts/Makefile.modinst, so you might get away with that.

Of course, that doesn't address the issue of why you're getting the error in the first place, but if you don't want to debug the Makefile that might work.
 
  


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
make modules_install bhomass Debian 2 11-21-2005 12:11 AM
make modules_install error djib Linux - Software 8 12-12-2004 11:15 AM
make modules_install props666999 Slackware 5 11-16-2004 01:11 AM
make modules_install error props666999 Slackware 8 11-13-2004 10:41 PM
make modules_install ? shanenin Linux - Software 3 12-31-2003 11:41 PM


All times are GMT -5. The time now is 05:16 AM.

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