Trying to use the glib thread pool stuff and getting undefined reference to `g_thread_init'

Solution Verified - Updated -


  • Trying to use the glib thread pool stuff.
09:49:07 > rpm -qa | grep glib2
  • 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/ | 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?


  • 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.

Current Customers and Partners

Log in for full access

Log In