Subject: bin/34825: Link BIND 9 libraries dynamically to save disk space
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: Andreas Gustafsson <gson@gson.org>
List: netbsd-bugs
Date: 10/15/2006 07:00:00
>Number: 34825
>Category: bin
>Synopsis: Link BIND 9 libraries dynamically to save disk space
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Sun Oct 15 07:00:00 +0000 2006
>Originator: Andreas Gustafsson
>Release: NetBSD 4.99.3
>Organization:
>Environment:
System: NetBSD guava.gson.org 4.99.3 NetBSD 4.99.3 (GENERIC) #0: Mon Sep 25 00:54:38 EEST 2006 root@guru.araneus.fi:/usr/build/1007/obj/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
When BIND 9 was imported into the NetBSD base system, the amount of
disk space needed for a minimal NetBSD installation grew quite a bit.
Much of this growth is unnecessary, as it results from statically
linking a number of rather large libraries (libdns, libisc, etc)
into multiple binaries. Switching to dynamic linking of those
libraries would save several megabytes.
>How-To-Repeat:
Look at the size of those binaries. Most of it is common library
code.
# cd /usr/sbin
# ls -al dnssec-signzone lwresd named named-checkconf named-checkzone
-r-xr-xr-x 1 root wheel 1098430 Oct 14 19:03 dnssec-signzone
-r-xr-xr-x 2 root wheel 1435846 Oct 14 19:03 lwresd
-r-xr-xr-x 2 root wheel 1435846 Oct 14 19:03 named
-r-xr-xr-x 1 root wheel 1122407 Oct 14 19:03 named-checkconf
-r-xr-xr-x 1 root wheel 1069686 Oct 14 19:03 named-checkzone
# cd /usr/bin
# ls -al dig host nslookup nsupdate
-r-xr-xr-x 1 root wheel 1143351 Oct 14 19:03 dig
-r-xr-xr-x 1 root wheel 1135004 Oct 14 19:03 host
-r-xr-xr-x 1 root wheel 1133023 Oct 14 19:03 nslookup
-r-xr-xr-x 1 root wheel 1104925 Oct 14 19:03 nsupdate
>Fix:
None provided.