You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@apr.apache.org by bu...@apache.org on 2021/01/17 23:05:22 UTC
[Bug 65087] IPv6 support not detected when compiling on macOS with
Xcode >= 12 due to implicit declaration of functions
https://bz.apache.org/bugzilla/show_bug.cgi?id=65087
Daniel J. Luke <dl...@geeklair.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
OS| |All
--- Comment #1 from Daniel J. Luke <dl...@geeklair.net> ---
I don't think this is the whole story - If I start a configure and pause it
#define HAVE_ARPA_INET_H 1 is in confdefs.h before the Networking Support or
IPv6 Networking support sections are run.
The test for getnameinfo, however, doesn't appear to include arpa/inet.h at
all, which is needed to get the definition of inet_addr
If I add it to the test (or force the test to pass by setting
ac_cv_working_getnameinfo), and rebuild httpd against the new apr, it starts up
just fine and listens on both IPv4 and IPv6. (If I don't rebuild httpd, I get
`AH00072: make_sock: could not bind to address 0.0.0.0:80`
This should fix things:
% diff apr_network.m4 apr_network.m4.orig
--- apr_network.m4.orig 2021-01-17 17:56:35.000000000 -0500
+++ apr_network.m4 2021-01-17 17:57:00.000000000 -0500
@@ -151,9 +151,6 @@
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
+#ifdef HAVE_ARPA_INET_H
+#include <arpa/inet.h>
+#endif
int main(void) {
struct sockaddr_in sa;
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org