Comment 2 for bug 1424747

Revision history for this message
John Center (john-center) wrote :

Hi,

I've been trying to build snapper on 14.04 x64, but the old version of util-linux is tripping me up. I get the following error:

In file included from Btrfs.cc:34:0:
/usr/include/libmount/libmount.h:345:28: error: expected ',' or '...' before 'new'
struct libmnt_table *new);
^
Btrfs.cc: In constructor 'snapper::MntTable::MntTable()':
Btrfs.cc:1386:40: error: 'mnt_table_enable_comments' was not declared in this scope
mnt_table_enable_comments(table, 1);
^
Btrfs.cc: In member function 'void snapper::MntTable::replace_file()':
Btrfs.cc:1402:52: error: 'mnt_table_replace_file' was not declared in this scope
if (mnt_table_replace_file(table, "/etc/fstab") != 0)
^

The old version of libmount.h using the C++ keyword "new" as a variable name. This was fixed in the upstream version 2.22.1 of util-linux. It looks like a later version of util-linux is available for Utopic. Please backport this to Trusty.

Thanks.

    -John