Subj : getaddrinfo failed: Servname not supported for ai_socktype (-8)
To   : Scott Street
From : Oli
Date : Tue Feb 01 2022 10:12 am

Scott wrote (2022-01-30):

SS> 30 Jan 22 21:21, you wrote to Tommi Koivula:

Ol>> A statically linked binkd without perl for Linux would be nice.

SS> Perhaps I can help with that:

SS> ===========cut&paste from terminal============================
SS> ftn@Hydra:~$ ldd bin/binkd
SS>          linux-vdso.so.1 (0x00007ffd7412e000)
SS>          libbz2.so.1.0 => /lib/x86_64-linux-gnu/libbz2.so.1.0
SS> (0x00007f017c583000) libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1
SS> (0x00007f017c567000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6
SS> (0x00007f017c33f000) /lib64/ld-linux-x86-64.so.2 (0x00007f017c5db000)

SS> I've compiled my binkd without perl support (don't use it,  since I'm
SS> inet only,  the only nodelist I need is binkp.net lookups)

SS> If you can use it, I can compress and fileattached the binary to you.

It was more in response to Conny's problem with Ubuntu 20.04 LTS and an outdated binkd in the distro. I do use the perl hooks with binkd and compile it myself.

Your version is still not a statically linked binary, which would look more like this:

~ $ ldd .local/bin/restic
       not a dynamic executable
~ $ ldd .local/bin/zig
       statically linked

Your binkd does not run on a Linux without glibc, libz or libbz2. Usually this isn't a problem as most Linux distros use glibc and have libbz2 installed (most famous exception is Alpine Linux, but even that has a libc6-compat package).

---
* Origin: Birds aren't real (2:280/464.47)