[Ocfs-tools-devel] Error building ocfs-tools

Mark Fasheh mark.fasheh at oracle.com
Mon Aug 2 14:53:13 PDT 2004


On Mon, Aug 02, 2004 at 02:08:22PM -0700, Villalovos, John L wrote:
> Is anyone else having problems building ocfs-tools?
> 
> I am building on Fedora Core 2 with all the patches installed.
Hmm, it seems that linux/bitops.h doesn't exist on fc2 -- the stuff seems to
have moved to asm/bitops.h. The attached patch got things to compile on my
fc2 box (usually I compile on a RHEL3 machine):

I'm not sure what the proper fix ought to be...
	--Mark

--
Mark Fasheh
Software Developer, Oracle Corp
mark.fasheh at oracle.com

Index: ocfs2/libocfs2/bitmap.c
===================================================================
--- ocfs2/libocfs2/bitmap.c	(revision 189)
+++ ocfs2/libocfs2/bitmap.c	(working copy)
@@ -30,7 +30,7 @@
 #include <string.h>
 #include <limits.h>
 
-#include <linux/bitops.h>
+#include <asm/bitops.h>
 
 #include "ocfs2.h"
 
Index: ocfs2/mkfs.ocfs2/mkfs.c
===================================================================
--- ocfs2/mkfs.ocfs2/mkfs.c	(revision 189)
+++ ocfs2/mkfs.ocfs2/mkfs.c	(working copy)
@@ -38,7 +38,7 @@
 #include <malloc.h>
 #include <time.h>
 
-#include <linux/bitops.h>
+#include <asm/bitops.h>
 
 #include "ocfs2.h"
 


More information about the Ocfs-tools-devel mailing list