From kde-devel Sat Nov 03 22:32:26 2012 From: Thiago Macieira Date: Sat, 03 Nov 2012 22:32:26 +0000 To: kde-devel Subject: Re: KPluginLoader ==> cannot load any more object with static TLS Message-Id: <4616076.QEy8eCdMP0 () tjmaciei-mobl2> X-MARC-Message: https://marc.info/?l=kde-devel&m=135198197512979 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============8711373925117861805==" --===============8711373925117861805== Content-Type: multipart/signed; boundary="nextPart4900289.4XjE9f6glN"; micalg="pgp-sha1"; protocol="application/pgp-signature" Content-Transfer-Encoding: 7Bit --nextPart4900289.4XjE9f6glN Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" On quarta-feira, 31 de outubro de 2012 14.30.08, Sune Vuorela wrote: > On 2012-10-30, Stephane MANKOWSKI wrote: > > On kubuntu 12.04 (with KDE 4.9.1), all plugins were successfully loaded. > > On kubuntu 12.10 (with KDE 4.9.2), some plugins are not loaded due to a=20 > > NULL pointer returned by /*loader.factory()*/ > > I didn't change the code of Skrooge in between. > > > > If I print the error message returned by /*loader.errorString()*/, I > > get=20 > > this: > > /*dlopen: cannot load any more object with static TLS*/ > > > > I don't understand this error. > > What does it mean? > > What should I do to be able to load all plugins like on previous version? > > the error is coming from libdl (the thing that is a few layers > underneath kpluginloader). And it is apparantly because there isn't room > in the DTV to initalize the static TLS. > TLS is short for Threaded Local Storage (not related to ssl-TLS) > > the code is in > http://sourceware.org/git/?p=glibc.git;a=blob;f=elf/dl-open.c;h=9c39a34a4b0b > aafd93f37b1364c10724b0fa6d9b;hb=HEAD line 546 That means there are some wrong build options for that plugin. It means the TLS model used is invalid for loadable plugins. It should be a dynamic mode. Check if: - there's any -ftls-model= option being passed during the build of that plugin - if the -fPIC option *is* there. If it's not, add it. -- Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org Software Architect - Intel Open Source Technology Center PGP/GPG: 0x6EF45358; fingerprint: E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358 --nextPart4900289.4XjE9f6glN Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (GNU/Linux) iD8DBQBQlZt6M/XwBW70U1gRAqY5AJ9J17IrYVSVTpy2bs5CLQMhXEh98QCdFJnF S6CFV4FdK9LFLxTE7Ns8eOo= =oIO3 -----END PGP SIGNATURE----- --nextPart4900289.4XjE9f6glN-- --===============8711373925117861805== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe << --===============8711373925117861805==--