Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 614088 - app-backup/snapper-0.4.1 : Btrfs.cc:411:53: error: ‘subvolid’ was not declared in this scope
Summary: app-backup/snapper-0.4.1 : Btrfs.cc:411:53: error: ‘subvolid’ was not declare...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Dainius Masiliūnas
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-27 17:16 UTC by Toralf Förster
Modified: 2022-12-18 05:28 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,5.55 KB, text/plain)
2017-03-27 17:16 UTC, Toralf Förster
Details
app-backup:snapper-0.4.1:20170327-075528.log (app-backup:snapper-0.4.1:20170327-075528.log,25.69 KB, text/plain)
2017-03-27 17:16 UTC, Toralf Förster
Details
config.log.tbz2 (config.log.tbz2,8.62 KB, application/x-bzip)
2017-03-27 17:16 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,149.29 KB, text/plain)
2017-03-27 17:16 UTC, Toralf Förster
Details
environment (environment,76.52 KB, text/plain)
2017-03-27 17:16 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,22.29 KB, application/x-bzip)
2017-03-27 17:16 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,22.60 KB, application/x-bzip)
2017-03-27 17:17 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2017-03-27 17:16:39 UTC
libtool: compile:  x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/libxml2 -DCONFDIR=\"/etc/conf.d\" -D_FILE_OFFSET_BITS=64 -Werror=terminate -O2 -pipe -march=native -std=c++11 -Wall -Wextra -Wformat=2 -Wnon-virtual-dtor -Wno-unused-parameter -c Btrfs.cc  -fPIC -DPIC -o .libs/Btrfs.o
Btrfs.cc: In member function ‘virtual void snapper::Btrfs::deleteSnapshot(unsigned int) const’:
Btrfs.cc:411:53: error: ‘subvolid’ was not declared in this scope
   qgroup_destroy(subvolume_dir.fd(), calc_qgroup(0, subvolid));
                                                     ^~~~~~~~
make[2]: *** [Makefile:564: Btrfs.lo] Error 1

  -----------------------------------------------------------------

  This is an unstable amd64 chroot image (named desktop-abi32+64_20170324-193625) at a hardened host acting as a tinderbox.

  -----------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-6.3.0 *

Available Python interpreters, in order of preference:
  [1]   python3.4
  [2]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby21 (with Rubygems) *
java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 3.3.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm
Comment 1 Toralf Förster gentoo-dev 2017-03-27 17:16:42 UTC
Created attachment 468468 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2017-03-27 17:16:45 UTC
Created attachment 468470 [details]
app-backup:snapper-0.4.1:20170327-075528.log
Comment 3 Toralf Förster gentoo-dev 2017-03-27 17:16:48 UTC
Created attachment 468472 [details]
config.log.tbz2
Comment 4 Toralf Förster gentoo-dev 2017-03-27 17:16:51 UTC
Created attachment 468474 [details]
emerge-history.txt
Comment 5 Toralf Förster gentoo-dev 2017-03-27 17:16:54 UTC
Created attachment 468476 [details]
environment
Comment 6 Toralf Förster gentoo-dev 2017-03-27 17:16:57 UTC
Created attachment 468478 [details]
etc.portage.tbz2
Comment 7 Toralf Förster gentoo-dev 2017-03-27 17:17:00 UTC
Created attachment 468480 [details]
temp.tbz2
Comment 8 Peter Levine 2017-03-27 20:17:53 UTC
I believe this is the same as https://bugs.gentoo.org/show_bug.cgi?id=613890. It's not GCC-6 related.

A compile/run test in the configure script fails because of an undefined symbol '__error'.  This causes the macro 'HAVE_LIBBTRFS' to not be defined in config.h.  When 'ENABLE_BTRFS_QUOTA' is defined and 'HAVE_LIBBTRFS' is not, certain necessary headers are not included in files like Btrfs.cc and BtrfsUtils.cc.  Failures ensue.
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-12-18 05:28:56 UTC
commit edcb856801e88470339d0954fd87bade95a1a73b
Author: Michael Vetter <jubalh@iodoru.org>
Date:   Fri Mar 16 10:21:37 2018 +0000

    app-backup/snapper: remove ext4, force btrfs

    Snapper's ext4 code does not work anymore.
    So we need to compile with --disable-ext4 by default.

    Also snapper does not seem to work without btrfs enabled, so we need to
    enable it by default.

    Closes: https://github.com/gentoo/gentoo/pull/7473
    Package-Manager: Portage-2.3.19, Repoman-2.3.6