On Tue, 4 Jun 2002 11:16:46 +0200, 
Alex Riesen <[EMAIL PROTECTED]> wrote:
>Got this trying to compile 2.5.20 with Debian's gcc 2.95.4.
>Why it took the system-wide zlib.h?
>In file included from 
>/export/home/riesen-pc0/riesen/compile/v2.5/fs/isofs/compress.c:38:
>include/linux/zlib.h:34: zconf.h: No such file or directory

In order to do separate source and object correctly, kbuild 2.5
enforces the rule that #include "" comes from the local directory,
#include <> comes from the include path.  include/linux/zlib.h
incorrectly does #include "zconf.h" instead of #include <linux/zconf.h>,
breaking the rules.

This was not detected by common-2.5.20-1 because the nostdinc check was
incomplete, common-2.5.20-2 does nostdinc correctly.  I avoid changing
the source code for kbuild 2.5, instead I workaround these incorrect
includes by adding extra_cflags() with FIXME comments to correct the
code later.  I will do a common-2.5.20-3 to workaround zlib.h, in the
meantime try this quick and dirty fix

--- 2.5.20-pristine/include/linux/zlib.h        Mon Apr 15 05:18:43 2002
+++ 2.5.20-kbuild-2.5/include/linux/zlib.h      Tue Jun  4 11:03:05 2002
@@ -31,7 +31,7 @@
 #ifndef _ZLIB_H
 #define _ZLIB_H
 
-#include "zconf.h"
+#include <linux/zconf.h>
 
 #ifdef __cplusplus
 extern "C" {



_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

_______________________________________________
kbuild-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/kbuild-devel

Reply via email to