:: [DNG] libc very old - and bugged?
トップ ページ
このメッセージを削除
このメッセージに返信
著者: asbesto
日付:  
To: dng
題目: [DNG] libc very old - and bugged?

I'm trying to create a build of Enlightenment for Devuan, and I
got stuck on a weird problem regarding GL acceleration.

I had some help from Enlightenment mailing list, so they
discovered that...


"could not
dlopen("/usr/local/lib/evas/modules/engines/gl_x11/v-1.18/module.so",
dlopen: cannot load any more object with static TLS): RTLD_NOW

you... have a libc problem. or as best i can divine. this
affects some distributions - specifically older ones with older
or unpatched libc's. in order to ensure our object
infrastructure is thread-safe which is has to be to implement
our resolve caches etc we have to declare our variables with
__thread. or at least the ones that are for caches. libc has a
limited number of slots for such tls segments. the more .so's
loaded, the more slots it takes up. newer libcs have more
slots. older libs have been patched by some distributions to
increase number of slots. once you run out of slots, loading
more libs fails. as above.

so... you need to upgrade your libc or patch it.

https://phab.enlightenment.org/T46111"

So it happens that Devuan use a libc that's old like the corpse
of Jesus H. Tapdancing Christ (cit.)

Any plan to update / patch it?



p.s. the patch to solve this problem is:


--- a/sysdeps/generic/ldsodefs.h    2015-02-06
--- 17:40:18.000000000 +1100
+++ b/sysdeps/generic/ldsodefs.h    2016-09-26
13:17:14.228874529 +1000
@@ -389,7 +389,7 @@
 #define TLS_SLOTINFO_SURPLUS (62)


 /* Number of additional slots in the dtv allocated.  */
-#define DTV_SURPLUS    (14)
+#define DTV_SURPLUS    (32)


   /* Initial dtv of the main thread, not allocated with normal
    * malloc.  */
   EXTERN void *_dl_initial_dtv;





--
[ ::::::::: 73 de IW9HGS : http://freaknet.org/asbesto ::::::::::: ]
[ Freaknet Medialab :: Poetry Hacklab : Dyne.Org :: Radio Cybernet ]
[ NON SCRIVERMI USANDO LETTERE ACCENTATE - NON MANDARMI ALLEGATI ]
[ *I DELETE* EMAIL > 100K, ATTACHMENTS, HTML, M$-WORD DOC and SPAM ]