Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 675974 - =sys-fs/btrfs-progs-4.20 - ld: .../libbtrfs.so: undefined reference to `btrfs_alloc_path'
Summary: =sys-fs/btrfs-progs-4.20 - ld: .../libbtrfs.so: undefined reference to `btrfs...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mike Gilbert
URL: https://github.com/openSUSE/snapper/i...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-21 14:54 UTC by Vincent de Phily
Modified: 2019-01-23 21:20 UTC (History)
6 users (show)

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


Attachments
build.log (build.log,93.11 KB, text/plain)
2019-01-21 14:54 UTC, Vincent de Phily
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vincent de Phily 2019-01-21 14:54:30 UTC
Created attachment 562374 [details]
build.log

After upgrading to =sys-fs/btrfs-progs-4.20, snapper refuses to start with this error:

```
# snapper list
snapper: symbol lookup error: /usr/lib64/libbtrfs.so.0: undefined symbol: btrfs_alloc_path
```

Trying to build snapper 0.5.6-r1 or 0.8.1 fails (see build.log).

Reverting to =sys-fs/btrfs-progs-4.19.1 works around the issue.

This looks like a clear case of API change that snapper hasn't caught up with yet (I didn't spot a released fix in snapper's git), so we should probably let <=snapper-0.8.1 block on >=sys-fs/btrfs-progs-4.20 until upstream figures things out.
Comment 1 Dainius Masiliūnas 2019-01-22 19:54:03 UTC
Thanks, reported upstream.
Comment 2 Dainius Masiliūnas 2019-01-22 21:38:26 UTC
Looks like it's not our bug, but rather libbtrfs.so can't be found (-lbtrfs check fails), so it's an incorrectly built btrfs-progs instead.
Comment 3 Dainius Masiliūnas 2019-01-23 18:13:40 UTC
Reassigning to btrfs-progs. This issue was fixed in commit: https://github.com/kdave/btrfs-progs/commit/f6f518a08153e22ca7b17058c4c103897c91c575

Hotfix btrfs-progs v4.20.1 released to solve this, please update and drop 4.20.0.
Comment 4 Larry the Git Cow gentoo-dev 2019-01-23 21:12:11 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=79be464e9a101eab017ae086aa8406043b01987b

commit 79be464e9a101eab017ae086aa8406043b01987b
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2019-01-23 21:11:12 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2019-01-23 21:11:12 +0000

    sys-fs/btrfs-progs: bump up to 4.20.1, bug #675974
    
    Reported-by: Vincent de Phily
    Closes: https://bugs.gentoo.org/675974
    Package-Manager: Portage-2.3.57, Repoman-2.3.12
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 sys-fs/btrfs-progs/Manifest                  |   1 +
 sys-fs/btrfs-progs/btrfs-progs-4.20.1.ebuild | 117 +++++++++++++++++++++++++++
 2 files changed, 118 insertions(+)
Comment 5 Sergei Trofimovich (RETIRED) gentoo-dev 2019-01-23 21:20:58 UTC
Thanks for the report!