[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: libjavascript-perl

On Sun, Apr 15, 2007 at 04:43:17PM +0200, gregor herrmann wrote:

> > There's a newer upstream release (1.03) available, and the changes

> #   Failed test 'use JavaScript;'
> #   in t/00-init.t at line 5.
> #     Tried to use 'JavaScript'.
> #     Error:  Can't load '/tmp/buildd/libjavascript-perl-1.03/blib/arch/auto/JavaScript/JavaScript.so' for module JavaScript: /tmp/buildd/libjavascript-perl-1.03/blib/arch/auto/JavaScript/JavaScript.so: undefined symbol: js_InternalInvoke at /usr/lib/perl/5.8/DynaLoader.pm line 225.

This is because JavaScript.xs uses js_InternalCall(), #define'd to
js_InternalInvoke() in <mozjs/js_interp.h>, but js_InternalInvoke()
isn't declared as part of the API in the xulrunner source and thus gets
hidden by default when linking (gcc -fvisibility=hidden).

The symbols aren't hidden by default when installing libmozjs from the
separate tarball at mozilla.org, which is probably why it's working for
other people.

I haven't filed any bugs yet, will do tomorrow. 

Niko Tyni   ntyni@iki.fi

Reply to: