On Tue, Jul 29, 2003 at 07:08:44PM +0200, Andrea Sansottera wrote:
| From: Andrea Sansottera <andrea.sansottera@...>
| To: user-mode-linux-user@...
| X-Mailer: Sylpheed version 0.9.0 (GTK+ 1.2.10; i686-pc-linux-gnu)
| Subject: [uml-user] compilation error
| Date: Tue, 29 Jul 2003 19:08:44 +0200
| Hi to everybody!
| I just decided to try the last UML kernel patch for linux 2.4.20... it s=
eems to be great!=20
| Anyway, I got a compilation error which looks like this:
| make -C arch/um/sys-i386/util mk_thread
| make: Entering directory `/usr/local/src/linux-2.4.20-uml/arch/um/sys-=
| gcc -D__KERNEL__ -I/usr/local/src/linux-2.4.20-uml/include -Wall -Wstrict=
-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -U__i386__=
-Ui386 -DUM_FASTCALL -g -D__arch_um__ -DSUBARCH=3D\"i386\" -D_LARGEFILE64_=
SOURCE -I/usr/local/src/linux-2.4.20-uml/arch/um/include -Derrno=3Dkernel_e=
rrno -I/usr/local/src/linux-2.4.20-uml/arch/um/kernel/tt/include -I/usr/loc=
al/src/linux-2.4.20-uml/arch/um/kernel/skas/include -c mk_thread_kern.c=20
| In file included from mk_thread_kern.c:3:
| /usr/local/src/linux-2.4.20-uml/include/linux/sched.h:808: conflicting ty=
pes for `kernel_thread'
| /usr/local/src/linux-2.4.20-uml/include/asm/processor-generic.h:109: prev=
ious declaration of `kernel_thread'
| make: *** [mk_thread_kern.o] Error 1
| make: Leaving directory `/usr/local/src/linux-2.4.20-uml/arch/um/sys-i=
| make: *** [arch/um/sys-i386/util/mk_thread] Error 2
| Any idea? I thought that maybe my kernel source is not the vanilla one. A=
nyway it's the Slackware 9.0 default kernel and I always supposed it to be =
the Linus Torvalds original kernel.
If you didn't download the kernel source from kernel.org or one of its
mirrors, try doing that first, then apply the patch and try again. Make
sure you always include ARCH=3Dum for all of your make commands inside the
kernel source tree.
If it still doesn't work, then you have a problem.
Brian T Glenn
delink.net Internet Services