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