From owner-freebsd-threads@FreeBSD.ORG Mon Apr 17 12:25:37 2006 Return-Path: X-Original-To: freebsd-threads@freebsd.org Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C1E6616A401; Mon, 17 Apr 2006 12:25:37 +0000 (UTC) (envelope-from Joerg.Pulz@frm2.tum.de) Received: from mailhost.frm2.tum.de (mailhost.frm2.tum.de [129.187.179.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id EBB9F43D48; Mon, 17 Apr 2006 12:25:34 +0000 (GMT) (envelope-from Joerg.Pulz@frm2.tum.de) Received: from localhost (mailhost.frm2.tum.de [129.187.179.12]) by mailhost.frm2.tum.de (8.13.4/8.13.4) with ESMTP id k3HCPXVk054651; Mon, 17 Apr 2006 14:25:33 +0200 (CEST) (envelope-from jpulz@frm2.tum.de) X-Virus-Scanned: at mailhost.frm2.tum.de Received: from hades.admin.frm2 (hades.admin.frm2 [172.25.1.10]) by mailhost.frm2.tum.de (8.13.4/8.13.4) with ESMTP id k3HCPVwq054647 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 17 Apr 2006 14:25:32 +0200 (CEST) (envelope-from jpulz@frm2.tum.de) Received: from hades.admin.frm2 (localhost [127.0.0.1]) by hades.admin.frm2 (8.13.4/8.13.4) with ESMTP id k3HCPVDN062142; Mon, 17 Apr 2006 14:25:31 +0200 (CEST) (envelope-from jpulz@frm2.tum.de) Received: (from jpulz@localhost) by hades.admin.frm2 (8.13.4/8.13.4/Submit) id k3HCPV7q062141; Mon, 17 Apr 2006 14:25:31 +0200 (CEST) (envelope-from jpulz) Date: Mon, 17 Apr 2006 14:25:29 +0200 (CEST) From: Joerg Pulz To: Daniel Eischen In-Reply-To: Message-ID: <20060417141213.X52948@hades.admin.frm2> References: <20060416220250.K52948@hades.admin.frm2> <44436C5B.50703@orel.ru> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-threads@freebsd.org, freebsd-sparc64@freebsd.org Subject: Re: pthread_mutex_timedlock on sparc64 X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Apr 2006 12:25:37 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Mon, 17 Apr 2006, Daniel Eischen wrote: > On Mon, 17 Apr 2006, Andrew Belashov wrote: > >> Hello, Joerg! >> >> Joerg Pulz wrote: >>> sorry for the cross posting but i think it is related to both lists. >>> >>> Today i got two mails from pointyhat for ports that i maintain which seem >>> to have problems on sparc64. >>> The relevant ports are net/gatekeeper, net/openmcu and the exact error >>> message is: >>> /usr/local/lib/libpt_r.so: undefined reference to >>> `pthread_mutex_timedlock' > > Note that /usr/local/lib/foo is not part of FreeBSD base, so > it looks like the sparc build machine is using a non-standard > thread library. > >>> There is another port net/openam which has the same problem. >>> >>> As far as i can see, the '-pthread' argument is used and therefore this >>> should not occur, unless there is something missing or wrong in the >>> sparc64 thread library. >>> I can't investigate this further because i have no access to a sparc64 >>> machine running any version FreeBSD. >>> >>> Any information regarding this problem is much appreciated. >>> >>> Kind regards >>> Joerg >>> >> >> What about libthr library? For switching to libthr: >> # echo "libc_r.so libthr.so" >>/etc/libmap.conf > > Also, some sparc64-knowledgeable person(s) need to make > libpthread work on sparc64 ;-) Hi Daniel, Andrew, the library /usr/local/lib/libpt_r.so comes out of the devel/pwlib port and is requiered by net/openh323 and therefor needed by net/gatekeeper, net/openmcu and net/openam. As i said before, i don't have access to a sparc64 machine running FreeBSD. The error was reported by pointyhat, so tweaking /etc/libmap.conf is not an option. If the "pthread_mutex_timedlock" symbol is really not available in the default thread library for sparc64, i will mark these ports BROKEN for ${ARCH} == "sparc64", but first i want to make sure that this is really the case. regards Joerg - -- The beginning is the most important part of the work. -Plato -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iD8DBQFEQ4k7SPOsGF+KA+MRAgylAKDL3fNsI4GvRi5YHe4awTzc5UqaCgCfVsIV YXli4HhK1jqq/ARBWp3jfoI= =yDLW -----END PGP SIGNATURE-----