s6-dns compilation error & resolv.conf

From: Vallo Kallaste <kalts_at_estpak.ee>
Date: Thu, 31 Oct 2013 21:52:34 +0200

Hello

s6-dns-0.0.1 fails to compile if given flag-{usert,usemon}:

exec ./compile s6-randomip.c
exec ./load s6-randomip -lrandom -lstdcrypto -lstddjb `cat socket.lib`
/opt/lib/skalibs/libstddjb.a(taia_clockmon.o): In function `taia_clockmon':
(.text+0x22): undefined reference to `clock_gettime'
/opt/lib/skalibs/libstddjb.a(taia_clockmon.o): In function `taia_clockmon_init':
(.text+0xc9): undefined reference to `clock_gettime'
/opt/lib/skalibs/libstddjb.a(sysclock_get.o): In function `sysclock_get':
(.text+0x1c): undefined reference to `clock_gettime'
collect2: ld returned 1 exit status
make[2]: *** [s6-randomip] Error 1
make[2]: Leaving directory `/var/tmp/web/s6-dns-0.0.1/compile/clients'
make[1]: *** [.done] Error 2
make[1]: Leaving directory `/var/tmp/web/s6-dns-0.0.1/compile/clients'
make: *** [.done] Error 2

Compilation succeeds after adding -lrt to conf-{ld,dynld}.



s6-dnsip4 fails, strace hints that could be related to /etc/resolv.conf:

$ strace ./s6-dnsip4 skarnet.org
...
open("/etc/leapsecs.dat", O_RDONLY|O_NONBLOCK) = 3
fcntl(3, F_GETFL) = 0x8800 (flags O_RDONLY|O_NONBLOCK|O_LARGEFILE)
fcntl(3, F_SETFL, O_RDONLY|O_LARGEFILE) = 0
read(3, "_at_\0\0\0\4\262X\n@\0\0\0\5\244\354\v@\0\0\0\7\206\37\214@\0\0\0\tgS\r"..., 312) = 200
read(3, "", 112) = 0
close(3) = 0
open("/etc/resolv.conf", O_RDONLY|O_NONBLOCK) = 3
fcntl(3, F_GETFL) = 0x8800 (flags O_RDONLY|O_NONBLOCK|O_LARGEFILE)
fcntl(3, F_SETFL, O_RDONLY|O_LARGEFILE) = 0
read(3, "nameserver 192.168.10.31\nnameser"..., 1023) = 129
read(3, "", 894) = 0
close(3) = 0
write(2, "s6-dnsip4: fatal: unable to s6dn"..., 70s6-dnsip4: fatal: unable to s6dns_init: Numerical result out of range
) = 70
exit_group(111) = ?


Here's slightly mutilated /etc/resolv.conf:
nameserver 192.168.10.31
nameserver 192.168.11.0
domain in.prefect.ee
search in.prefect.ee zaphod.prefect.ee trillian prefect.ee

BR,
-- 
Vallo
Received on Thu Oct 31 2013 - 19:52:34 UTC

This archive was generated by hypermail 2.3.0 : Sun May 09 2021 - 19:38:49 UTC