While trying to create a initrd enabled with dmraid genkernel fails during the dmraid compilation. genkernel --lvm2 --evms2 --dmraid --unionfs --linuxrc=/usr/local/src/initramfs/linuxrc --initramfs-overlay=/usr/local/src/initramfs/image/ --no-clean initrd * dmraid: >> Compiling... * ERROR: Failed to compile the "" target... * -- Grepping log... -- * WARNING: unionfs support is in active development and is not meant for general use. * DISABLING UNIONFS SUPPORT AT THIS TIME. * Gentoo Linux Genkernel; Version 3.3.10 * Running with options: --lvm2 --evms2 --dmraid --unionfs --linuxrc=/usr/local/src/initramfs/linuxrc --initramfs-overlay=/usr/local/src/initramfs/image/ --no-clean initrd * Linux Kernel 2.6.13-gentoo-r3 for x86... * WARNING: Failed to remount /boot RW! -- gcc -O2 -DDMRAID_NATIVE_LOG -DHAVE_GETOPTLONG -fPIC -Wall -Wundef -Wcast-align - Wwrite-strings -Winline -DDMRAID_TEST -O2 -D_LARGEFILE64_SOURCE -L/var/tmp/genk ernel/27333.12221.5464.19647/device-mapper/lib tools/dmraid.c -o tools/dmraid tools/dmraid.c:12:27: dmraid/dmraid.h: No such file or directory In file included from tools/dmraid.c:13: tools/commands.h:11:32: dmraid/lib_context.h: No such file or directory In file included from tools/dmraid.c:13: tools/commands.h:73: warning: `struct lib_context' declared inside parameter lis t tools/commands.h:73: warning: its scope is only this definition or declaration, which is probably not what you want tools/commands.h:105: warning: `struct lib_context' declared inside parameter li st tools/commands.h:108: warning: `struct lib_context' declared inside parameter li st tools/commands.h:109: warning: `struct lib_context' declared inside parameter li st In file included from tools/dmraid.c:14: tools/toollib.h:13: warning: `struct lib_context' declared inside parameter list tools/toollib.h:14: warning: `struct lib_context' declared inside parameter list tools/toollib.h:15: warning: `struct lib_context' declared inside parameter list tools/toollib.h:18: error: syntax error before "size_t" tools/toollib.h:18: warning: `struct lib_context' declared inside parameter list tools/toollib.h:19: warning: `struct lib_context' declared inside parameter list tools/dmraid.c: In function `main': tools/dmraid.c:23: warning: implicit declaration of function `libdmraid_init' tools/dmraid.c:23: warning: assignment makes pointer from integer without a cast tools/dmraid.c:34: warning: passing arg 1 of `handle_args' from incompatible poi nter type tools/dmraid.c:35: warning: implicit declaration of function `init_locking' tools/dmraid.c:36: warning: passing arg 1 of `perform' from incompatible pointer type tools/dmraid.c:39: warning: implicit declaration of function `libdmraid_exit' tools/dmraid.c:43: warning: implicit declaration of function `exit' tools/dmraid.c:43: error: `EXIT_SUCCESS' undeclared (first use in this function) tools/dmraid.c:43: error: (Each undeclared identifier is reported only once tools/dmraid.c:43: error: for each function it appears in.) tools/dmraid.c:43: error: `EXIT_FAILURE' undeclared (first use in this function) make[1]: *** [tools/dmraid] Error 1 -- ar: creating ../lib/libdmraid.a ranlib ../lib/libdmraid.a ../lib/libdmraid.a ../lib/libdmraid.a make[2]: Leaving directory `/var/tmp/genkernel/2598.9916.6035.6948/dmraid/1.0.0.rc9/lib' make[1]: Leaving directory `/var/tmp/genkernel/2598.9916.6035.6948/dmraid/1.0.0.rc9' * WARNING: unionfs support is in active development and is not meant for general use. * DISABLING UNIONFS SUPPORT AT THIS TIME. * Gentoo Linux Genkernel; Version 3.3.10 * Running with options: --lvm2 --evms2 --dmraid --unionfs --linuxrc=/usr/local/src/initramfs/linuxrc --initramfs-overlay=/usr/local/src/initramfs/image/ --no-clean initrd * ERROR: Failed to compile the "" target... * -- End log... --
Nevermind was using an old kernel.