Before applying any kernel patches, it is important to confirm that your current Linux distribution is capable of compiling a standard kernel. Often people report errors on the Openswan mailing lists that are really errors of their Linux system. Common problems include having a gcc
compiler that cannot build any kernel. Or having updated the gcc
compiler after building the kernel, so that the kernel and the modules are built with a different compiler. Or certain packages needed for building are not installed. Or because people are trying to compile linux-2.6.79-pre4-ac8
that was released five minutes ago.
However, the most common compile failure is due to missing header files for the GNU Math Precision library (gmp.h
). These are often located in a package named gmp-dev
or gmp-devel
, and not installed by default on most distributions.
Therefore, if you are going to compile your own kernel with KLIPS, it is recommended to first build a regular custom kernel. When this...