-a isn't a valid test here, god knows why bash allows it http://bugzilla.netfilter.org/bugzilla/show_bug.cgi?id=569 --- Makefile.orig 2007-05-09 16:44:59.000000000 +0100 +++ Makefile 2007-05-09 16:45:06.000000000 +0100 @@ -79,7 +79,7 @@ # Generic test if arch wasn't found above ifneq ($(POINTERTEST),1) # Try to determine if kernel is 64bit and we are compiling for 32bit - ifeq ($(shell [ -a $(KERNEL_DIR)/include/asm ] && echo YES), YES) + ifeq ($(shell [ -d $(KERNEL_DIR)/include/asm ] && echo YES), YES) 64bitkernel := $(shell echo -e "\#include \n\#if BITS_PER_LONG == 64\nkernel_is_64bits\n\#endif" | $(CC) $(CFLAGS) -D__KERNEL__ -E - | grep kernel_is_64bits) ifdef 64bitkernel 32bituser := $(shell echo -e "\#include \n\#if !defined(__arch64__) && !defined(_LP64)\nuserspace_is_32bit\n\#endif" | $(CC) $(CFLAGS) -E - | grep userspace_is_32bit)