Re: [tcpdump-workers] Building tcpdump with static libraries

2012-05-29 Thread David Laight
> Can I know how to build tcpdump with static libraries rather than with > shared libraries ? Why are you trying to do this. As Guy says in his recent posts you can't (and shouldn't) try to link statically to all the system libraries. If you are trying to link with a specific version of libpcap

Re: [tcpdump-workers] Building tcpdump with static libraries

2012-05-28 Thread Guy Harris
On May 28, 2012, at 8:01 AM, Ajith Adapa wrote: > I getting following error. Seems directly using static flag wont solve > > /Ajith/LABS/submission/tcpdump/./addrtoname.c:728: warning: Using > 'getservent' in statically linked applications requires at runtime the > shared libraries from the glib

Re: [tcpdump-workers] Building tcpdump with static libraries

2012-05-28 Thread Guy Harris
On May 28, 2012, at 2:28 AM, Ajith Adapa wrote: > I am currently building tcpdump on Ubuntu Given the "libpcap.so.0.8", I suspected you were either using Debian or a Debian derivative such as Ubuntu. > $ ./tcpdump -h > tcpdump version 4.4.0-PRE_GIT_2012_05_28 OK, that's a *VERY* recent versio

Re: [tcpdump-workers] Building tcpdump with static libraries

2012-05-28 Thread Michael Richardson
> "Guy" == Guy Harris writes: Guy>and Ubuntu, being Debian-based, does the same. Presumably the Guy>version number didn't change because the binary interface to the Guy>library hasn't changed in a backwards-incompatible fashion for Guy>ages (new routines and other new capabil

Re: [tcpdump-workers] Building tcpdump with static libraries

2012-05-28 Thread Michael Richardson
> "Ajith" == Ajith Adapa writes: Ajith> Actually I cloned the from git repository - git://github.com/mcr/tcpdump.git. Ajith> Then made a configure and make. Ajith> Is this git repository different from the one you are sharing ? This git repo is pushed from the master at bpf.tcp

Re: [tcpdump-workers] Building tcpdump with static libraries

2012-05-28 Thread Romain Francoise
Guy Harris writes: > Presumably the version number didn't change because the binary interface > to the library hasn't changed in a backwards-incompatible fashion for > ages (new routines and other new capabilities have been added, so the > binary of an app built with a *later* shared version of t

Re: [tcpdump-workers] Building tcpdump with static libraries

2012-05-28 Thread Ajith Adapa
Look for site http://www.tcpdump.org/. > > git clone git://bpf.tcpdump.org/libpcap > > git clone git://bpf.tcpdump.org/tcpdump These are Current Development Version. > > Cheers Artur Kielak I am trying on NIGHTLY BUILD :) I even tried using -static flag in Makefile I getting following error. Se

Re: [tcpdump-workers] Building tcpdump with static libraries

2012-05-28 Thread Artur Kielak
> > On May 27, 2012, at 11:31 PM, Artur Kielak wrote: > > > I think than You run older version tcpdump: > > You can't use ldd to find out the version of tcpdump; you have to run > "tcpdump -h" to get the version of tcpdump. > > > This is the answer: > > libpcap.so.0.8 => /usr/lib/libpcap.so.0.

Re: [tcpdump-workers] Building tcpdump with static libraries

2012-05-28 Thread Ajith Adapa
Hi, I am currently building tcpdump on Ubuntu 10.04 - 03 edition. $ ./tcpdump -h tcpdump version 4.4.0-PRE_GIT_2012_05_28 libpcap version 1.0.0 Usage: tcpdump [-aAbdDefhHIKlLnNOpqRStuUvxX] [ -B size ] [ -c count ] [ -C file_size ] [ -E algo:secret ] [ -F file ] [ -G seconds ] [ -i

Re: [tcpdump-workers] Building tcpdump with static libraries

2012-05-28 Thread Guy Harris
On May 27, 2012, at 11:31 PM, Artur Kielak wrote: > I think than You run older version tcpdump: You can't use ldd to find out the version of tcpdump; you have to run "tcpdump -h" to get the version of tcpdump. > This is the answer: > libpcap.so.0.8 => /usr/lib/libpcap.so.0.8 (0x002c9000) > Lin

Re: [tcpdump-workers] Building tcpdump with static libraries

2012-05-28 Thread Artur Kielak
> Hi, > > Thanks for the reply - Artur Kielak > > Actually I cloned the from git repository - git://github.com/mcr/tcpdump.git. > Then made a configure and make. > > Is this git repository different from the one you are sharing ? > > Regards, > Ajith > --

Re: [tcpdump-workers] Building tcpdump with static libraries

2012-05-28 Thread Guy Harris
On May 27, 2012, at 7:40 PM, Ajith Adapa wrote: > 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 ? You would have to modify the Makefile by hand to statically

Re: [tcpdump-workers] Building tcpdump with static libraries

2012-05-28 Thread Ajith Adapa
Hi, Thanks for the reply - Artur Kielak Actually I cloned the from git repository - git://github.com/mcr/tcpdump.git. Then made a configure and make. Is this git repository different from the one you are sharing ? Regards, Ajith codingfreak.in

Re: [tcpdump-workers] Building tcpdump with static libraries

2012-05-27 Thread Artur Kielak
> 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 ? > > $ ld

Re: [tcpdump-workers] Building tcpdump with static libraries

2012-05-27 Thread Ajith Adapa
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 linu

Re: [tcpdump-workers] Building tcpdump with static libraries

2012-05-27 Thread kielaka
Użytkownik Ajith Adapa napisał: >Hi, > >Can I know how to build tcpdump with static libraries rather than with >shared libraries ? > >Regards, >Ajith > >codingfreak.in >- >This is the tcpdump-workers list. >Visit https://cod.s

[tcpdump-workers] Building tcpdump with static libraries

2012-05-27 Thread Ajith Adapa
Hi, Can I know how to build tcpdump with static libraries rather than with shared libraries ? Regards, Ajith codingfreak.in - This is the tcpdump-workers list. Visit https://cod.sandelman.ca/ to unsubscribe.