How will libpthread, libthr, etc. be linked in 7.0?
Joe Peterson
lavajoe at gentoo.org
Mon Sep 24 11:00:41 PDT 2007
Hi all,
I'm still working on my libpthread/libthr "symbol mixing" issue that
caused the %%gs register to get clobbered. If you recall, it seems that
the libmap.conf mechanism does not completely prevent symbols in the old
libpthread.so from being used along with libthr.so symbols - i.e. a big
problem.
Anyway, for my gentoo/FreeBSD 6.2 system, I am experimenting with
symlinking the libs for a more sure way to prevent the problem, and it's
working great so far. No crashes and no other problems so far.
Also, I found this post:
http://lists.freebsd.org/pipermail/freebsd-threads/2007-May/003930.html
which talks about what is being done in 7.0. Looks like similar
symlinking is either now being done or is being considered. Can anyone
here give a status on what is linked to what in 7.0? If the following:
/usr/lib/libpthread.a -> libthr.a
/usr/lib/libpthread.so -> libthr.so
/usr/lib/libpthread_p.a -> libthr_p.a
is being done, then this would be similar to what I am doing now on my
6.2 system. BTW, I am also linking libc_r.so to libthr.so, which may or
may not be overkill. The issue I saw seemed libpthread-specific, but
for safety's sake, I went this one step further. If anyone has any
thoughts on this, let me know.
Thanks! Joe
More information about the freebsd-threads
mailing list