Return-Path: Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 91571 invoked by uid 500); 4 Dec 2001 21:34:12 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 91560 invoked from network); 4 Dec 2001 21:34:11 -0000 X-Authentication-Warning: rdu163-40-092.nc.rr.com: trawick set sender to trawick@attglobal.net using -f Sender: trawick@rdu163-40-092.nc.rr.com To: Rodent of Unusual Size Cc: dev@APR.Apache.Org Subject: Re: gai_strerror not found on RH 5.2 (libc5?) References: <3C0D400B.72D7BC71@Golux.Com> From: Jeff Trawick Date: 04 Dec 2001 16:33:56 -0500 In-Reply-To: <3C0D400B.72D7BC71@Golux.Com> Message-ID: Lines: 48 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Rodent of Unusual Size writes: > I'm getting this when I try to build Apache 2.0.* on Red Hat > Linux 5.2 (libc5, I think): ... > /var/tmp/ap2-test/httpd-2.0/srclib/apr/.libs/libapr.so: undefined reference to `gai_strerror' > make[2]: *** [htpasswd] Error 1 > On RH 6.2, gai_strerror() is in libc.a and libc_p.a. The man pages > indicate that gai_strerror() is a companion to getaddrinfo(), and > it's prototyped in . It doesn't appear on my 5.2 system > at all. errorcodes.c assumes that if you have getaddrinfo() you have gai_strerror(). #if defined(HAVE_GETADDRINFO) statcode -= APR_OS_START_EAIERR; #if defined(NEGATIVE_EAI) statcode = -statcode; #endif return stuffbuffer(buf, bufsize, gai_strerror(statcode)); #else return stuffbuffer(buf, bufsize, "APR does not understand this error code"); #endif Can you verify that getaddrinfo() exists and that HAVE_GETADDRINFO is defined in srclib/apr/include/private/arch/unix/apr_private.h pretty please? (I assume it is there, but I just want to double-check.) We already do some sanity-checking of getaddrinfo() before deciding to use it. Probably we need to not consider that getaddrinfo() is usable if there is no gai_strerror(). If you can verify that you really have getaddrinfo() I'll work up a patch for you to test out. > Has it been decided that APR won't support this environment? A > friendlier way of saying so would be nice.. :-) The only environment APR won't support is the environment that has no crusader (well, pretty much). -- Jeff Trawick | trawick@attglobal.net | PGP public key at web site: http://www.geocities.com/SiliconValley/Park/9289/ Born in Roswell... married an alien...