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.
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: libmount/ libmount. h:345:28: error: expected ',' or '...' before 'new' :MntTable: :MntTable( )': enable_ comments' was not declared in this scope enable_ comments( table, 1); :MntTable: :replace_ file()' : replace_ file' was not declared in this scope replace_ file(table, "/etc/fstab") != 0)
/usr/include/
struct libmnt_table *new);
^
Btrfs.cc: In constructor 'snapper:
Btrfs.cc:1386:40: error: 'mnt_table_
mnt_table_
^
Btrfs.cc: In member function 'void snapper:
Btrfs.cc:1402:52: error: 'mnt_table_
if (mnt_table_
^
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