Mailinglist Archive: opensuse-factory (381 mails)

< Previous Next >
[opensuse-factory] Re: Bug? Re: problem with static linking. of util-linux utils meant to be statically linkable...
On 10/6/2018 10:08 PM, Andrei Borzenkov wrote:
07.10.2018 00:44, Linda Walsh пишет:
So I should file this as a bug against factory or tumbleweed? There
was some disagreement about whether or not they should be treated
the same?

For a start you should install glibc-devel-static or at least make it
clear that you are aware of its existence, have installed it and it did
not help.
---

Sorry didn't forward this earlier. Was a bit put off by some bad attitude -- so far as to even call repetition of RedHat maintainer's,
Karel Zak, confirming that his mount.static was indeed "fully static", as
"fake news" (it did give warnings similar to those posted in os-fctry:
( ex: /usr/lib64/gcc/x86_64-suse-linux/8/../../../../x86_64-suse-linux/bin/ld:
> ./.libs/libmount.a(libmount_la-utils.o): in function `mnt_get_gid':
> /dev/shm/util-linux-2.33-rc1/libmount/src/utils.c:614: warning: Using
> 'getgrnam_r' in statically linked applications requires at runtime the
> shared libraries from the glibc version used for linking )
but still linked down to 1 binary w/no runtime libs needed.

Anyway, didn't feel like feeding the troll(s) so was going to wait until I had more information -- but did decide to forward
the below from a few days ago.
I suppose it might be of interest that 'gcc8' *doesn't* give the warnings about the config disallowing a fully static link (nor the other warnings as in the above example), yet still creates a non-static binary.

-l

-------- Original Message --------
Subject: Re: [ANNOUNCE] util-linux v2.33-rc1
Date: Sun, 07 Oct 2018 09:58:36 -0700
From: L A Walsh
To: Bernhard Voelker
CC: Karel Zak util-linux

On 10/7/2018 7:57 AM, Bernhard Voelker wrote:

$ zypper install glibc-devel-static
----
Already had 2.27-4.1 installed, which I just bumped to 2.27-6.1.

Same problem, unfortunately.
*sigh*

make V=1 mount.static
/bin/sh ./libtool --tag=CC --mode=link /usr/bin/gcc -fsigned-char -fno-common -Wall -Werror=sequence-point -Wextra -Wmissing-declarations -Wmissing-parameter-type -Wmissing-prototypes -Wno-missing-field-initializers -Wredundant-decls -Wsign-compare -Wtype-limits -Wuninitialized -Wunused-but-set-parameter -Wunused-but-set-variable -Wunused-parameter -Wunused-result -Wunused-variable -Wnested-externs -Wpointer-arith -Wstrict-prototypes -Wimplicit-function-declaration -Wdiscarded-qualifiers -I./libmount/src -fpic -march=native -pipe -O2 -all-static -fpic -march=native -pipe -O2 -Wl,--stats -o mount.static sys-utils/mount_static-mount.o libcommon.la libmount.la libtool: warning: complete static linking is impossible in this configuration
libtool: link: /usr/bin/gcc -fsigned-char -fno-common -Wall -Werror=sequence-point -Wextra -Wmissing-declarations -Wmissing-parameter-type -Wmissing-prototypes -Wno-missing-field-initializers -Wredundant-decls -Wsign-compare -Wtype-limits -Wuninitialized -Wunused-but-set-parameter -Wunused-but-set-variable -Wunused-parameter -Wunused-result -Wunused-variable -Wnested-externs -Wpointer-arith -Wstrict-prototypes -Wimplicit-function-declaration -Wdiscarded-qualifiers -I./libmount/src -fpic -march=native -pipe -O2 -fpic -march=native -pipe -O2 -Wl,--stats -o mount.static sys-utils/mount_static-mount.o ./.libs/libcommon.a ./.libs/libmount.a /home/tools/util-linux/util-linux-2.33-rc1/.libs/libblkid.a /home/tools/util-linux/util-linux-2.33-rc1/.libs/libuuid.a -lrt
/usr/bin/ld: total time in link: 0.038702
--
To unsubscribe, e-mail: opensuse-factory+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-factory+owner@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages