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

Problems with JavaScript 1.04

0 views
Skip to first unread message

Gary Bruce

unread,
Nov 17, 2007, 9:06:54 PM11/17/07
to perl-ja...@perl.org
I'm having problems using JavaScript 1.04. I downloaded, unpacked and made
the tar file from the CPAN site.

The make and installation was somewhat problematic. The module would
not make using the CPAN module. The version downloaded by CPAN was 1.03 not
1.04.

After some investigation into this list I set the JS_INC and JS_LIB
environment variables as directed. I was able to get a clean "perl
Makefile.PL" and "make". "make test" failed 30 out of 32 tests, but the
"make install" seemed to do OK.

I cut and pasted the "99 bottles of beer" sample program from the man page.
Upon running it as "perl javatest.pl" I get the following error:

/libexec/ld-elf.so.1: /usr/local/lib/libnspr4.so.1: Undefined symbol
"pthread_condattr_init"

I'm running on FreeBSD 6.2 on an i386 32 bit platform.

Anyone have any ideas?

Thanks,
Gary

Claes Jakobsson

unread,
Nov 18, 2007, 11:23:41 AM11/18/07
to perl-ja...@perl.org
Hi,

This looks like a problem with the SpiderMonkey and NSPR libraries you
have installed on your machine and not a problem with JavaScript.pm.

What spidermonkey libs are you building against?

/Claes

Jesse Thompson

unread,
Nov 18, 2007, 12:06:11 PM11/18/07
to perl-ja...@perl.org
To back up Claes' point here, I had the smoothest install experience when I
built the JavaScript.pm package against a fresh download of the newest copy
of spidermonkey, at that time 1.6.

Claes Jakobsson

unread,
Nov 18, 2007, 12:12:25 PM11/18/07
to perl-ja...@perl.org
In order to make installation of JavaScript.pm a lot easier I'm
planning of bundling a suitable SpiderMonkey 1.7 or later and
integrate that into the build process like DBD::SQLite does. It will
still be possible to build against your own SpiderMonkey if you want
that.

At the same time I will also drop support for pre-1.7 SpiderMonkey
since they cause me headache. These are the plans for 1.1 so far.

/Claes

0 new messages