From: Christian Czezatke <e9025461@student.tuwien.ac.at>
Subject: Header file problems (sys/statfs.h vs. asm/statfs.h)
Date: Sun, 6 Jul 1997 12:16:48 +0200 (CEST) [thread overview]
Message-ID: <Pine.LNX.3.95.970706113649.6485A-100000@udb.ceci.at> (raw)
Hi!
Once more I'm running in trouble with Linux/Alpha headerfiles.
System is Redhat Linux 4.2. I've replaced the Redhat kernel sources with a
new 2.0.30 kernel and have applied the axp-diffs for 2.0.30.
Try to compile the following C/C++ -- program:
-------- cut here for test.cpp --------
#include <sys/vfs.h>
-------- cut here for test.cpp --------
All I get is:
In file included from /usr/include/statfsbuf.h:1,
from /usr/include/sys/statfs.h:26,
from /usr/include/sys/vfs.h:4,
from kfsstatus.cpp:34:
/usr/include/asm/statfs.h:20: syntax error before `;'
I finally discovered that the problem is "sys/statfs.h". -- This file can
only be compiled if you compile with the option "-D_LOOSE_KERNEL_NAMES".
This causes the setting of the "__KERNEL_STRICT_NAMES" -- define to be
suppressed in "features.h". -- If "__KERNEL_STRICT_NAMES" is set,
"asm/statfs.h" fails to declare the type "__kernel_fsid_t" which is
causing the error message.
Is it correct behaviour that "sys/statfs.h" only compiles when you use the
"-D_LOOSE_KERNEL_NAMES" compile--directive?
If not, what would be a correct fix for the problem?
1) Remove the "#ifndef __KERNEL_STRICT_NAMES" -- directive from
"sys/statfs.h"?
2) Include "statfsbuf.h" _after_ "features.h" in "sys/statfs.h"?
(not very good indead...)
3) "#undef __KERNEL_STRICT_NAMES" in "sys/statfs.h"?
4) ???
I would be very happy if someone could enlighten me on that...
thanks
Christian
--------------------------------------------------------------------
| Christian Czezatke, Student of Computer Science at the Vienna |
| University Of Technology. |
|------------------------------------------------------------------|
| email: e9025461@student.tuwien.ac.at |
--------------------------------------------------------------------
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
reply other threads:[~1997-07-06 10:16 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox