[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: IBM z/OS compatibility issues - pthread

From: Daniel Richard G.
Subject: Re: IBM z/OS compatibility issues - pthread
Date: Fri, 13 Dec 2019 16:10:21 -0500
User-agent: Cyrus-JMAP/3.1.7-680-g58d4e90-fmstable-20191213v1

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:

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 
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 Richard G. || address@hidden
My ASCII-art .sig got a bad case of Times New Roman.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]