Trying to use the glib thread pool stuff and getting undefined reference to `g_thread_init'
Issue
- Trying to use the glib thread pool stuff.
09:49:07 > rpm -qa | grep glib2
glib2-devel-2.22.5-6.el6.x86_64
pulseaudio-libs-glib2-0.9.21-13.el6.x86_64
glib2-2.22.5-6.el6.x86_64
- According to the docs v2.22 still requires g_thread_init.
- When called it returns:
dump_fts.c:(.text+0x134d): undefined reference to `g_thread_init'
- Checking the lib for the symbol:
09:50:32 > nm -D /usr/lib64/libglib-2.0.so | grep thread_init
0000003fff262580 T g_thread_init_glib
- Can't find any reference on the web for g_thread_init_glib.
- Perhaps v2.22 is too old to use the thread stuff reliably?
- Why is g_thread_init not in the library?
Environment
- Red Hat Enterprise Linux 6
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
