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

Submitter:  -Deleted Account- <scandium>
Submitted:  Tue 09 Mar 2004 05:37:16 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned 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>
Group 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>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

 

Follow 2 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2004-03-12 rweather StatusNone Fixed
    Open/ClosedOpen Closed

Back to the top

Powered by Savane 3.13-4b48.
Corresponding source code