Skip to content

[email protected] thows error while installing libxslt #3096

@Anubhavevontech

Description

@Anubhavevontech
npm error code 1
npm error path /media/anubhav/data/lb4App/lb4InteliMigrate/node_modules/libxslt
npm error command failed
npm error command sh -c node-gyp rebuild
npm error make: Entering directory '/media/anubhav/data/lb4App/lb4InteliMigrate/node_modules/libxslt/build'
npm error   CC(target) Release/obj.target/libexslt/deps/libxslt/libexslt/common.o
npm error   CC(target) Release/obj.target/libexslt/deps/libxslt/libexslt/crypto.o
npm error   CC(target) Release/obj.target/libexslt/deps/libxslt/libexslt/date.o
npm error   CC(target) Release/obj.target/libexslt/deps/libxslt/libexslt/dynamic.o
npm error   CC(target) Release/obj.target/libexslt/deps/libxslt/libexslt/exslt.o
npm error   CC(target) Release/obj.target/libexslt/deps/libxslt/libexslt/functions.o
npm error   CC(target) Release/obj.target/libexslt/deps/libxslt/libexslt/math.o
npm error   CC(target) Release/obj.target/libexslt/deps/libxslt/libexslt/saxon.o
npm error   CC(target) Release/obj.target/libexslt/deps/libxslt/libexslt/sets.o
npm error   CC(target) Release/obj.target/libexslt/deps/libxslt/libexslt/strings.o
npm error rm -f Release/obj.target/deps/exslt.a Release/obj.target/deps/exslt.a.ar-file-list; mkdir -p `dirname Release/obj.target/deps/exslt.a`
npm error ar crs Release/obj.target/deps/exslt.a @Release/obj.target/deps/exslt.a.ar-file-list
npm error   COPY Release/exslt.a
npm error   TOUCH Release/obj.target/node_modules/node1-libxmljsmt-myh/all-settings.stamp
npm error   CXX(target) Release/obj.target/xmljs-myh/node_modules/node1-libxmljsmt-myh/src/libxmljs.o
npm error make: Leaving directory '/media/anubhav/data/lb4App/lb4InteliMigrate/node_modules/libxslt/build'
npm error gyp info it worked if it ends with ok
npm error gyp info using node-gyp@9.3.0
npm error gyp info using node@22.3.0 | linux | x64
npm error (node:22664) [DEP0060] DeprecationWarning: The `util._extend` API is deprecated. Please use Object.assign() instead.
npm error (Use `node --trace-deprecation ...` to show where the warning was created)
npm error gyp info find Python using Python version 3.8.10 found at "/usr/bin/python3"
npm error gyp info spawn /usr/bin/python3
npm error gyp info spawn args [
npm error gyp info spawn args   '/media/anubhav/data/lb4App/lb4InteliMigrate/node_modules/node-gyp/gyp/gyp_main.py',
npm error gyp info spawn args   'binding.gyp',
npm error gyp info spawn args   '-f',
npm error gyp info spawn args   'make',
npm error gyp info spawn args   '-I',
npm error gyp info spawn args   '/media/anubhav/data/lb4App/lb4InteliMigrate/node_modules/libxslt/build/config.gypi',
npm error gyp info spawn args   '-I',
npm error gyp info spawn args   '/media/anubhav/data/lb4App/lb4InteliMigrate/node_modules/libxslt/common.gypi',
npm error gyp info spawn args   '-I',
npm error gyp info spawn args   '/media/anubhav/data/lb4App/lb4InteliMigrate/node_modules/node-gyp/addon.gypi',
npm error gyp info spawn args   '-I',
npm error gyp info spawn args   '/home/anubhav/.cache/node-gyp/22.3.0/include/node/common.gypi',
npm error gyp info spawn args   '-Dlibrary=shared_library',
npm error gyp info spawn args   '-Dvisibility=default',
npm error gyp info spawn args   '-Dnode_root_dir=/home/anubhav/.cache/node-gyp/22.3.0',
npm error gyp info spawn args   '-Dnode_gyp_dir=/media/anubhav/data/lb4App/lb4InteliMigrate/node_modules/node-gyp',
npm error gyp info spawn args   '-Dnode_lib_file=/home/anubhav/.cache/node-gyp/22.3.0/<(target_arch)/node.lib',
npm error gyp info spawn args   '-Dmodule_root_dir=/media/anubhav/data/lb4App/lb4InteliMigrate/node_modules/libxslt',
npm error gyp info spawn args   '-Dnode_engine=v8',
npm error gyp info spawn args   '--depth=.',
npm error gyp info spawn args   '--no-parallel',
npm error gyp info spawn args   '--generator-output',
npm error gyp info spawn args   'build',
npm error gyp info spawn args   '-Goutput_dir=.'
npm error gyp info spawn args ]
npm error gyp info spawn make
npm error gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm error In file included from ../deps/libxslt/libexslt/libexslt.h:15,
npm error                  from ../deps/libxslt/libexslt/common.c:2:
npm error ../deps/libxslt.config/linux/x64/config.h:53: warning: "HAVE_LIBPTHREAD" redefined
npm error    53 | #define HAVE_LIBPTHREAD /**/
npm error       | 
npm error <command-line>: note: this is the location of the previous definition
npm error In file included from ../deps/libxslt/libexslt/libexslt.h:15,
npm error                  from ../deps/libxslt/libexslt/common.c:2:
npm error ../deps/libxslt.config/linux/x64/config.h:83: warning: "HAVE_PTHREAD_H" redefined
npm error    83 | #define HAVE_PTHREAD_H /**/
npm error       | 
npm error <command-line>: note: this is the location of the previous definition
npm error In file included from ../deps/libxslt/libexslt/libexslt.h:15,
npm error                  from ../deps/libxslt/libexslt/crypto.c:2:
npm error ../deps/libxslt.config/linux/x64/config.h:53: warning: "HAVE_LIBPTHREAD" redefined
npm error    53 | #define HAVE_LIBPTHREAD /**/
npm error       | 
npm error <command-line>: note: this is the location of the previous definition
npm error In file included from ../deps/libxslt/libexslt/libexslt.h:15,
npm error                  from ../deps/libxslt/libexslt/crypto.c:2:
npm error ../deps/libxslt.config/linux/x64/config.h:83: warning: "HAVE_PTHREAD_H" redefined
npm error    83 | #define HAVE_PTHREAD_H /**/
npm error       | 
npm error <command-line>: note: this is the location of the previous definition
npm error In file included from ../deps/libxslt/libexslt/libexslt.h:15,
npm error                  from ../deps/libxslt/libexslt/date.c:23:
npm error ../deps/libxslt.config/linux/x64/config.h:53: warning: "HAVE_LIBPTHREAD" redefined
npm error    53 | #define HAVE_LIBPTHREAD /**/
npm error       | 
npm error <command-line>: note: this is the location of the previous definition
npm error In file included from ../deps/libxslt/libexslt/libexslt.h:15,
npm error                  from ../deps/libxslt/libexslt/date.c:23:
npm error ../deps/libxslt.config/linux/x64/config.h:83: warning: "HAVE_PTHREAD_H" redefined
npm error    83 | #define HAVE_PTHREAD_H /**/
npm error       | 
npm error <command-line>: note: this is the location of the previous definition
npm error In file included from ../deps/libxslt/libexslt/libexslt.h:15,
npm error                  from ../deps/libxslt/libexslt/dynamic.c:24:
npm error ../deps/libxslt.config/linux/x64/config.h:53: warning: "HAVE_LIBPTHREAD" redefined
npm error    53 | #define HAVE_LIBPTHREAD /**/
npm error       | 
npm error <command-line>: note: this is the location of the previous definition
npm error In file included from ../deps/libxslt/libexslt/libexslt.h:15,
npm error                  from ../deps/libxslt/libexslt/dynamic.c:24:
npm error ../deps/libxslt.config/linux/x64/config.h:83: warning: "HAVE_PTHREAD_H" redefined
npm error    83 | #define HAVE_PTHREAD_H /**/
npm error       | 
npm error <command-line>: note: this is the location of the previous definition
npm error In file included from ../deps/libxslt/libexslt/libexslt.h:15,
npm error                  from ../deps/libxslt/libexslt/exslt.c:2:
npm error ../deps/libxslt.config/linux/x64/config.h:53: warning: "HAVE_LIBPTHREAD" redefined
npm error    53 | #define HAVE_LIBPTHREAD /**/
npm error       | 
npm error <command-line>: note: this is the location of the previous definition
npm error In file included from ../deps/libxslt/libexslt/libexslt.h:15,
npm error                  from ../deps/libxslt/libexslt/exslt.c:2:
npm error ../deps/libxslt.config/linux/x64/config.h:83: warning: "HAVE_PTHREAD_H" redefined
npm error    83 | #define HAVE_PTHREAD_H /**/
npm error       | 
npm error <command-line>: note: this is the location of the previous definition
npm error In file included from ../deps/libxslt/libexslt/libexslt.h:15,
npm error                  from ../deps/libxslt/libexslt/functions.c:2:
npm error ../deps/libxslt.config/linux/x64/config.h:53: warning: "HAVE_LIBPTHREAD" redefined
npm error    53 | #define HAVE_LIBPTHREAD /**/
npm error       | 
npm error <command-line>: note: this is the location of the previous definition
npm error In file included from ../deps/libxslt/libexslt/libexslt.h:15,
npm error                  from ../deps/libxslt/libexslt/functions.c:2:
npm error ../deps/libxslt.config/linux/x64/config.h:83: warning: "HAVE_PTHREAD_H" redefined
npm error    83 | #define HAVE_PTHREAD_H /**/
npm error       | 
npm error <command-line>: note: this is the location of the previous definition
npm error ../deps/libxslt/libexslt/functions.c: In functionexsltFuncStyleShutdown’:
npm error ../deps/libxslt/libexslt/functions.c:224:23: warning: cast between incompatible function types fromxmlFreeFunc’ {akavoid (*)(void *)’} tovoid (*)(void *, xmlChar *)’ {akavoid (*)(void *, unsigned char *)’} [-Wcast-function-type]
npm error   224 |     xmlHashFree(data, (xmlHashDeallocator) xmlFree);
npm error       |                       ^
npm error In file included from ../deps/libxslt/libexslt/libexslt.h:15,
npm error                  from ../deps/libxslt/libexslt/math.c:2:
npm error ../deps/libxslt.config/linux/x64/config.h:53: warning: "HAVE_LIBPTHREAD" redefined
npm error    53 | #define HAVE_LIBPTHREAD /**/
npm error       | 
npm error <command-line>: note: this is the location of the previous definition
npm error In file included from ../deps/libxslt/libexslt/libexslt.h:15,
npm error                  from ../deps/libxslt/libexslt/math.c:2:
npm error ../deps/libxslt.config/linux/x64/config.h:83: warning: "HAVE_PTHREAD_H" redefined
npm error    83 | #define HAVE_PTHREAD_H /**/
npm error       | 
npm error <command-line>: note: this is the location of the previous definition
npm error In file included from ../deps/libxslt/libexslt/libexslt.h:15,
npm error                  from ../deps/libxslt/libexslt/saxon.c:2:
npm error ../deps/libxslt.config/linux/x64/config.h:53: warning: "HAVE_LIBPTHREAD" redefined
npm error    53 | #define HAVE_LIBPTHREAD /**/
npm error       | 
npm error <command-line>: note: this is the location of the previous definition
npm error In file included from ../deps/libxslt/libexslt/libexslt.h:15,
npm error                  from ../deps/libxslt/libexslt/saxon.c:2:
npm error ../deps/libxslt.config/linux/x64/config.h:83: warning: "HAVE_PTHREAD_H" redefined
npm error    83 | #define HAVE_PTHREAD_H /**/
npm error       | 
npm error <command-line>: note: this is the location of the previous definition
npm error ../deps/libxslt/libexslt/saxon.c: In functionexsltSaxonShutdown’:
npm error ../deps/libxslt/libexslt/saxon.c:50:23: warning: cast between incompatible function types fromvoid (*)(xmlXPathCompExpr *)’ {akavoid (*)(struct _xmlXPathCompExpr *)’} tovoid (*)(void *, xmlChar *)’ {akavoid (*)(void *, unsigned char *)’} [-Wcast-function-type]
npm error    50 |     xmlHashFree(data, (xmlHashDeallocator) xmlXPathFreeCompExpr);
npm error       |                       ^
npm error In file included from ../deps/libxslt/libexslt/libexslt.h:15,
npm error                  from ../deps/libxslt/libexslt/sets.c:2:
npm error ../deps/libxslt.config/linux/x64/config.h:53: warning: "HAVE_LIBPTHREAD" redefined
npm error    53 | #define HAVE_LIBPTHREAD /**/
npm error       | 
npm error <command-line>: note: this is the location of the previous definition
npm error In file included from ../deps/libxslt/libexslt/libexslt.h:15,
npm error                  from ../deps/libxslt/libexslt/sets.c:2:
npm error ../deps/libxslt.config/linux/x64/config.h:83: warning: "HAVE_PTHREAD_H" redefined
npm error    83 | #define HAVE_PTHREAD_H /**/
npm error       | 
npm error <command-line>: note: this is the location of the previous definition
npm error In file included from ../deps/libxslt/libexslt/libexslt.h:15,
npm error                  from ../deps/libxslt/libexslt/strings.c:2:
npm error ../deps/libxslt.config/linux/x64/config.h:53: warning: "HAVE_LIBPTHREAD" redefined
npm error    53 | #define HAVE_LIBPTHREAD /**/
npm error       | 
npm error <command-line>: note: this is the location of the previous definition
npm error In file included from ../deps/libxslt/libexslt/libexslt.h:15,
npm error                  from ../deps/libxslt/libexslt/strings.c:2:
npm error ../deps/libxslt.config/linux/x64/config.h:83: warning: "HAVE_PTHREAD_H" redefined
npm error    83 | #define HAVE_PTHREAD_H /**/
npm error       | 
npm error <command-line>: note: this is the location of the previous definition
npm error In file included from /home/anubhav/.cache/node-gyp/22.3.0/include/node/v8-array-buffer.h:12,
npm error                  from /home/anubhav/.cache/node-gyp/22.3.0/include/node/v8.h:24,
npm error                  from ../node_modules/node1-libxmljsmt-myh/src/libxmljs.cc:3:
npm error /home/anubhav/.cache/node-gyp/22.3.0/include/node/v8-local-handle.h:401:30: warning: template-id not allowed for constructor in C++20 [-Wtemplate-id-cdtor]
npm error   401 |   V8_INLINE explicit Local<T>(const LocalBase<T>& other)
npm error       |                              ^
npm error /home/anubhav/.cache/node-gyp/22.3.0/include/node/v8-local-handle.h:401:30: note: remove the< >npm error In file included from ../node_modules/node1-libxmljsmt-myh/node_modules/nan/nan.h:178,
npm error                  from ../node_modules/node1-libxmljsmt-myh/src/libxmljs.h:7,
npm error                  from ../node_modules/node1-libxmljsmt-myh/src/libxmljs.cc:7:
npm error ../node_modules/node1-libxmljsmt-myh/node_modules/nan/nan_callbacks.h:55:23: error: ‘AccessorSignatureis not a member ofv8npm error    55 | typedef v8::Local<v8::AccessorSignature> Sig;
npm error       |                       ^~~~~~~~~~~~~~~~~
npm error ../node_modules/node1-libxmljsmt-myh/node_modules/nan/nan_callbacks.h:55:40: error: template argument 1 is invalid
npm error    55 | typedef v8::Local<v8::AccessorSignature> Sig;
npm error       |                                        ^
npm error ../node_modules/node1-libxmljsmt-myh/node_modules/nan/nan.h: In functionvoid Nan::SetAccessor(v8::Local<v8::ObjectTemplate>, v8::Local<v8::String>, GetterCallback, SetterCallback, v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute, imp::Sig)’:
npm error ../node_modules/node1-libxmljsmt-myh/node_modules/nan/nan.h:2544:19: error: no matching function for call tov8::ObjectTemplate::SetAccessor(v8::Local<v8::String>&, void (*&)(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>&), void (*&)(v8::Local<v8::Name>, v8::Local<v8::Value>, const v8::PropertyCallbackInfo<void>&), v8::Local<v8::Object>&, v8::AccessControl&, v8::PropertyAttribute&, Nan::imp::Sig&)’
npm error  2544 |   tpl->SetAccessor(
npm error       |   ~~~~~~~~~~~~~~~~^
npm error  2545 |       name
npm error       |       ~~~~         
npm error  2546 |     , getter_
npm error       |     ~~~~~~~~~      
npm error  2547 |     , setter_
npm error       |     ~~~~~~~~~      
npm error  2548 |     , obj
npm error       |     ~~~~~          
npm error  2549 |     , settings
npm error       |     ~~~~~~~~~~     
npm error  2550 |     , attribute
npm error       |     ~~~~~~~~~~~    
npm error  2551 |     , signature);
npm error       |     ~~~~~~~~~~~~   
npm error In file included from /home/anubhav/.cache/node-gyp/22.3.0/include/node/v8-function.h:15,
npm error                  from /home/anubhav/.cache/node-gyp/22.3.0/include/node/v8.h:33:
npm error /home/anubhav/.cache/node-gyp/22.3.0/include/node/v8-template.h:1049:8: note: candidate: ‘void v8::ObjectTemplate::SetAccessor(v8::Local<v8::String>, v8::AccessorGetterCallback, v8::AccessorSetterCallback, v8::Local<v8::Value>, v8::PropertyAttribute, v8::SideEffectType, v8::SideEffectType)’
npm error  1049 |   void SetAccessor(
npm error       |        ^~~~~~~~~~~
npm error /home/anubhav/.cache/node-gyp/22.3.0/include/node/v8-template.h:1052:61: note:   no known conversion for argument 5 fromv8::AccessControltov8::PropertyAttributenpm error  1052 |       Local<Value> data = Local<Value>(), PropertyAttribute attribute = None,
npm error       |                                           ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
npm error /home/anubhav/.cache/node-gyp/22.3.0/include/node/v8-template.h:1055:8: note: candidate: ‘void v8::ObjectTemplate::SetAccessor(v8::Local<v8::Name>, v8::AccessorNameGetterCallback, v8::AccessorNameSetterCallback, v8::Local<v8::Value>, v8::PropertyAttribute, v8::SideEffectType, v8::SideEffectType)’
npm error  1055 |   void SetAccessor(
npm error       |        ^~~~~~~~~~~
npm error /home/anubhav/.cache/node-gyp/22.3.0/include/node/v8-template.h:1058:61: note:   no known conversion for argument 5 fromv8::AccessControltov8::PropertyAttributenpm error  1058 |       Local<Value> data = Local<Value>(), PropertyAttribute attribute = None,
npm error       |                                           ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
npm error /home/anubhav/.cache/node-gyp/22.3.0/include/node/v8-local-handle.h: In instantiation ofv8::Local<T>::Local(v8::Local<S>) [with S = v8::Data; T = v8::Value]’:
npm error ../node_modules/node1-libxmljsmt-myh/node_modules/nan/nan_callbacks_12_inl.h:175:53:   required from here
npm error   175 |       cbinfo(info, obj->GetInternalField(kDataIndex));
npm error       |                                                     ^
npm error /home/anubhav/.cache/node-gyp/22.3.0/include/node/v8-local-handle.h:269:42: error: static assertion failed: type check
npm error   269 |     static_assert(std::is_base_of<T, S>::value, "type check");
npm error       |                                          ^~~~~
npm error /home/anubhav/.cache/node-gyp/22.3.0/include/node/v8-local-handle.h:269:42: note: ‘std::integral_constant<bool, false>::valueevaluates to false
npm error make: *** [node_modules/node1-libxmljsmt-myh/xmljs-myh.target.mk:182: Release/obj.target/xmljs-myh/node_modules/node1-libxmljsmt-myh/src/libxmljs.o] Error 1
npm error gyp ERR! build error 
npm error gyp ERR! stack Error: `make` failed with exit code: 2
npm error gyp ERR! stack     at ChildProcess.onExit (/media/anubhav/data/lb4App/lb4InteliMigrate/node_modules/node-gyp/lib/build.js:203:23)
npm error gyp ERR! stack     at ChildProcess.emit (node:events:520:28)
npm error gyp ERR! stack     at ChildProcess._handle.onexit (node:internal/child_process:294:12)
npm error gyp ERR! System Linux 5.15.0-126-generic
npm error gyp ERR! command "/home/anubhav/.nvm/versions/node/v22.3.0/bin/node" "/media/anubhav/data/lb4App/lb4InteliMigrate/node_modules/.bin/node-gyp" "rebuild"
npm error gyp ERR! cwd /media/anubhav/data/lb4App/lb4InteliMigrate/node_modules/libxslt
npm error gyp ERR! node -v v22.3.0
npm error gyp ERR! node-gyp -v v9.3.0
npm error gyp ERR! not ok

Metadata

Metadata

Assignees

No one assigned

    Labels

    Linuxnodejs/nanhttps://github.com/nodejs/nan

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions