Skip to content

code-server terminal sets LD_LIBRARY_PATH variable. which breaks other tools #1757

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

Closed
Merith-TK opened this issue Jun 2, 2020 · 2 comments
Closed

Comments

@Merith-TK
Copy link
Contributor

  • Web Browser: Firefox
  • Local OS: Windows
  • Remote OS: Arch
  • Remote Architecture: X86_64
  • code-server --version: 3.4 (latest AUR)

the problem is that code-server sets this variable in the terminal LD_LIBRARY_PATH=/usr/lib/code-server/bin/../lib which causes programs such as ffmpeg to fail

ffmpeg: /usr/lib/code-server/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /usr/lib/libvmaf.so)
ffmpeg: /usr/lib/code-server/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/lib/libvmaf.so)
ffmpeg: /usr/lib/code-server/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/lib/libmfx.so.1)
ffmpeg: /usr/lib/code-server/bin/../lib/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/lib/libmodplug.so.1)
ffmpeg: /usr/lib/code-server/bin/../lib/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/lib/libsrt.so.1)
ffmpeg: /usr/lib/code-server/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/lib/libsrt.so.1)
ffmpeg: /usr/lib/code-server/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/lib/libx265.so.188)

when i ssh and run the conversion tool i wrote (converting some mp4s to run on my DSi using homebrew)
it runs with out issue and LD_LIBRARY_PATH var is not set
image

the rest of the terminal is normal ffmpeg output

@meain
Copy link
Contributor

meain commented Jun 3, 2020

This is causing a lot of issues, even apt fails to run.

$ apt
apt: /usr/local/bin/code-server/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/lib/x86_64-linux-gnu/libapt-private.so.0.0)
apt: /usr/local/bin/code-server/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/lib/x86_64-linux-gnu/libapt-pkg.so.5.0)

@nhooyr
Copy link
Contributor

nhooyr commented Jun 3, 2020

Will be fixed in #1761

Marking this as a duplicate of #1738

@nhooyr nhooyr closed this as completed Jun 3, 2020
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