libgcj/98: pthread_mutex_init in libjava/posix-threads.cc

joerg.brunsmann@fernuni-hagen.de joerg.brunsmann@fernuni-hagen.de
Thu Nov 11 06:30:00 GMT 1999


>Number:         98
>Category:       libgcj
>Synopsis:       pthread_mutex_init in libjava/posix-threads.cc
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    tromey
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Nov 11 06:30:00 PST 1999
>Closed-Date:
>Last-Modified:
>Originator:     joerg.brunsmann@fernuni-hagen.de
>Release:        libgcj-snapshot-1999-11-09
>Organization:
>Environment:
sparc/Solaris 2.7
>Description:
/usr/include/pthread.h on solaris shows:

int     pthread_mutex_init(pthread_mutex_t *mutex,
        const pthread_mutexattr_t *attr);

In posix-threads you say in function

_Jv_MutexInit (_Jv_Mutex_t *mu)

line 168:

  pthread_mutex_init (mu, val);

which yields this error:

/home/joerg/egcs.compile/libgcj/libjava/posix-threads.cc: In function `void _Jv_MutexInit (_Jv_Mutex_t *)':
/home/joerg/egcs.compile/libgcj/libjava/posix-threads.cc:168: cannot convert `_Jv_Mutex_t *' to `pthread_mutex_t *' for argument `1' to `pthread_mutex_init (pthread_mutex_t *, const pthread_mutexattr_t *)'
>How-To-Repeat:
configure with

--enable-threads=posix --enable-java-gc=boehm 
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the Java-prs mailing list