I installed apr as follows: ./configure --disable-ipv6 make make install Now linking results in the following error: libapr-1.so: undefined reference to `find_if_index' Reason: In the file network_io/unix/multicast.c the function `find_if_index' is used even though its implementation is suppresed by '#if APR_HAVE_IPV6'.
'We' the developers have a very bad habbit of not checking releases where people disable features. At a first glance, this can be fixed by removing the #if APR_HAVE_IPV6 wrappers around find_if_index.
Actually, it's not quite that simple, if you disable ipv6 but HAVE_GETIFADDRS is still defined you get a build error trying to use the .sin6 member of iface->sa. You can work around that by making that portion of find_if_index conditional on both HAVE_GETIFADDRS and APR_HAVE_IPV6, but then find_if_index is just a pass through, and I'm not clear if that actually works or not...
Mass reassign the 44 open apr-bugs to apr bug list
*** Bug 41147 has been marked as a duplicate of this bug. ***
*** Bug 41273 has been marked as a duplicate of this bug. ***
Fixed on the trunk: http://svn.apache.org/viewvc?view=rev&rev=493802
*** Bug 42477 has been marked as a duplicate of this bug. ***