Hi, I am having windows environment. I build the spidermonkey using steps mentioned in following url: http://jargon.ca/spidermonkey/ Now when I am trying to install the JavaScript.pm, it's failing with following error message.
gcc-4 -c -I/cygdrive/c/ravi/spidermonkey/js/src/ -I/cygdrive/c/ravi/s +pidermonke y/nspr-4.6.4_DBG/include/ -DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -g3 + -fno-stri ct-aliasing -pipe -fstack-protector -I/usr/local/include -DUSEIMPORTLI +B -O3 -D VERSION=\"1.16\" -DXS_VERSION=\"1.16\" "-I/usr/lib/perl5/5.10/i686-cy +gwin/CORE" JavaScript.c JavaScript.xs:7:19: warning: extra tokens at end of #ifndef directive JavaScript.xs: In function `XS_JavaScript__Context_jsc_ptr': JavaScript.xs:128: warning: cast from pointer to integer of different +size gcc-4 -c -I/cygdrive/c/ravi/spidermonkey/js/src/ -I/cygdrive/c/ravi/s +pidermonke y/nspr-4.6.4_DBG/include/ -DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -g3 + -fno-stri ct-aliasing -pipe -fstack-protector -I/usr/local/include -DUSEIMPORTLI +B -O3 -D VERSION=\"1.16\" -DXS_VERSION=\"1.16\" "-I/usr/lib/perl5/5.10/i686-cy +gwin/CORE" PJS_Call.c PJS_Call.c:11: warning: `PJS_call_perl_method' redeclared without dlli +mport attr ibute: previous dllimport ignored PJS_Call.c:40: warning: `perl_call_sv_with_jsvals_rsv' redeclared with +out dllimp ort attribute: previous dllimport ignored PJS_Call.c:113: warning: `perl_call_sv_with_jsvals' redeclared without + dllimport attribute: previous dllimport ignored PJS_Call.c:124: warning: `PJS_call_javascript_function' redeclared wit +hout dllim port attribute: previous dllimport ignored PJS_Call.c:161: warning: `perl_call_jsfunc' redeclared without dllimpo +rt attribu te: previous dllimport ignored gcc-4 -c -I/cygdrive/c/ravi/spidermonkey/js/src/ -I/cygdrive/c/ravi/s +pidermonke y/nspr-4.6.4_DBG/include/ -DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -g3 + -fno-stri ct-aliasing -pipe -fstack-protector -I/usr/local/include -DUSEIMPORTLI +B -O3 -D VERSION=\"1.16\" -DXS_VERSION=\"1.16\" "-I/usr/lib/perl5/5.10/i686-cy +gwin/CORE" PJS_Class.c PJS_Class.c:14: warning: `PJS_get_method_by_name' redeclared without d +llimport a ttribute: previous dllimport ignored PJS_Class.c:30: warning: `PJS_get_property_by_id' redeclared without d +llimport a ttribute: previous dllimport ignored PJS_Class.c:49: warning: `PJS_free_class' redeclared without dllimport + attribute : previous dllimport ignored PJS_Class.c:91: warning: `PJS_bind_class' redeclared without dllimport + attribute : previous dllimport ignored PJS_Class.c:175: warning: `PJS_store_class' redeclared without dllimpo +rt attribu te after being referenced with dll linkage PJS_Class.c:194: warning: `PJS_finalize' redeclared without dllimport +attribute after being referenced with dll linkage PJS_Class.c:205: warning: `PJS_construct_perl_object' redeclared witho +ut dllimpo rt attribute after being referenced with dll linkage PJS_Class.c:243: warning: `PJS_add_class_properties' redeclared withou +t dllimpor t attribute after being referenced with dll linkage PJS_Class.c:310: warning: `PJS_add_class_functions' redeclared without + dllimport attribute after being referenced with dll linkage PJS_Class.c:377: warning: `PJS_invoke_perl_object_method' redeclared w +ithout dll import attribute after being referenced with dll linkage PJS_Class.c:442: warning: `PJS_GetClassName' redeclared without dllimp +ort attrib ute: previous dllimport ignored PJS_Class.c:451: warning: `PJS_GetClassPackage' redeclared without dll +import att ribute: previous dllimport ignored gcc-4 -c -I/cygdrive/c/ravi/spidermonkey/js/src/ -I/cygdrive/c/ravi/s +pidermonke y/nspr-4.6.4_DBG/include/ -DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -g3 + -fno-stri ct-aliasing -pipe -fstack-protector -I/usr/local/include -DUSEIMPORTLI +B -O3 -D VERSION=\"1.16\" -DXS_VERSION=\"1.16\" "-I/usr/lib/perl5/5.10/i686-cy +gwin/CORE" PJS_Context.c PJS_Context.c:25: warning: `PJS_GetFunctionByName' redeclared without +dllimport attribute: previous dllimport ignored PJS_Context.c:41: warning: `PJS_GetClassByName' redeclared without dll +import att ribute: previous dllimport ignored PJS_Context.c:57: warning: `PJS_GetClassByPackage' redeclared without +dllimport attribute: previous dllimport ignored PJS_Context.c:75: warning: `PJS_CreateContext' redeclared without dlli +mport attr ibute: previous dllimport ignored PJS_Context.c:139: warning: `PJS_DestroyContext' redeclared without dl +limport at tribute after being referenced with dll linkage PJS_Context.c:169: warning: `PJS_DefineFunction' redeclared without dl +limport at tribute: previous dllimport ignored PJS_Context.c:202: warning: `PJS_branch_handler' redeclared without dl +limport at ........ .......
As I don't have much idea about perl so looking for a help to resolve it.

In reply to installing JavaScript.pm using Cygwin by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.