Hi Bruno, On Fri, 2019 Dec 13 07:43-05:00, Bruno Haible wrote: > > > I don't see "PTHREAD_RWLOCK_INITIALIZER_NP" anywhere in a clean Gnulib > > tree, so I'm not sure how this could already be addressed... > > The gnulib module 'pthread-rwlock' fixes this issue in a platform-independent > way (by overriding pthread_rwlock_t). That's the reason why you don't see > PTHREAD_RWLOCK_INITIALIZER_NP in the gnulib source code.
Something must be missing, because if I remove my conditional definition of PTHREAD_RWLOCK_INITIALIZER from pthread.in.h, test-pthread-rwlock is no longer in the set of tests built by default. If I then attempt to build it manually, I get the following error: source='/tmp/testdir/gltests/test-pthread-rwlock.c' object='test-pthread-rwlock.o' libtool=no \ DEPDIR=.deps depmode=aix /bin/sh /tmp/testdir/build-aux/depcomp \ xlc-wrap -DHAVE_CONFIG_H -DEXEEXT=\"\" -I. -I/tmp/testdir/gltests -I.. -DGNULIB_STRICT_CHECKING=1 -DIN_GNULIB_TESTS=1 -I. -I/tmp/testdir/gltests -I.. -I/tmp/testdir/gltests/.. -I../gllib -I/tmp/testdir/gltests/../gllib -D_UNIX95_THREADS -D_XOPEN_SOURCE=600 -DNSIG=39 -qhaltonmsg=CCN3296 -g -q64 -qfloat=ieee -qlanglvl=extc99 -qenumsize=4 -c -o test-pthread-rwlock.o /tmp/testdir/gltests/test-pthread-rwlock.c ERROR CCN3221 /tmp/testdir/gltests/test-pthread-rwlock.c:271 Initializer must be a valid constant expression. CCN0793(I) Compilation failed for file /tmp/testdir/gltests/test-pthread-rwlock.c. Object file not created. make: *** [test-pthread-rwlock.o] Error 12 (Note that all my Gnulib work is done in a testdir tree created using gnulib-tool; my presumption is that this should set up everything correctly from the get-go.) --Daniel -- Daniel Richard G. || sk...@iskunk.org My ASCII-art .sig got a bad case of Times New Roman.