[Pkg-javascript-devel] Bug#644463: libnode-node-expat: Object has no method 'addListener' (incompatible with node 4?)
Jason Woofenden
jason at jasonwoof.com
Thu Oct 6 05:32:55 UTC 2011
Package: libnode-node-expat
Version: 1.4.0-1
Severity: important
Hello,
libnode-node-expat doesn't work for me at all on debian unstable.
Just to be sure it wasn't my code, I've modified the test.js that
comes with node-expat just slightly (fixing the "require" line at
the top to use the system node-expat) and it bails with this
message:
> node xmltest.js
{}
node.js:134
throw e; // process.nextTick error, or 'error' event on first tick
^
TypeError: Object [object Object] has no method 'addListener'
at Object.<anonymous> (/home/jasonwoof/dev/libre.fm-cmus/xmltest.js:196:8)
at run (/usr/lib/nodejs/vows/suite.js:130:31)
at EventEmitter.<anonymous> (/usr/lib/nodejs/vows/suite.js:203:40)
at EventEmitter.emit (events.js:81:20)
at Array.<anonymous> (/usr/lib/nodejs/vows/suite.js:152:58)
at EventEmitter._tickCallback (node.js:126:26)
zsh: exit 1 node xmltest.js
compy ~/dev/libre.fm-cmus>
Attached is the xmltest.js used above.
I poked around a bit, and it looks like there's a recent commit
that changes the way node-expat integrates with the EventEmitter
class to make it compatible with node v5. My guess is that this
change broke compatibility with node v4.
Links about v5 compatibility change:
https://github.com/astro/node-expat/issues/19
https://groups.google.com/group/nodejs/browse_thread/thread/ae6bc0e37e2edc39
https://github.com/astro/node-expat/commit/2f24b623e8cc5dae22f79bf51501382803e5bb73
I tried installing libnode-node-expat_1.3.0-1_i386.deb from
snapshots.debian.org, but that just segfaults for me.
Maybe nodejs v5 is coming to debian soon?
Thanks, - Jason
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 3.0.0-1-686-pae (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages libnode-node-expat depends on:
ii libc6 2.13-21
ii libexpat1 2.0.1-7
ii libgcc1 1:4.6.1-13
ii libstdc++6 4.6.1-13
ii nodejs 0.4.12-1
libnode-node-expat recommends no packages.
libnode-node-expat suggests no packages.
-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xmltest.js
Type: application/javascript
Size: 7154 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-javascript-devel/attachments/20111006/706261da/attachment.js>
More information about the Pkg-javascript-devel
mailing list