On Sat, 3 Sep 2005, Henrik Stoerner wrote:
> One of my users reported that the new c-ares 1.3.0 library fails to compile
> on HP-UX 11.
Found it!
Annoying. I just built the CVS version perfectly fine on both HP-UX 11.00 and
11.11 using the native HP compiler on both...
I think the difference is because the machines I use don't seem to have ipv6
support at all, while the config.h your user had showed
HAVE_STRUCT_SOCKADDR_IN6 defined.
And yes! The config.log[*] shows the problem clearly. The 'sin6_scope_id' is
not found in the struct, but yet the configure script believes so and sets the
define as it is existant!
I hope this patch fixes the problem:
diff -u -r1.28 configure.ac
--- configure.ac 19 Jun 2005 16:58:40 -0000 1.28
+++ configure.ac 10 Sep 2005 21:04:00 -0000
@@ -176,7 +176,10 @@
)
if test "$ac_have_sockaddr_in6" = "yes" ; then
-CARES_CHECK_STRUCT_MEMBER(
+AC_CHECK_MEMBER(struct sockaddr_in6.sin6_scope_id,
+ AC_DEFINE_UNQUOTED(HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID,1,
+ [Define to 1 if your struct sockaddr_in6 has sin6_scope_id.])
+ , ,
[
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
@@ -188,8 +191,6 @@
#include <netinet/in.h>
#endif
], [sockaddr_in6], [sin6_scope_id],
- AC_DEFINE_UNQUOTED(HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID,1,
- [Define to 1 if your struct sockaddr_in6 has sin6_scope_id.])
)
fi
[*] = http://www.hswn.dk/~henrik/c-ares-hpux/config.log
-- c-ares -- my preferred DNS asynch resolver library _______________________________________________ http://cool.haxx.se/mailman/listinfo/c-aresReceived on Sat Sep 10 23:04:53 2005