Compile time error, no vmlinuz (2.6.7-bk2)

From: Bob Gill
Date: Sat Jun 19 2004 - 18:47:36 EST


Hi. I recently built 2.6.7-bk2 (or at least tried to). It refuses to
create the compressed kernel image (the system map and ramdisk image
build though). I suspect the problem springs from the compile-time
error message I get when I build:

CC security/dummy.o
CC security/selinux/avc.o
CC security/selinux/hooks.o
security/selinux/hooks.c:4130: error: `selinux_netlink_send' undeclared
here (not in a function)
security/selinux/hooks.c:4130: error: initializer element is not
constant
security/selinux/hooks.c:4130: error: (near initialization for
`selinux_ops.netlink_send')
security/selinux/hooks.c:4131: error: `selinux_netlink_recv' undeclared
here (not in a function)
security/selinux/hooks.c:4131: error: initializer element is not
constant
security/selinux/hooks.c:4131: error: (near initialization for
`selinux_ops.netlink_recv')
make[2]: *** [security/selinux/hooks.o] Error 1
make[1]: *** [security/selinux] Error 2
make: *** [security] Error 2
make[1]: `arch/i386/kernel/asm-offsets.s' is up to date.
CHK include/linux/compile.h
CC security/selinux/hooks.o
security/selinux/hooks.c:4130: error: `selinux_netlink_send' undeclared
here (not in a function)
security/selinux/hooks.c:4130: error: initializer element is not
constant
security/selinux/hooks.c:4130: error: (near initialization for
`selinux_ops.netlink_send')
security/selinux/hooks.c:4131: error: `selinux_netlink_recv' undeclared
here (not in a function)
security/selinux/hooks.c:4131: error: initializer element is not
constant
security/selinux/hooks.c:4131: error: (near initialization for
`selinux_ops.netlink_recv')
make[2]: *** [security/selinux/hooks.o] Error 1
make[1]: *** [security/selinux] Error 2
make: *** [security] Error 2
make[1]: `arch/i386/kernel/asm-offsets.s' is up to date.
CC [M] arch/i386/kernel/msr.o
CC [M] arch/i386/kernel/cpuid.o
CC [M] fs/binfmt_aout.o

I grokked lkml a bit for a patch but found none. hooks.c seems to have
selinux_netlink_send defined at line 3366 and selinux_netlink_recv seems
to be defined at line 3381 and I didn't see an #ifdef/#endif compiler
directive wrapped around them. I'm compiling SELinux into the kernel,
but haven't enabled it at boot time on my system (yet). 2.6.7 builds
ok.

Please mail me directly as I'm not on the list, TIA,

Bob

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/