I was asking few days ago if somebody knows something about a problem
with libraries from RH 6.2 when a program linked dynamic behaves like
it should but linked static fails because 'getpwuid()' always returns
null.
The problem is real, all right, but you are not very likely to run
into it. :-) After digging deeply through sources of glibc and
prolonged debuggin sessions I found that a function
'do_lookup_versioned()' from dl-lookup.c was failing for some dynamic
loader symbol. A reason for that turn out to be that from some old
forgotten experiments I had a subdirectory /lib/old/ with a copy of an
old version of ld-linux.so.2 in it. I do not understand a mechanism
and why this copy was used in the first place (my /etc/ld.so.conf is
sane) but removing /lib/old made both versions of my test program to
behave.
To add to the confusion even if a program is compiled statically, and
'file' and 'ldd' say about exectutables "statically linked" and "not a
dynamic executable", turns out that libnss* libraries are still
dynamically loaded (different things may be consulted depending on what
you have in /etc/nsswitch.conf). Also nothing bad was happening before
an update, even if /lib/old/ was there all the time, and with a
dynamically linked version. Big sigh!
Michal
-- To unsubscribe: send e-mail to axp-list-request@redhat.com with 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
This archive was generated by hypermail version 2a22 on Tue Aug 1 04:53:11 2000 PDT
Send any problems or questions about this archive to webmaster@alphalinux.org.