[Defy Android Development] TJKV:
target thumb C: init <= system/core/init/builtins.c[COLOR="Red"]
target thumb C: init <= system/core/init/init.c
system/core/init/init.c: In function 'service_start':
system/core/init/init.c:275:9: warning: implicit declaration of function 'personality' [-Wimplicit-function-declaration]
system/core/init/init.c:276:31: error: 'ADDR_COMPAT_LAYOUT' undeclared (first use in this function)
system/core/init/init.c:276:31: note: each undeclared identifier is reported only once for each function it appears in
make: *** [/home/tejus/android/slim4.2/out/target/product/mb526/obj/EXECUTABLES/init_intermediates/init.o] Error 1[/COLOR]
make: *** Waiting for unfinished jobs....
CHK include/linux/version.h
UPD include/linux/version.h
HOSTCC scripts/unifdef
system/core/init/builtins.c: In function 'do_exec':
system/core/init/builtins.c:270:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
INSTALL include/asm-generic (34 files)
INSTALL include/drm (12 files)
INSTALL include/linux/byteorder (2 files)
INSTALL include/linux/can (4 files)
INSTALL include/linux/dvb (8 files)
INSTALL include/mtd (5 files)
INSTALL include/rdma (1 file)
INSTALL include/linux/hdlc (1 file)
INSTALL include/scsi (4 files)
INSTALL include/sound (9 files)
INSTALL include/linux/isdn (1 file)
INSTALL include/linux/netfilter (58 files)
INSTALL include/linux/netfilter_arp (2 files)
INSTALL include/linux/netfilter_bridge (16 files)
INSTALL include/video (3 files)
INSTALL include/linux/netfilter_ipv4 (15 files)
INSTALL include (0 file)
INSTALL include/xen (1 file)
INSTALL include/linux/netfilter_ipv6 (12 files)
INSTALL include/linux/nfsd (6 files)
INSTALL include/linux/raid (2 files)
INSTALL include/linux/spi (1 file)
INSTALL include/linux/sunrpc (1 file)
INSTALL include/linux/tc_act (6 files)
INSTALL include/linux/tc_ematch (4 files)
INSTALL include/linux/usb (8 files)
INSTALL include/linux/wimax (1 file)
INSTALL include/linux (354 files)
INSTALL include/asm (32 files)
make[1]: Leaving directory `/home/tejus/android/slim4.2/jordan-kernel'
external/sqlite/dist/sqlite3.c: In function 'pcache1Fetch':
external/sqlite/dist/sqlite3.c:37654:25: warning: suggest braces around empty body in an 'if' statement [-Wempty-body]
external/sqlite/dist/sqlite3.c:37656:25: warning: suggest braces around empty body in an 'if' statement [-Wempty-body]
external/sqlite/dist/sqlite3.c: At top level:
external/sqlite/dist/sqlite3.c:91943:1: warning: missing initializer [-Wmissing-field-initializers]
external/sqlite/dist/sqlite3.c:91943:1: warning: (near initialization for 'sqlite3Apis.aggregate_count') [-Wmissing-field-initializers]

real	16m15.853s
user	34m40.806s
sys	3m16.596s
tejus@Tejus-Ubuntu-Laptop:~/android/slim4.2$

The error happens in this part of the file init/init.c:

#ifdef __arm__
/*
* b/7188322 - Temporarily revert to the compat memory layout
* to avoid breaking third party apps.
*
* THIS WILL GO AWAY IN A FUTURE ANDROID RELEASE.
*
* http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=7dbaa466
* changes the kernel mapping from bottom up to top-down.
* This breaks some programs which improperly embed
* an out of date copy of Android's linker.
*/
int current = personality(0xffffFFFF);
personality(current | ADDR_COMPAT_LAYOUT);
#endif

Diff'ing my version of the file against the slimroms version, the above section is replaced by the following in slim's version:

umask(077);

Should I replace that portion with umask(077) too?