As stated in the topic. ./configure fails to find the library; spidermonkey-1.8.5 provides libmozjs185.so , and also should be queried via pkg-config. Upstream may have better support. When spidermonkey-1.8.5 is unmasked, this package will fail to build unless the dependency is updated. Reproducible: Always
Please add always your build log as attachment and emerge --info.
I don't think i emerged this one, i just read through configure.ac et. al.. spidermonkey-1.8.5 does not provide the same lib as earlier versions, it provides libmozjs185.so ... which isn't in the list of libs configure.ac checks for. Specifically - L953: "AC_CHECK_HEADER(jsapi.h,...." will succeed, but since mozjs185 is missing from the checks in L993-L1082, it'll fail. At minimum, an additional "AC_CHECK_LIB(mozjs185,JS_NewObject,..." needs to be added. HOWEVER, given a look at the code: src/scripting/script.cc (L520): "glob = JS_NewObject(cx, &global_class, NULL, NULL);" ..this call is invalid in JS_VERSION >= 185 as well; which tells me that the whole codebase will not work with spidermonkey-1.8.5. This is not a trivial fix; a (rather large) patch or update will be needed from upstream to support spidermonkey-1.8.5.
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 # $Header: /var/cvsroot/gentoo-x86/net-misc/mediatomb/ChangeLog,v 1.22 2011/04/04 12:19:35 scarabeus Exp $ + 17 Nov 2011; Ian Stakenvicius <axs@gentoo.org> mediatomb-0.12.1.ebuild, + +files/mediatomb-0.12.1-mozjs185.patch: + in-place update to support dev-lang/spidermonkey-1.8.5 for bug 376993 +