-
-
Notifications
You must be signed in to change notification settings - Fork 457
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
Disable user name lookup in static builds against glibc #1527
base: main
Are you sure you want to change the base?
Conversation
Static linking against glibc might crash due to usage of NSS modules, e.g. via getpwuid() (see htop-dev#503). The linker also warns about it: warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
@cgzones Anything still missing here? |
There might be still hidden usage of NSS modules, e.g. a static build reports:
Maybe it's best to recommend not using static builds on Linux against glibc? |
Can we check for |
I think we need to replace these NSS / getpwuid uses with alternate implementations. Can't have a static Moving to the 3.5.0 milestone. |
Static linking against glibc might crash due to usage of NSS modules, e.g. via getpwuid() (see #503).
The linker also warns about it: