Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Sep 2006 11:09:42 -0700
From:      "Kevin Oberman" <oberman@es.net>
To:        questions@freebsd.org
Subject:   Thread libraries and Perl
Message-ID:  <20060928180942.50C3545042@ptavv.es.net>

next in thread | raw e-mail | index | archive | help
--==_Exmh_1159466982_61032P
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

I use a Perl program that uses GTK2 for its display. This means that it
uses the p5-Gtk2 port. Many GTK2 routines are threaded, and when they
are called, the rtld fails to resolve the symbol "pthread_getschedparam"
and the program exists.

I know that normally the inclusion of the threading libraries is done at
compile time for the main code which will be using threading routines in
libraries to which it is linked, but Perl is not compiled and, if I
don't do something to pull libpthread into the process, such as using
LD_PRELOAD, I will get the error.

My question is, what is the best way to do this? Should the Perl
bindings to the threaded libraries do it? (In this case, p5-Gtk2) or is
there a better way.
-- 
R. Kevin Oberman, Network Engineer
Energy Sciences Network (ESnet)
Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab)
E-mail: oberman@es.net			Phone: +1 510 486-8634
Key fingerprint:059B 2DDF 031C 9BA3 14A4  EADA 927D EBB3 987B 3751

--==_Exmh_1159466982_61032P
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (FreeBSD)
Comment: Exmh version 2.5 06/03/2002

iD8DBQFFHA/mkn3rs5h7N1ERAqsSAJwIWOlKKlEkatrFzfM/VwsrrskuuwCeJJST
lKhUUGLy40JB7yXmGPP4S9U=
=osoK
-----END PGP SIGNATURE-----

--==_Exmh_1159466982_61032P--



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