/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../x86_64-pc-linux-gnu/bin/ld: print-babel.o: in function format_address:./print-babel.c:132: error: undefined reference to 'ip6addr_string'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../x86_64-pc-linux-gnu/bin/ld: print-babel.o: in function format_prefix:./print-babel.c:121: error: undefined reference to 'ip6addr_string'
collect2: ld returned 1 exit status
As reported here: https://bugs.gentoo.org/395031
Fix building with --disable-ipv6
The patch was provided by Andrew Savchenko.
> The patch was provided by Andrew Savchenko.
...who really needs to be less aggressive about disabling IPv6; just because the routers where you're working and at your home don't support it, you don't need to disable support for it in, say, libpcap and tcpdump (what if you want to use tcpdump to read a capture file from somewhere that *does* support it?).
Or perhaps Gentoo just has a big IPv6 switch, so if you turn it off for one part of the system it's turned off globally, so the default behavior turns it off for libpcap and tcpdump if you turn it off for anything.
But I digress.
The Babel printer isn't even *called* if IPv6 isn't enabled; in the trunk, and after the 4.2.0 release in the 4.2 branch, print-babel.c isn't built if IPv6 support isn't enabled, so there's no need to patch the dissector.
Administrators of the "tcpdump" SourceForge project have superseded this tracker item (formerly artifact 3461436, now patch 123) with issue 282 of the "tcpdump" GitHub project.