This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
build broken for solaris
- From: Andreas Tobler <toa at pop dot agri dot ch>
- To: java at gcc dot gnu dot org, Tom Tromey <tromey at redhat dot com>
- Date: Tue, 12 Sep 2006 20:50:47 +0200
- Subject: build broken for solaris
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