perl.javascript...bind_function (1.03) by Martyn Smith- March 27, 2007 I have a weird problem, I&39;m binding a function like so ...$cx->bind_function(connect => sub my ($param1, $param2) = _; ...);If I call the function like this ...connect(function () , &39;string&39;);it&39;s fine, everything works as I expect.If I call it like this however ...connect(&39;string&39;, function () );$param1 comes through as undef, and the function comes through fine.Anyone have any ideas --Martynhttp://www.nntp.perl.org/group/perl.javascript/2007/03/msg61.html bind_class by Jesse Thompson- March 25, 2007 Hello!Bravo on continuing development Claes, the E4x support looks smashing. Ihaven&39;t used E4x yet in practice but I understand the theory and I am quiteexcited!What I am researching right now however is database support. I do not expectyou to build that into JavaScript.pm of course. All I would like is some wayto access perl&39;s DBI cpan module from Javascript.I run into problems trying to bind_class DBI and it&39;s ilk (such as theDBI::db object returned by &DBI::connect). First of...http://www.nntp.perl.org/group/perl.javascript/2007/03/msg60.html Re: Build problems on Debian Sid by Stig Brautaset- March 8, 2007 Hi Martyn,Where did you install SpiderMonkey If you installed it into usr locallib (the default) you may need to add that directory to etc ld.so.conf and re-run sbinldconfig .Hope that helps,StigOn 8 Mar 2007, at 20:36, Martyn Smith wrote:> So I managed to get it to build, and the tests ran and passed.>> But now I have the problem of having installed it (I used dh-make-perl> still), and it obviously isn&39;t using my compiled version of the> SpiderMonkey lib>> Any ideas on..http://www.nntp.perl.org/group/perl.javascript/2007/03/msg59.html Re: Build problems on Debian Sid by Martyn Smith- March 8, 2007 So I managed to get it to build, and the tests ran and passed.But now I have the problem of having installed it (I used dh-make-perlstill), and it obviously isn&39;t using my compiled version of theSpiderMonkey libAny ideas on what I need to change to make that happen --MartynOn Tue, 2007-03-06 at 22:05 +0100, Claes Jakobsson wrote:> Hi,> > There seems to be something wrong currently with the build process > when linking aginst Debian supplied spidermonkey. Others have >...http://www.nntp.perl.org/group/perl.javascript/2007/03/msg58.html Re: Build problems on Debian Sid by Martyn Smith- March 6, 2007 Right, I&39;ll give that a whirl when I get a chance ... thanks for thequick response :)--MartynOn Tue, 2007-03-06 at 22:05 +0100, Claes Jakobsson wrote:> Hi,> > There seems to be something wrong currently with the build process > when linking aginst Debian supplied spidermonkey. Others have > reported the same problem.> > The easiest way to solve it right now is that you download and build > your own SpiderMonkey and link aginst that.> > When running...http://www.nntp.perl.org/group/perl.javascript/2007/03/msg57.html Re: Build problems on Debian Sid by Claes Jakobsson- March 6, 2007 Hi,There seems to be something wrong currently with the build process when linking aginst Debian supplied spidermonkey. Others have reported the same problem.The easiest way to solve it right now is that you download and build your own SpiderMonkey and link aginst that.When running Makefile.PL, make sure your environment variable JS_INC is set to the paths where your SpiderMonkey includes are (use : to separate directories) and JS_LIB to point to the path where the libjs.so is.ClaesOn 6...http://www.nntp.perl.org/group/perl.javascript/2007/03/msg56.html Build problems on Debian Sid by Martyn Smith- March 6, 2007 I tried using dh-make-perl to build a new version of JavaScript (DebianSid only has 0.55 :( )I&39;m having the tests fail with messages like ...t00-init.........................NOK 1 Tried to use &39;JavaScript&39;. Error: Can&39;t load &39;homemartynsrcdebianJavaScript-1.03blibarchautoJavaScriptJavaScript.so&39; for module JavaScript: homemartynsrcdebianJavaScript-1.03blibarchautoJavaScriptJavaScript.so: undefined symbol: js_InternalInvoke at usrlibperl5.8DynaLoader.pm line 225..http://www.nntp.perl.org/group/perl.javascript/2007/03/msg55.html |