[308] in Pthreads mailing list archive
Shared pthreads library in a Solaris 2.5 environment?
daemon@ATHENA.MIT.EDU (Eric Johnson)
Mon Apr 29 22:54:10 1996
From: ejohnson@netcom.com (Eric Johnson)
To: pthreads@MIT.EDU
Date: Mon, 29 Apr 1996 19:37:28 -0700 (PDT)
Has any one had any luck producing a libpthreads.so under the
following environment...
gcc 2.7.2
libg++ 2.7.1 compiled with -frtti and shared libraries
solaris 2.5
I produced the libpthreads.so with an ld -shared *.o in the obj
directory once everything was built and copied the result to
lib/libpthread.so. I get the following link error if I try to compile
a simple cout style Hello World with pg++.
Here is the error:
/u5/users/ejohnson/lib/libpthread.so: undefined reference to `_proto_buf'
/u5/users/ejohnson/lib/libpthread.so: undefined reference to `sigblock'
What am I missing? If I use the library form of libpthread (ie.
libpthread.a), I don't get the link error. I'm clearly missing a
step. But what?
-Eric