dlopen: cannot load any more object with static TLS

可紊 提交于 2019-12-23 10:23:18

问题


I have a large mixed java/c++ application that loads multiple shared libs into java. It works fine on my Ubuntu 12.04 32-bit machine, but I'm having problems getting things to work on a Fedora 17 64-bit machine. Everything compiles fine, but when I try to run it I get:

Exception in thread "main" java.lang.UnsatisfiedLinkError: /pathto/libmylib.so: dlopen: cannot load any more object with static TLS

Any help is greatly appreciated!

UPDATE: I've narrowed this down to a problem with PCL (point cloud library) dependencies. libmylib.so depends on PCL, but can also be compiled without PCL if it's not installed. Compiling without PCL works fine. I'm waiting on the folks in the PCL community to get back to me, and I'll update this thread based on their suggestions.


回答1:


It looks like PCL library depends on libgomp, and you are likely hitting this issue.



来源:https://stackoverflow.com/questions/13650740/dlopen-cannot-load-any-more-object-with-static-tls

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!