Thanks Dave.

The "file snmpbulkwalk" (created in 5.0.6) is - 
snmpbulkwalk: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 
2.0.0, dynamically linked (uses shared libs), not stripped

The "ldd snmpbulkwalk" (created in 5.0.6) is - 
        libcrypto.so.0 => /usr/lib/libcrypto.so.0 (0x40017000)
        libm.so.6 => /lib/libm.so.6 (0x400d0000)
        libc.so.6 => /lib/libc.so.6 (0x400ee000)
        libdl.so.2 => /lib/libdl.so.2 (0x401d7000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

The "file snmpbulkwalk" (created in 5.1.1) is -
snmpbulkwalk: Bourne shell script text executable

The "ldd snmpbulkwalk" (created in 5.1.1) is -
        not a dynamic executable

The result of snmpwalk (created in 5.1.1) is the same. I am curious if this has 
anything to do with the snmpwalk crashed the system at ifTable (it happened in 
net-snmp 5.1.1 on Linux, dual CPU. Not on the single CPU). I don't know how the 
application were built so they are Bourne shell script in 5.1.1 but are LSB executable 
in 5.0.6. BTW, what the LSB stands for? Many thanks for your information.

-Jim
-----Original Message-----
From: Dave Shield [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 26, 2004 5:59 PM
To: Jim Su
Cc: Net-Snmp-Users
Subject: Re: Size increased 10 times bigger in an older version of net-snmp 



> I had rolled back the net-snmp from 5.1.1 to 5.0.6. After the change the
> size of the every file under /usr/local/bin has been increased 10 times
> bigger



>   ******* Size of the files built in 5.1.1 *************
> -rwxr-xr-x   1 root     root        58318 Sep 23 15:53 snmpbulkget*
> -rwxr-xr-x   1 root     root        60867 Sep 23 15:53 snmpbulkwalk*

>  ******* Size of the files built in 5.0.6 *************
> -rwxr-xr-x    1 root     root       898575 Oct 26 15:42 snmpbulkget*
> -rwxr-xr-x    1 root     root       901870 Oct 26 15:42 snmpbulkwalk*


> There is no options of --disable-XXXX in 5.0.6. .... The --disable-XXXX
> options should have nothing to do with the file size under /usr/local/bin.

Quite correct - those configure settings shouldn't have any effect
on the binaries.  I'm actually very suspicious about the 5.1.1 figures.
60K feels *much* too small!


What does "file" on each of the above report?
And "ldd" ?

> Is there something I can do to reduce the size of the file under
> that directory?

It's probably worth running "strip" on those binaries.  That can
reduce things quite substantially, but does mean you wouldn't
be able to run them under a debugger.

Dave

Reply via email to