Thanks to all that responded!
The main gist of the answers that I received were that there was a static
version of libpthread, but that it was a really bad idea to use it as you
would have to at least relink your binaries after any patch release of
Tru64 UNIX.
Thanks again!
Keith
Keith Parkins U of R Computer Science
kparkins_at_cs.rochester.edu Computer Science Building, Room 606
(716)275-1118
---------- Forwarded message ----------
Date: Wed, 16 Aug 2000 17:05:39 -0400
From: "Lampert, Pat" <Pat.Lampert_at_compaq.com>
To: 'Keith Parkins' <kparkins_at_cs.rochester.edu>
Subject: RE: Posix threads
A static version of libpthread is available on the Tru64 UNIX Associated
Product CD vol. 1 as part of the Development Enhancement tools. Please note
that if you elect to link a threads program statically on Tru64 UNIX you
will need to relink the program for every patch release of every version of
Tru64 UNIX. Any changes made to the kernel threads (which nearly every patch
release touches) affects compatibility with the pthreads library. When
thread patches are made a new libpthread.a is supplied in the patch kit.
We strongly recommend that customer's use the shared object version of the
threads library to avoid having numerous versions of your threaded
executable for each version and patch level of the operating system.
Pat Lampert Compaq Services
> ----------
> From: Keith Parkins[SMTP:kparkins_at_cs.rochester.edu]
>
> Hi,
>
> I currently have a user that wants to create a static binary using posix
> threads. I noticed that OSFBASE440 only installs the dynamic library
> (.so), but no archive (.a). I am not certain why, but the user needs to
> have static binaries. Using the -non_shared flag produces the following
> output:
>
> indus ~/thread_test $ cc -o self_static -DTEST_SELF -non_shared -pthread
>
> thd.c
>
> ld:
>
> Can't locate file for: -lpthread
>
> removing the flag build a nice dynamically linked lib.
>
> Any ideas?
Received on Thu Aug 17 2000 - 12:47:46 NZST