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

configure: Fix function detection for btf__type_cnt() #300

Merged
merged 1 commit into from
Mar 4, 2023

Conversation

tohojo
Copy link
Member

@tohojo tohojo commented Mar 4, 2023

The configure check for btf__type_cnt() swapped two arguments in the
check_libbpf_function() call in the configure script, leading to the check
failing if LIBBPF_CFLAGS is non-empty. Make sure the arguments are in the
right order, and also pass a proper NULL parameter in the check instead of
a 0.

Fixes #298.

The configure check for btf__type_cnt() swapped two arguments in the
check_libbpf_function() call in the configure script, leading to the check
failing if LIBBPF_CFLAGS is non-empty. Make sure the arguments are in the
right order, and also pass a proper NULL parameter in the check instead of
a 0.

Reported-by: Holger Hoffstätte <holger@applied-asynchrony.com>
Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com>
@tohojo tohojo merged commit a7df567 into master Mar 4, 2023
@tohojo tohojo deleted the fix-configure branch March 4, 2023 20:27
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

Successfully merging this pull request may close these issues.

Configure broken since 1.3.0: btf__type_cnt no longer detected
1 participant