broken fsx compilation

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]



We use xfstests in the Ceph test lab and are finding that fsx is
failing to build correctly on those boxes (Ubuntu 14.04.3, nothing
especially odd about them that I'm aware of):

fsx.c: In function 'logdump':
fsx.c:298:3: error: unknown type name 'bool'
   bool overlap;
   ^

It works fine on my (old) Fedora dev box (and presumably on the boxes
of everybody who put it in the tree) so I assume there's something
going on with the build chain and environment, but it's not obvious
what that would be to me. And it's pretty simple to just add stdbool.h
to the header list like you're supposed to for C99 (I can't find any
updates to that for C11, but I don't know what your standards are or
if I'm missing something).
-Greg


==========


commit adb8c2cdfa6e30a411529d30c9df96ad47ec918f
Author: Greg Farnum <gfarnum@xxxxxxxxxx>
Date:   Wed Jan 13 12:51:47 2016 -0800

    fsx: include stdbool.h

    Signed-off-by: Greg Farnum <gfarnum@xxxxxxxxxx>

diff --git a/ltp/fsx.c b/ltp/fsx.c
index 28f109c..9005ef9 100644
--- a/ltp/fsx.c
+++ b/ltp/fsx.c
@@ -30,6 +30,7 @@
 #include <string.h>
 #include <stdarg.h>
 #include <errno.h>
+#include <stdbool.h>
 #ifdef AIO
 #include <libaio.h>
 #endif
--
To unsubscribe from this list: send the line "unsubscribe fstests" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Filesystems Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux