Skip Menu |

This queue is for tickets about the JavaScript CPAN distribution.

Report information
The Basics
Id: 1422
Status: resolved
Priority: 0/
Queue: JavaScript

Owner: CLAESJAC [...]
Requestors: crazyinsomniac [...]

Bug Information
Severity: Critical
Broken in:
  • 0.5
  • 0.51
  • 0.52
Fixed in:
  • 1.00
  • 1.00_02
  • 1.02

Subject: Compilation errors under win32 ~ a solution
Download (untitled) / with headers
text/plain 1.3k
This failed to compile on Win32, as per my report at I have contacted the author with the folling email, but I haven't heard from him, or seen an updated version released to cpan, so here is the email I sent him (the bug-fix is ridiculously simple) In JavaScript.xs, I just switched the order of the includes like so. #include <jsapi.h> #include <malloc.h> #include "EXTERN.h" #include "perl.h" #include "XSUB.h" This fixes all the errors, but there are still warnings (but the tests all pass, see cpan-test'ers report for the errors and warnings, as until you upload a new version, the report will have to read FAIL) Also, in JavaScript.pod, in the first example you use q!! ad delimeters, but this fails cause you say call 'strange(" rox!", 10);' the ! causes a compile error. Anyone remotely experienced with perl could figure this out, but there are way too many cluess folks out there so it helps to fix this. Just use "balanced" delimiters, like q[] or q(), or even q{} Also, in the Makefile.PL, you don't set the AUTHOR attribute but just leave the default h2xs one. If i were you i'd set that ;) If you want to check out a win32 version of JavaScript, I have a PPM package available at my repository, Thanks.

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to