Linux - KernelThis forum is for all discussion relating to the Linux kernel.
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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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. ***
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]#
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.