You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by Jeff Trawick <tr...@attglobal.net> on 2001/12/04 23:06:42 UTC
[PATCH] Re: gai_strerror not found on RH 5.2 (libc5?)
Please try this patch and post
1) the part of configure output that corresponds to this from my
machine:
Checking for IPv6 Networking support...
checking for library containing getaddrinfo... none required
checking for library containing gai_strerror... none required
checking for library containing getnameinfo... none required
checking for gai_strerror... yes
checking for working getaddrinfo... yes
checking for negative error codes for getaddrinfo... yes
checking for working getnameinfo... yes
checking for sockaddr_in6... yes
checking if APR supports IPv6... yes
2) whether or not HAVE_GETADDRINFO is in apr_private.h
3) whether or not your build works (and if not, how does it fail)
Thanks,
Jeff
Index: srclib/apr/configure.in
===================================================================
RCS file: /home/cvspublic/apr/configure.in,v
retrieving revision 1.383
diff -u -r1.383 configure.in
--- srclib/apr/configure.in 2001/12/04 20:37:38 1.383
+++ srclib/apr/configure.in 2001/12/04 21:44:48
@@ -1319,7 +1319,9 @@
[ user_disabled_ipv6=0 ] )
AC_SEARCH_LIBS(getaddrinfo, inet6)
+AC_SEARCH_LIBS(gai_strerror, inet6)
AC_SEARCH_LIBS(getnameinfo, inet6)
+AC_CHECK_FUNCS(gai_strerror)
APR_CHECK_WORKING_GETADDRINFO
APR_CHECK_NEGATIVE_EAI
APR_CHECK_WORKING_GETNAMEINFO
Index: srclib/apr/build/apr_network.m4
===================================================================
RCS file: /home/cvspublic/apr/build/apr_network.m4,v
retrieving revision 1.10
diff -u -r1.10 apr_network.m4
--- srclib/apr/build/apr_network.m4 2001/11/27 03:50:49 1.10
+++ srclib/apr/build/apr_network.m4 2001/12/04 21:44:48
@@ -5,6 +5,10 @@
dnl
dnl check for working getaddrinfo()
dnl
+dnl Note that if the system doesn't have gai_strerror(), we
+dnl can't use getaddrinfo() because we can't get strings
+dnl describing the error codes.
+dnl
AC_DEFUN(APR_CHECK_WORKING_GETADDRINFO,[
AC_CACHE_CHECK(for working getaddrinfo, ac_cv_working_getaddrinfo,[
AC_TRY_RUN( [
@@ -44,7 +48,11 @@
ac_cv_working_getaddrinfo="yes"
])])
if test "$ac_cv_working_getaddrinfo" = "yes"; then
- AC_DEFINE(HAVE_GETADDRINFO, 1, [Define if getaddrinfo exists and works well enough for APR])
+ if test "$ac_cv_func_gai_strerror" != "yes"; then
+ ac_cv_working_getaddrinfo="no"
+ else
+ AC_DEFINE(HAVE_GETADDRINFO, 1, [Define if getaddrinfo exists and works well enough for APR])
+ fi
fi
])
--
Jeff Trawick | trawick@attglobal.net | PGP public key at web site:
http://www.geocities.com/SiliconValley/Park/9289/
Born in Roswell... married an alien...
Re: [PATCH] Re: gai_strerror not found on RH 5.2 (libc5?)
Posted by Rodent of Unusual Size <Ke...@Golux.Com>.
* On 2001-12-04 at 18:00,
Jeff Trawick <tr...@attglobal.net> excited the electrons to say:
>
> Please try this patch and post
It has fixed my problem; I'll get you the details you
requested to-night or to-morrow. Thanks!
--
#ken P-)}
Ken Coar, Sanagendamgagwedweinini http://Golux.Com/coar/
Author, developer, opinionist http://Apache-Server.Com/
"All right everyone! Step away from the glowing hamburger!"