apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Covener <cove...@gmail.com>
Subject Re: APR on AIX 5.3 with xlC 6.0
Date Tue, 01 Jun 2010 00:05:49 GMT
On Mon, May 31, 2010 at 8:00 PM, Jerry Jeremiah
<Jerry.Jeremiah@telecom.co.nz> wrote:
> When I try to compile APR for AIX I see no errors from make and make returns successfully.
 When I run make test it appears to compile successfully but the tests fail (shown below)
  Does anyone know why?

> testsock                    9      1     11.11%
> make: 1254-004 The error code from the last command is 1.

Yes,

The IN6_IS_ADDR_V4MAPPED macro on AIX evaluates to false when passed
::ffff:0.0.0.0, the v4mapped form of INADDR_ANY.  This seems to be very
different than other platforms.

#define IS_IPV4ADDR6(a) \
        (((a).s6_addr32[0] == 0) && \
         ((a).s6_addr32[1] == 0) && \
         ((a).s6_addr32[2] == 0x0000ffff) && \
         ((a).s6_addr32[3] != 0))


APR could replace the macro, or the test suite could use a loopback
address instead of INADDR_ANY.

-- 
Eric Covener
covener@gmail.com

Mime
View raw message