xfs/linux/Makefile.in
Dave Morrison
dave at bnl.gov
Sun Dec 5 04:48:06 CET 1999
On 5 Dec 1999, Magnus Ahltorp wrote:
> What Chris means by "architectures" is not OS:es, but machine types,
> like i386, sparc, alpha and ppc (which are the ones I know the
> xfs/linux code works on).
Gotcha, Chris straightened me out in private email.
Here's the situation I'm working with: stock RH6.1 + gcc-2.95.2 + kernel
2.2.13. If I try any of the following:
% ../arla-0.29pre1/configure
or
% env CFLAGS="-O2 -I/usr/src/linux/include" ../arla-0.29pre1/configure
or
% ../arla-0.29pre1/configure --with-sys=/usr/src/linux/include
I end up with pretty much the same result when compiling the code in xfs:
gcc -c -DHAVE_CONFIG_H -DMODULE -D__KERNEL__ -DDEBUG -I.
-I../../../arla-0.29p
re1/xfs/linux -Wall -I. -I../../../arla-0.29pre1/xfs/linux/../include
-I../../in
clude -I../../../arla-0.29pre1/xfs/linux/../../include
-I/usr/athena/include -Wa
ll -Wstrict-prototypes -O2 -fomit-frame-pointer
../../../arla-0.29pre1/xfs/linux
/xfs_load.c
In file included from /usr/include/linux/fs.h:262,
from ../../../arla-0.29pre1/xfs/linux/xfs/xfs_locl.h:59,
from ../../../arla-0.29pre1/xfs/linux/xfs_load.c:39:
/usr/include/linux/hpfs_fs_i.h:5: parse error before `ino_t'
... and things stop there. If I reinstall egcs-1.x, then things work
again. I've done a bit of include file spelunking and I'm pretty sure I
can see where the conflict is coming from, but I can work around it if I
have a way to tell xfs, "trust me - _this_ is where you should get system
headers from", but as far as I can tell, you can't. With the patch I sent
along, at least method #2 works.
I think the change needed in xfs/linux/Makefile.in is pretty mild. It
doesn't clobber any flags that are already being passed to gcc, so I don't
see how it'd hurt other architectures. If I'm missing something here, or
if someone has a better sol'n, I'd be happy to hear it.
Cheers!
Dave
David Morrison Brookhaven National Laboratory phone: 631-344-5840
Physics Department, Bldg 510 C fax: 631-344-3253
Upton, NY 11973-5000 email: dave at bnl.gov
More information about the Arla-drinkers
mailing list