* [Bug 201287] New: xfsprogs 4.17 and later can't be built as static binaries anymore
@ 2018-09-29 23:03 bugzilla-daemon
2018-09-30 0:06 ` [Bug 201287] " bugzilla-daemon
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: bugzilla-daemon @ 2018-09-29 23:03 UTC (permalink / raw)
To: linux-xfs
https://bugzilla.kernel.org/show_bug.cgi?id=201287
Bug ID: 201287
Summary: xfsprogs 4.17 and later can't be built as static
binaries anymore
Product: File System
Version: 2.5
Kernel Version: n/a
Hardware: All
OS: Linux
Tree: Mainline
Status: NEW
Severity: normal
Priority: P1
Component: XFS
Assignee: filesystem_xfs@kernel-bugs.kernel.org
Reporter: dilfridge@gentoo.org
Regression: No
In Gentoo we offer the possibility to build xfsprogs fully static, e.g. for
initramdisks.
This still worked fine with 4.14.
With 4.17 and 4.18 we however get:
../libfrog/.libs/libfrog.a(convert.o): In function `gid_from_string':
convert.c:(.text+0x984): warning: Using 'getgrnam' in statically linked
applications requires at runtime the shared libraries from the glibc version
used for linking
and final linking fails.
See also https://bugs.gentoo.org/666196
--
You are receiving this mail because:
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug 201287] xfsprogs 4.17 and later can't be built as static binaries anymore
2018-09-29 23:03 [Bug 201287] New: xfsprogs 4.17 and later can't be built as static binaries anymore bugzilla-daemon
@ 2018-09-30 0:06 ` bugzilla-daemon
2018-09-30 0:18 ` bugzilla-daemon
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2018-09-30 0:06 UTC (permalink / raw)
To: linux-xfs
https://bugzilla.kernel.org/show_bug.cgi?id=201287
Eric Sandeen (sandeen@sandeen.net) changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sandeen@sandeen.net
--- Comment #1 from Eric Sandeen (sandeen@sandeen.net) ---
Is there a recipe to demonstrate this failure in the upstream git tree w/o the
gentoo patches or build environment?
--
You are receiving this mail because:
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug 201287] xfsprogs 4.17 and later can't be built as static binaries anymore
2018-09-29 23:03 [Bug 201287] New: xfsprogs 4.17 and later can't be built as static binaries anymore bugzilla-daemon
2018-09-30 0:06 ` [Bug 201287] " bugzilla-daemon
@ 2018-09-30 0:18 ` bugzilla-daemon
2018-09-30 0:26 ` bugzilla-daemon
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2018-09-30 0:18 UTC (permalink / raw)
To: linux-xfs
https://bugzilla.kernel.org/show_bug.cgi?id=201287
Jeff Mahoney (jeffm@suse.com) changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jeffm@suse.com
--- Comment #2 from Jeff Mahoney (jeffm@suse.com) ---
This isn't an xfsprogs problem at all. It's a glibc change:
$ cat tmp.c
#define _GNU_SOURCE
#include <grp.h>
#include <stdio.h>
int
main(void)
{
struct group *grp;
grp = getgrnam("users");
return grp != NULL;
}
$ cc tmp.c -static
/tmp/ccPA29iG.o: In function `main':
tmp.c:(.text+0xe): warning: Using 'getgrnam' in statically linked applications
requires at runtime the shared libraries from the glibc version used for
linking
--
You are receiving this mail because:
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug 201287] xfsprogs 4.17 and later can't be built as static binaries anymore
2018-09-29 23:03 [Bug 201287] New: xfsprogs 4.17 and later can't be built as static binaries anymore bugzilla-daemon
2018-09-30 0:06 ` [Bug 201287] " bugzilla-daemon
2018-09-30 0:18 ` bugzilla-daemon
@ 2018-09-30 0:26 ` bugzilla-daemon
2018-09-30 0:28 ` bugzilla-daemon
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2018-09-30 0:26 UTC (permalink / raw)
To: linux-xfs
https://bugzilla.kernel.org/show_bug.cgi?id=201287
--- Comment #3 from Andreas K. Hüttel (dilfridge@gentoo.org) ---
Ugh. I can't reproduce the final link failure with the unmodified release
tarball. So that part is likely our problem, sorry for the noise.
[We sed LLDFLAGS += -all-static into the Makefiles.]
--
You are receiving this mail because:
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug 201287] xfsprogs 4.17 and later can't be built as static binaries anymore
2018-09-29 23:03 [Bug 201287] New: xfsprogs 4.17 and later can't be built as static binaries anymore bugzilla-daemon
` (2 preceding siblings ...)
2018-09-30 0:26 ` bugzilla-daemon
@ 2018-09-30 0:28 ` bugzilla-daemon
2018-09-30 0:32 ` bugzilla-daemon
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2018-09-30 0:28 UTC (permalink / raw)
To: linux-xfs
https://bugzilla.kernel.org/show_bug.cgi?id=201287
--- Comment #4 from Andreas K. Hüttel (dilfridge@gentoo.org) ---
(In reply to Andreas K. Hüttel from comment #3)
> Ugh. I can't reproduce the final link failure with the unmodified release
> tarball. So that part is likely our problem, sorry for the noise.
>
> [We sed LLDFLAGS += -all-static into the Makefiles.]
(More precisely, simplified from the "ebuild":
sed -i -e "1iLLDFLAGS += -all-static" include/builddefs.in
find -name Makefile -exec sed -i -r -e '/^LLDFLAGS [+]?=
-static(-libtool-libs)?$/d' {} +
)
--
You are receiving this mail because:
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug 201287] xfsprogs 4.17 and later can't be built as static binaries anymore
2018-09-29 23:03 [Bug 201287] New: xfsprogs 4.17 and later can't be built as static binaries anymore bugzilla-daemon
` (3 preceding siblings ...)
2018-09-30 0:28 ` bugzilla-daemon
@ 2018-09-30 0:32 ` bugzilla-daemon
2018-09-30 3:00 ` bugzilla-daemon
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2018-09-30 0:32 UTC (permalink / raw)
To: linux-xfs
https://bugzilla.kernel.org/show_bug.cgi?id=201287
--- Comment #5 from Andreas K. Hüttel (dilfridge@gentoo.org) ---
With above two commands and the configure call below I can reproduce the
problem with the otherwise unmodified 4.18 tarball.
(Feel free to close anyway if you see fit.)
./configure --prefix=/usr --build=x86_64-pc-linux-gnu
--host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info
--datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib
--docdir=/usr/share/doc/xfsprogs-4.18.0
--htmldir=/usr/share/doc/xfsprogs-4.18.0/html --libdir=/usr/lib64 --disable-lto
--enable-blkid --with-crond-dir=/etc/cron.d
--with-systemd-unit-dir=/lib/systemd/system --disable-libicu --enable-gettext
--disable-readline --disable-editline --enable-static
--
You are receiving this mail because:
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug 201287] xfsprogs 4.17 and later can't be built as static binaries anymore
2018-09-29 23:03 [Bug 201287] New: xfsprogs 4.17 and later can't be built as static binaries anymore bugzilla-daemon
` (4 preceding siblings ...)
2018-09-30 0:32 ` bugzilla-daemon
@ 2018-09-30 3:00 ` bugzilla-daemon
2018-09-30 4:59 ` bugzilla-daemon
2018-09-30 5:18 ` bugzilla-daemon
7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2018-09-30 3:00 UTC (permalink / raw)
To: linux-xfs
https://bugzilla.kernel.org/show_bug.cgi?id=201287
Dave Chinner (david@fromorbit.com) changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |david@fromorbit.com
--- Comment #6 from Dave Chinner (david@fromorbit.com) ---
So the distro build env modifies the xfsprogs build flags to add something
upstream doesn't support, right? And that distro hack doesn't work anymore,
yes?
If so, this is a distro package build problem, not an upstream issue. If the
distro package maintainers want the upstream source tree to support static
builds as the distro requires, then please send patches to support this
functionality directly out of the upstream tree to linux-xfs@vger.kernel.org.
-Dave.
--
You are receiving this mail because:
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug 201287] xfsprogs 4.17 and later can't be built as static binaries anymore
2018-09-29 23:03 [Bug 201287] New: xfsprogs 4.17 and later can't be built as static binaries anymore bugzilla-daemon
` (5 preceding siblings ...)
2018-09-30 3:00 ` bugzilla-daemon
@ 2018-09-30 4:59 ` bugzilla-daemon
2018-09-30 5:18 ` bugzilla-daemon
7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2018-09-30 4:59 UTC (permalink / raw)
To: linux-xfs
https://bugzilla.kernel.org/show_bug.cgi?id=201287
Eric Sandeen (sandeen@sandeen.net) changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |INVALID
--
You are receiving this mail because:
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug 201287] xfsprogs 4.17 and later can't be built as static binaries anymore
2018-09-29 23:03 [Bug 201287] New: xfsprogs 4.17 and later can't be built as static binaries anymore bugzilla-daemon
` (6 preceding siblings ...)
2018-09-30 4:59 ` bugzilla-daemon
@ 2018-09-30 5:18 ` bugzilla-daemon
7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2018-09-30 5:18 UTC (permalink / raw)
To: linux-xfs
https://bugzilla.kernel.org/show_bug.cgi?id=201287
--- Comment #7 from Eric Sandeen (sandeen@sandeen.net) ---
(FWIW I think the issue here is that getgrnam() wanders into different libnss*
libraries, which glibc dlopens (?) and so it's pretty much impossible to
statically link.)
--
You are receiving this mail because:
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2018-09-30 11:50 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-09-29 23:03 [Bug 201287] New: xfsprogs 4.17 and later can't be built as static binaries anymore bugzilla-daemon
2018-09-30 0:06 ` [Bug 201287] " bugzilla-daemon
2018-09-30 0:18 ` bugzilla-daemon
2018-09-30 0:26 ` bugzilla-daemon
2018-09-30 0:28 ` bugzilla-daemon
2018-09-30 0:32 ` bugzilla-daemon
2018-09-30 3:00 ` bugzilla-daemon
2018-09-30 4:59 ` bugzilla-daemon
2018-09-30 5:18 ` bugzilla-daemon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).