Re: 2.2.19pre10 doesn't compile on alphas (sunrpc)

Trond Myklebust (trond.myklebust@fys.uio.no)
13 Feb 2001 10:56:28 +0100


>>>>> " " == Alan Cox <alan@lxorguk.ukuu.org.uk> writes:

>> net/network.a(sunrpc.o): In function `xprt_ping_reserve':
>> sunrpc.o(.text+0x4b94): undefined reference to `BUG'
>> sunrpc.o(.text+0x4b98): undefined reference to `BUG'
>>
>> Looks like a problem in Trond's patches, also it doesn't happen
>> with pre9. It links in intel machines. I didn't reboot to test
>> yet...

> The ideal solution would be for someone to provide BUG() on the
> Alpha platform as in 2.4. That would sort things cleanly

Actually, since BUG() only seems to be defined on i386 platforms for
2.2.x, perhaps the easiest thing to do (unless somebody wants to
volunteer to backport all the `safe' definitions from 2.4.x) would be
to add the generic `*(int *)0 = 0' definition for local use by ping()
itself.

Cheers,
Trond

--- net/sunrpc/ping.c.orig Tue Feb 13 10:47:20 2001
+++ net/sunrpc/ping.c Tue Feb 13 10:50:03 2001
@@ -25,6 +25,10 @@
# define RPCDBG_FACILITY RPCDBG_XPRT
#endif

+#ifndef BUG
+#define BUG() do { printk("kernel BUG at %s:%d!\n", __FILE__, __LINE__); *(int *)0=0; } while (0)
+#endif
+
static void ping_call_reserve(struct rpc_task *);
static void ping_call_allocate(struct rpc_task *);
static void ping_call_encode(struct rpc_task *);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/