Hi, there has been previous conversation on this topic and Havard has helpfully provided the working combination (I think).
https://lists.isc.org/pipermail/bind-users/2026-January/110443.html This needs to be ultimately fixed somewhere in between meson-build and NetBSD linker, but that should get you going, I guess. Ondrej -- Ondřej Surý (He/Him) [email protected] ADHD brain at work: I sometimes lose track of my inbox. Please feel free to send a gentle nudge if you're waiting on a reply! My working hours and your working hours may be different. Please do not feel obligated to reply outside your normal working hours. > On 19. 4. 2026, at 11:17, Lars-Johan Liman <[email protected]> wrote: > > Hi! > > Is anyone else experimenting with BIND 9.21.21 on NetBSD/amd64? > > This could be a NetBSD problem rather than a BIND problem, but I only > have problems with BIND. It's either a problem with BIND or its building > process, or it's a problem with NetBSD triggered only by BIND or its > building process. Or, of course, the more likely option: its a problem > with yours truly and his perception of what's going on. :-) > > BIND version: 9.21.21 > NetBSD version: 10.1 > > After having straightened out the dependencies, it builds nice enough, > except for two warnings: > > [334/371] Linking target dig > lto-wrapper: warning: using serial compilation of 2 LTRANS jobs > [352/371] Linking target nslookup > lto-wrapper: warning: using serial compilation of 2 LTRANS jobs > > but, trying to run the utilities yields: > > % pwd > /usr/local/src/bind/bind-9.21.21/build > > % printenv LD_LIBRARY_PATH > /usr/local/src/bind/bind-9.21.21/build > > % ls -l libdns-9.21.21.so > -rwxr-xr-x 1 liman wheel 10749144 Apr 19 10:26 libdns-9.21.21.so > > % ./tsig-keygen > ./tsig-keygen: Shared object "libdns-9.21.21.so" not found > > The named binary itself is OK, because named doesn't need > libdns-9.21.21.so. > > % ./named -v > BIND 9.21.21 (Development Release) <id:ec2e1ce> > > The problem seems to be that ld.elf_so is unhappy with > libdns-9.21.21.so. It finds the file, does mmap() of it, but then > immediately does an munmap() and goes looking for better fish. > > 6002 6002 tsig-keygen > open("/usr/local/src/bind/bind-9.21.21/build/.//libdns-9.21.21.so", 0, 0x3) = > 3 > 6002 6002 tsig-keygen __fstat50(0x3, 0x7f7fffb27d38) = 0 > 6002 6002 tsig-keygen mmap(0, 0x1000, 0x1, 0x1, 0x3, 0, 0) = 0x7902210f1000 > 6002 6002 tsig-keygen munmap(0x7902210f1000, 0x1000) = 0 > 6002 6002 tsig-keygen close(0x3) = 0 > 6002 6002 tsig-keygen open("/usr/pkg/lib/libdns-9.21.21.so", 0, 0x6) Err#2 > ENOENT > 6002 6002 tsig-keygen open("/usr/lib/libdns-9.21.21.so", 0, 0x2) Err#2 > ENOENT > 6002 6002 tsig-keygen write(0x2, 0x7f7fffb283d8, 0x3a) = 58 > "./tsig-keygen: Shared object "libdns-9.21.21.so" not found" > > Has anyone figured out what's going on, and possibly found a > fix/work-around? (Instructions to RTFM will be gracefully heeded, if > useful pointers are provided. ;-) ) > > Cheers, > /Liman > -- > #---------------------------------------------------------------------- > # Lars-Johan Liman, M.Sc. ! E-mail: [email protected] > # Senior Systems Specialist ! Mobile: +46 708 - 54 06 66 > # Netnod AB, Stockholm ! https://www.netnod.se/ > #---------------------------------------------------------------------- > -- > Visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from > this list. -- Visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list.

