* Header file problems (sys/statfs.h vs. asm/statfs.h)
@ 1997-07-06 10:16 Christian Czezatke
0 siblings, 0 replies; only message in thread
From: Christian Czezatke @ 1997-07-06 10:16 UTC (permalink / 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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1997-07-06 10:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-07-06 10:16 Header file problems (sys/statfs.h vs. asm/statfs.h) Christian Czezatke
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox