build broken for solaris
Andreas Tobler
toa@pop.agri.ch
Tue Sep 12 18:50:00 GMT 2006
Hi Tom,
this patch:
2006年08月21日 Bryce McKinlay <mckinlay@redhat.com>
PR libgcj/13212:
* configure.ac: Check for pthread_getattr_np(). Remove
GC_PTHREAD_SYM_VERSION detection.
* include/gc.h (GC_register_my_thread, GC_unregister_my_thread,
GC_get_thread_stack_base): New declarations.
* pthread_support.c (GC_register_my_thread,
GC_unregister_my_thread,
GC_get_thread_stack_base): New functions.
(GC_delete_thread): Don't try to free the first_thread.
* misc.c (GC_init_inner): Use GC_get_thread_stack_base() if
possible.
(pthread_create_, constr): Removed.
(pthread_create): Don't rename.
* include/gc_ext_config.h.in: Rebuilt.
* include/gc_pthread_redirects.h (pthread_create): Define
unconditionally.
* include/gc_config.h.in: Rebuilt.
* configure: Rebuilt.
Breaks build on libjava and tests in boehm-gc since
GC_register_my_thread, GC_unregister_my_thread, GC_get_thread_stack_base
are only implemented in pthread_support.c, they result in unresulved
symbols when one links agains libgcjgc.so.
Solaris instead uses solaris_threads.c.
Now we have either to reduce this patch to only support pthreads or
implement it for solaris_threads.c too.
Andreas
More information about the Java
mailing list