static linking working w/gnu? (was Re: [ANNOUNCE] util-linux v2.33-rc1)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/2/2018 3:14 AM, Karel Zak wrote:
On Sun, Sep 30, 2018 at 04:33:14PM -0700, L A Walsh wrote:
On 9/25/2018 3:47 AM, Karel Zak wrote:
The commands mount and umount
---
  I note that umount has a static option umount.static, but I don't see
the same for mount (i.e. mount.static).

 $ ./configure --enable-static-programs=mount,umount
 $ make mount.static umount.static

works for me:

On 10/7/2018 8:13 AM, Thorsten Kukuk wrote:

On Sun, Oct 07, Stefan Seyfried wrote:

> /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
....
> /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_username':
> /dev/shm/util-linux-2.33-rc1/libmount/src/utils.c:566: warning: Using
> 'getpwuid_r' in statically linked applications requires at runtime the
> shared libraries from the glibc version used for linking
> The bug is thus "RESOLVED WORKSFORME"

No, the bug is, that the code is not designed for static linking,
as all the warnings show. And the upstream author should get the
same warnings as you abvoe.

-----
On Sun, Oct 07, Stefan Seyfried wrote:
> Am 07.10.18 um 00:17 schrieb L A Walsh:
> > Because these utils 'should' be statically linkable and *are* on
> > redhat> (which I thought opensuse was based on).

> Where do you get your alternative facts from?
-------------


So Karel,
	Did you get warnings similar to the above?  The claim
is that you should be getting similar errors, but I got the impression
that you did not.

One person claimed it to be a bug in the Gnu tools & lib, while
others claim its designed that way, so not a bug...*sigh*.

But anyway -- did you get any such warnings?


I love the way Stefan labels my statement about some of the utils
being statically linkable and that it works on redhat an "alternative fact".

(sigh)...
Thanks!





[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux