rendered paste bodyBT Linux # cat tc.patch
diff -uN Linux/Kernel/Dm-target.c.orig Linux/Kernel/Dm-target.c
--- Linux/Kernel/Dm-target.c.orig 2006-09-27 22:00:02.000000000 +0200
+++ Linux/Kernel/Dm-target.c 2006-09-27 21:55:04.000000000 +0200
@@ -29,6 +29,9 @@
int trace_level = 0;
#define MSG_PREFIX "truecrypt: "
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,18)
+#define DM_MSG_PREFIX MSG_PREFIX
+#endif
#define error(fmt, args...) printk(KERN_ERR MSG_PREFIX fmt, ## args)
#define trace(level, fmt, args...) level <= trace_level && printk(KERN_DEBUG MSG_PREFIX fmt, ## args)
#define dbg(fmt, args...) printk(KERN_DEBUG MSG_PREFIX fmt, ## args)
BT Linux # patch -p1<tc.patch
patching file Kernel/Dm-target.c
BT Linux # ./build.sh
Checking build requirements...
Building kernel module... Done.
Building truecrypt... In file included from ../../Crypto/Aesopt.h:144,
from ../../Crypto/Aescrypt.c:33:
../../Common/Endian.h:43:5: #error Byte order cannot be determined (BYTE_ORDER undefined)
make: *** [../../Crypto/Aescrypt.o] Error 1
Error: Failed to build truecrypt
BT Linux # uname -a
Linux BT 2.6.18-rc5 #4 SMP Mon Sep 18 17:58:52 GMT 2006 i686 athlon i386 GNU/Linux
BT Linux #