apr-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 65087] IPv6 support not detected when compiling on macOS with Xcode >= 12 due to implicit declaration of functions
Date Sun, 17 Jan 2021 23:05:22 GMT

Daniel J. Luke <dluke@geeklair.net> changed:

           What    |Removed                     |Added
                 OS|                            |All

--- Comment #1 from Daniel J. Luke <dluke@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`

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 @@
 #include <netinet/in.h>
+#include <arpa/inet.h>

 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

View raw message