Bug #325
closed
Unable to compile SMP kernel without debug
Added by rauf about 18 years ago.
Updated about 18 years ago.
Description
I tried to compile kernel without debug and with SMP on 1.6.1 and got:
linking kernel.nodebug
kern_spinlock.o(.text+0x28b): In function `exponential_backoff':
: undefined reference to `db_print_backtrace'
Stop in /usr/obj/usr/src/sys/TEST.
Stop in /usr/src.
Stop in /usr/src.
Kernel config here: www.kuliyev.com/TEST
Rauf
Files
Ive had the same problem on my server. I didnt report it, because in the
end I came to believe its good to have debugger in, in case something
funny happens.
Petr
Rauf Kuliyev wrote:
I tried to compile kernel without debug and with SMP on 1.6.1 and got:
linking kernel.nodebug
kern_spinlock.o(.text+0x28b): In function `exponential_backoff':
: undefined reference to `db_print_backtrace'
Stop in /usr/obj/usr/src/sys/TEST.
Stop in /usr/src.
Stop in /usr/src.
Kernel config here: www.kuliyev.com/TEST
Rauf
I found the possible problem (looks like typo, but I can be wrong),
and patch is attached.
On 9/22/06, Petr Janda <elekktretterr@exemail.com.au> wrote:
Ive had the same problem on my server. I didnt report it, because in the
end I came to believe its good to have debugger in, in case something
funny happens.
Petr
Rauf Kuliyev wrote:
I tried to compile kernel without debug and with SMP on 1.6.1 and got:
linking kernel.nodebug
kern_spinlock.o(.text+0x28b): In function `exponential_backoff':
: undefined reference to `db_print_backtrace'
Stop in /usr/obj/usr/src/sys/TEST.
Stop in /usr/src.
Stop in /usr/src.
Kernel config here: www.kuliyev.com/TEST
Rauf
:I found the possible problem (looks like typo, but I can be wrong),
:and patch is attached.
That will almost do it, but you just put the ++bo->nsec inside the
conditional and it has to be outside the conditional.
I'll commit a fix in a moment.
-Matt
Also available in: Atom
PDF