From: clerch@triant.com (Cameron Lerch)
Subject: Bug found with Compaq C V6.4-014 on Compaq Tru64 UNIX V5.1A (Rev. 1885) in pthread.h
Date: 24 May 2002 16:13:28 -0700 [thread overview]
Message-ID: <1a193c94.0205241513.60ee1027@posting.google.com> (raw)
I'm not sure if Compaq has a formal bug report system for Tru64? Is
this
the proper place to post this?
It appears as though there is a typo in pthread.h
--Line 279--
#if defined (__cplusplus) || defined (__DECCXX)
# define _PTHREAD_ENV_CXX
#elif defined (__DECC) || defined (__decc)
# define _PTHREAD_ENV_DECC
#endif
note that _PTHREAD_ENV_CXX, and not _PTHREAD_ENV_DECCXX, is defined.
--Line 330--
#if defined (_PTHREAD_ENV_UNIX)
# if defined (_OSF_SOURCE) && defined (_PTHREAD_ENV_ALPHA)
# if defined (_PTHREAD_ENV_DECC) || defined (_PTHREAD_ENV_DECCXX)
# include <c_asm.h>
# define _PTHREAD_USE_ASM_ 1
# endif
# endif
and note how #include <c_asm.h> is never reached because we've defined
_PTHREAD_ENV_CXX and not _PTHREAD_ENV_DECCXX. Both _PTHREAD_ENV_CXX
and
_PTHREAD_ENV_DECCXX are used a several times in pthread.h, so it
appears
there was a conflict as to what the _PTHREAD_ENV define would be for
cxx.
I noticed this when attempting to compile ACE
(http://www.cs.wustl.edu/~schmidt/ACE.html). There was a call to
pthread_getselfseq_np(), which eventually makes an asm() call. Because
c_asm.h wasn't included, asm() could not be found.
reply other threads:[~2002-05-24 23:13 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox