Next: Compilation, Up: Installation from the sources [Contents][Index]
If you want to compile from Git sources, you need to bootstrap the
./configure
file first.
$ autoreconf -i -f
For all available configure options run:
$ ./configure --help
If you have trouble with unknown syscalls under valgrind, disable recvmmsg by
adding a parameter --enable-recvmmsg=no
to configure.
Knot DNS has also support for link time optimizations.
You can enable it by the configure parameter ./configure --enable-lto=yes
.
It is however disabled by default as it is known to be broken in some compiler
versions and may result in an unexpected behaviour.
If you want to add debug messages, there are two steps to do that.
First you have to enable modules you are interested in.
Available are: server, zones, xfr, packet, dname, rr, ns, hash, compiler
.
You can combine multiple modules as a comma-separated list.
Then you can narrow the verbosity of the debugging message by specifying the
verbosity as brief, verbose, details
.
For example:
$ ./configure --enable-debug=server,packet --enable-debuglevel=brief $ ./configure --enable-debug=server,packet --enable-debuglevel=verbose
For more detailed information, see Debug messages.
In most simple case you can just run configure without any options.
$ ./configure