Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 372679

Summary: media-video/gpac-0.4.5-r1 missing libjs with USE=javascript and dev-lang/spidermonkey-1.8.2.15
Product: Gentoo Linux Reporter: Alexander Puchmayr <alexander.puchmayr>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Build log of gpac

Description Alexander Puchmayr 2011-06-23 13:16:12 UTC
Created attachment 277875 [details]
Build log of gpac

emerging media-video/gpac-0.4.5-r1 with use flag "javascript" turned on and dev-lang/spidermonkey-1.8.2.15 gives linker error

/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.5/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -ljs

A "qlist -v spidermonkey" shows:
[...]
/usr/lib64/libjs_static.a
/usr/lib64/libmozjs.so
/usr/bin/js-config
[...]
no libjs.so.

Further, js-config shows:

bash$ js-config --libs
-L/usr/lib64 -lmozjs -Wl,-R/usr/lib64 -L/usr/lib64 -lplds4 -lplc4 -lnspr4 -lpthread -ldl -ldl -lm  -lm -ldl

Looking into gpac's configure script reveals that js_lib is hardcoded to "-ljs" instead of using the output of js-config.

A quick&dirty fix is to replace JS_LIBS="-ljs" with "-lmozjs" in gpac's config.mak, then it compiles fine.
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2011-06-29 03:31:21 UTC
Bug 367039 will take care of this ...

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