LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 04-07-2009, 11:56 PM   #1
giri_blr
LQ Newbie
 
Registered: Jul 2008
Posts: 24

Rep: Reputation: 15
Error in compiling kernel 2.4.21


Applied suspend2 patch for kernel 2.4.21 and tried to compile it. It's giving me the following Error when compiling.

Steps followed:

1. applied version specific patch : "software-suspend-linux-2.4.21-rev2-whole"
2. appplied core patch : "software-suspend-2.0-core-rc3A"
3.make modules
4.make dep
5.make clean
6.make bzImage

Getting problem during "make bzImage"

Please help how to proceed...
Thanks.

Error message:
Quote:
root@c00pe0 linux-2.4.21-4.EL]# make bzImage
make -r -f tmp_include_depends all
make[1]: Entering directory `/usr2/linux-2.4.21-4.EL'
make[1]: Circular /usr2/linux-2.4.21-4.EL/include/asm/smplock.h <- /usr2/linux-2.4.21-4.EL/include/linux/interrupt.h dependency dropped.
make[1]: Circular /usr2/linux-2.4.21-4.EL/include/linux/netfilter_ipv4/ip_conntrack_helper.h <- /usr2/linux-2.4.21-4.EL/include/linux/netfilter_ipv4/ip_conntrack.h dependency dropped.
make[1]: Leaving directory `/usr2/linux-2.4.21-4.EL'
gcc -D__KERNEL__ -I/usr2/linux-2.4.21-4.EL/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -Wno-unused -fomit-frame-pointer -pipe -freorder-blocks -mpreferred-stack-boundary=2 -march=i686 -DKBUILD_BASENAME=main -c -o init/main.o init/main.c
In file included from /usr2/linux-2.4.21-4.EL/include/asm/system.h:8,
from /usr2/linux-2.4.21-4.EL/include/linux/tqueue.h:19,
from /usr2/linux-2.4.21-4.EL/include/linux/aio.h:4,
from /usr2/linux-2.4.21-4.EL/include/linux/net.h:88,
from /usr2/linux-2.4.21-4.EL/include/linux/fs.h:15,
from /usr2/linux-2.4.21-4.EL/include/linux/capability.h:17,
from /usr2/linux-2.4.21-4.EL/include/linux/binfmts.h:4,
from /usr2/linux-2.4.21-4.EL/include/linux/sched.h:10,
from /usr2/linux-2.4.21-4.EL/include/linux/mm.h:22,
from /usr2/linux-2.4.21-4.EL/include/linux/slab.h:14,
from /usr2/linux-2.4.21-4.EL/include/linux/proc_fs.h:5,
from init/main.c:15:
/usr2/linux-2.4.21-4.EL/include/linux/bitops.h: In function `get_bitmask_order':
/usr2/linux-2.4.21-4.EL/include/linux/bitops.h:79: warning: implicit declaration of function `generic_fls'
. scripts/mkversion > .tmpversion
gcc -D__KERNEL__ -I/usr2/linux-2.4.21-4.EL/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -Wno-unused -fomit-frame-pointer -pipe -freorder-blocks -mpreferred-stack-boundary=2 -march=i686 -DUTS_MACHINE='"i386"' -DKBUILD_BASENAME=version -c -o init/version.o init/version.c
gcc -D__KERNEL__ -I/usr2/linux-2.4.21-4.EL/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -Wno-unused -fomit-frame-pointer -pipe -freorder-blocks -mpreferred-stack-boundary=2 -march=i686 -DKBUILD_BASENAME=do_mounts -c -o init/do_mounts.o init/do_mounts.c
In file included from /usr2/linux-2.4.21-4.EL/include/asm/system.h:8,
from /usr2/linux-2.4.21-4.EL/include/linux/tqueue.h:19,
from /usr2/linux-2.4.21-4.EL/include/linux/aio.h:4,
from /usr2/linux-2.4.21-4.EL/include/linux/net.h:88,
from /usr2/linux-2.4.21-4.EL/include/linux/fs.h:15,
from /usr2/linux-2.4.21-4.EL/include/linux/capability.h:17,
from /usr2/linux-2.4.21-4.EL/include/linux/binfmts.h:4,
from /usr2/linux-2.4.21-4.EL/include/linux/sched.h:10,
from /usr2/linux-2.4.21-4.EL/include/linux/mm.h:22,
from /usr2/linux-2.4.21-4.EL/include/linux/slab.h:14,
from init/do_mounts.c:3:
/usr2/linux-2.4.21-4.EL/include/linux/bitops.h: In function `get_bitmask_order':
/usr2/linux-2.4.21-4.EL/include/linux/bitops.h:79: warning: implicit declaration of function `generic_fls'
make CFLAGS="-D__KERNEL__ -I/usr2/linux-2.4.21-4.EL/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -Wno-unused -fomit-frame-pointer -pipe -freorder-blocks -mpreferred-stack-boundary=2 -march=i686 " -C kernel
make[1]: Entering directory `/usr2/linux-2.4.21-4.EL/kernel'
make -C power
make[2]: Entering directory `/usr2/linux-2.4.21-4.EL/kernel/power'
make all_targets
make[3]: Entering directory `/usr2/linux-2.4.21-4.EL/kernel/power'


*** It looks like you have not applied the core Software Suspend patch. ***


make[3]: *** [ui.c] Error 1
make[3]: Leaving directory `/usr2/linux-2.4.21-4.EL/kernel/power'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/usr2/linux-2.4.21-4.EL/kernel/power'
make[1]: *** [_subdir_power] Error 2
make[1]: Leaving directory `/usr2/linux-2.4.21-4.EL/kernel'
make: *** [_dir_kernel] Error 2
[root@c00pe0 linux-2.4.21-4.EL]#

Last edited by giri_blr; 04-07-2009 at 11:57 PM. Reason: Left some message
 
Old 04-08-2009, 02:04 AM   #2
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,552

Rep: Reputation: 103Reputation: 103
Quote:
Originally Posted by giri_blr View Post
Applied suspend2 patch for kernel 2.4.21 and tried to compile it. It's giving me the following Error when compiling.

Steps followed:

1. applied version specific patch : "software-suspend-linux-2.4.21-rev2-whole"
2. appplied core patch : "software-suspend-2.0-core-rc3A"
Have you tried applying these two in reverse sequence and seeing if it helps?

The error message at the bottom seems to imply that the top patch first expects the bottom patch to be applied, before it is applied?
 
Old 04-09-2009, 12:08 AM   #3
giri_blr
LQ Newbie
 
Registered: Jul 2008
Posts: 24

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by rylan76 View Post
Have you tried applying these two in reverse sequence and seeing if it helps?

The error message at the bottom seems to imply that the top patch first expects the bottom patch to be applied, before it is applied?
Thanks for the reply. I've tried the inverse way. Now Im getting one another error...

Before "make bzImage" I did "make dep" to check dependencies and "make clean" to clear old .obj files...

Quote:
root@c00pe0 linux-2.4.21-4.EL]# make bzImage
make -r -f tmp_include_depends all
make[1]: Entering directory `/usr2/linux-2.4.21-4.EL_2/linux-2.4.21-4.EL'
make[1]: Circular /usr2/linux-2.4.21-4.EL_2/linux-2.4.21-4.EL/include/asm/smplock.h <- /usr2/linux-2.4.21-4.EL_2/linux-2.4.21-4.EL/include/linux/interrupt.h dependency dropped.
make[1]: Circular /usr2/linux-2.4.21-4.EL_2/linux-2.4.21-4.EL/include/linux/netfilter_ipv4/ip_conntrack_helper.h <- /usr2/linux-2.4.21-4.EL_2/linux-2.4.21-4.EL/include/linux/netfilter_ipv4/ip_conntrack.h dependency dropped.
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr2/linux-2.4.21-4.EL_2/linux-2.4.21-4.EL'
gcc -D__KERNEL__ -I/usr2/linux-2.4.21-4.EL_2/linux-2.4.21-4.EL/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -Wno-unused -fomit-frame-pointer -pipe -freorder-blocks -mpreferred-stack-boundary=2 -march=i686 -DKBUILD_BASENAME=main -c -o init/main.o init/main.c
In file included from /usr2/linux-2.4.21-4.EL_2/linux-2.4.21-4.EL/include/asm/system.h:8,
from /usr2/linux-2.4.21-4.EL_2/linux-2.4.21-4.EL/include/linux/tqueue.h:19,
from /usr2/linux-2.4.21-4.EL_2/linux-2.4.21-4.EL/include/linux/aio.h:4,
from /usr2/linux-2.4.21-4.EL_2/linux-2.4.21-4.EL/include/linux/net.h:88,
from /usr2/linux-2.4.21-4.EL_2/linux-2.4.21-4.EL/include/linux/fs.h:15,
from /usr2/linux-2.4.21-4.EL_2/linux-2.4.21-4.EL/include/linux/capability.h:17,
from /usr2/linux-2.4.21-4.EL_2/linux-2.4.21-4.EL/include/linux/binfmts.h:4,
from /usr2/linux-2.4.21-4.EL_2/linux-2.4.21-4.EL/include/linux/sched.h:10,
from /usr2/linux-2.4.21-4.EL_2/linux-2.4.21-4.EL/include/linux/mm.h:22,
from /usr2/linux-2.4.21-4.EL_2/linux-2.4.21-4.EL/include/linux/slab.h:14,
from /usr2/linux-2.4.21-4.EL_2/linux-2.4.21-4.EL/include/linux/proc_fs.h:5,
from init/main.c:15:
/usr2/linux-2.4.21-4.EL_2/linux-2.4.21-4.EL/include/linux/bitops.h:88: conflicting types for `generic_fls'
/usr2/linux-2.4.21-4.EL_2/linux-2.4.21-4.EL/include/linux/bitops.h:47: previous declaration of `generic_fls'
/usr2/linux-2.4.21-4.EL_2/linux-2.4.21-4.EL/include/linux/bitops.h:117: redefinition of `get_bitmask_order'
/usr2/linux-2.4.21-4.EL_2/linux-2.4.21-4.EL/include/linux/bitops.h:76: `get_bitmask_order' previously defined here
make: *** [init/main.o] Error 1
[root@c00pe0 linux-2.4.21-4.EL]#
 
Old 04-09-2009, 05:43 AM   #4
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,552

Rep: Reputation: 103Reputation: 103
A ha!

Well, not sure what you will be able to do from here, but most of the time a step in the right direction is indicated if you start getting, at least, -different- errors - it means that whatever you fiddled with hopefully has some direct bearing on the error you are getting.

Can't you just get a complete, newer kernel, rather than trying to patch the one you have??

The error messages above seem to indicate double definitons are now present, and the kernel will definitely not compile. It almost looks as if changing the order of the patches now demands a third patch to be applied, -before- they are applied in the order you now tried them in?

Are you sure the BASE version of that kernel source tree is the correct one for the patches you have? You sometimes get these types of compile errors if you applied a patch that is the wrong one for the base version of the kernel / application you want to alter.

Last edited by rylan76; 04-09-2009 at 05:45 AM.
 
  


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
Error when compiling kernel linux-2.6.22 : make: ***[_modinst_post] Error 137 ngoclan.it Linux - General 1 12-11-2007 06:54 AM
Error when compiling kernel linux-2.6.22 : make: ***[_modinst_post] Error 137 ngoclan.it Linux - Newbie 0 12-11-2007 06:49 AM
Error compiling NVIDIA kernel module on 2.6.23.1 kernel Slaco Linux - Hardware 6 10-31-2007 07:57 PM
Error in Kernel.h file, while compiling the kernel Nishant Desai Linux - Kernel 0 11-13-2006 11:19 PM
Error compiling kernel. Royle Debian 8 08-25-2005 02:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 11:24 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
Open Source Consulting | Domain Registration