[opensuse-kernel] building debug kernel on sles9u3
On a sles9u3 system with kernel 2.6.5-7.244-smp, 'task_struct' as defined by /usr/src/linux/include/linux sched.h in the 'kernel-source' package has been changed from sles9 base to include one more member 'unsigned long long last_run', among other changes. However, I noticed the header file 'sched.h' under /usr/include/linux has NOT been changed from the sles 9 base version, thus missing the new definition. Now, when I build my debug linux kernel from /usr/src/linux, the build process is looking under /usr/include for the kernel header files, and that causes inconsistency in the final compiled debug kernel and the running kernel, and hence my debugging session to fail. Here are my questions: 1) Why are the kernel header files under /usr/include out of sync, even after I downloaded and applied the latest patch using yast? 2) If I can't get my /usr/include header files up to date, is there a way to change the build process of 'kernel-source' to use its own include files under /usr/src/include instead of those in the standard kernel header files under /usr/include? Thanks, Daniel -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Daniel Li wrote:
On a sles9u3 system with kernel 2.6.5-7.244-smp, 'task_struct' as defined by /usr/src/linux/include/linux sched.h in the 'kernel-source' package has been changed from sles9 base to include one more member 'unsigned long long last_run', among other changes. However, I noticed the header file 'sched.h' under /usr/include/linux has NOT been changed from the sles 9 base version, thus missing the new definition. Now, when I build my debug linux kernel from /usr/src/linux, the build process is looking under /usr/include for the kernel header files, and that causes inconsistency in the final compiled debug kernel and the running kernel, and hence my debugging session to fail. Here are my questions:
1) Why are the kernel header files under /usr/include out of sync, even after I downloaded and applied the latest patch using yast?
2) If I can't get my /usr/include header files up to date, is there a way to change the build process of 'kernel-source' to use its own include files under /usr/src/include instead of those in the standard kernel header files under /usr/include?
opensuse-kernel is for kernel development and support issues with openSUSE, not SLES9. Please contact your support rep for SLES9 support. As an aside, /usr/include is only used for the userspace portions of the kernel build. The kernel itself uses its own set of includes. - -Jeff - -- Jeff Mahoney SUSE Labs -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn0 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFG3u/gLPWxlyuTD7IRAiKKAKCgsUQm3ucOlCUHctj18405vJZCYwCglqlx mjQod6sdxH2HsVIrc6+7nhM= =Pakr -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org
participants (2)
-
Daniel Li
-
Jeff Mahoney