[225] in Pthreads mailing list archive
ELF libs, gcc-2.7.2, linux?
daemon@ATHENA.MIT.EDU (William S. Gribble)
Tue Dec 12 17:47:26 1995
From: "William S. Gribble" <grib@cs.utexas.edu>
Date: Tue, 12 Dec 1995 16:19:40 -0600 (CST)
To: pthreads@MIT.EDU
Has anybody had success with a shared libpthread, using gcc-2.7.2
under Linux? I had it working for a while :) and then all of a sudden
it stopped working :(. I've been upgrading stuff -- I believe
ld.so, and libg++, and binutils -- and I just applied the repo
patch, so there are too many changing variables to be certain what's
going on.
Possibly useful information: during the first iteration (before I
built the first shared libpthread) I had to apply a patch suggested on
this list some time ago -- #if 0'ing machdep_sys_readv and
machdep_sys_writev. After upgrading a bunch of stuff, the same library
failed my test codes, so I rebuilt libpthread and all of a sudden,
the removed symbols (machdep_sys_readv and _writev) were undefined.
So I had to undo the patch, and rebuild, but still my test codes
fail if I link against libpthread dynamically. If I link with
-static, everything works fine, except that some of my tests complain
about multiply defined symbols in libc vs. libpthread.
Any clue what's going on? I suspect some problem with the ELF tools on
the Linux end, but I'd like confirmation if anyone can give it.
Thanks,
Bill Gribble