From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <30726e3e8d4560f8a090d5389983ebd6.axp-list@archive.invalid> X-Archive-Original-Message-ID: <199702050404.VAA15156@ellpspace.math.ualberta.ca> Date: Wed, 5 Feb 1997 00:08:35 -0500 (EST) From: Terran D Lane Subject: Re: Compiling kernel 2.1.25 In-Reply-To: <199702041403.PAA05495@alpha.ciber-rede.pt> On Tue, 4 Feb 1997, Miguel Bettencourt Dias wrote: > > You need the appropriate glibc and include files. What distribution > > of Linux are you using? > > > > --Vik > > > > I'm using RH 303 > > mbd But even aside from this, there seem to be problems with 2.1.25. On a more-or-less stock RH 4.0 system (gcc 2.7.2), I encountered the following errors when linking: kernel/kernel.o: In function `sys_umask': sys.c(.text+0x6afc): undefined reference to `__xchg_called_with_bad_pointer' sys.c(.text+0x6b00): undefined reference to `__xchg_called_with_bad_pointer' net/network.a(ipv4.o): In function `tcp_do_sendmsg': tcp.c(.text+0x10204): undefined reference to `csum_partial_copy_from_user' tcp.c(.text+0x10208): undefined reference to `csum_partial_copy_from_user' The latter error I traced (I think) to a typo in include/asm-alpha/checksum.h. The former, however, seems to trace back to the file include/asm-alpha/system.h, where it is accompanied by the message: /* * This function doesn't exist, so you'll get a linker error * if something tries to do an invalid xchg(). * * This only works if the compiler isn't horribly bad at optimizing. * gcc-2.5.8 reportedly can't handle this, but as that doesn't work * too well on the alpha anyway.. */ Wether this points to a bug in gcc optimization code (suprise) or to "an invalid xchg()", I don't know... Fortunately, however, 2.0.28 compiled flawlessly for me. -- Terran Lane email=terran@ecn.purdue.edu WWW=http://purcell.ecn.purdue.edu/~terran/ "But I don't want to go among mad people," Alice remarked. "Oh, you can't help that," said the Cat: "we're all mad here. I'm mad. You're mad." "How do you know I'm mad?" said Alice. "You must be," said the Cat, "or you wouldn't have come here." -- To unsubscribe: send e-mail to axp-list-request@redhat.com with 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com