From: bryan@uhura1.uucp (Bryan Curnutt) Subject: Linux 0.97 kernel compile problems Date: Mon, 3 Aug 1992 06:24:34 GMT
Okay, after Linus' announcement and Ted's subsequent notice of
availability on tsx-11, I grabbed the "complete source-tree"
(linux-0.97.tar.Z) via ftpmail from tsx-11. I've had a few
problems trying to get it to compile, and I'd appreciate any
pointers on what I'm doing wrong. (I'm starting out with an
MCC-Interim 0.96c distribution, with patches 1 and 2, I've
compiled the 0.96c kernel at all patchlevels with no problems.)
First of all,
Linus Benedict Torvalds writes:
>
>There is also a kernel-compilation README (written by Lars Wirzenius),
>as well as a COPYING (which is just a pointer to the GNU copyleft).
Where are these files? They don't seem to be included in my copy
of linux-0.97.tar.Z. If there's a kernel-compilation README, I need
to read it, since I'm having kernel-compilation problems.
>Changes in 0.97:
>
> - include-files have been moved around some more: there are still some
> names that clash with the standard headers, but not many.
There are only three files left under include/sys: kd.h, mman.h, and
vt.h. Everything else that used to be under include/sys is now under
include/linux. This means that all of the source you pull off of the
net that includes files like <sys/types.h> and <sys/dirent.h> will
require additional tweaking before compiling under Linux. What was
wrong with leaving things under include/sys?
(Side note: Not all of the Makefiles use "-I/usr/src/linux/include",
if I recall correctly it was the SCSI code that tried to compile using
my 0.96c header files under /usr/include.)
Also, struct stat is now undefined. Not unnaturally, this means the
kernel (with everything installed) won't compile. The file
include/linux/stat.h defines struct old_stat and struct new_stat,
but doesn't define either of them to be struct stat.
So far the problems I've seen look easy to fix, in and of themselves,
but they worry me because they mean the kernel won't compile as-is,
which means no one has tested it -- at least, the people who have
tested it must have different files that I do.
Should I go ahead and put the "-I" option in the SCSI makefile, and
define my own struct stat, and try to compile from there, hoping that
everything will work out OK in an apparently untested source tree?
Should I wait for some patch to address these problems? Or should
I be whacked upside the head and pointed toward the appropriate README
file?
Thanks for any (polite) suggestions,
-- Any opinions above are mine, and do not necessarily reflect the views of SAI.Bryan Curnutt | "I hope that UNIX is more like my diner bryan%uhura1@uunet.uu.net | than like McDonald's." -- Doug McIlroy