When i try and compile Mediatomb 0.9.0 with libjs 1.5, build fails:
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../tombupnp/upnp/inc -I../src -I../tombupnp/ixml/inc -I../tombupnp/threadutil/inc -I../tombupnp/upnp/inc -I.. -I/usr/include/js -pthread -g -O2 -MT libmediatomb_a-js_layout.o -MD -MP -MF ".deps/libmediatomb_a-js_layout.Tpo" -c -o libmediatomb_a-js_layout.o `test -f '../src/layout/js_layout.cc' || echo './'`../src/layout/js_layout.cc; \
then mv -f ".deps/libmediatomb_a-js_layout.Tpo" ".deps/libmediatomb_a-js_layout.Po"; else rm -f ".deps/libmediatomb_a-js_layout.Tpo"; exit 1; fi
../src/layout/js_layout.cc: In function `void js_error_reporter(JSContext*, const char*, JSErrorReport*)':
../src/layout/js_layout.cc:493: error: `JSREPORT_IS_STRICT' was not declared in this scope
make: *** [libmediatomb_a-js_layout.o] Error 1
make: Leaving directory `/usr/src/redhat/BUILD/mediatomb-0.9.0/build'
make: *** [all-recursive] Error 1
make: Leaving directory `/usr/src/redhat/BUILD/mediatomb-0.9.0'
make: *** [all] Error 2
Mediatomb compiles fine without libjs.
Also, with libjs 1.6, Mediatomb cant find the headers, even if you point ./configure to the dir.
Can anyone help???
sorry guys but this happens with the latest mediatomb from SVN aswell
on my FC5 and FC6 installation JSREPORT_IS_STRICT is defined in jsapi.h, this is valid for js 1.5 and als js 1.6
not finding the headers can be cause by a bad js instalation, it needs tons of different headers,
one of those headers is created during the makeprocess of the js library; basically the js headers have a lot of includes so if one of them is missing the whole stuff breaks down.
I could tell for sure if you paste me the config.log (the relevant output about search for the js headers).
Please take a closer look at your libjs installation, I suspect the problem is there; after all we never saw this error before, and this MT version was compiled on various distributions, systems and (also embedded) platforms.
What distribution are you using? Let me have a look at the config.log with js 1.6, maybe I can see what the problem is.
I was missing a couple of header files in my libjs install
No problem, I'm glad it works :)