LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Christoph Hellwig <hch@ns.caldera.de>
To: <pcg@goof.com ( Marc A. Lehmann )>
Cc: linux-kernel@vger.kernel.org
Subject: Re: zisofs doesn't compile in 2.4.10-ac7
Date: Sun, 7 Oct 2001 16:11:04 +0200	[thread overview]
Message-ID: <200110071411.f97EB4o26001@ns.caldera.de> (raw)
In-Reply-To: <20011007154324.A4991@schmorp.de>

In article <20011007154324.A4991@schmorp.de> you wrote:
> In file included from uncompress.c:21:
> /localvol/usr/src/linux-2.4/include/linux/zlib_fs.h:34:19: zconf.h: No such file or directory
>
> but the only zconf.h file is in /opt/include (and shouldn't be used anyways).
>
> (just another datapoint on why linux should be tested on distributions
> that do NOT put everything into /usr/include ;)

It should be tested with the following patch instead:

--- linux/Makefile~	Wed Oct  3 15:31:07 2001
+++ linux/Makefile	Sun Oct  7 17:04:39 2001
@@ -94,7 +94,8 @@
 # standard CFLAGS
 #
 
-CPPFLAGS := -D__KERNEL__ -I$(HPATH)
+GCCINC := $(shell $(CC) -print-search-dirs | sed -ne 's/install: \(.*\)/\1include/gp')
+CPPFLAGS := -D__KERNEL__ -nostdinc -I$(HPATH) -I$(GCCINC)
 
 CFLAGS := $(CPPFLAGS) -Wall -Wstrict-prototypes -Wno-trigraphs -O2 \
 	  -fomit-frame-pointer -fno-strict-aliasing -fno-common



  reply	other threads:[~2001-10-07 14:11 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-07 13:43 Lehmann 
2001-10-07 14:11 ` Christoph Hellwig [this message]
2001-10-08  5:53   ` Keith Owens
2001-10-08  6:22     ` Keith Owens
2001-10-07 14:39 ` Keith Owens
2001-10-08 15:32   ` David Woodhouse
2001-10-08 21:59     ` H. Peter Anvin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200110071411.f97EB4o26001@ns.caldera.de \
    --to=hch@ns.caldera.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pcg@goof.com \
    --subject='Re: zisofs doesn'\''t compile in 2.4.10-ac7' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).