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. |
|
 |
11-05-2002, 07:30 PM
|
#1
|
|
LQ Newbie
Registered: Nov 2002
Distribution: Red Hat 8.0
Posts: 10
Rep:
|
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
|
|
|
|
11-06-2002, 10:37 AM
|
#2
|
|
Senior Member
Registered: Jul 2001
Location: 406292E 290755N
Distribution: GNU/Linux Slackware 8.1, Redhat 8.0, LFS 4.0
Posts: 1,004
Rep:
|
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.
|
|
|
|
11-06-2002, 09:35 PM
|
#3
|
|
LQ Newbie
Registered: Nov 2002
Distribution: Red Hat 8.0
Posts: 10
Original Poster
Rep:
|
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..
|
|
|
|
11-07-2002, 04:05 AM
|
#4
|
|
Senior Member
Registered: Jul 2001
Location: 406292E 290755N
Distribution: GNU/Linux Slackware 8.1, Redhat 8.0, LFS 4.0
Posts: 1,004
Rep:
|
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.
|
|
|
|
11-07-2002, 10:17 PM
|
#5
|
|
LQ Newbie
Registered: Nov 2002
Distribution: Red Hat 8.0
Posts: 10
Original Poster
Rep:
|
ok, I'll give it a try, see what happens
thanks
fritex
|
|
|
|
| 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 05:24 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
|
|