LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 09-25-2005, 06:08 AM   #1
dominicporter
LQ Newbie
 
Registered: Sep 2005
Posts: 5

Rep: Reputation: 0
Question Problem building RH9 kernel modules


Hi,

First time building a Linux kernel so following instructions v closely and having probs when I get to make modules:

[root@Legolas linux-2.4]# make modules
make -r -f tmp_include_depends all
make[1]: Entering directory `/usr/src/linux-2.4.20-8'
make[1]: Circular /usr/src/linux-2.4.20-8/include/asm/smplock.h <- /usr/src/linux-2.4.20-8/include/linux/interrupt.h dependency dropped.
make[1]: Circular /usr/src/linux-2.4.20-8/include/linux/netfilter_ipv4/ip_conntrack.h <- /usr/src/linux-2.4.20-8/include/linux/netfilter_ipv4/ip_conntrack_helper.h dependency dropped.
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/src/linux-2.4.20-8'
make -C kernel CFLAGS="-D__KERNEL__ -I/usr/src/linux-2.4.20-8/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -falign-functions=4 -DMODULE -DMODVERSIONS -include /usr/src/linux-2.4.20-8/include/linux/modversions.h" MAKING_MODULES=1 modules
make[1]: Entering directory `/usr/src/linux-2.4.20-8/kernel'
make[1]: Nothing to be done for `modules'.
make[1]: Leaving directory `/usr/src/linux-2.4.20-8/kernel'
make -C drivers CFLAGS="-D__KERNEL__ -I/usr/src/linux-2.4.20-8/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -falign-functions=4 -DMODULE -DMODVERSIONS -include /usr/src/linux-2.4.20-8/include/linux/modversions.h" MAKING_MODULES=1 modules
make[1]: Entering directory `/usr/src/linux-2.4.20-8/drivers'
make -C acpi modules
make[2]: Entering directory `/usr/src/linux-2.4.20-8/drivers/acpi'
make -C ospm modules
make[3]: Entering directory `/usr/src/linux-2.4.20-8/drivers/acpi/ospm'
make[3]: Nothing to be done for `modules'.
make[3]: Leaving directory `/usr/src/linux-2.4.20-8/drivers/acpi/ospm'
make[2]: Leaving directory `/usr/src/linux-2.4.20-8/drivers/acpi'
make -C addon modules
make[2]: Entering directory `/usr/src/linux-2.4.20-8/drivers/addon'
make[2]: Nothing to be done for `modules'.
make[2]: Leaving directory `/usr/src/linux-2.4.20-8/drivers/addon'
make -C atm modules
make[2]: Entering directory `/usr/src/linux-2.4.20-8/drivers/atm'
gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-8/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -falign-functions=4 -DMODULE -DMODVERSIONS -include
/usr/src/linux-2.4.20-8/include/linux/modversions.h -g -nostdinc -iwithprefix include -DKBUILD_BASENAME=eni -c -o eni.o eni.c
In file included from /usr/src/linux-2.4.20-8/include/linux/prefetch.h:13,
from /usr/src/linux-2.4.20-8/include/linux/list.h:6,
from /usr/src/linux-2.4.20-8/include/linux/module.h:12,
from eni.c:6:
/usr/src/linux-2.4.20-8/include/asm/processor.h:60: warning: parameter names (without types) in function declaration
/usr/src/linux-2.4.20-8/include/asm/processor.h:60: field `loops_per_jiffy_R_ver_str' declared as a function
/usr/src/linux-2.4.20-8/include/asm/processor.h:82: invalid suffix on integer constant
/usr/src/linux-2.4.20-8/include/asm/processor.h:82: parse error before numeric constant
/usr/src/linux-2.4.20-8/include/asm/processor.h:82: warning: function declaration isn't a prototype
/usr/src/linux-2.4.20-8/include/asm/processor.h:265: invalid suffix on integer constant
/usr/src/linux-2.4.20-8/include/asm/processor.h:265: parse error before numeric constant
/usr/src/linux-2.4.20-8/include/asm/processor.h:265: warning: function declaration isn't a prototype
/usr/src/linux-2.4.20-8/include/asm/processor.h:269: warning: parameter names (without types) in function declaration
In file included from eni.c:6:
/usr/src/linux-2.4.20-8/include/linux/module.h:183: invalid suffix on integer constant
/usr/src/linux-2.4.20-8/include/linux/module.h:183: parse error before numeric constant
/usr/src/linux-2.4.20-8/include/linux/module.h:183: `inter_module_register_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.20-8/include/



Any ideas what I'm doing wrong?

THanks

DOM
 
Old 09-25-2005, 12:53 PM   #2
dexteroo
Member
 
Registered: Sep 2003
Location: Nigeria
Distribution: CentOS 4.3
Posts: 37

Rep: Reputation: 15
From my experience, the stock RedHat Kernels are heavily patched and I have never gotten one to compile cleanly after adding some other patch. You may want to try using a Vanilla kernel form kernle.org and then patching it with whatever functionality you need which it may lack and using your old config file to reduce the number of options needing configuration.

And while you are at it, you might want to use a more recent kernel version if there is no specific need for the 2.4.20-8 kernel.
 
  


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
Building new kernel modules? raid517 Linux - Software 2 05-26-2005 03:07 AM
Kernel 2.6 make modules error on RH9 t0mmy Linux - Newbie 3 04-08-2005 10:26 PM
problem building modules david_deng Linux - Newbie 2 09-22-2004 01:12 AM
Building modules for the kernel... Nichole_knc Slackware 3 04-13-2004 08:28 AM
DRI kernel modules won't compile in RH9 sponge4life89 Linux - Hardware 6 11-04-2003 10:24 PM


All times are GMT -5. The time now is 11:02 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