[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: anyone successful in compiling kernel 2.4.0-testx ?



FYI, here's the linker errors I got:

net/network.o: In function `send_reset':
ipt_REJECT.c(.text+0x52938): undefined reference to
`__xchg_called_with_bad_pointer'
ipt_REJECT.c(.text+0x5293c): undefined reference to
`__xchg_called_with_bad_pointer'

Which I've ironically (or not so) traced back to this in
include/asm-alpha/system.h:

/* This function doesn't exist, so you'll get a linker error
   if something tries to do an invalid xchg().  */
extern void __xchg_called_with_bad_pointer(void);

And here's the lines in net/ipv4/netfilter/ipt_REJECT.c that seem to be
horrid:

        nskb->nh.iph->daddr = xchg(&nskb->nh.iph->saddr,
		nskb->nh.iph->daddr);
        tcph->source = xchg(&tcph->dest, tcph->source);

Ugh...Now to track down that problem :-P  Looks easy to solve.  Wish I
knew more about why this fuction did, but in either case, it looks to be a
simple problem (it's probably the contents of nskb->nh.iph->daddr).

C



Reply to: