Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #158044

Re: Compiling coreutils from source

From Ansgar Burchardt <"Ansgar Burchardt"@43-1.org>
Newsgroups linux.debian.user
Subject Re: Compiling coreutils from source
Date 2015-09-18 09:50 +0200
Message-ID <q9YAH-4B2-37@gated-at.bofh.it> (permalink)
References <q9Esj-wC-43@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi,

Florian Pelgrim writes:
> I would also be interested what this message means and if it can be
> ignored or anything should be done:
>> /home/vagrant/coreutils-8.23/src/whoami.c:85: warning: Using
>> 'getpwuid' in statically linked applications requires at runtime the
>> shared libraries from the glibc version used for linking

`getpwuid' uses shared objects to implement modules for user information
lookup (/etc/passwd) and the like; this is configured in
/etc/nsswitch.conf. As far as I know, the interface between glibc and
these modules is not stable. I don't know how often it changes though.

If you link statically, you have to have the correct versions of these
shared objects around: they cannot be linked in as it is only decided at
runtime which ones to load. If they aren't available, I would expect
failures in programs relying on name lookup: for example whoami cannot
get the username associated with the uid if `getpwuid' fails.

Ansgar

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Compiling coreutils from source Florian Pelgrim <florian.pelgrim@craneworks.de> - 2015-09-17 12:20 +0200
  Re: Compiling coreutils from source Stephen Powell <zlinuxman@wowway.com> - 2015-09-17 13:50 +0200
  Re: Compiling coreutils from source Ansgar Burchardt <"Ansgar Burchardt"@43-1.org> - 2015-09-18 09:50 +0200
  Re: Compiling coreutils from source Sven Joachim <svenjoac@gmx.de> - 2015-09-18 19:20 +0200

csiph-web