The Samba-Bugzilla – Bug 410
Why are the binaries so HUGE
Last modified: 2005-11-14 09:30:24 UTC
Am I the only one having this problem? The sizes of my samba 3 binaries are in
the tens of MegaBytes as reported by my file system. I have tried setting all
debug info flags to no, but no difference.
Here are some examples of the file sizes:
/bin/net 28.3 Mibyte
/bin/testparm 11.9 Mibyte
/sbin/smbd 43.0 Mibyte
/sbin/nmbd 21.1 Mibyte
What have I done wrong, or what might be wrong?
the binaries were probably compiled with -g.
Run `strip /usr/local/samba/*bin/*`
If you are using gcc 3.x then you need to compile with -gstabs instead of just
-g. In newer versions of gcc a lot (i.e an extra 18MB) more debugging
information is generated. Using -gstabs lets you keep debugging information you
lose by stripping but keeps the executables a reasonable size.
If you configure Samba with ./configure.developer instead of ./configure then
-gstabs is put in for you.
originally reported against one of the 3.0.0rc[1-4] releases.
Cleaning up non-production versions.
sorry for the same, cleaning up the database to prevent unecessary reopens of bugs.