This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: build broken for solaris


Or get rid of solaris_threads.c as in gc7 ...

Hans 

> -----Original Message-----
> From: java-owner@gcc.gnu.org [mailto:java-owner@gcc.gnu.org] 
> On Behalf Of Andreas Tobler
> Sent: Tuesday, September 12, 2006 11:51 AM
> To: java@gcc.gnu.org; Tom Tromey
> 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
> 
> 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]