btrfs-progs/cmds
David Sterba 922eaa7b54 btrfs-progs: build: fix linking with static libmount
The libmount dependency has been added in commit 61ecaff036
("btrfs-progs: build: add libmount dependency"), and static build got
broken. There are functions that do basically the same thing and also
share the name, which in turn fails at link time.

  ld: /../lib64/libmount.a(libcommon_la-canonicalize.o): in function `canonicalize_dm_name':
  util-linux-2.34/lib/canonicalize.c:58: multiple definition of `canonicalize_dm_name';
	  common/path-utils.static.o:btrfs-progs/common/path-utils.c:286: first defined here

In case the collision can be resolved by renaming, it's done
(canonicalize_path and parse_size). There are 2 symbols from selinux
that are substituted by a weak aliases during the static build.

There's one new warning due to use of getgrnam_r in libmount that
depends on dynamic linking and may not work properly with static build.
We're not using the related functions directly or indirectly, so it
should be safe to ignore the warnings.

  ld: ../lib64/libmount.a(la-utils.o): in function `mnt_get_gid':
  util-linux-2.34/libmount/src/utils.c:625: warning: Using 'getgrnam_r' in statically linked applications
  +requires at runtime the shared libraries from the glibc version used for linking

Issue: #333
Signed-off-by: David Sterba <dsterba@suse.com>
2021-01-25 23:31:56 +01:00
..
balance.c btrfs-progs: add enqueue parameter for exclusive ops 2020-12-16 17:08:12 +01:00
commands.h btrfs-progs: help: define helper for command with flags 2019-07-03 20:49:04 +02:00
device.c btrfs-progs: build: fix linking with static libmount 2021-01-25 23:31:56 +01:00
filesystem-du.c btrfs-progs: fix short/long unit size options 2020-12-16 17:08:52 +01:00
filesystem-usage.c btrfs-progs: a bunch of typo fixes 2021-01-13 22:33:10 +01:00
filesystem-usage.h btrfs-progs: move all cmds-fi*.c to cmds/ 2019-07-03 20:49:03 +02:00
filesystem.c btrfs-progs: build: fix linking with static libmount 2021-01-25 23:31:56 +01:00
inspect-dump-super.c btrfs-progs: move ctree.c to kernel-shared/ 2020-08-31 17:01:05 +02:00
inspect-dump-tree.c btrfs-progs: move volumes.c to kernel-shared/ 2020-08-31 17:01:06 +02:00
inspect-tree-stats.c btrfs-progs: move volumes.c to kernel-shared/ 2020-08-31 17:01:06 +02:00
inspect.c btrfs-progs: inspect: use find_mount_fsroot in logical-resolve 2021-01-18 17:49:22 +01:00
property.c btrfs-progs: move ctree.c to kernel-shared/ 2020-08-31 17:01:05 +02:00
qgroup.c btrfs-progs: build: fix linking with static libmount 2021-01-25 23:31:56 +01:00
quota.c btrfs-progs: move ctree.c to kernel-shared/ 2020-08-31 17:01:05 +02:00
receive-dump.c btrfs-progs: move send-utils.c to common/ 2020-08-31 17:01:04 +02:00
receive-dump.h btrfs-progs: move send-dump.c to cmds/receive-dump.c 2020-08-31 17:01:04 +02:00
receive.c btrfs-progs: move ctree.c to kernel-shared/ 2020-08-31 17:01:05 +02:00
replace.c btrfs-progs: build: fix linking with static libmount 2021-01-25 23:31:56 +01:00
rescue-chunk-recover.c btrfs-progs: move volumes.c to kernel-shared/ 2020-08-31 17:01:06 +02:00
rescue-super-recover.c btrfs-progs: move volumes.c to kernel-shared/ 2020-08-31 17:01:06 +02:00
rescue.c btrfs-progs: move volumes.c to kernel-shared/ 2020-08-31 17:01:06 +02:00
rescue.h btrfs-progs: super-recover: add global verbose option 2020-06-12 19:31:37 +02:00
restore.c btrfs-progs: docs: fix typo in btrfs restore message 2020-09-08 21:59:52 +02:00
scrub.c btrfs-progs: fix short/long unit size options 2020-12-16 17:08:52 +01:00
send.c btrfs-progs: send: fix crash on unknown option 2021-01-13 22:33:09 +01:00
subvolume.c btrfs-progs: subvol set-default: change id to 5 if specified as 0 2021-01-18 17:49:23 +01:00