what i'm i doing wrong

Keith Owens kaos at sgi.com
Thu Jun 24 18:30:27 PDT 2004


On Thu, 24 Jun 2004 13:56:40 -0700 (PDT), 
Alan Jones <jonesmenlopark at yahoo.com> 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.


More information about the kdb mailing list