Javascript.pm install errors

[email protected] (charles radley) Mon, 04 Nov 2002 13:59:57 -0500
Newsgroups perl.javascript
Message-ID <[email protected]>
Hello,

I am trying to install Javascript.pm on a mandrake linux system.

It seems to fail right at the end.

I installed libjs using a procedure I found in an old list archive message.

This seemed to work ok:

log in as root.

tar xfvz js-1.5-rc4.tar.gz
cd js/src
make -f Makefile.ref BUILD_OPT=1
cp js*.h /usr/include/
cd Linux_All_OPT.OBJ
cp libjs.* /usr/lib/
ldconfig


I then untarred  JavaScript-0.52.tar.gz into  /home/cfrjlr/downloads

Then followed the install procedure thus:

[root@k6linux JavaScript-0.52]# perl Makefile.PL
Writing Makefile for JavaScript

(that looked like it worked)

Then when I run  make, there are many error messages.  I piped STDERR to 
a file, the file is
30,904 size,  containing  466 lines of error messages.

These error messages mean nothing to me, and I would appreciate some help.

For example see below.   It appears that a bunch of files are missing, 
such as   jsautocfg.h.    

Here are the first few lines:

In file included from /usr/include/jspubtd.h:40,
                 from /usr/include/jsapi.h:42,
                 from JavaScript.xs:4:
/usr/include/jstypes.h:235:71: jsautocfg.h: No such file or directory
/usr/include/jstypes.h:254:2: #error No suitable type for JSInt8/JSUint8
/usr/include/jstypes.h:267:2: #error No suitable type for JSInt16/JSUint16
/usr/include/jstypes.h:287:2: #error No suitable type for JSInt32/JSUint32
/usr/include/jstypes.h:338:2: #error 'sizeof(int)' not sufficient for 
platform use

Here are the last 9 lines:

[root@k6linux JavaScript-0.52]# tail -9 make.txt
JavaScript.xs:1013: dereferencing pointer to incomplete type
JavaScript.xs: In function `XS_JavaScript__Runtime_CreateRuntime':
JavaScript.xs:1071: warning: passing arg 1 of `JS_Init' makes pointer 
from integer without a cast
JavaScript.xs: In function `XS_JavaScript__Script_CompileScriptImpl':
JavaScript.xs:1314: parse error before "line"
JavaScript.xs:1323: `line' undeclared (first use in this function)
JavaScript.xs: At top level:
JavaScript.xs:17: storage size of `global_class' isn't known
make: *** [JavaScript.o] Error 1