Skip to content

Commit

Permalink
rhel 5.9 librados fix, removed blkid from compilation, Fixes ceph#13177
Browse files Browse the repository at this point in the history
  • Loading branch information
rohanmars committed Sep 20, 2015
1 parent a511c24 commit 937e4f8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
18 changes: 9 additions & 9 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -277,19 +277,19 @@ ACX_PTHREAD

#Linux only dependencies
if test x"$linux" = x"yes"; then
# libblkid
AC_CHECK_HEADER([blkid/blkid.h], [],
AC_MSG_ERROR([blkid/blkid.h not found (libblkid-dev, libblkid-devel)]))
AC_CHECK_LIB([blkid], [blkid_get_cache], [true],
AC_MSG_FAILURE([libblkid not found]))
AC_CHECK_LIB([blkid], [blkid_find_dev_with_tag], [true],
AC_MSG_FAILURE([libblkid not found]))
AC_CHECK_LIB([blkid], [blkid_dev_devname], [true],
AC_MSG_FAILURE([libblkid not found]))

# rbd {map,unmap,showmapped} dependencies, Linux only
if test x"$with_rbd" = x"yes"; then

# libblkid
AC_CHECK_HEADER([blkid/blkid.h], [],
AC_MSG_ERROR([blkid/blkid.h not found (libblkid-dev, libblkid-devel)]))
AC_CHECK_LIB([blkid], [blkid_get_cache], [true],
AC_MSG_FAILURE([libblkid not found]))
AC_CHECK_LIB([blkid], [blkid_find_dev_with_tag], [true],
AC_MSG_FAILURE([libblkid not found]))
AC_CHECK_LIB([blkid], [blkid_dev_devname], [true],
AC_MSG_FAILURE([libblkid not found]))
AC_CHECK_LIB([blkid], [blkid_devno_to_wholedisk], [true],
AC_MSG_FAILURE([libblkid not found]))

Expand Down
2 changes: 2 additions & 0 deletions src/common/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,10 @@ libcommon_internal_la_SOURCES = \
common/Cycles.cc \
common/ContextCompletion.cc

if WITH_RBD
libcommon_internal_la_SOURCES += \
common/blkdev.cc
endif

if ENABLE_XIO
libcommon_internal_la_SOURCES += \
Expand Down

0 comments on commit 937e4f8

Please sign in to comment.