From: William S. <wst...@po...> - 2000-08-03 18:44:33
|
Good afternoon, Jeff, On Wed, 2 Aug 2000, Jeff Dike wrote: > > No idea whether that fixes it; both a version patched with the stock > > sourceforge patch and one overlaid with the cvs tree failt to compile > > with the following error. > > Don't put your pool in /usr/src/linux. Put it somewhere else, and those > compile problems will go away. I really hope you'll forgive me; I'm being terribly dense on this. :-( 1) I've opened up the pristine 2.4.0-test5 kernel tree in /usr/uml-source/linux/ 2) I've taken the cvs tree (minus the CVS/ directories) and opened it up on top of the source tree. The compile still comes up with: gcc -D__KERNEL__ -I/usr/uml-source/linux/include -Wall -Wstrict-prototypes -O2 -g -U__i386__ -Ui386 -D__arch_um__ -DSUBARCH="i386" -DNESTING=0 -fno-strict-aliasing -I../include -c -o syscall_kern.o syscall_kern.c syscall_kern.c: In function `um_mount': syscall_kern.c:25: warning: implicit declaration of function `sys_mount' syscall_kern.c: In function `old_select': syscall_kern.c:191: warning: implicit declaration of function `sys_select' gcc -D__KERNEL__ -D__KERNEL__ -Wall -Wstrict-prototypes -O2 -g -U__i386__ -Ui386 -D__arch_um__ -DSUBARCH="i386" -DNESTING=0 -fno-strict-aliasing -I../include -I../include -c -o syscall_user.o syscall_user.c In file included from syscall_user.c:23: /usr/include/asm/unistd.h:14: conflicting types for `open' /usr/include/fcntl.h:68: previous declaration of `open' /usr/include/asm/unistd.h:21: conflicting types for `dup' /usr/include/unistd.h:437: previous declaration of `dup' /usr/include/asm/unistd.h:37: conflicting types for `waitpid' /usr/include/sys/wait.h:132: previous declaration of `waitpid' make[1]: *** [syscall_user.o] Error 1 make[1]: Leaving directory `/usr/uml-source/linux/arch/um/kernel' make: *** [_dir_/usr/uml-source/linux/arch/um/kernel] Error 2 When I strip out all the other filesystem support, I get the exact same error. I'm completely missing some crucial piece of the build process. Any guesses? What, if anything, should be under /usr/src/linux while I'm building uml in a different directory? Where should /usr/include/{asm|linux|scsi} point? Cheers, - Bill --------------------------------------------------------------------------- "Computers let you make more mistakes faster than any other invention in human history, with the possible exception of handguns and tequila." -- Mitch Radcliffe (Courtesy of Hugo van der Kooij <hvd...@ca...>) -------------------------------------------------------------------------- William Stearns (wst...@po...). Mason, Buildkernel, named2hosts, and ipfwadm2ipchains are at: http://www.pobox.com/~wstearns LinuxMonth; articles for Linux Enthusiasts! http://www.linuxmonth.com -------------------------------------------------------------------------- |