After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 692710 - gupnp-igd threaded example needs -lgthread or to stop using g_thread_init()
gupnp-igd threaded example needs -lgthread or to stop using g_thread_init()
Status: RESOLVED DUPLICATE of bug 691609
Product: gupnp-igd
Classification: Other
Component: General
unspecified
Other All
: Normal normal
: ---
Assigned To: GUPnP Maintainers
GUPnP Maintainers
Depends on:
Blocks:
 
 
Reported: 2013-01-28 15:18 UTC by Allison Karlitskaya (desrt)
Modified: 2019-02-22 06:01 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Allison Karlitskaya (desrt) 2013-01-28 15:18:14 UTC
make[3]: Entering directory `/home/desrt/jhbuild/checkout/gupnp-igd/tests/examples'
  CCLD   test
  CCLD   test-thread
test-thread.o: In function `main':
/home/desrt/jhbuild/checkout/gupnp-igd/tests/examples/test-thread.c:52: undefined reference to `g_thread_init'
collect2: error: ld returned 1 exit status
test.o: In function `main':
/home/desrt/jhbuild/checkout/gupnp-igd/tests/examples/test.c:67: undefined reference to `g_thread_init'
collect2: error: ld returned 1 exit status



Either a) stop calling g_thread_init() [it is deprecated]

or b) explicitly add gthread-2.0 to your pkgconfig checks in configure.ac


The long story here is that many modules (specifically libraries) have stopped calling g_thread_init() and therefore have dropped their dependency on the gthread-2.0 pkgconfig.  One of them was probably implicitly pulling it in for you as a dependency before, but is no longer.
Comment 1 Jens Georg 2013-01-28 18:58:22 UTC

*** This bug has been marked as a duplicate of bug 691609 ***