Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 869500 - www-apps/kibana-bin-7.17.5 with net-libs/nodejs-18.7.0 : The module /opt/kibana/node_modules/re2/build/Release/re2.node was compiled against a different Node.js version using NODE_MODULE_VERSION 93
Summary: www-apps/kibana-bin-7.17.5 with net-libs/nodejs-18.7.0 : The module /opt/kiba...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Tomáš Mózes
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2022-09-10 12:41 UTC by Karl-Johan Karlsson
Modified: 2022-11-18 08:51 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Karl-Johan Karlsson 2022-09-10 12:41:14 UTC
This is a repeat of bug 758158 and bug 782376.

www-apps/kibana-bin-7.17.5 specifies a dependency on >=net-libs/nodejs-16.13.0. However, after upgrading to net-libs/nodejs-18.7.0, trying to run Kibana results in this error message:

Error: The module '/opt/kibana/node_modules/re2/build/Release/re2.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 93. This version of Node.js requires
NODE_MODULE_VERSION 108. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).
    at Object.Module._extensions..node (node:internal/modules/cjs/loader:1204:18)
    at Module.load (node:internal/modules/cjs/loader:998:32)
    at Function.Module._load (node:internal/modules/cjs/loader:839:12)
    at Module.require (node:internal/modules/cjs/loader:1022:19)
    at Module.Hook._require.Module.require (/opt/kibana/node_modules/require-in-the-middle/index.js:80:39)
    at Module.Hook._require.Module.require (/opt/kibana/node_modules/require-in-the-middle/index.js:80:39)
    at Module.Hook._require.Module.require (/opt/kibana/node_modules/require-in-the-middle/index.js:80:39)
    at Module.Hook._require.Module.require (/opt/kibana/node_modules/require-in-the-middle/index.js:80:39)
    at Module.Hook._require.Module.require (/opt/kibana/node_modules/require-in-the-middle/index.js:80:39)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/opt/kibana/node_modules/re2/re2.js:3:13)
    at Module._compile (node:internal/modules/cjs/loader:1120:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1174:10)
    at Module.load (node:internal/modules/cjs/loader:998:32)
    at Function.Module._load (node:internal/modules/cjs/loader:839:12)
    at Module.require (node:internal/modules/cjs/loader:1022:19) {
  code: 'ERR_DLOPEN_FAILED'

According to https://nodejs.org/en/download/releases/ NODE_MODULE_VERSION 93 corresponds to Node.js 16.0.0 to 16.17.0, with Node.js 17.0.0 having a NODE_MODULE_VERSION of 102.

Manually downgrading to net-libs/nodejs-16.17.0 makes Kibana work.

Please restrict kibana-bin-7.17.5's dependency to "=net-libs/nodejs-16*".

Reproducible: Always




Portage 3.0.36 (python 3.10.7-final-0, default/linux/amd64/17.1/hardened, gcc-12.2.0, glibc-2.35-r8, 5.19.8-gentoo-x86_64 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.19.8-gentoo-x86_64-x86_64-Intel-R-_Core-TM-_i7-6700K_CPU_@_4.00GHz-with-glibc2.35
KiB Mem:    65738196 total,  12904064 free
KiB Swap:   67042300 total,  67042300 free
Timestamp of repository gentoo: Sat, 10 Sep 2022 11:00:01 +0000
Head commit of repository gentoo: e6d4bc7223a478abc208d85c6d88ec7a07388f6d
sh bash 5.1_p16-r2
ld GNU ld (Gentoo 2.39 p4) 2.39.0
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r2::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.36.0::gentoo
dev-lang/python:           3.9.13::gentoo, 3.10.7::gentoo, 3.11.0_rc1::gentoo
dev-util/cmake:            3.24.1::gentoo
dev-util/meson:            0.63.0::gentoo
sys-apps/baselayout:       2.8-r2::gentoo
sys-apps/openrc:           0.45.2::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-devel/autoconf:        2.71-r1::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.39-r2::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/gcc:             12.2.0::gentoo
sys-devel/gcc-config:      2.5-r1::gentoo
sys-devel/libtool:         2.4.7::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.19::gentoo (virtual/os-headers)
sys-libs/glibc:            2.35-r8::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts: --timeout=10 --ipv6
    sync-rsync-verify-max-age: 24

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/ossec/etc /var/ossec/etc/"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /var/ossec/etc/shared/"
CXXFLAGS="-march=native -O2 -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--alphabetical --keep-going --quiet-build=y --backtrack=30 --verbose-conflicts --usepkg --binpkg-respect-use=y --binpkg-changed-deps=y"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg buildpkg-live compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.mdfnet.se/gentoo"
LANG="sv_SE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j6"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--timeout=10 --ipv6"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="acl amd64 bzip2 crypt hardened iconv idn ipv6 libglvnd libtirpc multilib ncurses nls nptl openmp pam pcre pie readline seccomp split-usr ssl ssp unicode xattr xtpax zlib" ABI_X86="64" ADA_TARGET="gnat_2020" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en en-US en-GB sv" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="X86" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10" RUBY_TARGETS="ruby27" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS

=================================================================
                        Package Settings
=================================================================

www-apps/kibana-bin-7.17.5::gentoo was built with the following:
USE="" ABI_X86="(64)"


net-libs/nodejs-18.7.0::gentoo was built with the following:
USE="-debug -doc icu -inspector -lto npm -pax-kernel snapshot ssl system-icu system-ssl -systemtap -test" ABI_X86="(64)" CPU_FLAGS_X86="sse2"
FEATURES="merge-sync parallel-fetch sfperms network-sandbox assume-digests preserve-libs usersandbox qa-unresolved-soname-deps binpkg-logs config-protect-if-modified binpkg-dostrip binpkg-docompress buildpkg binpkg-multi-instance fixlafiles sandbox ebuild-locks pid-sandbox compressdebug news strict unmerge-logs distlocks protect-owned usersync buildpkg-live userfetch unknown-features-warn ipc-sandbox multilib-strict unmerge-orphans userpriv xattr"

net-libs/nodejs-16.17.0::gentoo was built with the following:
USE="-debug -doc icu -inspector -lto npm -pax-kernel snapshot ssl system-icu system-ssl -systemtap -test" ABI_X86="(64)" CPU_FLAGS_X86="sse2"
FEATURES="usersync binpkg-dostrip qa-unresolved-soname-deps assume-digests sandbox binpkg-docompress network-sandbox preserve-libs strict binpkg-multi-instance config-protect-if-modified protect-owned compressdebug news buildpkg-live fixlafiles buildpkg ipc-sandbox xattr sfperms pid-sandbox unknown-features-warn unmerge-logs ebuild-locks binpkg-logs parallel-fetch multilib-strict merge-sync distlocks userpriv unmerge-orphans userfetch usersandbox"
Comment 1 Larry the Git Cow gentoo-dev 2022-11-18 08:51:36 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=716625902a1f17d2ae3db671eaf0759b1d7e9887

commit 716625902a1f17d2ae3db671eaf0759b1d7e9887
Author:     Tomáš Mózes <hydrapolic@gmail.com>
AuthorDate: 2022-11-01 07:15:21 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2022-11-18 08:51:34 +0000

    www-apps/kibana-bin: bump to 7.17.7
    
    Closes: https://bugs.gentoo.org/869500
    Signed-off-by: Tomáš Mózes <hydrapolic@gmail.com>
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 www-apps/kibana-bin/Manifest                 |  1 +
 www-apps/kibana-bin/kibana-bin-7.17.7.ebuild | 94 ++++++++++++++++++++++++++++
 2 files changed, 95 insertions(+)