[Bug 3988] pth-2.0.2-r0 does not compile

bugzilla-daemon at treke.net bugzilla-daemon at treke.net
Mon Apr 7 12:30:15 UTC 2008


http://bugs.openembedded.net/show_bug.cgi?id=3988





--- Comment #4 from Claes Mogren <cm at acc.umu.se>  2008-04-07 12:30:15 ---
Based on some more trial and error I found that for some reason JB_PC and JB_SP
is undefined for me. Thanks to this thread:
http://www.ucdot.org/comments.pl?sid=768&op=&threshold=0&commentsort=0&mode=thread&pid=502#503
 I got a hint of what to set them to. The last comment says:

Have a look in uClibc/libc/sysdeps/linux/arm/crt0.S for the quick reference. 
Namely BP=r11, SP=r13, pc=r15. Looking at setjmp.S JB_SP=20, JB_PC=21, JB_BP=19

I changed the code in pth_mctx.c to:

#if defined(__GLIBC__) && defined(__GLIBC_MINOR__) \
    && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 0 /* && defined(JB_PC) &&
defined(JB_SP) */
    mctx->jb[0].__jmpbuf[21] = (int)func;
    mctx->jb[0].__jmpbuf[20] = (int)sk_addr_hi;
#elif defined(__GLIBC__) && defined(__GLIBC_MINOR__) \
    && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 0 && defined(__mc68000__)

and now I at least got past compiling it. Wouldn't surprise me if everything
breaks because of it, but at least I know where to start looking. Just wonder
why my build env doesn't get those offsets defined for arm.


-- 
Configure bugmail: http://bugs.openembedded.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.




More information about the Openembedded-issues mailing list