size of executables

W M Brelsford k2di2 at att.net
Fri Jun 6 05:17:27 CEST 2003


On Thu Jun 05 2003 at 09:57 PM -0400, David Relson wrote:
> At 06:05 PM 6/5/03, W M Brelsford wrote:
> >I just noticed that the size of the 0.13.5 (and 0.13.6) bogofilter
> >executable jumped to 2.2 megabytes on my RH7.3 Linux machine.  The
> >previous versions were about 250K.  Similar for bogolexer, but
> >bogoutil hasn't changed.  All are built from source locally and
> >"dynamically linked (uses shared libs), stripped".
> >
> >What changed?  I don't think I did anything..

On Thu Jun 05 2003 at 10:09 PM -0400, David Relson wrote:
> A bit of quick checking of executable size found both 2.2M and 750K 
> executables.  Both are 0.13.6.1 and both are dynamically linked (see 
> below), but with different versions of db3.  As a guess, I have a version 
> of db-3.3 with debug symbols and a version of db-4.1 without symbols.

> $ for f in /usr/bin/bogofilter /home/relson/bogofilter/cvs/src/bogofilter ; 
> do ls -l $f ; $f -Q | head -1 ; ldd $f ; echo "" ; done
> 
> -rwxr-xr-x    1 root     root      2216792 Jun  5 14:04 /usr/bin/bogofilter*
> bogofilter version 0.13.6.1
> 	libm.so.6 => /lib/i686/libm.so.6 (0x4001e000)
> 	libdb-3.3.so => /lib/libdb-3.3.so (0x40040000)
> 	libc.so.6 => /lib/i686/libc.so.6 (0x400df000)
> 	/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
> 
> -rwxrwxr-x    1 relson   relson     752618 Jun  5 20:51 
> /home/relson/bogofilter/cvs/src/bogofilter*
> bogofilter version 0.13.6.1
> 	libm.so.6 => /lib/i686/libm.so.6 (0x4001e000)
> 	libdb-4.1.so => /usr/local/BerkeleyDB.4.1/lib/libdb-4.1.so 
> 	(0x40040000)
> 	libc.so.6 => /lib/i686/libc.so.6 (0x400e8000)
> 	/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

Mine both appear to use the same versions of libraries:

$ for f in /tmp/bogofilter_0.13.4 /usr/local/bin/bogofilter ;
  do ls -l $f ; $f -Q | head -1 ; ldd $f ; echo "" ; done

-rwxr-xr-x    1 root     root       251752 May 30 09:08 /tmp/bogofilter_0.13.4
bogofilter version 0.13.4
        libm.so.6 => /lib/i686/libm.so.6 (0x4001c000)
        libdb-3.3.so => /lib/libdb-3.3.so (0x4003f000)
        libc.so.6 => /lib/i686/libc.so.6 (0x42000000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

-rwxr-xr-x    1 root     root      2212936 Jun  4 11:52 /usr/local/bin/bogofilter
bogofilter version 0.13.6
        libm.so.6 => /lib/i686/libm.so.6 (0x4001c000)
        libdb-3.3.so => /lib/libdb-3.3.so (0x4003f000)
        libc.so.6 => /lib/i686/libc.so.6 (0x42000000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

> As reported earlier, I'll be away from my development machine until 
> Saturday next.  If you figure out what's happening before then, would you 
> please let me know?  If not, sending me a reminder at that time would be a 
> help.

Will do.  And, of course, it's not urgent -- the "bloated" version
works fine..

Have a good trip.

Thanks..  Bill





More information about the Bogofilter mailing list