From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,b826cff5aae3b624 X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2002-03-11 04:29:04 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!newsfeed.mesh.ad.jp!osa.uu.net!sac.uu.net!news.compaq.com!news.cpqcorp.net!not-for-mail From: David Butenhof Subject: Re: pthreads for tru64 Newsgroups: comp.unix.tru64 References: <3C895D0E.1D3D806@opensound.com> User-Agent: KNode/0.6.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit Message-ID: Date: Mon, 11 Mar 2002 07:29:02 -0500 NNTP-Posting-Host: 16.31.48.112 X-Complaints-To: abuse@Compaq.com X-Trace: news.cpqcorp.net 1015849743 16.31.48.112 (Mon, 11 Mar 2002 04:29:03 PST) NNTP-Posting-Date: Mon, 11 Mar 2002 04:29:03 PST Organization: Compaq Computer Corporation Xref: archiver1.google.com comp.unix.tru64:6977 4Front Technologies wrote: > I am trying to compile an application that uses pthread.h and libpthread.a > and I need to know where to find "posix" compatible pthreads?. I only see > dce compatible pthread.h in /usr/include/dce. Unfortunately this app > doesn't like dce pthreads. What version of Tru64 UNIX are you using? One might infer from your use of the term "tru64" that you're using something relatively recent, but it's hard to be sure. If you should chance to actually be using DEC OSF/1 3.x, then you need to upgrade -- it didn't have POSIX threads. The standard only became final as we were developing Digital UNIX V4.0. If you're on V4.0x or later, then you'll find the POSIX thread header file precisely where it must be, in /usr/include/pthread.h. (#include .) The DCE thread header files remain in /usr/include/dce/ but you really shouldn't be using them. (Certainly not if you want POSIX threads.) V4.0x, however, lacked a supported libpthread.a. You should be using the shared library, /usr/shlib/libpthread.so. If you really needed, for one or another bizarre reason, to use a static archive, then you can install an optional development kit (I don't remember the name and won't bother to look it up right now), but beware that it won't continue to work on newer versions or necessarily even patch kits. This changed, due to popular demand, with the release of Tru64 UNIX V5.0, which does have a supported libpthread.a on the standard kit. You still shoudln't use it, though. The shared library is better. With it you get full development support (the debugger and other tools like Visual Threads can't fully support threaded programs built against the static archive). Also, despite the requirement for continued binary compatibility with old static images, the private kernel interfaces used by the thread library do change now and then, and you'll lose efficiency (and sometimes the full effect of bug fixes) if you're using an old static. /------------------[ David.Butenhof@compaq.com ]------------------\ | Compaq Computer Corporation POSIX Thread Architect | | My book: http://www.awl.com/cseng/titles/0-201-63392-2/ | \-----[ http://home.earthlink.net/~anneart/family/dave.html ]-----/