tcpdump mailing list archives

Re: building libpcap without usb support


From: Michael Richardson <mcr () sandelman ca>
Date: Sun, 06 Jul 2014 17:17:15 -0400


Guy Harris <guy () alum mit edu> wrote:
    >> It appears that on Linux there is no way to build libpcap without USB
    >> support.  There is no --disable-usb that I can see in ./configure, and
    >> it appears that if you don't have the right headers, you just fail.
    >> (Or did I miss something?)

    > The configure script should probably check for the necessary headers,
    > and build the USB printer only if they're present.

The headers are there, so it gets detected and configured, it's just that on
some slightly older distros (such as ubuntu 12.04, which is what's in
Travis-CI), you can't install the libusb-dev libraries for both :i386 and
:amd64  at the same time.

So if you build something, tcpdump, my uml_netjig, etc. that needs -lpcap,
you can't build it for both -m32 and -m64 without rejigging libraries.

Since I don't need pcap-usb support, and I'm building libpcap from source
anyway as I need the latest one, I'm happy to simply turn off usb support.

--
]               Never tell me the odds!                 | ipv6 mesh networks [
]   Michael Richardson, Sandelman Software Works        | network architect  [
]     mcr () sandelman ca  http://www.sandelman.ca/        |   ruby on rails    [

_______________________________________________
tcpdump-workers mailing list
tcpdump-workers () lists tcpdump org
https://lists.sandelman.ca/mailman/listinfo/tcpdump-workers


Current thread: