Reported in Debian at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=631046
Relevant log snippet:
g++ -DHAVE_CONFIG_H -I. -I.. -I../tombupnp/upnp/inc -I../src -I../tombupnp/ixml/inc -I../tombupnp/threadutil/inc -I../tombupnp/upnp/inc -I.. -I/usr/include/mysql -DBIG_JOINS=1 -fno-strict-aliasing -DUNIV_LINUX -DUNIV_LINUX -I/usr/include/mozjs -I/usr/include/taglib -pthread -Wall -g -O2 -MT libmediatomb_a-dvd_image_import_script.o -MD -MP -MF .deps/libmediatomb_a-dvd_image_import_script.Tpo -c -o libmediatomb_a-dvd_image_import_script.o `test -f '../src/scripting/dvd_image_import_script.cc' || echo './'`../src/scripting/dvd_image_import_script.cc
mv -f .deps/libmediatomb_a-dvd_image_import_script.Tpo .deps/libmediatomb_a-dvd_image_import_script.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I../tombupnp/upnp/inc -I../src -I../tombupnp/ixml/inc -I../tombupnp/threadutil/inc -I../tombupnp/upnp/inc -I.. -I/usr/include/mysql -DBIG_JOINS=1 -fno-strict-aliasing -DUNIV_LINUX -DUNIV_LINUX -I/usr/include/mozjs -I/usr/include/taglib -pthread -Wall -g -O2 -MT libmediatomb_a-import_script.o -MD -MP -MF .deps/libmediatomb_a-import_script.Tpo -c -o libmediatomb_a-import_script.o `test -f '../src/scripting/import_script.cc' || echo './'`../src/scripting/import_script.cc
../src/scripting/import_script.cc: In constructor 'ImportScript::ImportScript(zmm::Ref<Runtime>)':
../src/scripting/import_script.cc:57:50: error: 'JS_AddNamedRoot' was not declared in this scope
../src/scripting/import_script.cc: In destructor 'virtual ImportScript::~ImportScript()':
../src/scripting/import_script.cc:120:32: error: 'JS_RemoveRoot' was not declared in this scope
make[3]: *** [libmediatomb_a-import_script.o] Error 1
make[3]: Leaving directory `/tmp/buildd/mediatomb-0.12.1/build'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/buildd/mediatomb-0.12.1'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/tmp/buildd/mediatomb-0.12.1'
dh_auto_build: make -j1 returned exit code 2
make: *** [binary] Error 2
I found this patch :
http://code.google.com/p/zyxel-keenetic-packages/source/browse/trunk/package/built/mediatomb/patches/030-to-newjs.patch?spec=svn80&r=80