Relative Content

Tag Archive for pythonctypesld-preload

Ignoring “undefined symbol” errors in ctypes library load

I’m loading a not-owned-by-me library with Python’s ctypes module as ctypes.CDLL("mylib.so") which produces an error undefined symbol: g_main_context_push_thread_default because mylib.so was overlinking a lot of unneeded / unused stuff like glib.

Ignoring “undefined symbol” errors in ctypes library load

I’m loading a not-owned-by-me library with Python’s ctypes module as ctypes.CDLL("mylib.so") which produces an error undefined symbol: g_main_context_push_thread_default because mylib.so was overlinking a lot of unneeded / unused stuff like glib.