Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

glibc-2.18 should not look up /etc/ld.so.preload #1788

Closed
wavewave opened this issue Feb 19, 2014 · 5 comments
Closed

glibc-2.18 should not look up /etc/ld.so.preload #1788

wavewave opened this issue Feb 19, 2014 · 5 comments

Comments

@wavewave
Copy link
Contributor

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?

@vcunat
Copy link
Member

vcunat commented Feb 19, 2014

@edolstra: what about testing this in the glibc-2.19 branch?

@vcunat
Copy link
Member

vcunat commented Feb 27, 2014

Rebased against 2.19 9da7db9.

@edolstra
Copy link
Member

How about using something like /etc/ld-nix.so.preload? Using PREFIX/etc/... is kind of pointless because that file doesn't exist.

@vcunat
Copy link
Member

vcunat commented Feb 27, 2014

Hmm, yes, that sounds better. It might even get useful to put something into that file, in some cases.

vcunat pushed a commit that referenced this issue Feb 28, 2014
Modified according to the PR comment.
@vcunat
Copy link
Member

vcunat commented 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).

@vcunat vcunat closed this as completed Feb 28, 2014
lucabrunox pushed a commit to lucabrunox/nixpkgs that referenced this issue Apr 6, 2014
Modified according to the PR comment.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants