For compiling the source code, you need to have the following packages available (in addition to the standard development environment):
UDNS is only needed for DNS SRV support and can be disabled in the Makefile (see -DHAVE_UDNS).