Skip to content

Don't try linking against libresolv on AIX #1172

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

Merged
merged 1 commit into from
Nov 24, 2020

Conversation

NattyNarwhal
Copy link
Contributor

On AIX, the resolver functions are in libc, so trying libresolv
will cause the checks to fail. The behaviour should be instead
like AC_SEARCH_LIBS.

This hardcodes a check not to use libresolv on AIX. Better than
nothing, but it may not compensate for other systems without a
libresolv.

Fixes #1171

@alcaeus alcaeus changed the base branch from master to v1.8 October 22, 2020 18:21
On AIX, the resolver functions are in libc, so trying libresolv
will cause the checks to fail. The behaviour should be instead
like AC_SEARCH_LIBS.

This hardcodes a check not to use libresolv on AIX. Better than
nothing, but it may not compensate for other systems without a
libresolv.
@pooooodles pooooodles added the tracked-in-jira Ticket filed in Mongo's Jira system label Nov 20, 2020
@alcaeus alcaeus changed the base branch from v1.8 to v1.9 November 24, 2020 09:47
@alcaeus alcaeus merged commit b581f2a into mongodb:v1.9 Nov 24, 2020
alcaeus added a commit that referenced this pull request Nov 25, 2020
* v1.9:
  PHPC-1700: Fix memory leak when read preference is invalid (#1179)
  PHPC-1706: Don't try linking against libresolv on AIX (#1172)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tracked-in-jira Ticket filed in Mongo's Jira system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AIX platforms shouldn't try linking with libresolv
3 participants