Debian, Suse, and other distributions with recent 2.6.29 and higher kernels, package their kernel headers in a new architecture-specific manner, which breaks compatibility with earlier established methods of building modules for kernels.
Prior to CDP 4, attempting to build kernel modules on these Linux distributions can prove unsuccessful.
This is the excerpted output from one attempt. In our example here, we use r1soft-cki, but this applies for r1soft-setup in CDP as well.
This issue is known to affect Debian, Suse, and other distros using separate architecture-specific module directories in their header packages. Thanks to Chris at Interspire.com for working closely with us to discover a resolution.
The Debian developers have removed the common/architecture specific symlinks for the kernel headers in 2.6.29 and higher, which has broken parts of the kernel module building process, including the R1Soft CDP Agent module:
(refer to here: http://bugs.debian.org/cgi-bin/bugrepaort.cgi?bug=521515)
Basically, there are now two kernel module directories, both of which contain necessary files:
drwxr-xr-x 4 root root 4096 2010-01-20 05:43 linux-headers-2.6.32-trunk-amd64
drwxr-xr-x 4 root root 4096 2010-01-20 05:47 linux-headers-2.6.32-trunk-common
Copying the contents of these two directories into a temporary directory, with the proper makefile chosen, will allow the r1soft-cki process to compile a module successfully:
Now, point the r1soft-cki utility to use your temporary directory, with the following flags added to the command:
After a successful build, you can delete the temporary directory, restart the agent, and enjoy Continuous Data Protection!