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
Since around e394505, dynamic libraries with their own dependencies no longer link in an interactive Nix shell environment. Interestingly, everything works fine in sandboxed builds.
However, in a nix-shell it longer links (since around e394505):
$ nix-shell --pure repro.nix --run "echo \"int main(){}\">test.c; gcc -lbar test.c"/nix/store/r2b9k28c6aghczpqfvh71y9xavm7rr68-binutils-2.39/bin/ld: warning: libfoo.so, needed by /nix/store/p3g8b38ivxsr6kyv5dd7dr5c83kq2dj8-libbar/lib/libbar.so, not found (try using -rpath or -rpath-link)/nix/store/r2b9k28c6aghczpqfvh71y9xavm7rr68-binutils-2.39/bin/ld: /nix/store/p3g8b38ivxsr6kyv5dd7dr5c83kq2dj8-libbar/lib/libbar.so: undefined reference to `foo'collect2: error: ld returned 1 exit status
Return to ea692c2 and everything works fine again:
$ git checkout ea692c2ad1afd6384e171eabef4f0887d2b882d3Previous HEAD position was e3945057be4 Merge pull request #213671 from Luflosi/update/python3Packages.humanizeHEAD is now at ea692c2ad1a Merge pull request #213718 from r-ryantm/auto-update/komga
$ nix-shell --pure repro.nix --run "echo \"int main(){}\">test.c; gcc -lbar test.c"
This seems to affect any dynamic library with their own dependencies, like openssl, nix, and folly.
Describe the bug
Since around e394505, dynamic libraries with their own dependencies no longer link in an interactive Nix shell environment. Interestingly, everything works fine in sandboxed builds.
Steps To Reproduce
Everything works fine when built in a sandbox:
However, in a nix-shell it longer links (since around e394505):
Return to ea692c2 and everything works fine again:
This seems to affect any dynamic library with their own dependencies, like
openssl
,nix
, andfolly
.Expected behavior
Dynamic linking in a nix-shell should just work.
Additional context
The regression occurred between ea692c2 and e394505.
The text was updated successfully, but these errors were encountered: