This is the mail archive of the java-prs@sourceware.cygnus.com 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]

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



>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:

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