From owner-freebsd-current@FreeBSD.ORG Sat Feb 11 00:16:52 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0D1DC16A423 for ; Sat, 11 Feb 2006 00:16:52 +0000 (GMT) (envelope-from kabaev@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id 76E6A43D45 for ; Sat, 11 Feb 2006 00:16:51 +0000 (GMT) (envelope-from kabaev@gmail.com) Received: by zproxy.gmail.com with SMTP id 9so547211nzo for ; Fri, 10 Feb 2006 16:16:50 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:date:from:to:cc:subject:message-id:in-reply-to:references:x-mailer:mime-version:content-type; b=GtVkmlhfEJe1tjhyNWJpbiQG+Mn46+MZvBM5a7S1KYGG24x50dZihL5sARR6s1Al881TXpEoIy6F5sFkLl07I1MTgCkCtd0Q0DFS923gh2qOuVj7Tzu8SYaSVsfOUxp1DcAOR2/ocobQTGIWDfSNYds+9etE+sRS1LGLyf0guzk= Received: by 10.36.160.12 with SMTP id i12mr3819432nze; Fri, 10 Feb 2006 16:16:50 -0800 (PST) Received: from kan.dnsalias.net ( [24.63.93.195]) by mx.gmail.com with ESMTP id c1sm1567358nzd.2006.02.10.16.16.49; Fri, 10 Feb 2006 16:16:50 -0800 (PST) Date: Fri, 10 Feb 2006 19:16:37 -0500 From: Alexander Kabaev To: Dan Nelson Message-ID: <20060210191637.374daa37@kan.dnsalias.net> In-Reply-To: <20060210195204.GF2090@dan.emsphone.com> References: <20060210181715.GA21782@troutmask.apl.washington.edu> <20060210193907.GE2090@dan.emsphone.com> <20060210194503.GA10370@troutmask.apl.washington.edu> <20060210195204.GF2090@dan.emsphone.com> X-Mailer: Sylpheed-Claws 2.0.0 (GTK+ 2.8.11; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_0Vdq_/DfSOrhO6ftAyFY3LC"; protocol="application/pgp-signature"; micalg=PGP-SHA1 X-Mailman-Approved-At: Sat, 11 Feb 2006 02:48:30 +0000 Cc: freebsd-current@freebsd.org, Steve Kargl Subject: Re: [jakub@redhat.com:Linking against libpthread via -pthread? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Feb 2006 00:16:52 -0000 --Sig_0Vdq_/DfSOrhO6ftAyFY3LC Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Fri, 10 Feb 2006 13:52:04 -0600 Dan Nelson wrote: > In the last episode (Feb 10), Steve Kargl said: > > On Fri, Feb 10, 2006 at 01:39:08PM -0600, Dan Nelson wrote: > > > In the last episode (Feb 10), Steve Kargl said: > > > > Some background information: I routinely build GCC mainline on > > > > i386-*-freebsd and amd64-*-freebsd. GCC mainline is introducing > > > > OpenMP support. When libgomp.so.1 is built, the compiler is > > > > given the -pthread option throughout the construction of > > > > libgomp.so.1. However, a "ldd libgomp.so.1" shows no dependence > > > > on libpthread.so.2 > > >=20 > > > There was a discussion about this back when the default switched > > > from libc_r to libpthread, and I think the consensus was that > > > shared libraries should never record dependencies against threads > > > libs, which means you have to add -pthread to the link line when > > > building the final executable. This avoids problems where an > > > executable links to three shlibs, one library is linked to libc_r, > > > one's linked to libkse, and a third is linked to libpthread. > >=20 > > Does this still apply with the symbol versioning that was committed > > some weeks (months?) ago? Additionally, I thought libc_r is > > deprecated in FreeBSD-current (has it been moved to the attic?). >=20 > I think symbol versioning only helps if you want to provide multiple > compat wrappers for a single symbol depending on the age of the > calling program. It won't help two libraries that both want to > provide the same public symbols but have different internal ABIs > cooperate. >=20 > libc_r is still the only threads library that provides reliable %CPU > stats and readable ktrace/truss/strace output afaik. >=20 > --=20 > Dan Nelson > dnelson@allantgroup.com > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to > "freebsd-current-unsubscribe@freebsd.org" No. The change to link in libc by default and libpthread with -pthread are inthe works and will be committed shortly. There is not way around this if we want working versioned libc and libpthread in our system. --=20 Alexander Kabaev --Sig_0Vdq_/DfSOrhO6ftAyFY3LC Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFD7SzwQ6z1jMm+XZYRApAOAKDjR+OgueZWJQMs5Rs80yYyQLNuCwCglCn7 ROO0eC7jhYZMvTwKx42kdic= =ez89 -----END PGP SIGNATURE----- --Sig_0Vdq_/DfSOrhO6ftAyFY3LC--