linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* vger 2.2.10 compile failures
@ 1999-07-23 12:46 Benjamin Herrenschmidt
  1999-07-24  1:14 ` Paul Mackerras
  0 siblings, 1 reply; 3+ messages in thread
From: Benjamin Herrenschmidt @ 1999-07-23 12:46 UTC (permalink / raw)
  To: linuxppc-dev


I'm getting link errors when compiling today's vger 2.2.10 with xmon
support enabled:

arch/ppc/xmon/x.o: In function `backtrace':
arch/ppc/xmon/x.o(.text+0x129e): undefined reference to `ret_from_int'
arch/ppc/xmon/x.o(.text+0x12a2): undefined reference to `ret_from_syscall_1'
arch/ppc/xmon/x.o(.text+0x12a6): undefined reference to `ret_from_int'
arch/ppc/xmon/x.o(.text+0x12aa): undefined reference to `ret_from_syscall_1'
arch/ppc/xmon/x.o(.text+0x12ae): undefined reference to `ret_from_syscall_2'
arch/ppc/xmon/x.o(.text+0x12b6): undefined reference to `ret_from_syscall_2'

Apparently, the name of those symbols changed, I'll try to fix xmon here,
but maybe someone already did it (Paul ?)

-- 
           Perso. e-mail: <mailto:bh40@calva.net>
           Work   e-mail: <mailto:benh@mipsys.com>
BenH.      Web   : <http://calvaweb.calvacom.fr/bh40/>




[[ This message was sent via the linuxppc-dev mailing list.  Replies are ]]
[[ not  forced  back  to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting.   ]]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* vger 2.2.10 compile failures
       [not found] <19990723144647.023789>
@ 1999-07-23 12:53 ` Benjamin Herrenschmidt
  0 siblings, 0 replies; 3+ messages in thread
From: Benjamin Herrenschmidt @ 1999-07-23 12:53 UTC (permalink / raw)
  To: linuxppc-dev


On Fri, Jul 23, 1999, Benjamin Herrenschmidt <bh40@calva.net> wrote:

>I'm getting link errors when compiling today's vger 2.2.10 with xmon support
>enabled:
>
>arch/ppc/xmon/x.o: In function `backtrace':
>arch/ppc/xmon/x.o(.text+0x129e): undefined reference to `ret_from_int'
>arch/ppc/xmon/x.o(.text+0x12a2): undefined reference to `ret_from_syscall_1'
>arch/ppc/xmon/x.o(.text+0x12a6): undefined reference to `ret_from_int'
>arch/ppc/xmon/x.o(.text+0x12aa): undefined reference to `ret_from_syscall_1'
>arch/ppc/xmon/x.o(.text+0x12ae): undefined reference to `ret_from_syscall_2'
>arch/ppc/xmon/x.o(.text+0x12b6): undefined reference to `ret_from_syscall_2'
>
>Apparently, the name of those symbols changed, I'll try to fix xmon here, but
>maybe someone already did it (Paul ?)

BTW. Here's the patch (it compiles, I beleive it works too but I didn't
test xmon yet):

diff -uNr linux.orig/arch/ppc/xmon/xmon.c linux/arch/ppc/xmon/xmon.c
--- linux.orig/arch/ppc/xmon/xmon.c     Thu Jul 22 22:12:16 1999
+++ linux/arch/ppc/xmon/xmon.c  Fri Jul 23 14:49:39 1999
@@ -472,7 +472,7 @@
        unsigned sp;
        unsigned stack[2];
        struct pt_regs regs;
-       extern char ret_from_int, ret_from_syscall_1, ret_from_syscall_2;
+       extern char int_return, syscall_ret_1, syscall_ret_2;
        extern char lost_irq_ret, do_bottom_half_ret, do_signal_ret;
 
        if (excp != NULL)
@@ -485,9 +485,9 @@
                if (mread(sp, stack, sizeof(stack)) != sizeof(stack))
                        break;
                printf("%x ", stack[1]);
-               if (stack[1] == (unsigned) &ret_from_int
-                   || stack[1] == (unsigned) &ret_from_syscall_1
-                   || stack[1] == (unsigned) &ret_from_syscall_2
+               if (stack[1] == (unsigned) &int_return
+                   || stack[1] == (unsigned) &syscall_ret_1
+                   || stack[1] == (unsigned) &syscall_ret_2
                    || stack[1] == (unsigned) &lost_irq_ret
                    || stack[1] == (unsigned) &do_bottom_half_ret
                    || stack[1] == (unsigned) &do_signal_ret) {


-- 
           Perso. e-mail: <mailto:bh40@calva.net>
           Work   e-mail: <mailto:benh@mipsys.com>
BenH.      Web   : <http://calvaweb.calvacom.fr/bh40/>




[[ This message was sent via the linuxppc-dev mailing list.  Replies are ]]
[[ not  forced  back  to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting.   ]]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: vger 2.2.10 compile failures
  1999-07-23 12:46 Benjamin Herrenschmidt
@ 1999-07-24  1:14 ` Paul Mackerras
  0 siblings, 0 replies; 3+ messages in thread
From: Paul Mackerras @ 1999-07-24  1:14 UTC (permalink / raw)
  To: bh40; +Cc: linuxppc-dev


Benjamin Herrenschmidt <bh40@calva.net> wrote:

> I'm getting link errors when compiling today's vger 2.2.10 with xmon
> support enabled:
> 
> arch/ppc/xmon/x.o: In function `backtrace':
> arch/ppc/xmon/x.o(.text+0x129e): undefined reference to `ret_from_int'

I got tricked by cvs about this, maybe you have too.  I had a stable
(linux_2_2) cvs tree, and when I did `cvs update -dP', I got an xmon
directory, but it was the xmon from the head of the tree, i.e. the
devel branch.  I should have been doing `cvs update -dP -rlinux_2_2',
of course.  If you do that it should give you the xmon from the stable
branch (which didn't actually exist until yesterday, but now has the
xmon.c with the correct contents).

Paul.

[[ This message was sent via the linuxppc-dev mailing list.  Replies are ]]
[[ not  forced  back  to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting.   ]]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1999-07-24  1:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <19990723144647.023789>
1999-07-23 12:53 ` vger 2.2.10 compile failures Benjamin Herrenschmidt
1999-07-23 12:46 Benjamin Herrenschmidt
1999-07-24  1:14 ` Paul Mackerras

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).