Jeff Dike wrote: > On Tue, Apr 04, 2006 at 04:48:20PM -0400, D. Bahi wrote: > >> arch/um/os-Linux/sys-i386/registers.c: In function 'get_thread_regs': >> <...snip...> >> arch/um/os-Linux/sys-i386/registers.c:139: error: 'JB_BP' undeclared >> (first use in this function) >> make[4]: *** [arch/um/os-Linux/sys-i386/registers.o] Error 1 >> make[3]: *** [arch/um/os-Linux/sys-i386] Error 2 >> make[2]: *** [arch/um/os-Linux] Error 2 >> make[1]: *** [build] Error 2 >> > > You need this patch: > thanks jeff, the JB_ patches almost get me there.
i found that i had to add the attached patch - to handle errno usage in tls.c it seems that <linux/unistd.h> includes <asm/unistd.h> and if this is getting resolved to the system header area (which it seems to be) it doesn't get the EVALUE macros or the extern of 'errno' properly. and still, i get this at link: /usr/bin/ld: errno: TLS definition in /lib/libc.so.6 section .tbss mismatches non-TLS reference in arch/um/os-Linux/built-in.o /lib/libc.so.6: could not read symbols: Bad value collect2: ld returned 1 exit status nm: '.tmp_vmlinux1': No such file No valid symbol. make[2]: *** [.tmp_kallsyms1.S] Error 1 make[1]: *** [build] Error 2
diff -Naur linux-2.6.17-rc1/arch/um/os-Linux/sys-i386/tls.c~ linux-2.6.17-rc1/arch/um/os-Linux/sys-i386/tls.c --- linux-2.6.17-rc1/arch/um/os-Linux/sys-i386/tls.c~ 2006-04-04 23:28:53.000000000 -0400 +++ linux-2.6.17-rc1/arch/um/os-Linux/sys-i386/tls.c 2006-04-04 23:27:02.000000000 -0400 @@ -1,7 +1,10 @@ #include <linux/unistd.h> +#include <linux/errno.h> #include "sysdep/tls.h" #include "user_util.h" +extern int errno; + static _syscall1(int, get_thread_area, user_desc_t *, u_info); /* Checks whether host supports TLS, and sets *tls_min according to the value
signature.asc
Description: OpenPGP digital signature