Hi,

I have recently installed Spidermonkey and now want to add javascript.pm. My 
goal is to interpret javascript code from within my perl scripts. I am a 
beginner to compiling c and am not succesful with the installation 
procedure. I have a number of questions:

I use win3s/win2k server and activestate perl.

1. I have managed to compile (using MSVC6.0) spidermonkey. The result was a 
.dll and a .exe file. What do I do with them? Shall they be put in a 
directory under c:/perl?

2. I am not at all successful compliling javascript.pm. I try to follow the 
sparse installation info in the readme file. When doing 'perl makefile.pl' a 
makefile is created but there are a number of warnings saying that several 
.lib files can not be found. From what I understand my perl does not know 
the path to the c-files. (Also in step 3 below a lot of include files (*.h) 
can not be found.) How can I tell perl the path to c generally?

3. Having updated a number of paths to include files, I run the next 
installation instruction, simply 'nmake'. I get the following result:

        cl -c  -nologo -O1 -MD -DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRICT 
-DHAVE_DES_FCRYPT -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS 
-DPERL_MSVCRT_READFIX -O1 -MD -DNDEBUG    -DVER
SION=\"0.52\"  -DXS_VERSION=\"0.52\"  -IC:\Perl\lib\CORE -DXP_PC 
JavaScript.c
JavaScript.c
C:/program files/microsoft visual studio/vc98/include/malloc.h(106) : error 
C2059: syntax error : '('
C:/program files/microsoft visual studio/vc98/include/malloc.h(107) : error 
C2059: syntax error : '('
C:/program files/microsoft visual studio/vc98/include/malloc.h(108) : error 
C2059: syntax error : '('
JavaScript.xs(278) : warning C4090: 'function' : different 'const' 
qualifiers
JavaScript.xs(278) : warning C4024: 'strcpy' : different types for formal 
and actual parameter 1
JavaScript.xs(402) : warning C4090: 'function' : different 'const' 
qualifiers
JavaScript.xs(402) : warning C4024: 'PCB_GetClass' : different types for 
formal and actual parameter 2
JavaScript.xs(490) : warning C4090: 'function' : different 'const' 
qualifiers
JavaScript.xs(490) : warning C4024: 'PCB_GetClass' : different types for 
formal and actual parameter 2
JavaScript.xs(540) : warning C4090: 'function' : different 'const' 
qualifiers
JavaScript.xs(540) : warning C4024: 'PCB_GetClass' : different types for 
formal and actual parameter 2
JavaScript.xs(1013) : warning C4133: 'function' : incompatible types - from 
'struct _PerlIO *' to 'struct _iobuf *'
JavaScript.xs(1260) : warning C4133: 'function' : incompatible types - from 
'struct _PerlIO *' to 'struct _iobuf *'
JavaScript.xs(1319) : warning C4133: 'function' : incompatible types - from 
'struct _PerlIO *' to 'struct _iobuf *'
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.

Really it gives me no clue to how to proceed. Is MSVC6.0 no good for doing 
this? I was hoping the installation of javascript.pm would be a little 
simpler.

ANY help will be much appreciated.

Erik



_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

Reply via email to