From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,b7a9308b6ef90707,start X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2002-05-24 16:13:29 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: clerch@triant.com (Cameron Lerch) Newsgroups: comp.unix.tru64 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 Organization: http://groups.google.com/ Message-ID: <1a193c94.0205241513.60ee1027@posting.google.com> NNTP-Posting-Host: 24.69.102.245 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1022282008 18419 127.0.0.1 (24 May 2002 23:13:28 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 24 May 2002 23:13:28 GMT Xref: archiver1.google.com comp.unix.tru64:7808 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 # define _PTHREAD_USE_ASM_ 1 # endif # endif and note how #include 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.