Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 372679 - media-video/gpac-0.4.5-r1 missing libjs with USE=javascript and dev-lang/spidermonkey-1.8.2.15
Summary: media-video/gpac-0.4.5-r1 missing libjs with USE=javascript and dev-lang/spid...
Status: RESOLVED DUPLICATE of bug 367039
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-23 13:16 UTC by Alexander Puchmayr
Modified: 2011-06-29 03:31 UTC (History)
0 users

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


Attachments
Build log of gpac (build.log,160.99 KB, text/plain)
2011-06-23 13:16 UTC, Alexander Puchmayr
Details

Note You need to log in before you can comment on or make changes to this bug.
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 ***