Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* Bug found with Compaq C V6.4-014 on Compaq Tru64 UNIX V5.1A (Rev. 1885) in pthread.h
@ 2002-05-24 23:13 Cameron Lerch
  0 siblings, 0 replies; only message in thread
From: Cameron Lerch @ 2002-05-24 23:13 UTC (permalink / 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.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-05-24 23:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-24 23:13 Bug found with Compaq C V6.4-014 on Compaq Tru64 UNIX V5.1A (Rev. 1885) in pthread.h Cameron Lerch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox