From owner-freebsd-ports@FreeBSD.ORG Mon Jan 3 18:27:12 2005 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2016416A4CE for ; Mon, 3 Jan 2005 18:27:12 +0000 (GMT) Received: from mail.gmx.net (imap.gmx.net [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 1F36D43D46 for ; Mon, 3 Jan 2005 18:27:11 +0000 (GMT) (envelope-from michaelnottebrock@gmx.net) Received: (qmail invoked by alias); 03 Jan 2005 18:27:09 -0000 Received: from pD95D8028.dip.t-dialin.net (EHLO lofi.dyndns.org) (217.93.128.40) by mail.gmx.net (mp001) with SMTP; 03 Jan 2005 19:27:09 +0100 X-Authenticated: #443188 Received: from [192.168.8.4] (lofi@kiste.my.domain [192.168.8.4]) (authenticated bits=0) by lofi.dyndns.org (8.12.10/8.12.10) with ESMTP id j03IQweH072570 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Mon, 3 Jan 2005 19:26:59 +0100 (CET) (envelope-from michaelnottebrock@gmx.net) From: Michael Nottebrock To: Ulrich Spoerlein Date: Mon, 3 Jan 2005 19:26:54 +0100 User-Agent: KMail/1.7.2 References: <20050103114221.GA897@galgenberg.net> <20050103175625.GC897@galgenberg.net> <200501031913.53106.michaelnottebrock@gmx.net> In-Reply-To: <200501031913.53106.michaelnottebrock@gmx.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1388541.RQp5A4K09c"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200501031926.57723.michaelnottebrock@gmx.net> X-Virus-Scanned: by amavisd-new X-Y-GMX-Trusted: 0 cc: freebsd-ports@freebsd.org Subject: Re: PThread Issue: -pthread vs. -lpthread for a new port X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Jan 2005 18:27:12 -0000 --nextPart1388541.RQp5A4K09c Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Monday, 3. January 2005 19:13, Michael Nottebrock wrote: > On Monday, 3. January 2005 18:56, Ulrich Spoerlein wrote: > > On Mon, 03.01.2005 at 16:36:36 +0100, Michael Nottebrock wrote: > > > > And running a ruby program requiring wxruby I get this error: > > > > /libexec/ld-elf.so.1: /usr/local/lib/libgthread-2.0.so.400: Undefin= ed > > > > symbol "pthread_getschedparam" > > > > > > This is expected: When shared libraries are linked with -pthread, the > > > linker only resolves the necessary symbols but does not emit a > > > DT_NEEDED symbol for the resulting shared library, it only does for > > > programs. > > > > > > Bottom line: Pthread symbols must always be resolved through the actu= al > > > program. Make sure the program that uses wxruby is linked with -pthre= ad > > > as well. > > > > wxruby.so get's loaded by ruby on demand. That is when using 'require > > wxruby'. I'm pretty sure we don't want to link pthread into ruby itself. > > There is no other choice. It's the same issue with perl and python (the > latter already has thread-support on by default for that reason). Looking at the ruby ports, this should actually be pretty easy to accomplis= h -=20 just depend on ruby18_r. =2D-=20 ,_, | Michael Nottebrock | lofi@freebsd.org (/^ ^\) | FreeBSD - The Power to Serve | http://www.freebsd.org \u/ | K Desktop Environment on FreeBSD | http://freebsd.kde.org --nextPart1388541.RQp5A4K09c Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD4DBQBB2Y5xXhc68WspdLARAmGRAJ93MxRR4fF3XTO3tuSYnknnUar04gCTBDGC pCmpZTr5LRx8b+YYepA4yQ== =VJkI -----END PGP SIGNATURE----- --nextPart1388541.RQp5A4K09c--