bugDotGNU Portable.NET - Bugs: bug #8074, pnet does not build with threads...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #8074: pnet does not build with threads support against a glibc with nptl

Submitted by:  -Deleted Account- <scandium>
Submitted on:  Tue 09 Mar 2004 05:37:16 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Fri 12 Mar 2004 12:15:18 AM UTC, comment #1:

The problem appears to be that the nptl pthread.h
defines PTHREAD_RWLOCK_INITIALIZER outside of the
protection of #ifdef __USE_UNIX98. So, on your
system the macro is defined but not the pthread_rwlock_t
type. I've worked around this in pnet, but you may want
to contact the glibc/nptl authors and report this as a bug
in their headers.

Rhys Weatherley <rweather>
Project Administrator
Tue 09 Mar 2004 05:37:16 PM UTC, original submission:

pnet fails when compiling against a glibc that has NPTL built-in, the error is:

-----
make[1]: Entering directory `/home/rainer/pnet/cvs-src/pnet/support'
gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../libgc/include -I../include -DCSCC_LIB_PREFIX=\"/usr/local/lib\" -DCSCC_BIN_PREFIX=\"/usr/local/bin\" -DCSCC_DATA_PREFIX=\"/usr/local/share\" -DCSCC_HOST_TRIPLET=\"i686-pc-linux-gnu\" -g -O2 -Wall -c hb_gc.c
In file included from thr_defs.h:35,
from hb_gc.c:25:
pt_defs.h:89: error: syntax error before "_ILRWLock"
pt_defs.h:89: warning: type defaults to `int' in declaration of `_ILRWLock'
pt_defs.h:89: warning: data definition has no type or storage class
make[1]: *** [hb_gc.o] Error 1
make[1]: Leaving directory `/home/rainer/pnet/cvs-src/pnet/support'
make: *** [all-recursive] Error 1
-----

There are currently two work arounds for this problem:
1. configure with --enable-threads=none
or
2. in support/pt_defs.h remove those three lines:
(it will compile and threads seem to work then)
-----
#ifdef PTHREAD_RWLOCK_INITIALIZER
#define IL_HAVE_RWLOCKS
#endif
-----

-Deleted Account- <scandium>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 2 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Fri 12 Mar 2004 12:15:18 AM UTCrweatherStatusNone=>Fixed
  Open/ClosedOpen=>Closed

Back to the top


Powered by Savane 3.1-cleanup1