Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Sep 2007 12:00:39 -0600
From:      Joe Peterson <lavajoe@gentoo.org>
To:        freebsd-threads@freebsd.org
Subject:   How will libpthread, libthr, etc. be linked in 7.0?
Message-ID:  <46F7FB47.5060005@gentoo.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?46F7FB47.5060005>