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

Build problems on Debian Sid

1 view
Skip to first unread message

Martyn Smith

unread,
Mar 6, 2007, 3:46:52 PM3/6/07
to perl-ja...@perl.org
I tried using dh-make-perl to build a new version of JavaScript (Debian
Sid only has 0.55 :( )

I'm having the tests fail with messages like ...

t/00-init.........................NOK 1# Tried to use 'JavaScript'.
# Error: Can't load '/home/martyn/src/debian/JavaScript-1.03/blib/arch/auto/JavaScript/JavaScript.so' for module JavaScript: /home/martyn/src/debian/JavaScript-1.03/blib/arch/auto/JavaScript/JavaScript.so: undefined symbol: js_InternalInvoke at /usr/lib/perl/5.8/DynaLoader.pm line 225.
# at (eval 3) line 2
# Compilation failed in require at (eval 3) line 2.
# BEGIN failed--compilation aborted at t/00-init.t line 5.
# Looks like you failed 1 test of 1.
t/00-init.........................dubious
Test returned status 1 (wstat 256, 0x100)
DIED. FAILED test 1
Failed 1/1 tests, 0.00% okay


I have installed libmozjs-dev and libmozjs0d, I'm not quite sure what to try next :(

Any ideas?

Thanks,

Martyn

signature.asc

Claes Jakobsson

unread,
Mar 6, 2007, 4:05:33 PM3/6/07
to Martyn Smith, perl-ja...@perl.org
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.

/Claes

Martyn Smith

unread,
Mar 6, 2007, 4:09:03 PM3/6/07
to Claes Jakobsson, perl-ja...@perl.org
Right, I'll give that a whirl when I get a chance ... thanks for the
quick response :)

--
Martyn

signature.asc

Martyn Smith

unread,
Mar 8, 2007, 3:36:45 PM3/8/07
to Claes Jakobsson, perl-ja...@perl.org
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't using my compiled version of the
SpiderMonkey lib

Any ideas on what I need to change to make that happen ?

--
Martyn

On Tue, 2007-03-06 at 22:05 +0100, Claes Jakobsson wrote:

signature.asc

Stig Brautaset

unread,
Mar 8, 2007, 6:56:05 PM3/8/07
to perl-ja...@perl.org
Hi Martyn,

Where did you install SpiderMonkey? If you installed it into /usr/
local/lib (the default?) you may need to add that directory to /etc/
ld.so.conf and re-run /sbin/ldconfig .

Hope that helps,

Stig

0 new messages