The following patch fixes using libmount headers in C++ sources. Please backport it to our version: https://github.com/karelzak/util-linux/commit/937266598f21747d
should be all set now in the tree; thanks for the report! Commit message: Add patch from upstream for libmount.h in C++ code http://sources.gentoo.org/sys-apps/util-linux/files/util-linux-2.20.1-libmount-c++.patch?rev=1.1 http://sources.gentoo.org/sys-apps/util-linux/util-linux-2.20.1-r2.ebuild?rev=1.1