xfs
[Top] [All Lists]

Re: include/acl.h in 2.4.13-pre2

To: "Bernhard R. Erdmann" <be@xxxxxxxxxxx>
Subject: Re: include/acl.h in 2.4.13-pre2
From: Keith Owens <kaos@xxxxxxxxxxxxxxxxx>
Date: Sun, 14 Oct 2001 22:23:40 +1000
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: Your message of "Sun, 14 Oct 2001 14:09:52 +0200." <3BC98090.BA78FC5A@berdmann.de>
Sender: owner-linux-xfs@xxxxxxxxxxx
On Sun, 14 Oct 2001 14:09:52 +0200, 
"Bernhard R. Erdmann" <be@xxxxxxxxxxx> wrote:
>Steve Lord wrote:
>> 
>> Try running make dep, it all builds for me.
>
>I did (make mrproper, cp some/where/.config ., make oldconfig, make dep
>clean bzImage modules modules_install), but it fails to compile on RH
>6.1/6.2.
>On RH 7.1 all is ok as you reported.

Arrgh!  RH 7.1 is picking up /usr/include/linux/acl.h which is a real
file.  On RH 6 usr/include/linux is normally a symlink to
/usr/src/linux so you get different files depending on which kernel you
have installed.  Linus has fought against this for ages because it
generated wierd kernels, most distributions now ship a copy of the
files in /usr/include/linux instead of symlinking to some random
kernel.

I guess that Nathan's build was on a system which had a real file for
/usr/include/linux/acl.h so he did not get a compile error.  Kernel 2.5
will refuse to include files from outside the kernel to prevent this
feature.  In the meantime, add these liness

CFLAGS          += -nostdinc $(shell $(CC) -print-search-dirs | \
        sed -ne 's/install: \(.*\)/-I \1include/gp')

to the top of these files.

  fs/xfs/dmapi/Makefile
  fs/xfs/linux/Makefile
  fs/xfs/Makefile
  fs/xfs_support/Makefile
  fs/pagebuf/Makefile

That will prevent XFS from reading include files from outside the
kernel.  When you find references to acl.h, remove the include line and
see if it still builds.


<Prev in Thread] Current Thread [Next in Thread>