Looking to compile tcpdump and or libpcap on Ubuntu. Googling hasn't produced much helpful material. The goal is to update to latest stable release software and to learn compiling from source. I have tried to compile libpcap but I keep getting errors so I must be missing a dependency. Basically I thought I would be able to update libpcap and leave tcpdump 4.1.1 as is. I had installed flex and bison but they're not enough, errors still occur.
If you look below, the tcpdump version is 4.1.1, the current version is 4.2.1. The version of libpcap installed with tcpdump is 0.8, the current version of libpcap is 1.2.1.
$ apt-cache show tcpdump
Maintainer: Ubuntu Developers <firstname.lastname@example.org>
Original-Maintainer: Romain Francoise <email@example.com>
Depends: libc6 (>= 2.7), libpcap0.8 (>= 1.0.0), libssl1.0.0 (>= 1.0.0)
Suggests: apparmor (>= 2.3)
Description-en: command-line network traffic analyzer
This program allows you to dump the traffic on a network. tcpdump
is able to examine IPv4, ICMPv4, IPv6, ICMPv6, UDP, TCP, SNMP, AFS
BGP, RIP, PIM, DVMRP, IGMP, SMB, OSPF, NFS and many other packet
It can be used to print out the headers of packets on a network
interface, filter packets that match a certain expression. You can
use this tool to track down network problems, to detect attacks
or to monitor network activities.
Task: standard, kubuntu-mobile
Version: 4.2.1 / 1.2.1
Release Date: January 1, 2012
tcpdump-4.2.1.tar.gz (changelog) (PGP signature)
libpcap-1.2.1.tar.gz (changelog) (PGP signature)
tcpdump-workers.asc (tcpdump.org signing key)