Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

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.

Replies are listed 'Best First'.
Re: installing JavaScript.pm using Cygwin
by vkon (Curate) on Mar 24, 2011 at 08:28 UTC
    I see lots of warnings but no errors, so I guess actual errors are not cited here
      let me send you the complete exception which I am getting
      Skip blib/lib/JavaScript/PerlHash.pm (unchanged) Skip blib/arch/auto/JavaScript/PJS_TypeConversion.h (unchanged) Skip blib/lib/Test/JavaScript/More.pm (unchanged) Skip blib/arch/auto/JavaScript/PJS_Property.h (unchanged) Skip blib/lib/JavaScript/Boxed.pm (unchanged) Skip blib/arch/auto/JavaScript/PJS_Common.h (unchanged) Skip blib/arch/auto/JavaScript/PJS_Script.h (unchanged) Skip blib/lib/JavaScript/Script.pm (unchanged) Skip blib/lib/JavaScript/PerlArray.pm (unchanged) Skip blib/lib/JavaScript/Error.pm (unchanged) Skip blib/lib/JavaScript.pm (unchanged) Skip blib/arch/auto/JavaScript/typemap (unchanged) Skip blib/lib/JavaScript/Runtime.pm (unchanged) Skip blib/arch/auto/JavaScript/JavaScript.h (unchanged) Skip blib/arch/auto/JavaScript/PJS_Context.h (unchanged) Skip blib/arch/auto/JavaScript/PJS_PerlArray.h (unchanged) Skip blib/arch/auto/JavaScript/PJS_Runtime.h (unchanged) Skip blib/arch/auto/JavaScript/PJS_PerlHash.h (unchanged) Skip blib/lib/JavaScript/Function.pm (unchanged) Skip blib/arch/auto/JavaScript/PJS_Call.h (unchanged) Skip blib/arch/auto/JavaScript/PJS_Function.h (unchanged) Skip blib/arch/auto/JavaScript/PJS_Exceptions.h (unchanged) Skip blib/arch/auto/JavaScript/PJS_PerlSub.h (unchanged) Skip blib/arch/auto/JavaScript/PJS_Class.h (unchanged) Skip blib/lib/JavaScript/Context.pm (unchanged) Skip blib/lib/JavaScript/Generator.pm (unchanged) Skip blib/arch/auto/JavaScript/JavaScript_Env.h (unchanged) Skip blib/arch/auto/JavaScript/PJS_Types.h (unchanged) 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 tribute: 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_Exceptions.c 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_Function.c PJS_Function.c:8: warning: `PJS_free_JSFunctionSpec' redeclared withou +t dllimpor t attribute: previous dllimport ignored PJS_Function.c:23: warning: `PJS_invoke_perl_function' redeclared with +out dllimp ort attribute: previous dllimport ignored PJS_Function.c:44: warning: `PJS_CreateFunction' redeclared without dl +limport at tribute: previous dllimport ignored PJS_Function.c:73: warning: `PJS_DestroyFunction' redeclared without d +llimport a ttribute: previous dllimport ignored PJS_Function.c:94: warning: `PJS_GetFunctionName' redeclared without d +llimport a ttribute: previous dllimport ignored PJS_Function.c:103: warning: `PJS_GetFunctionTarget' redeclared withou +t dllimpor t attribute: 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_PerlArray.c PJS_PerlArray.c:45: warning: `PJS_NewPerlArray' redeclared without dll +import att ribute: previous dllimport ignored PJS_PerlArray.c:55: warning: `PJS_InitPerlArrayClass' redeclared witho +ut dllimpo rt attribute: 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_PerlHash.c PJS_PerlHash.c:34: warning: `PJS_NewPerlHash' redeclared without dllim +port attri bute: previous dllimport ignored PJS_PerlHash.c:44: warning: `PJS_InitPerlHashClass' redeclared without + dllimport attribute: 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_PerlSub.c PJS_PerlSub.c:51: warning: `PJS_NewPerlSubObject' redeclared without d +llimport a ttribute: previous dllimport ignored PJS_PerlSub.c:64: warning: `PJS_InitPerlSubClass' redeclared without d +llimport a ttribute: 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_Property.c PJS_Property.c:13: warning: `PJS_free_property' redeclared without dll +import att ribute: previous dllimport ignored PJS_Property.c:30: warning: `PJS_free_JSPropertySpec' redeclared witho +ut dllimpo rt attribute: previous dllimport ignored PJS_Property.c:45: warning: `PJS_invoke_perl_property_getter' redeclar +ed without dllimport attribute: previous dllimport ignored PJS_Property.c:113: warning: `PJS_invoke_perl_property_setter' redecla +red withou t dllimport attribute: 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_Runtime.c PJS_Runtime.c:3: warning: `PJS_trap_handler' redeclared without dllimp +ort attrib ute: previous dllimport ignored PJS_Runtime.c:17: warning: `PJS_perl_trap_handler' redeclared without +dllimport attribute: previous dllimport ignored PJS_Runtime.c:67: warning: `PJS_CreateRuntime' redeclared without dlli +mport attr ibute: previous dllimport ignored PJS_Runtime.c:93: warning: `PJS_DestroyRuntime' redeclared without dll +import att ribute: previous dllimport ignored PJS_Runtime.c:102: warning: `PJS_AddTrapHandler' redeclared without dl +limport at tribute: previous dllimport ignored PJS_Runtime.c:121: warning: `PJS_RemoveTrapHandler' redeclared without + dllimport attribute: 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_TypeConversion.c PJS_TypeConversion.c:32: warning: `PJS_ConvertPerlToJSType' redeclared + without d llimport attribute: previous dllimport ignored PJS_TypeConversion.c:253: warning: `JSVALToSV' redeclared without dlli +mport attr ibute: previous dllimport ignored PJS_TypeConversion.c:436: warning: `JSARRToSV' redeclared without dlli +mport attr ibute after being referenced with dll linkage PJS_TypeConversion.c:465: warning: `JSHASHToSV' redeclared without dll +import att ribute after being referenced with dll linkage rm -f blib/arch/auto/JavaScript/JavaScript.dll g++-4 --shared -Wl,--enable-auto-import -Wl,--export-all-symbols -Wl +,--stack,8 388608 -Wl,--enable-auto-image-base -L/usr/local/lib -fstack-protector + JavaScrip t.o PJS_Call.o PJS_Class.o PJS_Context.o PJS_Exceptions.o PJS_Function +.o PJS_Per lArray.o PJS_PerlHash.o PJS_PerlSub.o PJS_Property.o PJS_Runtime.o PJS +_TypeConve rsion.o -o blib/arch/auto/JavaScript/JavaScript.dll \ /usr/lib/perl5/5.10/i686-cygwin/CORE/cygperl5_10.dll -L/cygd +rive/c/rav i/js/src/Linux_All_DBG.OBJ/ -ljs \ JavaScript.o: In function `XS_JavaScript__PerlFunction_DESTROY': /home/ss/.cpan/build/JavaScript-1.16-XniB6r/JavaScript.xs:603: undefin +ed referen ce to `__imp__PJS_DestroyFunction' JavaScript.o: In function `XS_JavaScript__PerlClass_DESTROY': /home/ss/.cpan/build/JavaScript-1.16-XniB6r/JavaScript.xs:594: undefin +ed referen ce to `__imp__PJS_free_class' JavaScript.o: In function `XS_JavaScript__PerlHash_new': /home/ss/.cpan/build/JavaScript-1.16-XniB6r/JavaScript.xs:557: undefin +ed referen ce to `__imp__PJS_NewPerlHash' JavaScript.o: In function `XS_JavaScript__PerlArray_new': /home/ss/.cpan/build/JavaScript-1.16-XniB6r/JavaScript.xs:526: undefin +ed referen ce to `__imp__PJS_NewPerlArray' JavaScript.o: In function `XS_JavaScript__Runtime_jsr_init_perl_interr +upt_handle r': /home/ss/.cpan/build/JavaScript-1.16-XniB6r/JavaScript.xs:101: undefin +ed referen ce to `__imp__PJS_perl_trap_handler' JavaScript.o: In function `XS_JavaScript__Script_jss_execute': /home/ss/.cpan/build/JavaScript-1.16-XniB6r/JavaScript.c:1245: undefin +ed referen ce to `__imp__JSVALToSV' JavaScript.o: In function `XS_JavaScript__Context_jsc_call_in_context' +: /home/ss/.cpan/build/JavaScript-1.16-XniB6r/JavaScript.xs:403: undefin +ed referen ce to `__imp__PJS_call_perl_method' /home/ss/.cpan/build/JavaScript-1.16-XniB6r/JavaScript.xs:408: undefin +ed referen ce to `__imp__PJS_ConvertPerlToJSType' /home/ss/.cpan/build/JavaScript-1.16-XniB6r/JavaScript.xs:433: undefin +ed referen ce to `__imp__JSVALToSV' /home/ss/.cpan/build/JavaScript-1.16-XniB6r/JavaScript.xs:411: undefin +ed referen ce to `__imp__PJS_ConvertPerlToJSType' JavaScript.o: In function `XS_JavaScript__Context_jsc_call': /home/ss/.cpan/build/JavaScript-1.16-XniB6r/JavaScript.xs:369: undefin +ed referen ce to `__imp__PJS_call_javascript_function' JavaScript.o: In function `XS_JavaScript__Context_jsc_call': /home/ss/.cpan/build/JavaScript-1.16-XniB6r/JavaScript.c:1008: undefin +ed referen ce to `__imp__JSVALToSV' JavaScript.o: In function `XS_JavaScript__Context_jsc_call': /home/ss/.cpan/build/JavaScript-1.16-XniB6r/JavaScript.xs:350: undefin +ed referen ce to `__imp__PJS_call_perl_method' JavaScript.o: In function `XS_JavaScript__Context_jsc_eval': /home/ss/.cpan/build/JavaScript-1.16-XniB6r/JavaScript.c:895: undefine +d referenc e to `__imp__JSVALToSV' JavaScript.o: In function `XS_JavaScript__Context_jsc_set_pending_exce +ption': /home/ss/.cpan/build/JavaScript-1.16-XniB6r/JavaScript.xs:244: undefin +ed referen ce to `__imp__PJS_ConvertPerlToJSType' JavaScript.o: In function `XS_JavaScript__Context_jsc_bind_value': /home/ss/.cpan/build/JavaScript-1.16-XniB6r/JavaScript.xs:221: undefin +ed referen ce to `__imp__PJS_ConvertPerlToJSType' JavaScript.o: In function `XS_JavaScript__Context_jsc_bind_class': /home/ss/.cpan/build/JavaScript-1.16-XniB6r/JavaScript.xs:199: undefin +ed referen ce to `__imp__PJS_bind_class' JavaScript.o: In function `XS_JavaScript__Context_jsc_bind_function': /home/ss/.cpan/build/JavaScript-1.16-XniB6r/JavaScript.xs:185: undefin +ed referen ce to `__imp__PJS_DefineFunction' JavaScript.o: In function `XS_JavaScript__Context_jsc_set_branch_handl +er': /home/ss/.cpan/build/JavaScript-1.16-XniB6r/JavaScript.xs:176: undefin +ed referen ce to `__imp__PJS_branch_handler' JavaScript.o: In function `XS_JavaScript__Context_jsc_destroy': /home/ss/.cpan/build/JavaScript-1.16-XniB6r/JavaScript.xs:136: undefin +ed referen ce to `__imp__PJS_DestroyContext' JavaScript.o: In function `XS_JavaScript__Context_jsc_create': /home/ss/.cpan/build/JavaScript-1.16-XniB6r/JavaScript.xs:120: undefin +ed referen ce to `__imp__PJS_CreateContext' JavaScript.o: In function `XS_JavaScript__Runtime_jsr_remove_interrupt +_handler': /home/ss/.cpan/build/JavaScript-1.16-XniB6r/JavaScript.xs:92: undefine +d referenc e to `__imp__PJS_RemoveTrapHandler' JavaScript.o: In function `XS_JavaScript__Runtime_jsr_add_interrupt_ha +ndler': /home/ss/.cpan/build/JavaScript-1.16-XniB6r/JavaScript.xs:85: undefine +d referenc e to `__imp__PJS_AddTrapHandler' JavaScript.o: In function `XS_JavaScript__Runtime_jsr_destroy': /home/ss/.cpan/build/JavaScript-1.16-XniB6r/JavaScript.xs:78: undefine +d referenc e to `__imp__PJS_DestroyRuntime' JavaScript.o: In function `XS_JavaScript__Runtime_jsr_create': /home/ss/.cpan/build/JavaScript-1.16-XniB6r/JavaScript.xs:69: undefine +d referenc e to `__imp__PJS_CreateRuntime' PJS_Call.o: In function `PJS_call_javascript_function': /home/ss/.cpan/build/JavaScript-1.16-XniB6r/PJS_Call.c:145: undefined +reference to `__imp__PJS_ConvertPerlToJSType' PJS_Call.o: In function `perl_call_sv_with_jsvals_rsv': /home/ss/.cpan/build/JavaScript-1.16-XniB6r/PJS_Call.c:59: undefined r +eference t o `__imp__JSVALToSV' /home/ss/.cpan/build/JavaScript-1.16-XniB6r/PJS_Call.c:88: undefined r +eference t o `__imp__PJS_ConvertPerlToJSType' PJS_Call.o: In function `perl_call_sv_with_jsvals': /home/ss/.cpan/build/JavaScript-1.16-XniB6r/PJS_Call.c:118: undefined +reference to `__imp__PJS_ConvertPerlToJSType' /home/ss/.cpan/build/JavaScript-1.16-XniB6r/PJS_Call.c:118: undefined +reference to `__imp__PJS_ConvertPerlToJSType' PJS_Class.o: In function `PJS_add_class_properties': /home/ss/.cpan/build/JavaScript-1.16-XniB6r/PJS_Class.c:284: undefined + reference to `__imp__PJS_invoke_perl_property_getter' /home/ss/.cpan/build/JavaScript-1.16-XniB6r/PJS_Class.c:285: undefined + reference to `__imp__PJS_invoke_perl_property_setter' /home/ss/.cpan/build/JavaScript-1.16-XniB6r/PJS_Class.c:284: undefined + reference to `__imp__PJS_invoke_perl_property_getter' /home/ss/.cpan/build/JavaScript-1.16-XniB6r/PJS_Class.c:285: undefined + reference to `__imp__PJS_invoke_perl_property_setter' PJS_Class.o: In function `PJS_construct_perl_object': /home/ss/.cpan/build/JavaScript-1.16-XniB6r/PJS_Class.c:218: undefined + reference to `__imp__PJS_GetClassByName' PJS_Class.o: In function `PJS_free_class': /home/ss/.cpan/build/JavaScript-1.16-XniB6r/PJS_Class.c:65: undefined +reference to `__imp__PJS_DestroyFunction' /home/ss/.cpan/build/JavaScript-1.16-XniB6r/PJS_Class.c:70: undefined +reference to `__imp__PJS_free_JSFunctionSpec' /home/ss/.cpan/build/JavaScript-1.16-XniB6r/PJS_Class.c:74: undefined +reference to `__imp__PJS_free_property' /home/ss/.cpan/build/JavaScript-1.16-XniB6r/PJS_Class.c:79: undefined +reference to `__imp__PJS_free_JSPropertySpec' PJS_Class.o: In function `PJS_bind_class': /home/ss/.cpan/build/JavaScript-1.16-XniB6r/PJS_Class.c:133: undefined + reference to `__imp__PJS_invoke_perl_property_getter' /home/ss/.cpan/build/JavaScript-1.16-XniB6r/PJS_Class.c:134: undefined + reference to `__imp__PJS_invoke_perl_property_setter' PJS_Class.o: In function `PJS_invoke_perl_object_method': /home/ss/.cpan/build/JavaScript-1.16-XniB6r/PJS_Class.c:408: undefined + reference to `__imp__PJS_GetClassByName' PJS_Context.o: In function `PJS_CreateContext': /home/ss/.cpan/build/JavaScript-1.16-XniB6r/PJS_Context.c:111: undefin +ed referen ce to `__imp__PJS_InitPerlArrayClass' /home/ss/.cpan/build/JavaScript-1.16-XniB6r/PJS_Context.c:116: undefin +ed referen ce to `__imp__PJS_InitPerlHashClass' /home/ss/.cpan/build/JavaScript-1.16-XniB6r/PJS_Context.c:121: undefin +ed referen ce to `__imp__PJS_InitPerlSubClass' PJS_Context.o: In function `PJS_DefineFunction': /home/ss/.cpan/build/JavaScript-1.16-XniB6r/PJS_Context.c:179: undefin +ed referen ce to `__imp__PJS_CreateFunction' /home/ss/.cpan/build/JavaScript-1.16-XniB6r/PJS_Context.c:184: undefin +ed referen ce to `__imp__PJS_invoke_perl_function' /home/ss/.cpan/build/JavaScript-1.16-XniB6r/PJS_Context.c:186: undefin +ed referen ce to `__imp__PJS_DestroyFunction' PJS_Exceptions.o: In function `PJS_report_exception': /home/ss/.cpan/build/JavaScript-1.16-XniB6r/PJS_Exceptions.c:18: undef +ined refer ence to `__imp__JSVALToSV' PJS_Function.o: In function `PJS_invoke_perl_function': /home/ss/.cpan/build/JavaScript-1.16-XniB6r/PJS_Function.c:32: undefin +ed referen ce to `__imp__PJS_GetFunctionByName' PJS_PerlArray.o: In function `PJS_InitPerlArrayClass': /home/ss/.cpan/build/JavaScript-1.16-XniB6r/PJS_PerlArray.c:70: undefi +ned refere nce to `__imp__PJS_store_class' PJS_PerlHash.o: In function `PJS_InitPerlHashClass': /home/ss/.cpan/build/JavaScript-1.16-XniB6r/PJS_PerlHash.c:59: undefin +ed referen ce to `__imp__PJS_store_class' PJS_PerlSub.o: In function `PJS_InitPerlSubClass': /home/ss/.cpan/build/JavaScript-1.16-XniB6r/PJS_PerlSub.c:79: undefine +d referenc e to `__imp__PJS_store_class' PJS_Property.o: In function `PJS_invoke_perl_property_setter': /home/ss/.cpan/build/JavaScript-1.16-XniB6r/PJS_Property.c:149: undefi +ned refere nce to `__imp__PJS_GetClassByName' /home/ss/.cpan/build/JavaScript-1.16-XniB6r/PJS_Property.c:156: undefi +ned refere nce to `__imp__PJS_get_property_by_id' PJS_Property.o: In function `PJS_invoke_perl_property_getter': /home/ss/.cpan/build/JavaScript-1.16-XniB6r/PJS_Property.c:81: undefin +ed referen ce to `__imp__PJS_GetClassByName' /home/ss/.cpan/build/JavaScript-1.16-XniB6r/PJS_Property.c:88: undefin +ed referen ce to `__imp__PJS_get_property_by_id' PJS_TypeConversion.o: In function `JSVALToSV': /home/ss/.cpan/build/JavaScript-1.16-XniB6r/PJS_TypeConversion.c:334: +undefined reference to `__imp__PJS_call_perl_method' /home/ss/.cpan/build/JavaScript-1.16-XniB6r/PJS_TypeConversion.c:392: +undefined reference to `__imp__PJS_call_perl_method' PJS_TypeConversion.o: In function `PJS_ConvertPerlToJSType': /home/ss/.cpan/build/JavaScript-1.16-XniB6r/PJS_TypeConversion.c:48: u +ndefined r eference to `__imp__PJS_call_perl_method' /home/ss/.cpan/build/JavaScript-1.16-XniB6r/PJS_TypeConversion.c:55: u +ndefined r eference to `__imp__PJS_call_perl_method' /home/ss/.cpan/build/JavaScript-1.16-XniB6r/PJS_TypeConversion.c:66: u +ndefined r eference to `__imp__PJS_GetClassByPackage' /home/ss/.cpan/build/JavaScript-1.16-XniB6r/PJS_TypeConversion.c:234: +undefined reference to `__imp__PJS_NewPerlSubObject' collect2: ld returned 1 exit status make: *** [blib/arch/auto/JavaScript/JavaScript.dll] Error 1
      and Here is the content of JavaScript_Env.h file generated
      #ifndef __JAVASCRIPT_ENV_H__ #define __JAVASCRIPT_ENV_H__ #define XP_UNIX #include </cygdrive/c/ravi/js/src/jsapi.h> #include </cygdrive/c/ravi/js/src/jsdbgapi.h> #include </cygdrive/c/ravi/js/src/jsinterp.h> #include </cygdrive/c/ravi/js/src/jsfun.h> #include </cygdrive/c/ravi/js/src/jsobj.h> #include </cygdrive/c/ravi/js/src/jsprf.h> #include </cygdrive/c/ravi/js/src/jsscope.h> #endif
      I made some progress based on the thread http://www.perlmonks.org/?node_id=786418 but after that I am still getting following error msg. Googling it does not provide any good reason for its cause:
      gcc-4 -c -I/cygdrive/c/ravi/js/src -DPERL_USE_SAFE_PUTENV -U__STRICT_ +ANSI__ -g3 -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -DU +SEIMPORTLI B -O3 -DVERSION=\"1.16\" -DXS_VERSION=\"1.16\" "-I/usr/lib/perl5/5. +10/i686-cy gwin/CORE" PJS_Call.c In file included from /usr/lib/perl5/5.10/i686-cygwin/CORE/perl.h:3427 +, from PJS_Call.c:1: /usr/lib/perl5/5.10/i686-cygwin/CORE/utf8.h:46: error: expected `=', ` +,', `;', ` asm' or `__attribute__' before `unsigned' In file included from PJS_Call.c:1: /usr/lib/perl5/5.10/i686-cygwin/CORE/perl.h:4205: error: expected `=', + `,', `;', `asm' or `__attribute__' before `char' /usr/lib/perl5/5.10/i686-cygwin/CORE/perl.h:4207: error: expected `=', + `,', `;', `asm' or `__attribute__' before `char' /usr/lib/perl5/5.10/i686-cygwin/CORE/perl.h:4209: error: expected `=', + `,', `;', `asm' or `__attribute__' before `char' /usr/lib/perl5/5.10/i686-cygwin/CORE/perl.h:4211: error: expected `=', + `,', `;', `asm' or `__attribute__' before `char' /usr/lib/perl5/5.10/i686-cygwin/CORE/perl.h:4213: error: expected `=', + `,', `;', `asm' or `__attribute__' before `char' /usr/lib/perl5/5.10/i686-cygwin/CORE/perl.h:4215: error: expected `=', + `,', `;', `asm' or `__attribute__' before `char'
        either H files or library files or both are not seen by the build process.

        You probable have been warned about this during your

        perl Makefile.PL
        process but this probably have been unnoticed by you.

        Can you show output of this command -

        perl Makefile.PL
        ?