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

Fall back to querying libc.so.6 if ldd can’t detect libc implementation. #17657

Merged
merged 2 commits into from
May 17, 2024

Conversation

Ferroin
Copy link
Member

@Ferroin Ferroin commented May 14, 2024

Summary

Needed for correct configuration on systems that hide the libc implementation info in ldd output, like Gentoo.

Test Plan

This can be easily tested on a Gentoo system by trying to build Netdata by hand with eBPF enabled.

Without this PR, the configuration step will fail due to not being able to identify the libc implementation.

With this PR, the configuration step should succeed and correctly detect the libc implementation.

Additional Information

Fixes: #17651

@github-actions github-actions bot added the area/packaging Packaging and operating systems support label May 14, 2024
Needed for correct configuration on systems that hide the libc
implementation info in `ldd` output, like Gentoo.
@Ferroin Ferroin marked this pull request as ready for review May 15, 2024 11:14
@Ferroin Ferroin requested a review from vkalintiris as a code owner May 15, 2024 11:14
@Ferroin
Copy link
Member Author

Ferroin commented May 15, 2024

CentOS 8/Rocky 8 build failures are occurring in master as well, and thus are unrelated to this PR.

@Ferroin Ferroin requested a review from thiagoftsm May 15, 2024 11:14
NO_CMAKE_INSTALL_PREFIX
NO_CMAKE_FIND_ROOT_PATH)

if(NOT "${LBIC_PATH}" EQUAL "LIBC_PATH-NOTFOUND")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/LBIC_PATH/LIBC_PATH/

Copy link
Contributor

@thiagoftsm thiagoftsm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR is working as expected, LGTM!

@Ferroin Ferroin merged commit 7a6d0c9 into netdata:master May 17, 2024
146 of 148 checks passed
@Ferroin Ferroin deleted the improve-libc-detection branch May 17, 2024 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/packaging Packaging and operating systems support
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: cron netdata-updater script failed
3 participants