Author

Topic: Trouble Compiling from Source: tcpdump, libpcap (Read 1963 times)

full member
Activity: 196
Merit: 100
Web Dev, Db Admin, Computer Technician
February 22, 2012, 10:42:38 PM
#1
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.

Code:
$ apt-cache show tcpdump
Package: tcpdump
Priority: standard
Section: net
Installed-Size: 1060
Maintainer: Ubuntu Developers
Original-Maintainer: Romain Francoise
Architecture: amd64
Version: 4.1.1-2ubuntu2
Depends: libc6 (>= 2.7), libpcap0.8 (>= 1.0.0), libssl1.0.0 (>= 1.0.0)
Suggests: apparmor (>= 2.3)
Filename: pool/main/t/tcpdump/tcpdump_4.1.1-2ubuntu2_amd64.deb
Size: 393778
MD5sum: 9da2f2e39c365aef92a7ddf39edf4720
SHA1: 15426551551032bf10801309fb938165b2aec47f
SHA256: 71072e8c0a29f04b9499229c04aa0b62d2022ceeff5f9a3d9770d8b9124b63b3
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
 types.
 .
 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.
Homepage: http://www.tcpdump.org/
Description-md5: f01841bfda357d116d7ff7b7a47e8782
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Supported: 18m
Task: standard, kubuntu-mobile

Quote
LATEST RELEASE
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)
http://www.tcpdump.org
Jump to: