LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* zisofs doesn't compile in 2.4.10-ac7
@ 2001-10-07 13:43 Lehmann 
  2001-10-07 14:11 ` Christoph Hellwig
  2001-10-07 14:39 ` Keith Owens
  0 siblings, 2 replies; 7+ messages in thread
From: Lehmann  @ 2001-10-07 13:43 UTC (permalink / raw)
  To: linux-kernel

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 ;)

-- 
      -----==-                                             |
      ----==-- _                                           |
      ---==---(_)__  __ ____  __       Marc Lehmann      +--
      --==---/ / _ \/ // /\ \/ /       pcg@goof.com      |e|
      -=====/_/_//_/\_,_/ /_/\_\       XX11-RIPE         --+
    The choice of a GNU generation                       |
                                                         |

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: zisofs doesn't compile in 2.4.10-ac7
  2001-10-07 13:43 zisofs doesn't compile in 2.4.10-ac7 Lehmann 
@ 2001-10-07 14:11 ` Christoph Hellwig
  2001-10-08  5:53   ` Keith Owens
  2001-10-07 14:39 ` Keith Owens
  1 sibling, 1 reply; 7+ messages in thread
From: Christoph Hellwig @ 2001-10-07 14:11 UTC (permalink / raw)
  To:  Marc A. Lehmann ; +Cc: linux-kernel

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



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: zisofs doesn't compile in 2.4.10-ac7 
  2001-10-07 13:43 zisofs doesn't compile in 2.4.10-ac7 Lehmann 
  2001-10-07 14:11 ` Christoph Hellwig
@ 2001-10-07 14:39 ` Keith Owens
  2001-10-08 15:32   ` David Woodhouse
  1 sibling, 1 reply; 7+ messages in thread
From: Keith Owens @ 2001-10-07 14:39 UTC (permalink / raw)
  To:  Marc A. Lehmann ; +Cc: linux-kernel

On Sun, 7 Oct 2001 15:43:24 +0200, 
<pcg( Marc)@goof(A.).(Lehmann )com> 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

Against 2.4.10-ac7.

Index: 10.37/fs/cramfs/Makefile
--- 10.37/fs/cramfs/Makefile Sat, 22 Sep 2001 14:41:20 +1000 kaos (linux-2.4/h/b/0_Makefile 1.2 644)
+++ 10.37(w)/fs/cramfs/Makefile Mon, 08 Oct 2001 00:10:13 +1000 kaos (linux-2.4/h/b/0_Makefile 1.2 644)
@@ -8,4 +8,6 @@ obj-y  := inode.o uncompress.o
 
 obj-m := $(O_TARGET)
 
+CFLAGS_uncompress.o := -I $(TOPDIR)/fs/inflate_fs
+
 include $(TOPDIR)/Rules.make
Index: 10.37/fs/isofs/Makefile
--- 10.37/fs/isofs/Makefile Sat, 22 Sep 2001 14:41:20 +1000 kaos (linux-2.4/o/b/29_Makefile 1.2 644)
+++ 10.37(w)/fs/isofs/Makefile Mon, 08 Oct 2001 00:14:56 +1000 kaos (linux-2.4/o/b/29_Makefile 1.2 644)
@@ -15,4 +15,6 @@ obj-$(CONFIG_ZISOFS) += compress.o
 
 obj-m  := $(O_TARGET)
 
+CFLAGS_compress.o := -I $(TOPDIR)/fs/inflate_fs
+
 include $(TOPDIR)/Rules.make
Index: 10.37/fs/inflate_fs/Makefile
--- 10.37/fs/inflate_fs/Makefile Sat, 22 Sep 2001 14:41:20 +1000 kaos (linux-2.4/p/f/9_Makefile 1.1 644)
+++ 10.37(w)/fs/inflate_fs/Makefile Mon, 08 Oct 2001 00:23:44 +1000 kaos (linux-2.4/p/f/9_Makefile 1.1 644)
@@ -28,4 +28,6 @@ obj-y := adler32.o infblock.o infcodes.o
 	 inftrees.o infutil.o
 obj-m := $(O_TARGET)
 
+EXTRA_CFLAGS += -I $(TOPDIR)/fs/inflate_fs
+
 include $(TOPDIR)/Rules.make


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: zisofs doesn't compile in 2.4.10-ac7 
  2001-10-07 14:11 ` Christoph Hellwig
@ 2001-10-08  5:53   ` Keith Owens
  2001-10-08  6:22     ` Keith Owens
  0 siblings, 1 reply; 7+ messages in thread
From: Keith Owens @ 2001-10-08  5:53 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: linux-kernel

On Sun, 7 Oct 2001 16:11:04 +0200, 
Christoph Hellwig <hch@ns.caldera.de> wrote:
>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
>

Good idea.  kbuild 2.5 starting with 2.4.11-pre5 forces the kernel to
only use its own includes plus gcc install includes.  No more scanning
/usr/include for kernel compiles.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: zisofs doesn't compile in 2.4.10-ac7 
  2001-10-08  5:53   ` Keith Owens
@ 2001-10-08  6:22     ` Keith Owens
  0 siblings, 0 replies; 7+ messages in thread
From: Keith Owens @ 2001-10-08  6:22 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: linux-kernel

On Mon, 08 Oct 2001 15:53:20 +1000, 
Keith Owens <kaos@ocs.com.au> wrote:
>Good idea.  kbuild 2.5 starting with 2.4.11-pre5 forces the kernel to
>only use its own includes plus gcc install includes.  No more scanning
>/usr/include for kernel compiles.

Guess what the first bit of code was that broke?  Yep, aic7xxx strikes
again, it includes endian.h :(.  I am not going to fix it, the aic7xxx
maintainer is not interested in conforming to kernel build procedures,
aic7xxx is a shambles.

The code might be the best thing since SCSI-1 but the build of aic7xxx
causes more problems for kbuild than the rest of the system put
together.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: zisofs doesn't compile in 2.4.10-ac7 
  2001-10-07 14:39 ` Keith Owens
@ 2001-10-08 15:32   ` David Woodhouse
  2001-10-08 21:59     ` H. Peter Anvin
  0 siblings, 1 reply; 7+ messages in thread
From: David Woodhouse @ 2001-10-08 15:32 UTC (permalink / raw)
  To: Keith Owens; +Cc:  Marc A. Lehmann , linux-kernel, hpa


kaos@ocs.com.au said:
>  Against 2.4.10-ac7.

> +CFLAGS_uncompress.o := -I $(TOPDIR)/fs/inflate_fs

> +CFLAGS_compress.o := -I $(TOPDIR)/fs/inflate_fs

> +EXTRA_CFLAGS += -I $(TOPDIR)/fs/inflate_fs

Why not just move the offending file into $(TOPDIR)/include/linux instead?

While we're at it, why not move $(TOPDIR)/fs/inflate_fs/ to $(TOPDIR)/lib/zlib
too? It's not really a filesystem-specific piece of library code, is it?

--
dwmw2



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: zisofs doesn't compile in 2.4.10-ac7
  2001-10-08 15:32   ` David Woodhouse
@ 2001-10-08 21:59     ` H. Peter Anvin
  0 siblings, 0 replies; 7+ messages in thread
From: H. Peter Anvin @ 2001-10-08 21:59 UTC (permalink / raw)
  To: linux-kernel

Followup to:  <18514.1002555168@redhat.com>
By author:    David Woodhouse <dwmw2@infradead.org>
In newsgroup: linux.dev.kernel
> 
> While we're at it, why not move $(TOPDIR)/fs/inflate_fs/ to $(TOPDIR)/lib/zlib
> too? It's not really a filesystem-specific piece of library code, is it?
> 

It's at the best questionable if it is actually usable for anything
else.  Unfortunately the memory management issues for various clients
of zlib are rather painful.

	-hpa
-- 
<hpa@transmeta.com> at work, <hpa@zytor.com> in private!
"Unix gives you enough rope to shoot yourself in the foot."
http://www.zytor.com/~hpa/puzzle.txt	<amsp@zytor.com>

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2001-10-08 21:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-07 13:43 zisofs doesn't compile in 2.4.10-ac7 Lehmann 
2001-10-07 14:11 ` Christoph Hellwig
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

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).