Hi list I just compiled 3.0rc1 on Solaris 9 (UltraSparc IIe) with gcc 3.3. Seems to work fine but I am surprised by the enormous size of the binaries: (ub-blade1):/usr/local/samba/sbin # ll total 232272 -rwxr-xr-x 1 root other 44719632 Aug 28 15:07 nmbd -rwxr-xr-x 1 root other 89726544 Aug 28 15:07 smbd -rwxr-xr-x 1 root other 44807356 Aug 28 15:07 swat -rwxr-xr-x 1 root other 58420628 Aug 28 15:08 winbindd In comparison 3.0b1 on Debian Woody (3.0) from packages: ub-edv05:~# ll /usr/sbin/smbd /usr/sbin/nmbd /usr/sbin/winbindd -rwxr-xr-x 1 root root 690636 Jul 8 00:37 /usr/sbin/nmbd -rwxr-xr-x 1 root root 2141228 Jul 8 00:37 /usr/sbin/smbd -rwxr-xr-x 1 root root 1241420 Jul 8 00:37 /usr/sbin/winbindd 2.2.8a on Solaris 9 (UltraSparc IIe), self compiled with gcc 3.2: (ub-files):/usr/local/samba/bin # ll total 14141 -rwxr-xr-x 1 root other 798684 Apr 15 11:37 nmbd -rwxr-xr-x 1 root other 1931248 Apr 15 11:37 smbd -rwxr-xr-x 1 root other 1216364 Apr 15 11:37 winbindd Can anybody shed some light? Cheers Paul -- Mit freundlichen Gruessen Paul Coray Administrator Server und Netzwerk Oeffentliche Bibliothek der Universitaet Basel EDV-Abteilung Schoenbeinstrasse 18-20 CH-4056 Basel Tel: +41 61 267 05 13 Fax: +41 61 267 31 03 mailto:paul.coray@unibas.ch http://www.ub.unibas.ch
Did they get compiled statically? on Linux a ldd `which smbd` will tell you what external libs it needs; if there are none, then you've got samba with all libraries compiled it. Hope this helps, -Tom =============== Hi list I just compiled 3.0rc1 on Solaris 9 (UltraSparc IIe) with gcc 3.3. Seems to work fine but I am surprised by the enormous size of the binaries: (ub-blade1):/usr/local/samba/sbin # ll total 232272 -rwxr-xr-x 1 root other 44719632 Aug 28 15:07 nmbd -rwxr-xr-x 1 root other 89726544 Aug 28 15:07 smbd -rwxr-xr-x 1 root other 44807356 Aug 28 15:07 swat -rwxr-xr-x 1 root other 58420628 Aug 28 15:08 winbindd In comparison 3.0b1 on Debian Woody (3.0) from packages: ub-edv05:~# ll /usr/sbin/smbd /usr/sbin/nmbd /usr/sbin/winbindd -rwxr-xr-x 1 root root 690636 Jul 8 00:37 /usr/sbin/nmbd -rwxr-xr-x 1 root root 2141228 Jul 8 00:37 /usr/sbin/smbd -rwxr-xr-x 1 root root 1241420 Jul 8 00:37 /usr/sbin/winbindd 2.2.8a on Solaris 9 (UltraSparc IIe), self compiled with gcc 3.2: (ub-files):/usr/local/samba/bin # ll total 14141 -rwxr-xr-x 1 root other 798684 Apr 15 11:37 nmbd -rwxr-xr-x 1 root other 1931248 Apr 15 11:37 smbd -rwxr-xr-x 1 root other 1216364 Apr 15 11:37 winbindd Can anybody shed some light? Cheers Paul -- Mit freundlichen Gruessen Paul Coray Administrator Server und Netzwerk Oeffentliche Bibliothek der Universitaet Basel EDV-Abteilung Schoenbeinstrasse 18-20 CH-4056 Basel Tel: +41 61 267 05 13 Fax: +41 61 267 31 03 mailto:paul.coray at unibas.ch http://www.ub.unibas.ch
On Thu, Aug 28, 2003 at 05:36:28PM +0200, Paul Coray wrote:> Hi list > > I just compiled 3.0rc1 on Solaris 9 (UltraSparc IIe) with gcc 3.3. Seems > to work fine but I am surprised by the enormous size of the binaries:Did you run strip on them?
After you configure, in the source/Makefile change the line: CFLAGS= -g -O2 to: CFLAGS= -O2> -----Original Message----- > From: samba-bounces+wayne=gomonarch.com@lists.samba.org > [mailto:samba-bounces+wayne=gomonarch.com@lists.samba.org]On Behalf Of > Erik Tews > Sent: Thursday, August 28, 2003 11:52 AM > To: Paul Coray > Cc: samba@lists.samba.org > Subject: Re: [Samba] Why are the binaries so huge? > > > On Thu, Aug 28, 2003 at 05:36:28PM +0200, Paul Coray wrote: > > Hi list > > > > I just compiled 3.0rc1 on Solaris 9 (UltraSparc IIe) with > gcc 3.3. Seems > > to work fine but I am surprised by the enormous size of the > binaries: > > Did you run strip on them? > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba >
Wayne Rasmussen wrote on Friday, 29 August 2003 7:46 a.m.:> After you configure, in the source/Makefile > change the line: > CFLAGS= -g -O2 > to: > CFLAGS= -O2 >One would assume that this option is included in the beta/RC releases to allow debugging. If you wish to report any crash-type bugs I suggest you leave this option in. Cheers, Paul --------------------------------------------------------- Paul Eggleton Ph: +64-9-4154790 Software Developer Fax: +64-9-4154791 CJN Technologies Ltd. DDI: +64-9-4154795 http://www.cjntech.co.nz Email: paule@cjntech.co.nz ---------------------------------------------------------
True. But it still answers the original question.> -----Original Message----- > From: samba-bounces+wayne=gomonarch.com@lists.samba.org > [mailto:samba-bounces+wayne=gomonarch.com@lists.samba.org]On Behalf Of > Paul Eggleton > Sent: Thursday, August 28, 2003 1:53 PM > To: samba@lists.samba.org > Subject: RE: [Samba] Why are the binaries so huge? > > > Wayne Rasmussen wrote on Friday, 29 August 2003 7:46 a.m.: > > After you configure, in the source/Makefile > > change the line: > > CFLAGS= -g -O2 > > to: > > CFLAGS= -O2 > > > > One would assume that this option is included in the beta/RC > releases to > allow debugging. If you wish to report any crash-type bugs I > suggest you > leave this option in. > > Cheers, > Paul > > --------------------------------------------------------- > Paul Eggleton Ph: +64-9-4154790 > Software Developer Fax: +64-9-4154791 > CJN Technologies Ltd. DDI: +64-9-4154795 > http://www.cjntech.co.nz Email: paule@cjntech.co.nz > --------------------------------------------------------- > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba >
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1> Message: 38 > Date: Fri, 29 Aug 2003 08:53:00 +1200 > From: "Paul Eggleton" <paule@cjntech.co.nz> > Subject: RE: [Samba] Why are the binaries so huge? > To: <samba@lists.samba.org> > Message-ID: <3DBF3DDF86B734419FC2A60F1D81833E10523F@cjnwin2000> > Content-Type: text/plain; charset="us-ascii" > > Wayne Rasmussen wrote on Friday, 29 August 2003 7:46 a.m.: > >>> After you configure, in the source/Makefile >>> change the line: >>> CFLAGS= -g -O2 >>> to: >>> CFLAGS= -O2 >>> > > > One would assume that this option is included in the beta/RC releases to > allow debugging. If you wish to report any crash-type bugs I suggest you > leave this option in. >But gcc-3.3 generates *huge* binaries with debuggind enabled, on my 800 Duron, gcc-3.3 would take close on half an hour just to relink the binaries, whereas with earlier versions of gcc (even 3.2.1), I could do a complete build from scratch in the same time. In my case, I didn't have 600MB free on the partition the binaries were intended to be on ... so in some cases building with debug flags actually prevents testing ... best to build without debugging enabled, and if you find a bug, just relink the offending binary with debugging enabled. Regards, Buchan - -- |--------------Another happy Mandrake Club member--------------| Buchan Milne Mechanical Engineer, Network Manager Cellphone * Work +27 82 472 2231 * +27 21 8828820x202 Stellenbosch Automotive Engineering http://www.cae.co.za GPG Key http://ranger.dnsalias.com/bgmilne.asc 1024D/60D204A7 2919 E232 5610 A038 87B1 72D6 AC92 BA50 60D2 04A7 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQE/T0PprJK6UGDSBKcRAiojAJ4oAG6oI+FleTZpLR9AxsZoV7dclQCfWXN6 xxcFc0GC9zvZb8ON1ZLUzKk=rm5d -----END PGP SIGNATURE----- ***************************************************************** Please click on http://www.cae.co.za/disclaimer.htm to read our e-mail disclaimer or send an e-mail to info@cae.co.za for a copy. *****************************************************************