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

autotools: fix building for 32bit windows due to stdcall symbol mangling #689

Merged
merged 3 commits into from Jan 16, 2024

Conversation

bradh352
Copy link
Member

@bradh352 bradh352 commented Jan 16, 2024

Use AC_CHECK_DECL not AC_CHECK_FUNCS, while this doesn't do a linkage test, it just makes sure the headers define it, this is the only thing without a complex workaround on Windows that will do what we need.

See:

https://github.com/msys2/msys2/wiki/Porting/f87a222118b1008ebc166ad237f04edb759c8f4c#calling-conventions-stdcall-and-autotools

and

https://lists.gnu.org/archive/html/autoconf/2013-05/msg00085.html

and for a more complex workaround, we'd need to use AC_LINK_IFELSE like:

https://mailman.videolan.org/pipermail/vlc-devel/2015-March/101802.html

which would require we check each individually and provide function arguments for the test. I don't think that is worthwhile.

Fixes Issue: #688
Fix By: Brad House (@bradh352)

@bradh352 bradh352 merged commit 79598e0 into c-ares:main Jan 16, 2024
32 of 38 checks passed
bradh352 added a commit that referenced this pull request Jan 16, 2024
…ing (#689)

Use AC_CHECK_DECL not AC_CHECK_FUNCS, while this doesn't do a linkage test, it just makes sure the headers define it, this is the only thing without a complex workaround on Windows that will do what we need. 

See:

https://github.com/msys2/msys2/wiki/Porting/f87a222118b1008ebc166ad237f04edb759c8f4c#calling-conventions-stdcall-and-autotools

and

https://lists.gnu.org/archive/html/autoconf/2013-05/msg00085.html

and for a more complex workaround, we'd need to use AC_LINK_IFELSE like:

https://mailman.videolan.org/pipermail/vlc-devel/2015-March/101802.html

which would require we check each individually and provide function arguments for the test.  I don't think that is worthwhile.

Fixes Issue: #688
Fix By: Brad House (@bradh352)
@bradh352 bradh352 deleted the autotools_windows branch January 16, 2024 14:49
netbsd-srcmastr pushed a commit to NetBSD/pkgsrc that referenced this pull request Jan 28, 2024
## c-ares version 1.26.0 - Jan 26 2024

Features:

* Event Thread support.  Integrators are no longer requried to monitor the
  file descriptors registered by c-ares for events and call `ares_process()`
  when enabling the event thread feature via `ARES_OPT_EVENT_THREAD` passed
  to `ares_init_options()`. [PR #696](c-ares/c-ares#696)
* Added flags to `are_dns_parse()` to force RAW packet parsing.
  [PR #693](c-ares/c-ares#693)

Changes:

* Mark `ares_fds()` as deprected.
  [PR #691](c-ares/c-ares#691)

Bugfixes:

* `adig`: Differentiate between internal and server errors.
  [e10b16a](c-ares/c-ares@e10b16a)
* Autotools allow make to override CFLAGS/CPPFLAGS/CXXFLAGS.
  [PR #695](c-ares/c-ares#695)
* Autotools: fix building for 32bit windows due to stdcall symbol mangling.
  [PR #689](c-ares/c-ares#689)
* RR Name should not be sanity checked against the Question.
  [PR #685](c-ares/c-ares#685)
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.

None yet

1 participant