Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

has anyone had success with JavaScript-0.55?

0 views
Skip to first unread message

Christian Montanari

unread,
Nov 17, 2005, 5:03:35 AM11/17/05
to cygwi...@yahoogroups.com
Hi,

I am trying to read javascript: urls with LWP (under cygwin).

Then imported the JavaScript-0.55 perl package,
but after an slightly modified compilation...
I succeded to build (but badly) the JavaScript.dll with js from ftp://ftp.mozilla.org/???/js.
I had to fiddle with a few settings in js-1.5 but made js.exe to work.

However, arriving to the perl package I failed miserably with this:

"....Can't load '/usr/src/JavaScript-0.55/blib/arch/auto/JavaScript/JavaScript.dll' for module JavaScript: Bad address at /usr/lib/perl5/5.8/cygwin/DynaLoader.pm line 230..."

Then I cropped down to bare minimum the JavaScript.pm and JavaScript.xs, but still ended with failure:

"....Can't load '/usr/src/JavaScript-0.55/blib/arch/auto/JavaScript/JavaScript.dll' for module JavaScript: No such file or directory at /usr/lib/perl5/5.8/cygwin/DynaLoader.pm line 230...."


Has anyone had better experience with those packages and give me some tips on how to carry the installation?

Are there better ways to implement javascript modules under LWP (a la cygwin)?

How to use gdb with a perl session, and trap the cause of dynamic loader failure?


Thanks for any answers,

Christian.
--
========================================
Dr. Christian Montanari,
SHARP TELECOMMUNICATIONS OF EUROPE Ltd.,
Azure House,
Bagshot Road,
Bracknell,
Berks, RG12 7QY, UK.
Tel: +44 (0) 1344 301883
Fax: +44 (0) 1344 300293
========================================

Christian Montanari

unread,
Nov 17, 2005, 8:34:49 AM11/17/05
to cygwi...@yahoogroups.com, perl-ja...@perl.org
On Thu, Nov 17, 2005 at 10:03:35AM +0000, Christian Montanari wrote:
> I am trying to read javascript: urls with LWP (under cygwin).
>
> Then imported the JavaScript-0.55 perl package,
> but after an slightly modified compilation...
> I succeded to build (but badly) the JavaScript.dll with js from ftp://ftp.mozilla.org/???/js.
> I had to fiddle with a few settings in js-1.5 but made js.exe to work.
>
> However, arriving to the perl package I failed miserably with this:
>
> "....Can't load '/usr/src/JavaScript-0.55/blib/arch/auto/JavaScript/JavaScript.dll' for module JavaScript: Bad address at /usr/lib/perl5/5.8/cygwin/DynaLoader.pm line 230..."

however,

make test

is ok when I link JavaScript.dll staticaly with something like /usr/local/lib/libjs.a.

as opposed to...

LD_RUN_PATH="" ld2 -s -L/usr/local/lib JavaScript.o -o blib/arch/auto/JavaScript/JavaScript.dll /usr/lib/perl5/5.8/cygwin/CORE/libperl.dll.a -ljs


which will not.

So it comes to how to properly create a js.dll in cygwin environment? is ld2 the right way?

> Are there better ways to implement javascript modules under LWP (a la cygwin)?
>
> How to use gdb with a perl session, and trap the cause of dynamic loader failure?

thanks for any answers,

Christian.

0 new messages