[Nut-upsdev] kernel update to 3.12.5-1, now: upsd[617]: getaddrinfo: Servname not supported for ai_socktype

Charles Lepple clepple at gmail.com
Tue Dec 17 03:23:21 UTC 2013

On Dec 16, 2013, at 10:11 PM, David C. Rankin wrote:
> On 12/16/2013 08:01 PM, Charles Lepple wrote:
>> On Dec 16, 2013, at 4:19 PM, David C. Rankin wrote:
>>>> Dec 16 14:05:16 phoinix upsd[369]: getaddrinfo: Servname not supported for
>>>> ai_socktype
>> [...]
>>>> The kernel update was from linux (3.12.1-3 -> 3.12.5-1), I don't see what
>>>> could have changed. How do I attempt to further debug/fix this?
>> getaddrinfo(3) is a libc function - is it possible that libc was updated as well?
>> I am not seeing many references to the kernel when googling for that error message, but there was this about glib 2.18:
>> http://sourceware.org/ml/libc-help/2013-08/msg00023.html
> Crap! You are right!
> [2013-12-16 14:03] [PACMAN] upgraded glibc (2.18-10 -> 2.18-11)
> How do I fix that other than downgrading?

Not sure - I didn't write the getaddrinfo() code in upsd, but it seemed to follow all of the recommendations on how to use that function. So if there is a way to fix it in the NUT code, I am not aware of it (and would appreciate any updates if that turns out to be the case).

The odd part is that it looks like you went from one Arch revision of glibc from 2.18 to 2.18, and most of the mailing list posts I saw while googling were regressions going from 2.17 to 2.18. But this is making a bunch of assumptions about the kind of changes that might creep in between -10 and -11.

You aren't mixing 32- and 64-bit userspace libraries, are you?

Charles Lepple
clepple at gmail

More information about the Nut-upsdev mailing list