Solution: 2.1.14 Compilation problems

Bernhard Rosenkraenzer (
Sun, 8 Dec 1996 21:27:14 +0100 (MET)

This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to for more info.

Content-ID: <>

I've sent a message about problems getting 2.1.14 compiled with libc
5.4.17 to this list earlier today - by now, I've found why it didn't work,
and I've written a patch (or maybe just a workaround). Maybe it'll help
some of you. (At least, it generated a fine 2.1.14 and 2.1.14-megapatched
for me.)

The stat.h file didn't include the struct stat definition as provided in
<asm/stat.h>. <linux/stat.h> includes <asm/stat.h> only if __KERNEL__
is defined, which doesn't seem to be the case.
The following patch fixes it (it might break something else, though - I
don't claim I'm an expert on kernel or libc internals):

--- include/sys/stat.h.orig Sun Dec 1 18:02:59 1996
+++ include/sys/stat.h Sun Dec 8 21:04:31 1996
@@ -72,6 +72,8 @@
#endif /*! __SVR4_I386_ABI_L1__*/

+ #include <asm/stat.h>

#define LINUX_MKNOD_VERSION 1 /* SVr4 */