-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Loading error: undefined symbol: LIBXSLT_DEFAULT_PLUGINS_PATH #18
Comments
Is this reproducible for anybody? |
Resolved in 0.5.3. Whoheee! 👍 |
Maybe I cheered too soon. I'll update this. |
I tried dozens of different Ubuntu version/64-32bit/node version combos. In some the issue occurred. In others it didn't. Doesn't seem to relate to any of those 3 parameters. The only interesting finding is that it seems that when the ==> default: ../deps/libxslt/libxslt/extensions.c: In function ‘xsltExtModuleRegisterDynamic’:
==> default: ../deps/libxslt/libxslt/extensions.c:377:9: warning: implicit declaration of function ‘LIBXSLT_DEFAULT_PLUGINS_PATH’ [-Wimplicit-function-declaration]
==> default: ext_directory = BAD_CAST LIBXSLT_DEFAULT_PLUGINS_PATH();
==> default: ^
==> default: In file included from /vagrant/node_modules/libxslt/node_modules/libxmljs-mt/vendor/libxml/include/libxml/tree.h:18:0,
==> default: from /vagrant/node_modules/libxslt/node_modules/libxmljs-mt/vendor/libxml/include/libxml/parser.h:16,
==> default: from /vagrant/node_modules/libxslt/node_modules/libxmljs-mt/vendor/libxml/include/libxml/globals.h:18,
==> default: from /vagrant/node_modules/libxslt/node_modules/libxmljs-mt/vendor/libxml/include/libxml/threads.h:35,
==> default: from /vagrant/node_modules/libxslt/node_modules/libxmljs-mt/vendor/libxml/include/libxml/xmlmemory.h:218,
==> default: from ../deps/libxslt/libxslt/extensions.c:18:
==> default: /vagrant/node_modules/libxslt/node_modules/libxmljs-mt/vendor/libxml/include/libxml/xmlstring.h:35:18: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
==> default: #define BAD_CAST (xmlChar *)
==> default: ^
==> default: ../deps/libxslt/libxslt/extensions.c:377:25: note: in expansion of macro ‘BAD_CAST’
==> default: ext_directory = BAD_CAST LIBXSLT_DEFAULT_PLUGINS_PATH();
==> default: ^
==> default: ../deps/libxslt/libxslt/extensions.c: In function ‘xsltRegisterExtModuleElement’:
==> default: ../deps/libxslt/libxslt/extensions.c:1625:9: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]
==> default: int ret;
==> default: ^ If the above output is missing the issue does occur. It occurs in the default Travis test environment (Ubuntu 12.04, 64 bit). Do you want a PR that simply adds a test for something like: it('is loadable with require()', function(){
require('libxslt').should.be.type('object');
}); |
update: Even if require('libxslt') doesn't fail, actually using the module will still show an error: dyld: lazy symbol binding failed: Symbol not found: _LIBXSLT_DEFAULT_PLUGINS_PATH
Referenced from: /Users/martijnvanderijdt/Dropbox/enketo-transformer/node_modules/libxslt/build/Release/node-libxslt.node
Expected in: dynamic lookup
dyld: Symbol not found: _LIBXSLT_DEFAULT_PLUGINS_PATH
Referenced from: /Users/martijnvanderijdt/Dropbox/enketo-transformer/node_modules/libxslt/build/Release/node-libxslt.node
Expected in: dynamic lookup
Trace/BPT trap: 5 |
Ok, sorry for the delay, I will have a look soon. Last items are interesting, I do not reproduce the failure, but I do see the warning. So fixing the latter might do the trick. Unfortunately I can't take time at work, and my home internet connection is broken right now. So it won't be before a few days. |
Can you try with the latest release (0.5.4) please ? |
This fixed it! 👍 Fantastic! Thanks a lot. Successfully tested in Ubuntu 14.04 (node 0.10 and 0.12) (I'm getting a segmentation fault in OS X (node 0.10 and 0.12) but that seems to be entirely different (somewhat known) libxmljs issue.) |
Loading the latest node-libxslt module fails.
Reproduce (used node v0.12.7 on Ubuntu 14.04):
npm install libxslt
node
> var libxslt = require('libxslt');
Error:
(this works fine in node-libxslt v0.4.1)
The text was updated successfully, but these errors were encountered: