The referenced URLs describe two problems, in email from Nico. Basically, on Solaris hosts with huge numbers of (possibly virtual) network interfaces, both the krb5 library and the rpc library will fail because they don't provide enough buffer space to the SIOCGIFCONF ioctl call. I believe the krb5 library has been fixed on the trunk. However, the rpc library has not. (It only wants one address anyways, but on Solaris, if you don't provide enough buffer space for all the entries it wants to return, it returns none of them, just an error.) Using foreach_localaddr is probably overkill; just add a test for SIOCGIFNUM, and if it's available, use it.