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. ======================================== 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 ========================================
