[Ocfs2-tools-devel] [PATCH] Include laio while compiling ocfs2console

Goldwyn Rodrigues rgoldwyn at gmail.com
Fri Apr 26 06:21:36 PDT 2013


Fixes the error:
# ocfs2console
Traceback (most recent call last):
  File "/usr/sbin/ocfs2console", line 33, in <module>
    from ocfs2interface.console import main
  File "/usr/lib/python2.6/site-packages/ocfs2interface/console.py",
line 26,
in <module>
    from mount import mount, unmount
  File "/usr/lib/python2.6/site-packages/ocfs2interface/mount.py", line
20, in
<module>
    import ocfs2
ImportError:
/usr/lib/python2.6/site-packages/ocfs2interface/ocfs2module.so:
undefined symbol: io_queue_release

Index: ocfs2-tools/ocfs2console/ocfs2interface/Makefile
===================================================================
--- ocfs2-tools.orig/ocfs2console/ocfs2interface/Makefile 2012-08-24
10:02:19.000000000 -0500
+++ ocfs2-tools/ocfs2console/ocfs2interface/Makefile 2013-04-24
12:06:35.115649501 -0500
@@ -8,7 +8,7 @@ CFLAGS += -fPIC

 PYMOD_CFLAGS = -fno-strict-aliasing $(PYTHON_INCLUDES)

-LIBOCFS2_LIBS = -L$(TOPDIR)/libocfs2 -locfs2
+LIBOCFS2_LIBS = -L$(TOPDIR)/libocfs2 -locfs2 -laio
 LIBOCFS2_DEPS = $(TOPDIR)/libocfs2/libocfs2.a

 LIBO2DLM_LIBS = -L$(TOPDIR)/libo2dlm -lo2dlm $(DL_LIBS)



More information about the Ocfs2-tools-devel mailing list