Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Samba 3.0 Compiled Binary Size? 1

Status
Not open for further replies.

vraxoin

Technical User
Sep 26, 2003
2
US
I'm attempting to switch from Samba 2.2.8a to 3.0 under Solaris 8 on a Sparc platform. I compiled 2.2.8a from source quite a while ago and have been using it without any trouble. So, I decided to download the 3.0 source that was just released, compiled it and tried to install it. Only on installation did I notice that the binaries and a few libraries are absolutely HUGE compared to 2.2.8a or any previous version I've ever used. I actually ran out of storage on the previously allocated filesystem. For example, here are the sizes of the two versions of smbd:

2.2.8a: 1895964

3.0: 88074092

nmbd is:

2.2.8a: 785336

3.0: 43733672

All other binaries which are shared by the two versions are similarly huge in 3.0. Is this normal? I haven't seen this mentioned anywhere else. I've compiled twice and get the same result. I have yet to find a pre-compiled package for Solaris out there with which I could compare my results to. I'm thinking of just going back to a 2.2.x version, but if anyone has any thoughts or questions they would be greatly appreciated.

vraxoin
 
Strange... This is the size of mine on RedHat...

2488916 Sep 25 04:01 smbd

796468 Sep 25 04:01 nmbd

Is this the final production release?
 
Two things:

1) The configure script for the Samba 3.0.0 tarball was accidentally released with debugging support turned on. Try editing the Makefile and removing -g from the CFLAGS.

2) gcc 3.x generates large amounts of debugging info with -g. Try using -gstabs instead of -g.
 
rzs0502:

Thanks for the feedback and YES I am using the final 3.0 release.

AND...

SpruceMoore:

Thanks so much! You hit the nail square on the head. I am using gcc 3.2 and 'CFLAGS -g' in the Makefile was certainly the problem. Pulled '-g' and smbd compiled to a FAR more reasonable size of '2566044'. That's an ~85MB size decrease, so I'm quite happy. All other files are fine too. That bloat seems far beyond what I would rationally expect, but who am I to say anyway. Thanks again!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top