On Thu, 24 Jun 2004 13:56:40 -0700 (PDT), 
Alan Jones <[EMAIL PROTECTED]> wrote:
>Howdy,
>I'm trying to apply kdb-v4.4-2.6.6-common-2 and kdb-v4.4-2.6.6-i386-2 to the generic
>2.6.6 kernel.  The first thing I notice is that 'make oldconfig' does not prompt for
>KDB related CONFIG_* options as it has for prior 2.4 kernel versions I've used before.

You have to turn on CONFIG_DEBUG_KERNEL in 2.6 to get most of the
kernel debug features.

>So, I add the following lines to .config:
>CONFIG_KDB=y
>CONFIG_KDB_MODULES=n
>CONFIG_KDB_OFF=n
>CONFIG_KALLSYMS=y
>CONFIG_FRAME_POINTER=y
>Then I get the following compile error:
>kdb/kdbmain.c:1671: error: parse error before numeric constant
>kdb/kdbmain.c:1674: error: `reason' undeclared here (not in a function)
>kdb/kdbmain.c:1678: error: parse error before '&' token
>kdb/kdbmain.c:1678: warning: type defaults to `int' in declaration of `atomic_inc'
>kdb/kdbmain.c:1678: warning: function declaration isn't a prototype
>kdb/kdbmain.c:1678: error: conflicting types for `atomic_inc'

After manually changing .config, you must run make oldconfig again.
Your config file and the kernel build are out of sync.  If you had run
make oldconfig, all the KDB options would have disappeared again,
because DEBUG_KERNEL was not on.

Edit .config. delete the CONFIG_DEBUG_KERNEL line, make oldconfig.
That will prompt you and give you a clean build.

Ignore these warnings, they are fixed in 2.6.7-bk.

kdb/kdbsupport.c: In function `kdb_task_state_char':
kdb/kdbsupport.c:918: warning: passing arg 1 of `task_curr' discards qualifiers from 
pointer target type
kdb/kdbmain.c: In function `kdb_ps_suppressed':
kdb/kdbmain.c:2972: warning: passing arg 1 of `next_thread' discards qualifiers from 
pointer target type

---------------------------
Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe.

Reply via email to