LinuxQuestions.org
Review your favorite Linux distribution.
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 11-05-2002, 07:30 PM   #1
fritex
LQ Newbie
 
Registered: Nov 2002
Distribution: Red Hat 8.0
Posts: 10

Rep: Reputation: 0
recompiling kernel goes fine, problem with make modules


Hi there

I am recompiling my kernel since the one I have installed came with my distro (Red Hat 8.0) and it has a lot of options and modules I don't need.
So I ran make menuconfig, configured my kernel, saved it no problems, ran make dep, make clean, make bzImage (image was too big with zImage) and everything went without a hitch. The image file is there in directory /usr/src/linux/arch/i386/boot/ . Then I proceeded to run make modules, when I got the following errors (I ommitted a lot of it, since it was pretty long):

make -r -f tmp_include_depends all
make[1]: Entering directory `/usr/src/linux-2.4.18-17.8.0'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/src/linux-2.4.18-17.8.0'
.
.
.
.
function
/usr/src/linux-2.4.18-17.8.0/include/linux/module.h:184: warning: function declaration isn't a prototype
/usr/src/linux-2.4.18-17.8.0/include/linux/module.h:185: `inter_module_get_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.18-17.8.0/include/linux/module.h:185: warning: parameter names (without types) in function declaration
/usr/src/linux-2.4.18-17.8.0/include/linux/module.h:186: `inter_module_get_request_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.18-17.8.0/include/linux/module.h:186: warning: parameter names (without types) in function declaration
/usr/src/linux-2.4.18-17.8.0/include/linux/module.h:187: invalid suffix on integer constant
/usr/src/linux-2.4.18-17.8.0/include/linux/module.h:187: parse error before numeric constant
/usr/src/linux-2.4.18-17.8.0/include/linux/module.h:187: `inter_module_put_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.18-17.8.0/include/linux/module.h:187: warning: function declaration isn't a prototype
/usr/src/linux-2.4.18-17.8.0/include/linux/module.h:196: `try_inc_mod_count_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.18-17.8.0/include/linux/module.h:196: warning: parameter names (without types) in function declaration
In file included from /usr/src/linux-2.4.18-17.8.0/include/linux/highmem.h:5,
from /usr/src/linux-2.4.18-17.8.0/include/linux/pagemap.h:16,
from /usr/src/linux-2.4.18-17.8.0/include/linux/locks.h:8,
from /usr/src/linux-2.4.18-17.8.0/include/linux/blk.h:5,
from loop.c:71:
/usr/src/linux-2.4.18-17.8.0/include/asm/pgalloc.h: In function `get_pgd_fast':
/usr/src/linux-2.4.18-17.8.0/include/asm/pgalloc.h:78: `boot_cpu_data_R0657d037' undeclared (first use in this function)
/usr/src/linux-2.4.18-17.8.0/include/asm/pgalloc.h:78: (Each undeclared identifier is reported only once
/usr/src/linux-2.4.18-17.8.0/include/asm/pgalloc.h:78: for each function it appears in.)
/usr/src/linux-2.4.18-17.8.0/include/asm/pgalloc.h: In function `free_pgd_fast':
/usr/src/linux-2.4.18-17.8.0/include/asm/pgalloc.h:89: `boot_cpu_data_R0657d037' undeclared (first use in this function)
/usr/src/linux-2.4.18-17.8.0/include/asm/pgalloc.h: In function `pte_alloc_one_fast':
/usr/src/linux-2.4.18-17.8.0/include/asm/pgalloc.h:127: `boot_cpu_data_R0657d037' undeclared (first use in this function)
/usr/src/linux-2.4.18-17.8.0/include/asm/pgalloc.h: In function `pte_free_fast':
/usr/src/linux-2.4.18-17.8.0/include/asm/pgalloc.h:137: `boot_cpu_data_R0657d037' undeclared (first use in this function)
In file included from loop.c:79:
/usr/src/linux-2.4.18-17.8.0/include/linux/suspend.h:58:1: warning: "software_suspend" redefined
In file included from /usr/src/linux-2.4.18-17.8.0/include/linux/modversions.h:264,
from <command line>:1:
/usr/src/linux-2.4.18-17.8.0/include/linux/modules/suspend.ver:4:1: warning: this is the location of the previous definition
loop.c: In function `loop_change_fd':
loop.c:720: warning: implicit declaration of function `kernel_thread_R7e9ebb05'
loop.c:761: warning: label `out_put_all' defined but not used
make[2]: *** [loop.o] Error 1
make[2]: Leaving directory `/usr/src/linux-2.4.18-17.8.0/drivers/block'
make[1]: *** [_modsubdir_block] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.18-17.8.0/drivers'
make: *** [_mod_drivers] Error 2


So make modules_install naturally wouldn't run.

Any help would be extremely appreciated.

Fritex
 
Old 11-06-2002, 10:37 AM   #2
Bert
Senior Member
 
Registered: Jul 2001
Location: 406292E 290755N
Distribution: GNU/Linux Slackware 8.1, Redhat 8.0, LFS 4.0
Posts: 1,004

Rep: Reputation: 46
There are probably dependency problems with your modules. When building the kernel, it can usually pick up dependency problems but with modules it can't.

Go back to the make xconfig and load the old .config file, when you do the make xconfig or whatever. Take things out carefully. Look at where the problems were - block devices. Make sure you don't touch anything there for the time being.
 
Old 11-06-2002, 09:35 PM   #3
fritex
LQ Newbie
 
Registered: Nov 2002
Distribution: Red Hat 8.0
Posts: 10

Original Poster
Rep: Reputation: 0
I have a bit of a problem now, though

I ran make menuconfig more than once, and I let it save to the default file. I guess because I did it more than once the .config.old file got overwritten, and .config and .config.old are both the same now... I am out of luck there, still can't make modules..
 
Old 11-07-2002, 04:05 AM   #4
Bert
Senior Member
 
Registered: Jul 2001
Location: 406292E 290755N
Distribution: GNU/Linux Slackware 8.1, Redhat 8.0, LFS 4.0
Posts: 1,004

Rep: Reputation: 46
Then don't make any modules.

The dependency tree for the kernel should resolve any problems. Make sure that you check everything you need. Of course pay particular attention to block devices because that's where you had problems before.

Looking at those error messages, there are problems with you kernel headers. Reinstall the kernel headers before proceeding.
 
Old 11-07-2002, 10:17 PM   #5
fritex
LQ Newbie
 
Registered: Nov 2002
Distribution: Red Hat 8.0
Posts: 10

Original Poster
Rep: Reputation: 0
ok, I'll give it a try, see what happens


thanks

fritex
 
  


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
what do i do with old modules and stuff when i make a new kernel? slinky2004 Linux - Software 3 09-06-2005 09:33 AM
make new modules for the same kernel? linuxhippy Slackware 1 03-26-2005 12:36 PM
d'oh! kernel update make modules scotoma Linux - Newbie 5 11-02-2004 11:06 AM
error recompiling 2.6.7 (2.6.6 recompiled fine) powadha Debian 2 07-05-2004 04:50 PM
Error recompiling kernel 2.4.22 (Make bzImage) Spislander Debian 7 12-26-2003 12:03 AM


All times are GMT -5. The time now is 09:47 AM.

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