util-linux-2.41 breaks static build of btrfs-progs

Stanislav Brabec <[email protected]>
Newsgroups org.kernel.vger.util-linux
Organization SUSE Linux, s. r. o.
Message-ID <[email protected]>
Static build of btrfs-progs fails with util-linux-2.41 with a simple 
problem:
Symbol parse_range becomes visible in libblkid.a, breaking parse-utils.c 
in btrfs-progs, using the same symbol.

The question is:
Should be this fixed by util-linux by prefixing of ul_ to all symbols 
that are not declared as static?
Or should it be fixed by btrfs-progs?
Or could there be applied any type of symbol hiding in the static library?

/usr/lib64/gcc/x86_64-suse-linux/14/../../../../x86_64-suse-linux/bin/ld: 
/usr/lib64/gcc/x86_64-suse-linux/14/../../../../lib64/libblkid.a(libcommon_la-strutils.o): 
in function `parse_range':
[   29s] 
/home/abuild/rpmbuild/BUILD/util-linux-2.41-build/util-linux-2.41/lib/strutils.c:867: 
multiple definition of `parse_range'; common/parse-utils.static.o 
(symbol from plugin):(.text+0x0): first defined here

-- 
Best Regards / S pozdravem,

Stanislav Brabec
software developer
---------------------------------------------------------------------
SUSE LINUX, s. r. o.                         e-mail: [email protected]
Křižíkova 148/34 (Corso IIa)                    tel: +420 284 084 060
186 00 Praha 8-Karlín                          fax:  +420 284 084 001
Czech Republic                                    http://www.suse.cz/
PGP: 830B 40D5 9E05 35D8 5E27 6FA3 717C 209F A04F CD76
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.