threads/104297: mixing libthr and libpthread through libs
segfaults the binary
Daniel Eischen
deischen at freebsd.org
Wed Oct 11 10:43:41 PDT 2006
On Wed, 11 Oct 2006, Gergely CZUCZY wrote:
> The following reply was made to PR threads/104297; it has been noted by GNATS.
>
> From: Gergely CZUCZY <phoemix at harmless.hu>
> To: Daniel Eischen <eischen at vigrid.com>
> Cc: FreeBSD-gnats-submit at freebsd.org, freebsd-threads at freebsd.org
> Subject: Re: threads/104297: mixing libthr and libpthread through libs segfaults the binary
> Date: Wed, 11 Oct 2006 18:35:16 +0200
>
> --6TrnltStXW4iwmi0
> Content-Type: text/plain; charset=utf-8
> Content-Disposition: inline
> Content-Transfer-Encoding: quoted-printable
>
> On Wed, Oct 11, 2006 at 12:28:53PM -0400, Daniel Eischen wrote:
> > >and how do i use libthr if one of the libs i link against
> > >is using libpthread?
> > You can't unless you relink everything or you use libmap.conf(5).
> so, the choice of which threading library the system uses
> is decieded by the authors of all ports.
> shouldn't there be a way to specify for _all_ ports,
> sources, everything, which solution is the prefered
> one for the system?
-pthread currently defaults to libpthread for i386. Otherwise,
you can set PTHREAD_LIBS in /etc/make.conf (or ports.conf?)
before you build your ports.
Ask ports@ for further questions.
--
DE
More information about the freebsd-threads
mailing list