google-code-export / pywebkitgtk

Automatically exported from code.google.com/p/pywebkitgtk
Other
1 stars 0 forks source link

Missing gthread-2.0 link at buildtime #39

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Since pywebkitgtk uses the g_thread_init() function to ensure that threads
are properly present, it should link against gthread-2.0, but it doesn't
look like it does right now (it's only inferred out of other libraries if
the --as-needed linker flag is not used).

This results in an undefined symbol at runtime when loading the extension,
for instance:

flame@yamato tree % gwibber 
Traceback (most recent call last):
  File "/usr/bin/gwibber", line 55, in <module>
    from gwibber.client import GwibberClient
  File "/usr/lib64/python2.6/site-packages/gwibber/client.py", line 12, in
<module>
    from . import gwui, config, gintegration, configui, resources
  File "/usr/lib64/python2.6/site-packages/gwibber/gwui.py", line 9, in
<module>
    import webkit, gtk, copy
ImportError: /usr/lib64/python2.6/site-packages/webkit-1.0/webkit.so:
undefined symbol: g_thread_init

The fix is simply to add gthread-2.0 to the list of DEPS in the
PKG_CHECK_MODULES macro call.

Original issue reported on code.google.com by flameeyes on 30 Aug 2009 at 9:58

GoogleCodeExporter commented 9 years ago

Original comment by jmalo...@gmail.com on 10 Sep 2009 at 11:25

GoogleCodeExporter commented 9 years ago
Can you please confirm if this is fixed in 1.1.7? Thanks.

Original comment by jmalo...@gmail.com on 3 Oct 2009 at 11:40

GoogleCodeExporter commented 9 years ago
Seems to be fixed for me at least.

Original comment by christop...@gmail.com on 5 Oct 2009 at 2:37

GoogleCodeExporter commented 9 years ago

Original comment by jmalo...@gmail.com on 7 Aug 2010 at 9:10