bug-glibc
[Top][All Lists]
Advanced

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

Re: nsl library issue


From: Petter Reinholdtsen
Subject: Re: nsl library issue
Date: Wed, 03 Aug 2005 12:29:15 +0200
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.4 (usg-unix-v)

[Anandi Thirunavukkarasu]
> Hi
>
> When I compile my code with
>
> Cc –static ………………. –lnsl –lc
>
> It causes a segmentation fault. And the trace shows an error at getpwid_r ().

NSS and PAM, the subsystem being used by getpwid_r() do not work with
non-dynamicly linked programs.  This is because NSS and PAM loads
shared libraries to do the job.

> Is this something to do with the version of the Glibc or libnsl?
>
> If not what might be the possible source of problem?
>
> (If I make without the –static option the code compiles.)

In short, you can not access the user database or check password from
staticly linked programs.

Be aware that this list is no longer used by the glibc maintainers.
It is so filled with spam that it because almost impossible to read.
Check out <URL:http://sources.redhat.com/glibc/> for info on other
places to contact the glibc maintainers.  I'm not one of the people
with write access to glibc source. :)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]