On Wednesday 05 April 2006 05:59, D. Bahi wrote:
> 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

> 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)

Yes, it is intended to resolve there.

> it doesn't get 
> the EVALUE macros or the extern of 'errno' properly.
>
> and still, i get this at link:

Uhh, always welcome news from FC :-(.

"extern int errno;" doesn't exist any more since ages (maybe even for libc5, 
I'd guess). Since errno must be thread-local, it used to be declared as:

#define errno (*(__errno_location()))

but from the messages I guess it's being declared as something like (I don't 
know the exact syntax):

extern __thread int errno;

So don't declare it,nor include <linux/errno.h>; include <errno.h> instead, 
which should contain the correct definition.

If you get other link errors, send us the result of 

$ strings $(which ld) > ldStrings
$ bzip2 ldStrings

and I'll try to write a patch.

> /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

-- 
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!".
Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894)
http://www.user-mode-linux.org/~blaisorblade

        

        
                
___________________________________ 
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB 
http://mail.yahoo.it



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user

Reply via email to