> Thanks for the reply,
> 
> I have generated Makefile from ./configure and doing a tcpdump build.
> 
> Now if I build tcpdump it is linked with shared libraries of libpcap and
> others as shown below. Is it possible for me to create tcpdump binary
> linking up with all static libraries ?
> 
> $ ldd tcpdump
>     linux-gate.so.1 =>  (0x00816000)
>     libcrypto.so.0.9.8 => /lib/i686/cmov/libcrypto.so.0.9.8 (0x00b95000)
>     libpcap.so.0.8 => /usr/lib/libpcap.so.0.8 (0x002c9000)
>     libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0x00110000)
>     libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0x00340000)
>     libz.so.1 => /lib/libz.so.1 (0x00398000)
>     /lib/ld-linux.so.2 (0x008c1000)
> 
> 
> Regards,
> Ajith
> --------------------------------------------
> codingfreak.in <http://www.codingfreak.in>
> 
> 
> On Sun, May 27, 2012 at 8:59 PM, <[email protected]> wrote:
> 
> > Użytkownik Ajith Adapa <[email protected]> napisał:
> > >Hi,
> > >
> > >Can I know how to build tcpdump with static libraries rather than with
> > >shared libraries ?
> > >
> > >Regards,
> > >Ajith
> > >--------------------------------------------
> > >codingfreak.in <http://www.codingfreak.in>
> > >-
> > >This is the tcpdump-workers list.
> > >Visit https://cod.sandelman.ca/ to unsubscribe.
> > >
> >
> > I think that is default kind library, when You use Makefile generated from
> > ./configure  (from source:  git clone git://bpf.tcpdump.org/tcpdump).
> > -
> > This is the tcpdump-workers list.
> > Visit https://cod.sandelman.ca/ to unsubscribe.
> >
> -
> This is the tcpdump-workers list.
> Visit https://cod.sandelman.ca/ to unsubscribe.
> 

I think than You run older version tcpdump:

This is the answer:
libpcap.so.0.8 => /usr/lib/libpcap.so.0.8 (0x002c9000)
Linked to old version.

You must :
1) Download 
git clone git://bpf.tcpdump.org/libpcap 
git clone git://bpf.tcpdump.org/tcpdump
2) Uninstall current version tcpdump and libpcap from system. Make sure than 
You remove (or move to old) libpcap and tcpdump from (find / -name "libpcap.*").
3) Install libpcap and tcpdump  from downloaded source. After install libpcap 
remove libpcap.so.* from libpcap dir to sure than tcpdump is not builded from 
*.so libs.

Cheers Artur Kielak

-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.

Reply via email to