public inbox for util-linux@vger.kernel.org
 help / color / mirror / Atom feed
* util-linux-2.41 breaks static build of btrfs-progs
@ 2025-04-20 19:24 Stanislav Brabec
  2025-05-05  9:34 ` Karel Zak
  2025-05-13  9:41 ` Karel Zak
  0 siblings, 2 replies; 5+ messages in thread
From: Stanislav Brabec @ 2025-04-20 19:24 UTC (permalink / raw)
  To: util-linux

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: sbrabec@suse.com
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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-05-29 15:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-20 19:24 util-linux-2.41 breaks static build of btrfs-progs Stanislav Brabec
2025-05-05  9:34 ` Karel Zak
2025-05-05  9:50   ` Karel Zak
2025-05-13  9:41 ` Karel Zak
2025-05-29 15:43   ` Stanislav Brabec

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox