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

Portability: remove explicit check for libdl #1963

Closed
wants to merge 1 commit into from

Conversation

kinkie
Copy link
Contributor

@kinkie kinkie commented Dec 16, 2024

OpenBSD does not have libdl, as it has dlopen() in libc.
It is not really needed, and force-requiring the presence of libdl
causes ./configure to fail on openbsd:

checking for dlopen in -ldl... no
configure: error: Required library 'dl' not found

@squid-anubis squid-anubis added M-failed-description https://github.com/measurement-factory/anubis#pull-request-labels and removed M-failed-description https://github.com/measurement-factory/anubis#pull-request-labels labels Dec 16, 2024
Copy link
Contributor

@rousskov rousskov left a comment

Choose a reason for hiding this comment

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

Forcing required presence of libdl fails on openbsd

If possible, please add the corresponding error message from OpenBSD build (abridged as needed) to the PR description.

@rousskov rousskov added the S-waiting-for-author author action is expected (and usually required) label Dec 16, 2024
@kinkie
Copy link
Contributor Author

kinkie commented Dec 16, 2024

Forcing required presence of libdl fails on openbsd

If possible, please add the corresponding error message from OpenBSD build (abridged as needed) to the PR description.

done

@kinkie kinkie added S-waiting-for-more-reviewers needs a reviewer and/or a second opinion and removed S-waiting-for-author author action is expected (and usually required) labels Dec 16, 2024
Copy link
Contributor

@rousskov rousskov left a comment

Choose a reason for hiding this comment

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

I assume Squid dlopen() needs are already satisfied by our unconditional LT_INIT([dlopen]) call.

@kinkie kinkie closed this Dec 16, 2024
@rousskov
Copy link
Contributor

kinkie closed this Dec 16, 2024

What happened? If that removed code happens to be needed, please consider updating the existing comment to document that newly discovered or confirmed need.

@kinkie
Copy link
Contributor Author

kinkie commented Dec 16, 2024

kinkie closed this Dec 16, 2024

What happened? If that removed code happens to be needed, please consider updating the existing comment to document that newly discovered or confirmed need.

doh. Pushed the wrong button, sorry

@kinkie kinkie reopened this Dec 16, 2024
@kinkie
Copy link
Contributor Author

kinkie commented Dec 16, 2024

OpenBSD test build in github actions workflow

@kinkie
Copy link
Contributor Author

kinkie commented Dec 16, 2024

I confirm that the OpenBSD build works with this change, and there is no regression on Linux.

@yadij yadij added M-cleared-for-merge https://github.com/measurement-factory/anubis#pull-request-labels backport-to-v6 maintainer has approved these changes for v6 backporting and removed S-waiting-for-more-reviewers needs a reviewer and/or a second opinion labels Dec 16, 2024
squid-anubis pushed a commit that referenced this pull request Dec 16, 2024
OpenBSD does not have libdl, as it has dlopen() in libc.
It is not really needed, and force-requiring the presence of libdl
causes ./configure to fail on openbsd:

    checking for dlopen in -ldl... no
    configure: error: Required library 'dl' not found
@squid-anubis squid-anubis added the M-waiting-staging-checks https://github.com/measurement-factory/anubis#pull-request-labels label Dec 16, 2024
@squid-anubis squid-anubis added M-merged https://github.com/measurement-factory/anubis#pull-request-labels and removed M-waiting-staging-checks https://github.com/measurement-factory/anubis#pull-request-labels M-cleared-for-merge https://github.com/measurement-factory/anubis#pull-request-labels labels Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-to-v6 maintainer has approved these changes for v6 backporting M-merged https://github.com/measurement-factory/anubis#pull-request-labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants