Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 412337 - www-plugins/nspluginwrapper-1.4.4-r2 - In function `main': npw-player.c:(.text+0x2f75): undefined reference to `g_thread_init'
Summary: www-plugins/nspluginwrapper-1.4.4-r2 - In function `main': npw-player.c:(.tex...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Patrick McLean
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-17 13:22 UTC by Erich Seifert
Modified: 2012-04-19 03:46 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,47.29 KB, text/plain)
2012-04-17 13:25 UTC, Erich Seifert
Details
emerge --info output (nspluginwrapper-info,5.50 KB, text/plain)
2012-04-17 13:28 UTC, Erich Seifert
Details
build.log with LDFLAGS="-lgthread-2.0" (build.log,57.88 KB, text/plain)
2012-04-17 18:52 UTC, Erich Seifert
Details
nspluginwrapper-1.4.4-link-to-gthread-2.0.patch (nspluginwrapper-1.4.4-link-to-gthread-2.0.patch,508 bytes, patch)
2012-04-18 01:02 UTC, Erich Seifert
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Erich Seifert 2012-04-17 13:22:32 UTC
Emerging www-plugins/nspluginwrapper-1.4.4-r2 fails due to a compilation problem.

Reproducible: Always

Steps to Reproduce:
1. emerge =www-plugins/nspluginwrapper-1.4.4-r2

Actual Results:  
The compile phase fails with an error:

npw-player.c:(.text+0x2f75): undefined reference to `g_thread_init'

Expected Results:  
Building nspluginwrapper and installation should work.

May be realted to patch for Bug 412053. I'm using dev-libs/glib-2.32.1.
Comment 1 Erich Seifert 2012-04-17 13:25:06 UTC
Created attachment 309251 [details]
build.log

Attached build.log
Comment 2 Erich Seifert 2012-04-17 13:28:25 UTC
Created attachment 309253 [details]
emerge --info output

Attached output of emerge --info =www-plugins/nspluginwrapper-1.4.4-r2
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2012-04-17 16:05:46 UTC
(In reply to comment #0)
> May be realted to patch for Bug 412053. I'm using dev-libs/glib-2.32.1.

No, because there something other than glib.h was included directly.
Comment 4 Patrick McLean gentoo-dev 2012-04-17 18:29:57 UTC
Could you try this, and let me know if this works around it for you:

LDFLAGS="-lgthread-2.0" emerge =www-plugins/nspluginwrapper-1.4.4-r2
Comment 5 Erich Seifert 2012-04-17 18:52:56 UTC
Created attachment 309311 [details]
build.log with LDFLAGS="-lgthread-2.0"

Sorry, adding LDFLAGS="-lgthread-2.0" didn't help. Emerge fails with:
lsb-build-i386/libgthread-2.0.so: file not recognized: File truncated

Attached the build.log
Comment 6 Erich Seifert 2012-04-18 01:02:19 UTC
Created attachment 309355 [details, diff]
nspluginwrapper-1.4.4-link-to-gthread-2.0.patch

The bug is fixed upstream already. The attached patch reflects the changes of https://github.com/davidben/nspluginwrapper/commit/928c32260a2a6eccf81b169ee7e80388aa69ecdd, works for me, and should fix the issue.
Comment 7 Patrick McLean gentoo-dev 2012-04-19 01:23:51 UTC
Fixed in www-plugins/nspluginwrapper-1.4.4-r3.