You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
glibc-2.18 should not look up /etc/ld.so.preload #1788
I installed nix on top of a linux system which has /etc/ld.so.preload. It produces some errors like
ERROR: ld.so: object '/$LIB/snoopy.so' from /etc/ld.so.preload cannot be preloaded: ignored.
although binary seems to work (with those annoying error messages whenever it loads dynamic libraries)
I made a patch for this. With this patch, ld.so will not lookup system ld.so.preload:
eb6b433a35fd183bdfb5594799c7e440ab32293c
BTW, since this is a stdenv change, I do not know what is the best way to make a pull request for this. Can I make it against master branch or do we have some rule for this?
Pushed the updated patch to glibc-2.19. I guess the reason for PREFIX was that ld.so.cache was solved the same way (but having that kind of global cache seems completely useless, whereas preloading still makes sense).
Activity
vcunat commentedon Feb 19, 2014
@edolstra: what about testing this in the glibc-2.19 branch?
vcunat commentedon Feb 27, 2014
Rebased against 2.19 9da7db9.
edolstra commentedon Feb 27, 2014
How about using something like /etc/ld-nix.so.preload? Using PREFIX/etc/... is kind of pointless because that file doesn't exist.
vcunat commentedon Feb 27, 2014
Hmm, yes, that sounds better. It might even get useful to put something into that file, in some cases.
glibc: do not use system ld.so.preload (close #1788)
vcunat commentedon Feb 28, 2014
Pushed the updated patch to glibc-2.19. I guess the reason for PREFIX was that ld.so.cache was solved the same way (but having that kind of global cache seems completely useless, whereas preloading still makes sense).