[uClibc]longjmp not found ...

Stefan Soucek ssoucek at coactive.com
Wed Feb 13 18:16:33 UTC 2002


Seems like I've missed that symbol when I renamed longjmp() to __libc_longjmp() to make linuxthreads happy.

This should do it then:

diff -u -b -B -w -p -u -r1.2 longjmp.c
--- longjmp.c	2002/02/13 01:51:28	1.2
+++ longjmp.c	2002/02/13 18:11:57
@@ -44,5 +44,6 @@ void __uClibc_longjmp (sigjmp_buf env, i
 }
 
 weak_alias (__libc_longjmp, _longjmp)
+weak_alias (__libc_longjmp, longjmp)
 weak_alias (__libc_longjmp, siglongjmp)
 weak_alias (__libc_longjmp, __libc_siglongjmp)

-Stefan

> -----Original Message-----
> From: Brian Stafford [mailto:brian.stafford at office-logic.com]
> Sent: Wednesday, February 13, 2002 8:47 AM
> To: uC-libc Mailing List
> Subject: [uClibc]longjmp not found ...
> 
> 
> Hi all,
> 
> I expect I missed something obvious, but ...
> 
> I updated uClibc from today's CVS.  This built and installed 
> OK.  then I 
> updated busybox from CVS and tried to build that.  I get 
> complaints that the 
> linker cannot resolve longjmp.
> 
> nm libc.a shows
> 
> longjmp.o:
>           U _GLOBAL_OFFSET_TABLE_
> 00000000 T __libc_longjmp
> 00000000 W __libc_siglongjmp
>           U __longjmp
> 00000000 W _longjmp
> 00000000 W siglongjmp
>           U sigprocmask
> 
> 
> so it would seem I have siglongjmp, _longjmp and __longjmp 
> but no longjmp.  
> setjmp.h appears to have no macros defining longjmp to one 
> the alternatives 
> either.  What have I missed?
> 
> Brian Stafford
> _______________________________________________
> uClibc mailing list
> uClibc at uclibc.org
> http://uclibc.org/mailman/listinfo/uclibc
> 



More information about the uClibc mailing list