Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Jan 2005 19:26:54 +0100
From:      Michael Nottebrock <michaelnottebrock@gmx.net>
To:        Ulrich Spoerlein <q@uni.de>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: PThread Issue: -pthread vs. -lpthread for a new port
Message-ID:  <200501031926.57723.michaelnottebrock@gmx.net>
In-Reply-To: <200501031913.53106.michaelnottebrock@gmx.net>
References:  <20050103114221.GA897@galgenberg.net> <20050103175625.GC897@galgenberg.net> <200501031913.53106.michaelnottebrock@gmx.net>

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



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