tcpdump mailing list archives

Re: Building tcpdump with static libraries


From: Ajith Adapa <adapa.ajith () gmail com>
Date: Mon, 28 May 2012 14:58:26 +0530

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 interface ] [ -M secret ]
        [ -r file ] [ -s snaplen ] [ -T type ] [ -w file ]
        [ -W filecount ] [ -y datalinktype ] [ -z command ]
        [ -Z user ] [ expression ]

I even tried adding -static flag but I have got errors regarding dlopen and
dlclose. Not sure of exact error but will try again the same.

Regards,
Ajith
--------------------------------------------
codingfreak.in <http://www.codingfreak.in>


On Mon, May 28, 2012 at 1:56 PM, Guy Harris <guy () alum mit edu> wrote:


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)
Linked to old version.

Just because the shared library file happens to end with ".0.8", that
doesn't mean that it's version 0.8, or version 0.8.x for any value of x, of
libpcap.  I don't know what distribution Ajith is using, but, for example,
Debian still calls the shared library "libpcap.so.0.8" even though it's
based, presumably, on libpcap 1.1.1 in stable:

       http://packages.debian.org/stable/libs/libpcap0.8

and libpcap 1.2.1 in testing:

       http://packages.debian.org/testing/libs/libpcap0.8

and unstable:

       http://packages.debian.org/unstable/libs/libpcap0.8

and Ubuntu, being Debian-based, does the same.  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 the library won't work with an *earlier* shared
version of the library if they use those new routines or capabilities, but,
modulo library bugs, the binary of an app built with an *earlier* shared
version of the library should work with a *later* shared version of the
library).-
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.


Current thread: