kdb
[Top] [All Lists]

Re: what i'm i doing wrong

To: Alan Jones <jonesmenlopark@xxxxxxxxx>
Subject: Re: what i'm i doing wrong
From: Keith Owens <kaos@xxxxxxx>
Date: Fri, 25 Jun 2004 11:30:27 +1000
Cc: kdb@xxxxxxxxxxx
In-reply-to: Your message of "Thu, 24 Jun 2004 13:56:40 MST." <20040624205640.46211.qmail@web42007.mail.yahoo.com>
Sender: kdb-bounce@xxxxxxxxxxx
On Thu, 24 Jun 2004 13:56:40 -0700 (PDT), 
Alan Jones <jonesmenlopark@xxxxxxxxx> 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.
<Prev in Thread] Current Thread [Next in Thread>