[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: Thu, 19 Dec 2019 19:10:00 -0500
User-agent: Cyrus-JMAP/3.1.7-694-gd5bab98-fmstable-20191218v1

On Sat, 2019 Dec 14 08:42-05:00, Bruno Haible wrote:
> > 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.
> I don't understand how that can be, because none of the Autoconf tests 

Hm. I'm no longer able to reproduce this result, so I may be 
misremembering that detail. At present, with my definition removed, I 
get build failures for test-pthread and test-pthread-rwlock (using 
"make -k").

> Can you please do a fresh start on this?
>   - Create a testdir for module 'pthread-rwlock'.
>   - Build it with -D_UNIX95_THREADS -D_XOPEN_SOURCE=600.

That gives me the same compile error as a full build:

source='/tmp/testdir/gltests/test-pthread.c' object='test-pthread.o' libtool=no 
DEPDIR=.deps depmode=aix /bin/sh /tmp/testdir/build-aux/depcomp \
xlc-wrap -DHAVE_CONFIG_H -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.o 
ERROR CCN3221 /tmp/testdir/gltests/test-pthread.c:35    Initializer must be a 
valid constant expression.
WARNING CCN3196 /tmp/testdir/gltests/test-pthread.c:56    Initialization 
between types "void*" and "unsigned long" is not allowed.
CCN0793(I) Compilation failed for file /tmp/testdir/gltests/test-pthread.c.
  Object file not created.
make[4]: *** [test-pthread.o] Error 12
make[4]: Leaving directory `/tmp/gnulib-build/gltests'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/tmp/gnulib-build/gltests'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/tmp/gnulib-build/gltests'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/gnulib-build'
make: *** [all] Error 2

Whatever magic exists to work around a missing PTHREAD_RWLOCK_INITIALIZER,
I'm not seeing it...


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]