Hi,

 I am getting totally confused. After I send my previous post,
I decided to start afresh. It might be that I have screwed up
something during libjs install, so I cleaned up libjs and gxine
installation.

Now I installed following libjs packages from packman
for suse 10.1 (http://packman.links2linux.org/?action=637),
libjs-1.5-0.pm.6.i586.rpm
libjs-devel-1.5-0.pm.6.i586.rpm
libjs-utils-1.5-0.pm.6.i586.rpm

gxine compiles without error but when do make, I get following
.............................................................................
Makefile:728: warning: overriding commands for target `dist'
Makefile:523: warning: ignoring old commands for target `dist'
Making all in m4
make[1]: Entering directory `/root/NewInstall/Multimedia/gxine-0.5.7/m4'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/root/NewInstall/Multimedia/gxine- 0.5.7/m4'
Making all in pixmaps
make[1]: Entering directory `/root/NewInstall/Multimedia/gxine-0.5.7/pixmaps'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/root/NewInstall/Multimedia/gxine- 0.5.7/pixmaps'
Making all in include
make[1]: Entering directory `/root/NewInstall/Multimedia/gxine-0.5.7/include'
make  all-am
make[2]: Entering directory `/root/NewInstall/Multimedia/gxine-0.5.7/include'
make[2]: Nothing to be done for `all-am'.
make[2]: Leaving directory `/root/NewInstall/Multimedia/gxine-0.5.7/include'
make[1]: Leaving directory `/root/NewInstall/Multimedia/gxine-0.5.7/include'
Making all in src
make[1]: Entering directory `/root/NewInstall/Multimedia/gxine-0.5.7/src'
if gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I../include -I/usr/loc al/include -I../pixmaps    -std=gnu99 -I/usr/local/include -I/usr/X11R6/include -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/X11R6/include -I/usr/includ e/libpng12 -I/opt/gnome/include/gtk- 2.0 -I/opt/gnome/lib/gtk-2.0/include -I/opt/ gnome/include/atk-1.0 -I/opt/gnome/include/pango-1.0 -I/opt/gnome/include/glib-2 .0 -I/opt/gnome/lib/glib-2.0/include   -pthread -I/opt/gnome/include/glib-2.0 -I /opt/gnome/lib/glib- 2.0/include -DLOCALEDIR=\"/usr/local/share/locale\"  -MT con sole_output.o -MD -MP -MF ".deps/console_output.Tpo" -c -o console_output.o cons ole_output.c; \
then mv -f ".deps/console_output.Tpo" ".deps/console_output.Po"; else rm -f ".de ps/console_output.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I../include -I/usr/loc al/include -I../pixmaps    -std=gnu99 -I/usr/local/include -I/usr/X11R6/include -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/X11R6/include -I/usr/includ e/libpng12 -I/opt/gnome/include/gtk- 2.0 -I/opt/gnome/lib/gtk-2.0/include -I/opt/ gnome/include/atk-1.0 -I/opt/gnome/include/pango-1.0 -I/opt/gnome/include/glib-2 .0 -I/opt/gnome/lib/glib-2.0/include   -pthread -I/opt/gnome/include/glib-2.0 -I /opt/gnome/lib/glib- 2.0/include -DLOCALEDIR=\"/usr/local/share/locale\"  -MT des ktop_integration.o -MD -MP -MF ".deps/desktop_integration.Tpo" -c -o desktop_int egration.o desktop_integration.c; \
then mv -f ".deps/desktop_integration.Tpo" ".deps/desktop_integration.Po"; else rm -f ".deps/desktop_integration.Tpo"; exit 1; fi
In file included from globals.h:41,
                 from desktop_integration.c:29:
script_engine.h:36:19: error: jsapi.h: No such file or directory
In file included from globals.h:41,
                 from desktop_integration.c:29:
script_engine.h:42: warning: type defaults to ‘int’ in declaration of ‘JSE rrorReport’
script_engine.h:42: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ t oken
script_engine.h:61: error: expected specifier-qualifier-list before ‘JSContext ’
script_engine.h:77: error: expected specifier-qualifier-list before ‘JSFunctio n’
script_engine.h:122: error: expected specifier-qualifier-list before ‘JSObject ’
script_engine.h:149: warning: type defaults to ‘int’ in declaration of ‘JS ErrorReport’
script_engine.h:149: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
script_engine.h:154: error: expected declaration specifiers or ‘...’ before ‘se_error_cb_t’
script_engine.h:158: error: expected declaration specifiers or ‘...’ before ‘JSInt32’
script_engine.h:159: error: expected declaration specifiers or ‘...’ before ‘JSFloat64’
script_engine.h:160: error: expected declaration specifiers or ‘...’ before ‘JSBool’
script_engine.h:161: error: expected declaration specifiers or ‘...’ before ‘JSInt32’
script_engine.h:162: error: expected declaration specifiers or ‘...’ before ‘JSFloat64’
script_engine.h:182: error: expected specifier-qualifier-list before ‘JSNative ’
script_engine.h:189: error: expected declaration specifiers or ‘...’ before ‘JSNative’
script_engine.h:189: error: expected declaration specifiers or ‘...’ before ‘uintN’
script_engine.h:189: error: expected declaration specifiers or ‘...’ before
‘uintN’
script_engine.h:241: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘ __attribute__’ before ‘se_warn_initialisation’
make[1]: *** [desktop_integration.o] Error 1
make[1]: Leaving directory `/root/NewInstall/Multimedia/gxine-0.5.7/src'
make: *** [all-recursive] Error 1
.............................................................................

I do not know whether the following information is relevant or not
for this forum. I used gcc-4.1.0 (32 bit).  And  js fails to compile
if do not use optimization flag BUILD_OPT=1/2 or whatever.
I posted a bug in mozilla-bugzilla who told me that this is a gcc bug.
I am really confused whether the same thing is happening
here.

Please help.

Purnendu