Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Red Hat This forum is for the discussion of Red Hat Linux.


  Search this Thread
Old 09-09-2003, 06:36 PM   #1
LQ Newbie
Registered: Sep 2003
Posts: 4

Rep: Reputation: 0
Angry RedHat 9 (2.4.20-8) kernel rebuild without loadable module support

I've been trying to rebuild the 2.4.20-8 kernel under RedHat 9 without loadable module support (for security reasons). In the 'make menuconfig' process, in the "Loadable module support" section, I un-select "Enable Loadable Module Support".

Here are my exact steps:

RedHat 9

cd /usr/src/linux-2.4
make mrproper
cp configs/kernel-2.4.20-i686-smp.config ./.config
make oldconfig
make menuconfig
(the only config change made is to disable loadable module support)
make dep
make bzImage

During the make, I get the following error:

make[4]: Entering directory `/usr/src/linux-2.4.20-20.9/drivers/addon/aep'
gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-20.9/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -nostdinc -iwithprefix include -DKBUILD_BASENAME=paep -c -o paep.o paep.c
In file included from paep.c:85:
paep.h:75:2: #error "MODULE not defined, I guess you don't want to recompile the entire kernel !"
make[4]: *** [paep.o] Error 1
make[4]: Leaving directory `/usr/src/linux-2.4.20-20.9/drivers/addon/aep'
make[3]: *** [first_rule] Error 2
make[3]: Leaving directory `/usr/src/linux-2.4.20-20.9/drivers/addon/aep'
make[2]: *** [_subdir_aep] Error 2
make[2]: Leaving directory `/usr/src/linux-2.4.20-20.9/drivers/addon'
make[1]: *** [_subdir_addon] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.20-20.9/drivers'
make: *** [_dir_drivers] Error 2


Is this the proper way to disable Loadable module support? If not, what should I be doing? Thanks...
Old 09-09-2003, 09:20 PM   #2
Senior Member
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 59
you should be doing :
make clean
after the make dep step...
read the guide i put together


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
Tool to identify memory leak in loadable kernel module appas Programming 3 06-05-2012 09:56 AM
How do you rebuild a single kernel module? rollo Linux - General 3 01-29-2006 01:19 AM
how to add new loadable module to kernel? Mistreated Linux - Software 7 02-02-2005 10:22 AM
RedHat 9 (2.4.20-8) kernel rebuild without loadable module support RedHatDude Linux - Software 4 09-09-2003 09:32 PM
loadable kernel module brajesh Linux - General 2 01-17-2003 12:54 AM > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 10:35 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration