Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Jan 2005 19:13:49 +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:  <200501031913.53106.michaelnottebrock@gmx.net>
In-Reply-To: <20050103175625.GC897@galgenberg.net>
References:  <20050103114221.GA897@galgenberg.net> <200501031636.40424.michaelnottebrock@gmx.net> <20050103175625.GC897@galgenberg.net>

next in thread | previous in thread | raw e-mail | index | archive | help
--nextPart1156254.iYFt15d75q
Content-Type: text/plain;
  charset="iso-8859-15"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

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: Undefined
> > > 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 actual
> > program. Make sure the program that uses wxruby is linked with -pthread
> > 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 lat=
ter=20
already has thread-support on by default for that reason).

=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

--nextPart1156254.iYFt15d75q
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (FreeBSD)

iD8DBQBB2YthXhc68WspdLARAmIXAJ4goJi64XPlvD3/P/QksRMPSx/GiwCeOqwm
5gOahktmewJjdTSL+TaAaK4=
=YKou
-----END PGP SIGNATURE-----

--nextPart1156254.iYFt15d75q--



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