large size binaries after compile on Solaris2.6?

Kevin Darcy kcd at daimlerchrysler.com
Mon Dec 6 23:14:34 UTC 1999


ashley wrote:

> Hi all,
> I just complied and configured bind8.2.2p5 in what I thought to be
> successfully on a solaris 2.6 sun box.  But after completing my testing I
> noticed a fair bit of disk space had been chewed up.  Initial comparison
> between file sizes on my Sun box to those on a test RH6.0 box showed those
> on the sun box to be a fair bit larger eg:
>
> sun:
> -rwxr-xr-x   1 root     staff    7145336 Nov  1 05:06 named
> -rwxr-xr-x   1 root     staff       6463 Nov  1 05:06 named-bootconf
> -rwxr-xr-x   1 root     staff    5049996 Nov  1 05:06 named-xfer
> -rwxr-xr-x   1 root     staff     447452 Nov  1 05:06 ndc
>
> rh6.0:
> -rwxr-xr-x   1 root     root       531728 Mar 31  1999 named
> -rwxr-xr-x   1 root     root         6463 Jun 21 15:25 named-bootconf
> -rwxr-xr-x   1 root     root       280928 Mar 31  1999 named-xfer
> -rwsr-xr-x   1 root     root        38368 Mar 31  1999 ndc
>
> Note: the binaries on the rh6.0 box are those that came with the dist. and
> don't support named -version but show as 8.2 in the log file
>
> When compiling I just followed the instructions
>
> make stdlinks
> make clean
> make depend
> make all
> make install
>
> and didn't change anything in port/solaris
>
> Is this large file size normal or should I have compiled it in a different
> manner?

Sorry, I don't have a Solaris 2.6 box handy for comparison, and you didn't
say what hardware platform, but on our development server (Solaris 2.5.1
Ultra architecture) my compiled binaries are about 3.7Mb and 2.3Mb for named
and named-xfer, respectively, and on my Solaris 7 Ultra box, less than 3 Mb
and about 1.7 Mb, respectively. This is using the SparcWorks unbundled
compiler and *with* my settings tweaked to include the "-g" (symbol
table) debugging information. I have no idea why your binaries are so obese.
What compiler are you using? Stripping those binaries with the
"strip" command would be a quick fix, but I'd look further into the cause.
Otherwise, this is likely to happen with other software too.


- Kevin



More information about the bind-users mailing list