Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* e9025461@student.tuwien.ac.at,axp-list@redhat.com
@ 1997-07-06 16:56 David Mosberger-Tang
  0 siblings, 0 replies; only message in thread
From: David Mosberger-Tang @ 1997-07-06 16:56 UTC (permalink / raw)


Christian> All I get is:

 Christian>          In file included from /usr/include/statfsbuf.h:1,
 Christian>                           from /usr/include/sys/statfs.h:26,
 Christian>                           from /usr/include/sys/vfs.h:4,
 Christian>                           from kfsstatus.cpp:34:
 Christian>          /usr/include/asm/statfs.h:20: syntax error before `;'

 Christian> I finally discovered that the problem is "sys/statfs.h". -- This
 Christian> file can only be compiled if you compile with the option
 Christian> "-D_LOOSE_KERNEL_NAMES".

 Christian> This causes the setting of the "__KERNEL_STRICT_NAMES" -- define
 Christian> to be suppressed in "features.h". -- If "__KERNEL_STRICT_NAMES"
 Christian> is set, "asm/statfs.h" fails to declare the type "__kernel_fsid_t"
 Christian> which is causing the error message. 

Hmmh, looks like a typo.  I'm pretty certain the intent was for
<asm/statfs.h> to look like it does after applying this patch.

--- asm/statfs.h~	Thu Jun 12 15:18:28 1997
+++ asm/statfs.h	Sun Jul  6 09:52:17 1997
@@ -1,9 +1,9 @@
 #ifndef _ALPHA_STATFS_H
 #define _ALPHA_STATFS_H
 
-#ifndef __KERNEL_STRICT_NAMES
+#include <linux/posix_types.h>
 
-#include <linux/types.h>
+#ifndef __KERNEL_STRICT_NAMES
 
 typedef __kernel_fsid_t	fsid_t;
 
----

The reason this went undetected for so long is most likely that most
programs that include <vfs.h> include <sys/types.h> beforehand, in
which case the problem vanishes.

     --david

--
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 16:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-07-06 16:56 e9025461@student.tuwien.ac.at,axp-list@redhat.com David Mosberger-Tang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox