Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Feb 2021 21:53:39 +0200
From:      Alex Kapunov <kapunov81@gmail.com>
To:        elastic@freebsd.org
Subject:   Problem with re2.node module
Message-ID:  <CAJu6fNPY854gCFcfoxV4CdDH6YCkWf68zNF1-iKoO9sjrkkXrA@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hi!
I encountered a problem with KIbana7 port, namely with timelion
visualizations in netflow dashboards. Timelion expressions have regex
function for labeling, that accesses binary file re2.node, and this binary
module does't work as expected:
[image: 2.jpg]

Result of testing this module with verify-build.js:
#:/usr/local/www/kibana7/node_modules/re2/scripts# node ./verify-build.js
internal/modules/cjs/loader.js:807
return process.dlopen(module, path.toNamespacedPath(filename));
^

Error: /usr/local/www/kibana7/node_modules/re2/build/Release/re2.node:
invalid file format
at Object.Module._extensions..node (internal/modules/cjs/loader.js:807:18)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object.<anonymous> (/usr/local/www/kibana7/node_modules/re2/re2.js:3:13)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)

It seems that this module is for MacOS:
# file /usr/local/www/kibana7/node_modules/re2/build/Release/re2.node
/usr/local/www/kibana7/node_modules/re2/build/Release/re2.node: Mach-O
64-bit x86_64 bundle,
flags:<NOUNDEFS|DYLDLINK|TWOLEVEL|WEAK_DEFINES|BINDS_TO_WEAK|HAS_TLV_DESCRIPTORS>

I will be grateful for any help.

Best regards, Alex.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJu6fNPY854gCFcfoxV4CdDH6YCkWf68zNF1-iKoO9sjrkkXrA>