Skip to content
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

FeeBSD Support #639

Open
tuaris opened this issue Jul 4, 2024 · 4 comments
Open

FeeBSD Support #639

tuaris opened this issue Jul 4, 2024 · 4 comments
Labels

Comments

@tuaris
Copy link

tuaris commented Jul 4, 2024

Tested on

  • OS: FreeBSD (any version)
  • ZeroMQ.js version: 6.0.0-beta.19
  • npm: 10.5.1
  • node: v18.20.2

If I run npm install zeromq, in an empty directory It completes without any trouble:

$ mkdir clean
$ cd clean/
$ ls
$ npm install zeromq
npm WARN deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm WARN deprecated [email protected]: Glob versions prior to v9 are no longer supported

added 32 packages, and audited 33 packages in 2m

6 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
$ npm list
stratum@ /home/stratum
└── [email protected]

However, if I run it within the project's directory of https://github.com/benjamin-wilson/public-pool, it fails:

$ git clone https://github.com/benjamin-wilson/public-pool.git /home/stratum/service
$ cd /home/stratum/service
$ npm install zeromq
npm WARN deprecated @npmcli/[email protected]: This functionality has been moved to @npmcli/fs
npm WARN deprecated [email protected]: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: request-promise has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm ERR! code 1
npm ERR! path /home/stratum/service/node_modules/zeromq
npm ERR! command failed
npm ERR! command sh -c (shx test -f ./script/build.js || run-s build.js) && cross-env npm_config_build_from_source=true aminya-node-gyp-build
npm ERR! gmake: Entering directory '/home/stratum/service/node_modules/zeromq/build'
npm ERR!   TOUCH Release/obj.target/libzmq.stamp
npm ERR!   CXX(target) Release/obj.target/zeromq/src/context.o
npm ERR! gmake: Leaving directory '/home/stratum/service/node_modules/zeromq/build'
npm ERR! No native build was found for platform=freebsd arch=x64 runtime=node abi=108 uv=1 libc=glibc node=18.20.2
npm ERR!     loaded from: /home/stratum/service/node_modules/zeromq
npm ERR!
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | freebsd | x64
npm ERR! gyp info find Python using Python version 3.9.18 found at "/usr/local/bin/python3.9"
npm ERR! gyp info spawn /usr/local/bin/python3.9
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args   '/home/stratum/service/node_modules/node-gyp/gyp/gyp_main.py',
npm ERR! gyp info spawn args   'binding.gyp',
npm ERR! gyp info spawn args   '-f',
npm ERR! gyp info spawn args   'make',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/home/stratum/service/node_modules/zeromq/build/config.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/home/stratum/service/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/home/stratum/.cache/node-gyp/18.20.2/include/node/common.gypi',
npm ERR! gyp info spawn args   '-Dlibrary=shared_library',
npm ERR! gyp info spawn args   '-Dvisibility=default',
npm ERR! gyp info spawn args   '-Dnode_root_dir=/home/stratum/.cache/node-gyp/18.20.2',
npm ERR! gyp info spawn args   '-Dnode_gyp_dir=/home/stratum/service/node_modules/node-gyp',
npm ERR! gyp info spawn args   '-Dnode_lib_file=/home/stratum/.cache/node-gyp/18.20.2/<(target_arch)/node.lib',
npm ERR! gyp info spawn args   '-Dmodule_root_dir=/home/stratum/service/node_modules/zeromq',
npm ERR! gyp info spawn args   '-Dnode_engine=v8',
npm ERR! gyp info spawn args   '--depth=.',
npm ERR! gyp info spawn args   '--no-parallel',
npm ERR! gyp info spawn args   '--generator-output',
npm ERR! gyp info spawn args   'build',
npm ERR! gyp info spawn args   '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! gyp info spawn gmake
npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm ERR! In file included from ../src/context.cc:2:
npm ERR! In file included from ../src/context.h:4:
npm ERR! In file included from ../src/prefix.h:5:
npm ERR! /home/stratum/.cache/node-gyp/18.20.2/include/node/node_version.h:96:9: warning: 'NAPI_VERSION' macro redefined [-Wmacro-redefined]
npm ERR! #define NAPI_VERSION 9
npm ERR!         ^
npm ERR! /home/stratum/.cache/node-gyp/18.20.2/include/node/js_native_api.h:20:9: note: previous definition is here
npm ERR! #define NAPI_VERSION 8
npm ERR!         ^
npm ERR! In file included from ../src/context.cc:2:
npm ERR! In file included from ../src/context.h:4:
npm ERR! ../src/prefix.h:8:10: fatal error: 'zmq.h' file not found
npm ERR! #include <zmq.h>
npm ERR!          ^~~~~~~
npm ERR! 1 warning and 1 error generated.
npm ERR! gmake: *** [zeromq.target.mk:128: Release/obj.target/zeromq/src/context.o] Error 1
npm ERR! gyp ERR! build error
npm ERR! gyp ERR! stack Error: `gmake` failed with exit code: 2
npm ERR! gyp ERR! stack     at ChildProcess.onExit (/home/stratum/service/node_modules/node-gyp/lib/build.js:194:23)
npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:517:28)
npm ERR! gyp ERR! stack     at ChildProcess._handle.onexit (node:internal/child_process:292:12)
npm ERR! gyp ERR! System FreeBSD 14.0-RELEASE-p6
npm ERR! gyp ERR! command "/usr/local/bin/node" "/home/stratum/service/node_modules/.bin/node-gyp" "rebuild"
npm ERR! gyp ERR! cwd /home/stratum/service/node_modules/zeromq
npm ERR! gyp ERR! node -v v18.20.2
npm ERR! gyp ERR! node-gyp -v v8.4.1
npm ERR! gyp ERR! not ok

npm ERR! A complete log of this run can be found in: /home/stratum/.npm/_logs/2024-07-04T10_42_09_843Z-debug-0.log

Even more bizarre is that is seems to all work fine on a system using:

npm -v
10.7.0
node -v
v18.20.3
git clone https://github.com/benjamin-wilson/public-pool.git public-pool2
Cloning into 'public-pool2'...
remote: Enumerating objects: 2425, done.
remote: Counting objects: 100% (1095/1095), done.
remote: Compressing objects: 100% (143/143), done.
remote: Total 2425 (delta 1040), reused 952 (delta 952), pack-reused 1330
Receiving objects: 100% (2425/2425), 554.08 KiB | 2.06 MiB/s, done.
Resolving deltas: 100% (1827/1827), done.

$ cd public-pool2/
$ npm install
npm warn deprecated @npmcli/[email protected]: This functionality has been moved to @npmcli/fs
npm warn deprecated [email protected]: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
npm warn deprecated [email protected]: this library is no longer supported
npm warn deprecated [email protected]: request-promise has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
npm warn deprecated [email protected]: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm warn deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142

added 967 packages, and audited 968 packages in 39s

147 packages are looking for funding
  run `npm fund` for details

19 vulnerabilities (1 low, 13 moderate, 4 high, 1 critical)

To address issues that do not require attention, run:
  npm audit fix

To address all issues possible (including breaking changes), run:
  npm audit fix --force

Some issues need review, and may require choosing
a different dependency.

Run `npm audit` for details.

This makes no sense to me?

@tuaris tuaris added the bug label Jul 4, 2024
@tuaris
Copy link
Author

tuaris commented Jul 4, 2024

If I try 20-beta, it works, so maybe it's some kind of incompatibility issue on 19-beta with FreeBSD 13 vs 14? It can't be since it worked in an empty directory.

stratum@bitcoin:~ $ rm -rf service/
stratum@bitcoin:~ $ git clone https://github.com/benjamin-wilson/public-pool.git /home/stratum/service
Cloning into '/home/stratum/service'...
remote: Enumerating objects: 2472, done.
remote: Counting objects: 100% (1142/1142), done.
remote: Compressing objects: 100% (161/161), done.
remote: Total 2472 (delta 1073), reused 991 (delta 981), pack-reused 1330
Receiving objects: 100% (2472/2472), 561.88 KiB | 1.92 MiB/s, done.
Resolving deltas: 100% (1860/1860), done.
stratum@bitcoin:~ $ cd /home/stratum/service
stratum@bitcoin:~/service $ npm install [email protected]
npm WARN deprecated @npmcli/[email protected]: This functionality has been moved to @npmcli/fs
npm WARN deprecated [email protected]: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: request-promise has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142

added 967 packages, and audited 968 packages in 5m

147 packages are looking for funding
  run `npm fund` for details

19 vulnerabilities (1 low, 13 moderate, 4 high, 1 critical)

To address issues that do not require attention, run:
  npm audit fix

To address all issues possible (including breaking changes), run:
  npm audit fix --force

Some issues need review, and may require choosing
a different dependency.

Run `npm audit` for details.

@tuaris
Copy link
Author

tuaris commented Jul 4, 2024

Yes, it's some kind of a diffrence between FreeBSD 13 and 14, but it looks limited to a specific project.

Lets try it out on FreeBSD 13.2 first (freshly installed OS)

FreeBSD 13.2-RELEASE-p11 GENERIC

Welcome to FreeBSD!

Release Notes, Errata: https://www.FreeBSD.org/releases/
Security Advisories:   https://www.FreeBSD.org/security/
FreeBSD Handbook:      https://www.FreeBSD.org/handbook/
FreeBSD FAQ:           https://www.FreeBSD.org/faq/
Questions List:        https://www.FreeBSD.org/lists/questions/
FreeBSD Forums:        https://forums.FreeBSD.org/

Documents installed with the system are in the /usr/local/share/doc/freebsd/
directory, or can be installed later with:  pkg install en-freebsd-doc
For other languages, replace "en" with a language code like de or fr.

Show the version of FreeBSD installed:  freebsd-version ; uname -a
Please include that output and any error messages when posting questions.
Introduction to manual pages:  man man
FreeBSD directory layout:      man hier

To change this login announcement, see motd(5).
Want to see how much virtual memory you're using? Just type "swapinfo" to
be shown information about the usage of your swap partitions.
admin@node2:~ $ su
Password:
root@node2:/home/admin # pkg install -y git-lite python cmake libzmq4 npm
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 29 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
	brotli: 1.1.0,1
	c-ares: 1.28.1
	ca_root_nss: 3.93_2
	cmake: 3.28.3
	cmake-core: 3.28.3
	cmake-doc: 3.28.3
	cmake-man: 3.28.3
	curl: 8.7.1
	expat: 2.6.2
	git-lite: 2.45.2_1
	gmake: 4.4.1
	icu: 74.2_1,1
	jsoncpp: 1.9.5
	libidn2: 2.3.7
	libnghttp2: 1.61.0
	libpsl: 0.21.5
	libsodium: 1.0.18
	libssh2: 1.11.0_1,3
	libunistring: 1.2
	libuv: 1.48.0
	libzmq4: 4.3.5
	node20: 20.12.2
	norm: 1.5r6_3
	npm: 10.5.1
	npm-node20: 10.5.1
	openpgm: 5.2.122_6
	python: 3.9_3,2
	python3: 3_3
	rhash: 1.4.4_1

Number of packages to be installed: 29

The process will require 249 MiB more space.
52 MiB to be downloaded.
[1/29] Fetching cmake-3.28.3.pkg: 100%    888 B   0.9kB/s    00:01    
[2/29] Fetching libnghttp2-1.61.0.pkg: 100%  133 KiB 136.3kB/s    00:01    
[3/29] Fetching c-ares-1.28.1.pkg: 100%  182 KiB 185.9kB/s    00:01    
[4/29] Fetching npm-node20-10.5.1.pkg: 100%    2 MiB   2.0MB/s    00:01    
[5/29] Fetching icu-74.2_1,1.pkg: 100%   11 MiB  11.6MB/s    00:01    
[6/29] Fetching libidn2-2.3.7.pkg: 100%  134 KiB 136.9kB/s    00:01    
[7/29] Fetching cmake-man-3.28.3.pkg: 100%  737 KiB 754.8kB/s    00:01    
[8/29] Fetching libzmq4-4.3.5.pkg: 100%  592 KiB 606.6kB/s    00:01    
[9/29] Fetching jsoncpp-1.9.5.pkg: 100%  127 KiB 129.8kB/s    00:01    
[10/29] Fetching libuv-1.48.0.pkg: 100%  124 KiB 126.7kB/s    00:01    
[11/29] Fetching libsodium-1.0.18.pkg: 100%  214 KiB 219.1kB/s    00:01    
[12/29] Fetching gmake-4.4.1.pkg: 100%  451 KiB 461.5kB/s    00:01    
[13/29] Fetching libunistring-1.2.pkg: 100%  565 KiB 579.0kB/s    00:01    
[14/29] Fetching cmake-doc-3.28.3.pkg: 100%    6 MiB   6.3MB/s    00:01    
[15/29] Fetching python-3.9_3,2.pkg: 100%    1 KiB   1.1kB/s    00:01    
[16/29] Fetching brotli-1.1.0,1.pkg: 100%  330 KiB 338.1kB/s    00:01    
[17/29] Fetching python3-3_3.pkg: 100%    1 KiB   1.2kB/s    00:01    
[18/29] Fetching curl-8.7.1.pkg: 100%    1 MiB   1.5MB/s    00:01    
[19/29] Fetching npm-10.5.1.pkg: 100%    1 KiB   1.0kB/s    00:01    
[20/29] Fetching norm-1.5r6_3.pkg: 100%  225 KiB 230.5kB/s    00:01    
[21/29] Fetching libssh2-1.11.0_1,3.pkg: 100%  268 KiB 274.1kB/s    00:01    
[22/29] Fetching libpsl-0.21.5.pkg: 100%   60 KiB  61.7kB/s    00:01    
[23/29] Fetching cmake-core-3.28.3.pkg: 100%   12 MiB  12.9MB/s    00:01    
[24/29] Fetching rhash-1.4.4_1.pkg: 100%  220 KiB 225.6kB/s    00:01    
[25/29] Fetching openpgm-5.2.122_6.pkg: 100%  313 KiB 320.8kB/s    00:01    
[26/29] Fetching expat-2.6.2.pkg: 100%  110 KiB 112.8kB/s    00:01    
[27/29] Fetching ca_root_nss-3.93_2.pkg: 100%  271 KiB 278.0kB/s    00:01    
[28/29] Fetching node20-20.12.2.pkg: 100%    9 MiB   9.5MB/s    00:01    
[29/29] Fetching git-lite-2.45.2_1.pkg: 100%    6 MiB   6.0MB/s    00:01    
Checking integrity... done (0 conflicting)
[1/29] Installing libunistring-1.2...
[1/29] Extracting libunistring-1.2: 100%
[2/29] Installing libnghttp2-1.61.0...
[2/29] Extracting libnghttp2-1.61.0: 100%
[3/29] Installing c-ares-1.28.1...
[3/29] Extracting c-ares-1.28.1: 100%
[4/29] Installing icu-74.2_1,1...
[4/29] Extracting icu-74.2_1,1: 100%
[5/29] Installing libidn2-2.3.7...
[5/29] Extracting libidn2-2.3.7: 100%
[6/29] Installing libuv-1.48.0...
[6/29] Extracting libuv-1.48.0: 100%
[7/29] Installing brotli-1.1.0,1...
[7/29] Extracting brotli-1.1.0,1: 100%
[8/29] Installing ca_root_nss-3.93_2...
[8/29] Extracting ca_root_nss-3.93_2: 100%
Scanning /usr/share/certs/blacklisted for certificates...
Scanning /usr/share/certs/trusted for certificates...
Scanning /usr/local/share/certs for certificates...
[9/29] Installing jsoncpp-1.9.5...
[9/29] Extracting jsoncpp-1.9.5: 100%
[10/29] Installing gmake-4.4.1...
[10/29] Extracting gmake-4.4.1: 100%
[11/29] Installing libssh2-1.11.0_1,3...
[11/29] Extracting libssh2-1.11.0_1,3: 100%
[12/29] Installing libpsl-0.21.5...
[12/29] Extracting libpsl-0.21.5: 100%
[13/29] Installing rhash-1.4.4_1...
[13/29] Extracting rhash-1.4.4_1: 100%
[14/29] Installing expat-2.6.2...
[14/29] Extracting expat-2.6.2: 100%
[15/29] Installing node20-20.12.2...
[15/29] Extracting node20-20.12.2: 100%
[16/29] Installing npm-node20-10.5.1...
[16/29] Extracting npm-node20-10.5.1: 100%
[17/29] Installing cmake-man-3.28.3...
[17/29] Extracting cmake-man-3.28.3: 100%
[18/29] Installing libsodium-1.0.18...
[18/29] Extracting libsodium-1.0.18: 100%
[19/29] Installing cmake-doc-3.28.3...
[19/29] Extracting cmake-doc-3.28.3: 100%
[20/29] Installing python3-3_3...
[20/29] Extracting python3-3_3: 100%
[21/29] Installing curl-8.7.1...
[21/29] Extracting curl-8.7.1: 100%
[22/29] Installing norm-1.5r6_3...
[22/29] Extracting norm-1.5r6_3: 100%
[23/29] Installing cmake-core-3.28.3...
[23/29] Extracting cmake-core-3.28.3: 100%
[24/29] Installing openpgm-5.2.122_6...
[24/29] Extracting openpgm-5.2.122_6: 100%
[25/29] Installing cmake-3.28.3...
[26/29] Installing libzmq4-4.3.5...
[26/29] Extracting libzmq4-4.3.5: 100%
[27/29] Installing python-3.9_3,2...
[27/29] Extracting python-3.9_3,2: 100%
[28/29] Installing npm-10.5.1...
[28/29] Extracting npm-10.5.1: 100%
[29/29] Installing git-lite-2.45.2_1...
===> Creating groups.
Creating group 'git_daemon' with gid '964'.
===> Creating users
Creating user 'git_daemon' with uid '964'.
[29/29] Extracting git-lite-2.45.2_1: 100%
=====
Message from ca_root_nss-3.93_2:

--
FreeBSD does not, and can not warrant that the certification authorities
whose certificates are included in this package have in any way been
audited for trustworthiness or RFC 3647 compliance.

Assessment and verification of trust is the complete responsibility of
the system administrator.

This package installs symlinks to support root certificate discovery
for software that either uses other cryptographic libraries than
OpenSSL, or use OpenSSL but do not follow recommended practice.

If you prefer to do this manually, replace the following symlinks with
either an empty file or your site-local certificate bundle.

  * /etc/ssl/cert.pem
  * /usr/local/etc/ssl/cert.pem
  * /usr/local/openssl/cert.pem
=====
Message from node20-20.12.2:

--
Note: If you need npm (Node Package Manager), please install www/npm.
=====
Message from openpgm-5.2.122_6:

--
===>   NOTICE:

The openpgm port currently does not have a maintainer. As a result, it is
more likely to have unresolved issues, not be up-to-date, or even be removed in
the future. To volunteer to maintain this port, please create an issue at:

https://bugs.freebsd.org/bugzilla

More information about port maintainership is available at:

https://docs.freebsd.org/en/articles/contributing/#ports-contributing
=====
Message from git-lite-2.45.2_1:

--
If you installed the GITWEB option please follow these instructions:

In the directory /usr/local/share/examples/git/gitweb you can find all files to
make gitweb work as a public repository on the web.

All you have to do to make gitweb work is:
1) Please be sure you're able to execute CGI scripts in
   /usr/local/share/examples/git/gitweb.
2) Set the GITWEB_CONFIG variable in your webserver's config to
   /usr/local/etc/git/gitweb.conf. This variable is passed to gitweb.cgi.
3) Restart server.


If you installed the CONTRIB option please note that the scripts are
installed in /usr/local/share/git-core/contrib. Some of them require
other ports to be installed (perl, python, etc), which you may need to
install manually.
root@node2:/home/admin # exit
admin@node2:~ $ git clone https://github.com/benjamin-wilson/public-pool.git public-pool
Cloning into 'public-pool'...
remote: Enumerating objects: 2472, done.
remote: Counting objects: 100% (1142/1142), done.
remote: Compressing objects: 100% (161/161), done.
remote: Total 2472 (delta 1073), reused 991 (delta 981), pack-reused 1330
Receiving objects: 100% (2472/2472), 561.88 KiB | 2.15 MiB/s, done.
Resolving deltas: 100% (1860/1860), done.
admin@node2:~ $ npm --prefix ~/public-pool install
npm WARN deprecated [email protected]: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated [email protected]: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: request-promise has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated @npmcli/[email protected]: This functionality has been moved to @npmcli/fs

added 967 packages, and audited 969 packages in 44s

19 vulnerabilities (1 low, 13 moderate, 4 high, 1 critical)

To address issues that do not require attention, run:
  npm audit fix

To address all issues possible (including breaking changes), run:
  npm audit fix --force

Some issues need review, and may require choosing
a different dependency.

Run `npm audit` for details.
npm notice 
npm notice New minor version of npm available! 10.5.1 -> 10.8.1
npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.8.1
npm notice Run npm install -g [email protected] to update!
npm notice 

That was flawless.

Now lets do FreeBSD 14.1 (also a fresh install)

FreeBSD 14.1-RELEASE (GENERIC) releng/14.1-n267679-10e31f0946d8

Welcome to FreeBSD!

Release Notes, Errata: https://www.FreeBSD.org/releases/
Security Advisories:   https://www.FreeBSD.org/security/
FreeBSD Handbook:      https://www.FreeBSD.org/handbook/
FreeBSD FAQ:           https://www.FreeBSD.org/faq/
Questions List:        https://www.FreeBSD.org/lists/questions/
FreeBSD Forums:        https://forums.FreeBSD.org/

Documents installed with the system are in the /usr/local/share/doc/freebsd/
directory, or can be installed later with:  pkg install en-freebsd-doc
For other languages, replace "en" with a language code like de or fr.

Show the version of FreeBSD installed:  freebsd-version ; uname -a
Please include that output and any error messages when posting questions.
Introduction to manual pages:  man man
FreeBSD directory layout:      man hier

To change this login announcement, see motd(5).
You can disable tcsh's terminal beep if you `set nobeep'.
admin@node:~ $ su
Password:
root@node:/home/admin # pkg install -y git-lite python cmake libzmq4 npm
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking integrity... done (0 conflicting)
The following 29 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
	brotli: 1.1.0,1
	c-ares: 1.28.1
	ca_root_nss: 3.93_2
	cmake: 3.28.3
	cmake-core: 3.28.3
	cmake-doc: 3.28.3
	cmake-man: 3.28.3
	curl: 8.7.1
	expat: 2.6.2
	git-lite: 2.45.2_1
	gmake: 4.4.1
	icu: 74.2_1,1
	jsoncpp: 1.9.5
	libidn2: 2.3.7
	libnghttp2: 1.61.0
	libpsl: 0.21.5
	libsodium: 1.0.18
	libssh2: 1.11.0_1,3
	libunistring: 1.2
	libuv: 1.48.0
	libzmq4: 4.3.5
	node20: 20.12.2
	norm: 1.5r6_3
	npm: 10.5.1
	npm-node20: 10.5.1
	openpgm: 5.2.122_6
	python: 3.9_3,2
	python3: 3_3
	rhash: 1.4.4_1

Number of packages to be installed: 29

The process will require 249 MiB more space.
[1/29] Installing libunistring-1.2...
[1/29] Extracting libunistring-1.2: 100%
[2/29] Installing libnghttp2-1.61.0...
[2/29] Extracting libnghttp2-1.61.0: 100%
[3/29] Installing c-ares-1.28.1...
[3/29] Extracting c-ares-1.28.1: 100%
[4/29] Installing icu-74.2_1,1...
[4/29] Extracting icu-74.2_1,1: 100%
[5/29] Installing libidn2-2.3.7...
[5/29] Extracting libidn2-2.3.7: 100%
[6/29] Installing libuv-1.48.0...
[6/29] Extracting libuv-1.48.0: 100%
[7/29] Installing brotli-1.1.0,1...
[7/29] Extracting brotli-1.1.0,1: 100%
[8/29] Installing ca_root_nss-3.93_2...
[8/29] Extracting ca_root_nss-3.93_2: 100%
Scanning /usr/share/certs/untrusted for certificates...
Scanning /usr/share/certs/trusted for certificates...
Scanning /usr/local/share/certs for certificates...
[9/29] Installing jsoncpp-1.9.5...
[9/29] Extracting jsoncpp-1.9.5: 100%
[10/29] Installing gmake-4.4.1...
[10/29] Extracting gmake-4.4.1: 100%
[11/29] Installing libssh2-1.11.0_1,3...
[11/29] Extracting libssh2-1.11.0_1,3: 100%
[12/29] Installing libpsl-0.21.5...
[12/29] Extracting libpsl-0.21.5: 100%
[13/29] Installing rhash-1.4.4_1...
[13/29] Extracting rhash-1.4.4_1: 100%
[14/29] Installing expat-2.6.2...
[14/29] Extracting expat-2.6.2: 100%
[15/29] Installing node20-20.12.2...
[15/29] Extracting node20-20.12.2: 100%
[16/29] Installing npm-node20-10.5.1...
[16/29] Extracting npm-node20-10.5.1: 100%
[17/29] Installing cmake-man-3.28.3...
[17/29] Extracting cmake-man-3.28.3: 100%
[18/29] Installing libsodium-1.0.18...
[18/29] Extracting libsodium-1.0.18: 100%
[19/29] Installing cmake-doc-3.28.3...
[19/29] Extracting cmake-doc-3.28.3: 100%
[20/29] Installing python3-3_3...
[20/29] Extracting python3-3_3: 100%
[21/29] Installing curl-8.7.1...
[21/29] Extracting curl-8.7.1: 100%
[22/29] Installing norm-1.5r6_3...
[22/29] Extracting norm-1.5r6_3: 100%
[23/29] Installing cmake-core-3.28.3...
[23/29] Extracting cmake-core-3.28.3: 100%
[24/29] Installing openpgm-5.2.122_6...
[24/29] Extracting openpgm-5.2.122_6: 100%
[25/29] Installing cmake-3.28.3...
[26/29] Installing libzmq4-4.3.5...
[26/29] Extracting libzmq4-4.3.5: 100%
[27/29] Installing python-3.9_3,2...
[27/29] Extracting python-3.9_3,2: 100%
[28/29] Installing npm-10.5.1...
[28/29] Extracting npm-10.5.1: 100%
[29/29] Installing git-lite-2.45.2_1...
===> Creating groups.
Using existing group 'git_daemon'.
===> Creating users
Using existing user 'git_daemon'.
[29/29] Extracting git-lite-2.45.2_1: 100%
=====
Message from ca_root_nss-3.93_2:

--
FreeBSD does not, and can not warrant that the certification authorities
whose certificates are included in this package have in any way been
audited for trustworthiness or RFC 3647 compliance.

Assessment and verification of trust is the complete responsibility of
the system administrator.

This package installs symlinks to support root certificate discovery
for software that either uses other cryptographic libraries than
OpenSSL, or use OpenSSL but do not follow recommended practice.

If you prefer to do this manually, replace the following symlinks with
either an empty file or your site-local certificate bundle.

  * /etc/ssl/cert.pem
  * /usr/local/etc/ssl/cert.pem
  * /usr/local/openssl/cert.pem
=====
Message from node20-20.12.2:

--
Note: If you need npm (Node Package Manager), please install www/npm.
=====
Message from openpgm-5.2.122_6:

--
===>   NOTICE:

The openpgm port currently does not have a maintainer. As a result, it is
more likely to have unresolved issues, not be up-to-date, or even be removed in
the future. To volunteer to maintain this port, please create an issue at:

https://bugs.freebsd.org/bugzilla

More information about port maintainership is available at:

https://docs.freebsd.org/en/articles/contributing/#ports-contributing
=====
Message from git-lite-2.45.2_1:

--
If you installed the GITWEB option please follow these instructions:

In the directory /usr/local/share/examples/git/gitweb you can find all files to
make gitweb work as a public repository on the web.

All you have to do to make gitweb work is:
1) Please be sure you're able to execute CGI scripts in
   /usr/local/share/examples/git/gitweb.
2) Set the GITWEB_CONFIG variable in your webserver's config to
   /usr/local/etc/git/gitweb.conf. This variable is passed to gitweb.cgi.
3) Restart server.


If you installed the CONTRIB option please note that the scripts are
installed in /usr/local/share/git-core/contrib. Some of them require
other ports to be installed (perl, python, etc), which you may need to
install manually.
root@node:/home/admin # exit
admin@node:~ $ git clone https://github.com/benjamin-wilson/public-pool.git public-pool
Cloning into 'public-pool'...
remote: Enumerating objects: 2472, done.
remote: Counting objects: 100% (1142/1142), done.
remote: Compressing objects: 100% (161/161), done.
remote: Total 2472 (delta 1073), reused 991 (delta 981), pack-reused 1330
Receiving objects: 100% (2472/2472), 561.88 KiB | 2.14 MiB/s, done.
Resolving deltas: 100% (1860/1860), done.
admin@node:~ $ npm --prefix ~/public-pool install
npm WARN deprecated [email protected]: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated [email protected]: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: request-promise has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated @npmcli/[email protected]: This functionality has been moved to @npmcli/fs
npm notice 
npm notice New minor version of npm available! 10.5.1 -> 10.8.1
npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.8.1
npm notice Run npm install -g [email protected] to update!
npm notice 
npm ERR! code 1
npm ERR! path /home/admin/public-pool/node_modules/zeromq
npm ERR! command failed
npm ERR! command sh -c (shx test -f ./script/build.js || run-s build.js) && cross-env npm_config_build_from_source=true aminya-node-gyp-build
npm ERR! gmake: Entering directory '/home/admin/public-pool/node_modules/zeromq/build'
npm ERR!   TOUCH 7722eaf02fcc073df28ffd1fa831e71544edfd42.intermediate
npm ERR!   ACTION binding_gyp_libzmq_target_build_libzmq 7722eaf02fcc073df28ffd1fa831e71544edfd42.intermediate
npm ERR! Downloading libzmq source from https://github.com/zeromq/libzmq/archive/20de92ac0a2b2b9a1869782a429df68f93c3625e.tar.gz
npm ERR! Building libzmq Release
npm ERR! cmake -S "libzmq-20de92ac0a2b2b9a1869782a429df68f93c3625e" -B ./build  -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="/home/admin/public-pool/node_modules/zeromq/build/libzmq" -DCMAKE_INSTALL_LIBDIR=lib -DBUILD_STATIC=ON -DBUILD_TESTS=OFF -DBUILD_SHARED=OFF -DWITH_DOCS=OFF -DWITH_LIBSODIUM=OFF
npm ERR! -- The C compiler identification is Clang 18.1.5
npm ERR! -- The CXX compiler identification is Clang 18.1.5
npm ERR! -- Detecting C compiler ABI info
npm ERR! -- Detecting C compiler ABI info - done
npm ERR! -- Check for working C compiler: /usr/bin/cc - skipped
npm ERR! -- Detecting C compile features
npm ERR! -- Detecting C compile features - done
npm ERR! -- Detecting CXX compiler ABI info
npm ERR! -- Detecting CXX compiler ABI info - done
npm ERR! -- Check for working CXX compiler: /usr/bin/c++ - skipped
npm ERR! -- Detecting CXX compile features
npm ERR! -- Detecting CXX compile features - done
npm ERR! -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
npm ERR! -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
npm ERR! -- Looking for pthread_create in pthreads
npm ERR! -- Looking for pthread_create in pthreads - not found
npm ERR! -- Looking for pthread_create in pthread
npm ERR! -- Looking for pthread_create in pthread - found
npm ERR! -- Found Threads: TRUE  
npm ERR! -- Detected ZMQ Version - 4.3.5
npm ERR! -- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) 
npm ERR! -- Performing Test COMPILER_SUPPORTS_CXX11
npm ERR! -- Performing Test COMPILER_SUPPORTS_CXX11 - Success
npm ERR! -- Performing Test COMPILER_SUPPORTS_C11
npm ERR! -- Performing Test COMPILER_SUPPORTS_C11 - Success
npm ERR! -- Performing Test CXX_HAS_TAUT_WARNING
npm ERR! -- Performing Test CXX_HAS_TAUT_WARNING - Success
npm ERR! -- Performing Test CC_HAS_TAUT_WARNING
npm ERR! -- Performing Test CC_HAS_TAUT_WARNING - Success
npm ERR! -- Not building draft classes and methods
npm ERR! -- Using builtin sha1
npm ERR! -- Looking for strlcpy
npm ERR! -- Looking for strlcpy - found
npm ERR! -- Using tweetnacl for CURVE security
npm ERR! -- Looking for kqueue
npm ERR! -- Looking for kqueue - found
npm ERR! -- Using polling method in I/O threads: kqueue
npm ERR! -- Using polling method in zmq_poll(er)_* API: poll
npm ERR! -- Looking for pselect
npm ERR! -- Looking for pselect - found
npm ERR! -- Using 64 bytes alignment for lock-free data structures
npm ERR! -- Looking for posix_memalign
npm ERR! -- Looking for posix_memalign - found
npm ERR! -- Looking for include file windows.h
npm ERR! -- Looking for include file windows.h - not found
npm ERR! -- Looking for include file condition_variable
npm ERR! -- Looking for include file condition_variable - found
npm ERR! -- Using condition_variable_t implementation: stl11
npm ERR! -- Looking for include file ifaddrs.h
npm ERR! -- Looking for include file ifaddrs.h - found
npm ERR! -- Looking for include file sys/uio.h
npm ERR! -- Looking for include file sys/uio.h - found
npm ERR! -- Looking for include file sys/eventfd.h
npm ERR! -- Looking for include file sys/eventfd.h - found
npm ERR! -- Checking whether EFD_CLOEXEC is supported
npm ERR! -- Performing Test ZMQ_HAVE_EVENTFD_CLOEXEC
npm ERR! -- Performing Test ZMQ_HAVE_EVENTFD_CLOEXEC - Success
npm ERR! -- Looking for if_nametoindex
npm ERR! -- Looking for if_nametoindex - found
npm ERR! -- Looking for SO_PEERCRED
npm ERR! -- Looking for SO_PEERCRED - not found
npm ERR! -- Looking for LOCAL_PEERCRED
npm ERR! -- Looking for LOCAL_PEERCRED - not found
npm ERR! -- Looking for SO_BUSY_POLL
npm ERR! -- Looking for SO_BUSY_POLL - not found
npm ERR! -- Looking for clock_gettime
npm ERR! -- Looking for clock_gettime - found
npm ERR! -- Looking for fork
npm ERR! -- Looking for fork - found
npm ERR! -- Looking for gethrtime
npm ERR! -- Looking for gethrtime - not found
npm ERR! -- Looking for mkdtemp
npm ERR! -- Looking for mkdtemp - found
npm ERR! -- Looking for accept4
npm ERR! -- Looking for accept4 - found
npm ERR! -- Looking for strnlen
npm ERR! -- Looking for strnlen - found
npm ERR! -- Performing Test HAVE_FLAG_-Wall
npm ERR! -- Performing Test HAVE_FLAG_-Wall - Success
npm ERR! -- Performing Test HAVE_FLAG_-Wextra
npm ERR! -- Performing Test HAVE_FLAG_-Wextra - Success
npm ERR! -- Performing Test HAVE_FLAG_-Wno-long-long
npm ERR! -- Performing Test HAVE_FLAG_-Wno-long-long - Success
npm ERR! -- Performing Test HAVE_FLAG_-Wno-uninitialized
npm ERR! -- Performing Test HAVE_FLAG_-Wno-uninitialized - Success
npm ERR! -- Performing Test HAVE_FLAG_-pedantic
npm ERR! -- Performing Test HAVE_FLAG_-pedantic - Success
npm ERR! -- Checking whether noexcept is supported
npm ERR! -- Performing Test ZMQ_HAVE_NOEXCEPT
npm ERR! -- Performing Test ZMQ_HAVE_NOEXCEPT - Success
npm ERR! -- Checking whether SOCK_CLOEXEC is supported
npm ERR! -- Performing Test ZMQ_HAVE_SOCK_CLOEXEC
npm ERR! -- Performing Test ZMQ_HAVE_SOCK_CLOEXEC - Success
npm ERR! -- Checking whether O_CLOEXEC is supported
npm ERR! -- Performing Test ZMQ_HAVE_O_CLOEXEC
npm ERR! -- Performing Test ZMQ_HAVE_O_CLOEXEC - Success
npm ERR! -- Checking whether SO_BINDTODEVICE is supported
npm ERR! -- Performing Test ZMQ_HAVE_SO_BINDTODEVICE
npm ERR! -- Performing Test ZMQ_HAVE_SO_BINDTODEVICE - Failed
npm ERR! -- Checking whether SO_KEEPALIVE is supported
npm ERR! -- Performing Test ZMQ_HAVE_SO_KEEPALIVE
npm ERR! -- Performing Test ZMQ_HAVE_SO_KEEPALIVE - Success
npm ERR! -- Checking whether SO_PRIORITY is supported
npm ERR! -- Performing Test ZMQ_HAVE_SO_PRIORITY
npm ERR! -- Performing Test ZMQ_HAVE_SO_PRIORITY - Failed
npm ERR! -- Checking whether TCP_KEEPCNT is supported
npm ERR! -- Performing Test ZMQ_HAVE_TCP_KEEPCNT
npm ERR! -- Performing Test ZMQ_HAVE_TCP_KEEPCNT - Success
npm ERR! -- Checking whether TCP_KEEPIDLE is supported
npm ERR! -- Performing Test ZMQ_HAVE_TCP_KEEPIDLE
npm ERR! -- Performing Test ZMQ_HAVE_TCP_KEEPIDLE - Success
npm ERR! -- Checking whether TCP_KEEPINTVL is supported
npm ERR! -- Performing Test ZMQ_HAVE_TCP_KEEPINTVL
npm ERR! -- Performing Test ZMQ_HAVE_TCP_KEEPINTVL - Success
npm ERR! -- Checking whether TCP_KEEPALIVE is supported
npm ERR! -- Performing Test ZMQ_HAVE_TCP_KEEPALIVE
npm ERR! -- Performing Test ZMQ_HAVE_TCP_KEEPALIVE - Failed
npm ERR! -- Checking whether TIPC is supported
npm ERR! -- Performing Test ZMQ_HAVE_TIPC
npm ERR! -- Performing Test ZMQ_HAVE_TIPC - Failed
npm ERR! -- Checking pthread_setname signature
npm ERR! -- Performing Test ZMQ_HAVE_PTHREAD_SETNAME_1
npm ERR! -- Performing Test ZMQ_HAVE_PTHREAD_SETNAME_1 - Failed
npm ERR! -- Performing Test ZMQ_HAVE_PTHREAD_SETNAME_2
npm ERR! -- Performing Test ZMQ_HAVE_PTHREAD_SETNAME_2 - Success
npm ERR! -- Performing Test ZMQ_HAVE_PTHREAD_SETNAME_3
npm ERR! -- Performing Test ZMQ_HAVE_PTHREAD_SETNAME_3 - Failed
npm ERR! -- Performing Test ZMQ_HAVE_PTHREAD_SET_NAME
npm ERR! -- Performing Test ZMQ_HAVE_PTHREAD_SET_NAME - Failed
npm ERR! -- Checking pthread_setaffinity signature
npm ERR! -- Performing Test ZMQ_HAVE_PTHREAD_SET_AFFINITY
npm ERR! -- Performing Test ZMQ_HAVE_PTHREAD_SET_AFFINITY - Failed
npm ERR! -- Checking whether getrandom is supported
npm ERR! -- Performing Test ZMQ_HAVE_GETRANDOM
npm ERR! -- Performing Test ZMQ_HAVE_GETRANDOM - Success
npm ERR! -- Could NOT find AsciiDoc (missing: ASCIIDOC_EXECUTABLE) 
npm ERR! -- Configuring done (1.9s)
npm ERR! -- Generating done (0.0s)
npm ERR! -- Build files have been written to: /home/admin/public-pool/node_modules/zeromq/build/libzmq-staging/build
npm ERR! cmake --build ./build --config Release --target install
npm ERR! gmake[1]: Entering directory '/home/admin/public-pool/node_modules/zeromq/build/libzmq-staging/build'
npm ERR! [  1%] Building C object CMakeFiles/objects.dir/external/sha1/sha1.c.o
npm ERR! [  2%] Building C object CMakeFiles/objects.dir/src/tweetnacl.c.o
npm ERR! [  3%] Building CXX object CMakeFiles/objects.dir/src/precompiled.cpp.o
npm ERR! [  4%] Building CXX object CMakeFiles/objects.dir/src/address.cpp.o
npm ERR! [  5%] Building CXX object CMakeFiles/objects.dir/src/channel.cpp.o
npm ERR! [  6%] Building CXX object CMakeFiles/objects.dir/src/client.cpp.o
npm ERR! [  7%] Building CXX object CMakeFiles/objects.dir/src/clock.cpp.o
npm ERR! [  8%] Building CXX object CMakeFiles/objects.dir/src/ctx.cpp.o
npm ERR! [  9%] Building CXX object CMakeFiles/objects.dir/src/curve_mechanism_base.cpp.o
npm ERR! [ 10%] Building CXX object CMakeFiles/objects.dir/src/curve_client.cpp.o
npm ERR! gmake[1]: Leaving directory '/home/admin/public-pool/node_modules/zeromq/build/libzmq-staging/build'
npm ERR!   TOUCH Release/obj.target/libzmq.stamp
npm ERR!   CXX(target) Release/obj.target/zeromq/src/context.o
npm ERR! rm 7722eaf02fcc073df28ffd1fa831e71544edfd42.intermediate
npm ERR! gmake: Leaving directory '/home/admin/public-pool/node_modules/zeromq/build'
npm ERR! No native build was found for platform=freebsd arch=x64 runtime=node abi=115 uv=1 libc=glibc node=20.12.2
npm ERR!     loaded from: /home/admin/public-pool/node_modules/zeromq
npm ERR! 
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | freebsd | x64
npm ERR! gyp info find Python using Python version 3.9.18 found at "/usr/local/bin/python3"
npm ERR! gyp http GET https://nodejs.org/download/release/v20.12.2/node-v20.12.2-headers.tar.gz
npm ERR! gyp http 200 https://nodejs.org/download/release/v20.12.2/node-v20.12.2-headers.tar.gz
npm ERR! gyp http GET https://nodejs.org/download/release/v20.12.2/SHASUMS256.txt
npm ERR! gyp http 200 https://nodejs.org/download/release/v20.12.2/SHASUMS256.txt
npm ERR! gyp info spawn /usr/local/bin/python3
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args   '/home/admin/public-pool/node_modules/node-gyp/gyp/gyp_main.py',
npm ERR! gyp info spawn args   'binding.gyp',
npm ERR! gyp info spawn args   '-f',
npm ERR! gyp info spawn args   'make',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/home/admin/public-pool/node_modules/zeromq/build/config.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/home/admin/public-pool/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/home/admin/.cache/node-gyp/20.12.2/include/node/common.gypi',
npm ERR! gyp info spawn args   '-Dlibrary=shared_library',
npm ERR! gyp info spawn args   '-Dvisibility=default',
npm ERR! gyp info spawn args   '-Dnode_root_dir=/home/admin/.cache/node-gyp/20.12.2',
npm ERR! gyp info spawn args   '-Dnode_gyp_dir=/home/admin/public-pool/node_modules/node-gyp',
npm ERR! gyp info spawn args   '-Dnode_lib_file=/home/admin/.cache/node-gyp/20.12.2/<(target_arch)/node.lib',
npm ERR! gyp info spawn args   '-Dmodule_root_dir=/home/admin/public-pool/node_modules/zeromq',
npm ERR! gyp info spawn args   '-Dnode_engine=v8',
npm ERR! gyp info spawn args   '--depth=.',
npm ERR! gyp info spawn args   '--no-parallel',
npm ERR! gyp info spawn args   '--generator-output',
npm ERR! gyp info spawn args   'build',
npm ERR! gyp info spawn args   '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! gyp info spawn gmake
npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm ERR! CMake Warning (dev) at CMakeLists.txt:2 (project):
npm ERR!   cmake_minimum_required() should be called prior to this top-level project()
npm ERR!   call.  Please see the cmake-commands(7) manual for usage documentation of
npm ERR!   both commands.
npm ERR! This warning is for project developers.  Use -Wno-dev to suppress it.
npm ERR! 
npm ERR! CMake Deprecation Warning at CMakeLists.txt:7 (cmake_minimum_required):
npm ERR!   Compatibility with CMake < 3.5 will be removed from a future version of
npm ERR!   CMake.
npm ERR! 
npm ERR!   Update the VERSION argument <min> value or use a ...<max> suffix to tell
npm ERR!   CMake that the project does not need compatibility with older versions.
npm ERR! 
npm ERR! 
npm ERR! In file included from /home/admin/public-pool/node_modules/zeromq/build/libzmq-staging/libzmq-20de92ac0a2b2b9a1869782a429df68f93c3625e/src/curve_client.cpp:35:
npm ERR! In file included from /home/admin/public-pool/node_modules/zeromq/build/libzmq-staging/libzmq-20de92ac0a2b2b9a1869782a429df68f93c3625e/src/msg.hpp:40:
npm ERR! In file included from /home/admin/public-pool/node_modules/zeromq/build/libzmq-staging/libzmq-20de92ac0a2b2b9a1869782a429df68f93c3625e/src/metadata.hpp:33:
npm ERR! In file included from /usr/include/c++/v1/map:2193:
npm ERR! In file included from /usr/include/c++/v1/functional:526:
npm ERR! In file included from /usr/include/c++/v1/__functional/boyer_moore_searcher.h:27:
npm ERR! /usr/include/c++/v1/vector:411:17: error: static assertion failed due to requirement 'is_same<zmq::secure_allocator_t<unsigned char>, std::allocator<unsigned char>>::value': [allocator.requirements] states that rebinding an allocator to the same type should result in the original allocator
npm ERR!   411 |   static_assert(is_same<allocator_type, __rebind_alloc<__alloc_traits, value_type> >::value,
npm ERR!       |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /home/admin/public-pool/node_modules/zeromq/build/libzmq-staging/libzmq-20de92ac0a2b2b9a1869782a429df68f93c3625e/src/curve_client_tools.hpp:64:60: note: in instantiation of template class 'std::vector<unsigned char, zmq::secure_allocator_t<unsigned char>>' requested here
npm ERR!    64 |         std::vector<uint8_t, secure_allocator_t<uint8_t> > hello_plaintext (
npm ERR!       |                                                            ^
npm ERR! /home/admin/public-pool/node_modules/zeromq/build/libzmq-staging/libzmq-20de92ac0a2b2b9a1869782a429df68f93c3625e/src/curve_client_tools.hpp:110:60: error: no matching constructor for initialization of 'std::vector<uint8_t, secure_allocator_t<uint8_t>>' (aka 'vector<unsigned char, secure_allocator_t<unsigned char>>')
npm ERR!   110 |         std::vector<uint8_t, secure_allocator_t<uint8_t> > welcome_plaintext (
npm ERR!       |                                                            ^
npm ERR!   111 |           crypto_box_ZEROBYTES + 128);
npm ERR!       |           ~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /usr/include/c++/v1/vector:387:28: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'int' to 'const vector<unsigned char, secure_allocator_t<unsigned char>>' for 1st argument
npm ERR!   387 | class _LIBCPP_TEMPLATE_VIS vector {
npm ERR!       |                            ^~~~~~
npm ERR! /usr/include/c++/v1/vector:387:28: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'int' to 'vector<unsigned char, secure_allocator_t<unsigned char>>' for 1st argument
npm ERR!   387 | class _LIBCPP_TEMPLATE_VIS vector {
npm ERR!       |                            ^~~~~~
npm ERR! /usr/include/c++/v1/vector:387:28: note: candidate constructor (the implicit default constructor) not viable: requires 0 arguments, but 1 was provided
npm ERR! In file included from /home/admin/public-pool/node_modules/zeromq/build/libzmq-staging/libzmq-20de92ac0a2b2b9a1869782a429df68f93c3625e/src/curve_client.cpp:38:
npm ERR! In file included from /home/admin/public-pool/node_modules/zeromq/build/libzmq-staging/libzmq-20de92ac0a2b2b9a1869782a429df68f93c3625e/src/curve_client.hpp:37:
npm ERR! /home/admin/public-pool/node_modules/zeromq/build/libzmq-staging/libzmq-20de92ac0a2b2b9a1869782a429df68f93c3625e/src/curve_client_tools.hpp:121:53: error: type 'std::vector<uint8_t, secure_allocator_t<uint8_t>>' (aka 'vector<unsigned char, secure_allocator_t<unsigned char>>') does not provide a subscript operator
npm ERR!   121 |         int rc = crypto_box_open (&welcome_plaintext[0], welcome_box,
npm ERR!       |                                    ~~~~~~~~~~~~~~~~~^~
npm ERR! /home/admin/public-pool/node_modules/zeromq/build/libzmq-staging/libzmq-20de92ac0a2b2b9a1869782a429df68f93c3625e/src/curve_client_tools.hpp:129:47: error: type 'std::vector<uint8_t, secure_allocator_t<uint8_t>>' (aka 'vector<unsigned char, secure_allocator_t<unsigned char>>') does not provide a subscript operator
npm ERR!   129 |         memcpy (cn_server_, &welcome_plaintext[crypto_box_ZEROBYTES], 32);
npm ERR!       |                              ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
npm ERR! /home/admin/public-pool/node_modules/zeromq/build/libzmq-staging/libzmq-20de92ac0a2b2b9a1869782a429df68f93c3625e/src/curve_client_tools.hpp:130:47: error: type 'std::vector<uint8_t, secure_allocator_t<uint8_t>>' (aka 'vector<unsigned char, secure_allocator_t<unsigned char>>') does not provide a subscript operator
npm ERR!   130 |         memcpy (cn_cookie_, &welcome_plaintext[crypto_box_ZEROBYTES + 32],
npm ERR!       |                              ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /home/admin/public-pool/node_modules/zeromq/build/libzmq-staging/libzmq-20de92ac0a2b2b9a1869782a429df68f93c3625e/src/curve_client_tools.hpp:154:60: error: no matching constructor for initialization of 'std::vector<uint8_t, secure_allocator_t<uint8_t>>' (aka 'vector<unsigned char, secure_allocator_t<unsigned char>>')
npm ERR!   154 |         std::vector<uint8_t, secure_allocator_t<uint8_t> > vouch_plaintext (
npm ERR!       |                                                            ^
npm ERR!   155 |           crypto_box_ZEROBYTES + 64);
npm ERR!       |           ~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /usr/include/c++/v1/vector:387:28: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'int' to 'const vector<unsigned char, secure_allocator_t<unsigned char>>' for 1st argument
npm ERR!   387 | class _LIBCPP_TEMPLATE_VIS vector {
npm ERR!       |                            ^~~~~~
npm ERR! /usr/include/c++/v1/vector:387:28: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'int' to 'vector<unsigned char, secure_allocator_t<unsigned char>>' for 1st argument
npm ERR!   387 | class _LIBCPP_TEMPLATE_VIS vector {
npm ERR!       |                            ^~~~~~
npm ERR! /usr/include/c++/v1/vector:387:28: note: candidate constructor (the implicit default constructor) not viable: requires 0 arguments, but 1 was provided
npm ERR! In file included from /home/admin/public-pool/node_modules/zeromq/build/libzmq-staging/libzmq-20de92ac0a2b2b9a1869782a429df68f93c3625e/src/curve_client.cpp:38:
npm ERR! In file included from /home/admin/public-pool/node_modules/zeromq/build/libzmq-staging/libzmq-20de92ac0a2b2b9a1869782a429df68f93c3625e/src/curve_client.hpp:37:
npm ERR! /home/admin/public-pool/node_modules/zeromq/build/libzmq-staging/libzmq-20de92ac0a2b2b9a1869782a429df68f93c3625e/src/curve_client_tools.hpp:159:36: error: no member named 'begin' in 'std::vector<unsigned char, zmq::secure_allocator_t<unsigned char>>'
npm ERR!   159 |         std::fill (vouch_plaintext.begin (),
npm ERR!       |                    ~~~~~~~~~~~~~~~ ^
npm ERR! /home/admin/public-pool/node_modules/zeromq/build/libzmq-staging/libzmq-20de92ac0a2b2b9a1869782a429df68f93c3625e/src/curve_client_tools.hpp:160:36: error: no member named 'begin' in 'std::vector<unsigned char, zmq::secure_allocator_t<unsigned char>>'
npm ERR!   160 |                    vouch_plaintext.begin () + crypto_box_ZEROBYTES, 0);
npm ERR!       |                    ~~~~~~~~~~~~~~~ ^
npm ERR! /home/admin/public-pool/node_modules/zeromq/build/libzmq-staging/libzmq-20de92ac0a2b2b9a1869782a429df68f93c3625e/src/curve_client_tools.hpp:161:33: error: type 'std::vector<uint8_t, secure_allocator_t<uint8_t>>' (aka 'vector<unsigned char, secure_allocator_t<unsigned char>>') does not provide a subscript operator
npm ERR!   161 |         memcpy (&vouch_plaintext[crypto_box_ZEROBYTES], cn_public_, 32);
npm ERR!       |                  ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
npm ERR! /home/admin/public-pool/node_modules/zeromq/build/libzmq-staging/libzmq-20de92ac0a2b2b9a1869782a429df68f93c3625e/src/curve_client_tools.hpp:162:33: error: type 'std::vector<uint8_t, secure_allocator_t<uint8_t>>' (aka 'vector<unsigned char, secure_allocator_t<unsigned char>>') does not provide a subscript operator
npm ERR!   162 |         memcpy (&vouch_plaintext[crypto_box_ZEROBYTES + 32], server_key_, 32);
npm ERR!       |                  ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /home/admin/public-pool/node_modules/zeromq/build/libzmq-staging/libzmq-20de92ac0a2b2b9a1869782a429df68f93c3625e/src/curve_client_tools.hpp:169:50: error: type 'std::vector<uint8_t, secure_allocator_t<uint8_t>>' (aka 'vector<unsigned char, secure_allocator_t<unsigned char>>') does not provide a subscript operator
npm ERR!   169 |           crypto_box (vouch_box, &vouch_plaintext[0], vouch_plaintext.size (),
npm ERR!       |                                   ~~~~~~~~~~~~~~~^~
npm ERR! /home/admin/public-pool/node_modules/zeromq/build/libzmq-staging/libzmq-20de92ac0a2b2b9a1869782a429df68f93c3625e/src/curve_client_tools.hpp:169:71: error: no member named 'size' in 'std::vector<unsigned char, zmq::secure_allocator_t<unsigned char>>'
npm ERR!   169 |           crypto_box (vouch_box, &vouch_plaintext[0], vouch_plaintext.size (),
npm ERR!       |                                                       ~~~~~~~~~~~~~~~ ^
npm ERR! /home/admin/public-pool/node_modules/zeromq/build/libzmq-staging/libzmq-20de92ac0a2b2b9a1869782a429df68f93c3625e/src/curve_client_tools.hpp:177:60: error: no matching constructor for initialization of 'std::vector<uint8_t, secure_allocator_t<uint8_t>>' (aka 'vector<unsigned char, secure_allocator_t<unsigned char>>')
npm ERR!   177 |         std::vector<uint8_t, secure_allocator_t<uint8_t> > initiate_plaintext (
npm ERR!       |                                                            ^
npm ERR!   178 |           crypto_box_ZEROBYTES + 128 + metadata_length_);
npm ERR!       |           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /usr/include/c++/v1/vector:387:28: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'size_t' (aka 'unsigned long') to 'const vector<unsigned char, secure_allocator_t<unsigned char>>' for 1st argument
npm ERR!   387 | class _LIBCPP_TEMPLATE_VIS vector {
npm ERR!       |                            ^~~~~~
npm ERR! /usr/include/c++/v1/vector:387:28: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'size_t' (aka 'unsigned long') to 'vector<unsigned char, secure_allocator_t<unsigned char>>' for 1st argument
npm ERR!   387 | class _LIBCPP_TEMPLATE_VIS vector {
npm ERR!       |                            ^~~~~~
npm ERR! /usr/include/c++/v1/vector:387:28: note: candidate constructor (the implicit default constructor) not viable: requires 0 arguments, but 1 was provided
npm ERR! In file included from /home/admin/public-pool/node_modules/zeromq/build/libzmq-staging/libzmq-20de92ac0a2b2b9a1869782a429df68f93c3625e/src/curve_client.cpp:38:
npm ERR! In file included from /home/admin/public-pool/node_modules/zeromq/build/libzmq-staging/libzmq-20de92ac0a2b2b9a1869782a429df68f93c3625e/src/curve_client.hpp:37:
npm ERR! /home/admin/public-pool/node_modules/zeromq/build/libzmq-staging/libzmq-20de92ac0a2b2b9a1869782a429df68f93c3625e/src/curve_client_tools.hpp:181:39: error: no member named 'begin' in 'std::vector<unsigned char, zmq::secure_allocator_t<unsigned char>>'
npm ERR!   181 |         std::fill (initiate_plaintext.begin (),
npm ERR!       |                    ~~~~~~~~~~~~~~~~~~ ^
npm ERR! /home/admin/public-pool/node_modules/zeromq/build/libzmq-staging/libzmq-20de92ac0a2b2b9a1869782a429df68f93c3625e/src/curve_client_tools.hpp:182:39: error: no member named 'begin' in 'std::vector<unsigned char, zmq::secure_allocator_t<unsigned char>>'
npm ERR!   182 |                    initiate_plaintext.begin () + crypto_box_ZEROBYTES, 0);
npm ERR!       |                    ~~~~~~~~~~~~~~~~~~ ^
npm ERR! /home/admin/public-pool/node_modules/zeromq/build/libzmq-staging/libzmq-20de92ac0a2b2b9a1869782a429df68f93c3625e/src/curve_client_tools.hpp:189:36: error: type 'std::vector<uint8_t, secure_allocator_t<uint8_t>>' (aka 'vector<unsigned char, secure_allocator_t<unsigned char>>') does not provide a subscript operator
npm ERR!   189 |         memcpy (&initiate_plaintext[crypto_box_ZEROBYTES], public_key_, 32);
npm ERR!       |                  ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
npm ERR! /home/admin/public-pool/node_modules/zeromq/build/libzmq-staging/libzmq-20de92ac0a2b2b9a1869782a429df68f93c3625e/src/curve_client_tools.hpp:190:36: error: type 'std::vector<uint8_t, secure_allocator_t<uint8_t>>' (aka 'vector<unsigned char, secure_allocator_t<unsigned char>>') does not provide a subscript operator
npm ERR!   190 |         memcpy (&initiate_plaintext[crypto_box_ZEROBYTES + 32], vouch_nonce + 8,
npm ERR!       |                  ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /home/admin/public-pool/node_modules/zeromq/build/libzmq-staging/libzmq-20de92ac0a2b2b9a1869782a429df68f93c3625e/src/curve_client_tools.hpp:192:36: error: type 'std::vector<uint8_t, secure_allocator_t<uint8_t>>' (aka 'vector<unsigned char, secure_allocator_t<unsigned char>>') does not provide a subscript operator
npm ERR!   192 |         memcpy (&initiate_plaintext[crypto_box_ZEROBYTES + 48],
npm ERR!       |                  ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /home/admin/public-pool/node_modules/zeromq/build/libzmq-staging/libzmq-20de92ac0a2b2b9a1869782a429df68f93c3625e/src/curve_client_tools.hpp:195:40: error: type 'std::vector<uint8_t, secure_allocator_t<uint8_t>>' (aka 'vector<unsigned char, secure_allocator_t<unsigned char>>') does not provide a subscript operator
npm ERR!   195 |             memcpy (&initiate_plaintext[crypto_box_ZEROBYTES + 48 + 80],
npm ERR!       |                      ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! fatal error: too many errors emitted, stopping now [-ferror-limit=]
npm ERR! 20 errors generated.
npm ERR! gmake[3]: *** [CMakeFiles/objects.dir/build.make:202: CMakeFiles/objects.dir/src/curve_client.cpp.o] Error 1
npm ERR! gmake[2]: *** [CMakeFiles/Makefile2:85: CMakeFiles/objects.dir/all] Error 2
npm ERR! gmake[1]: *** [Makefile:136: all] Error 2
npm ERR! In file included from ../src/context.cc:2:
npm ERR! In file included from ../src/context.h:4:
npm ERR! In file included from ../src/prefix.h:5:
npm ERR! /home/admin/.cache/node-gyp/20.12.2/include/node/node_version.h:103:9: warning: 'NAPI_VERSION' macro redefined [-Wmacro-redefined]
npm ERR!   103 | #define NAPI_VERSION 9
npm ERR!       |         ^
npm ERR! /home/admin/.cache/node-gyp/20.12.2/include/node/js_native_api.h:20:9: note: previous definition is here
npm ERR!    20 | #define NAPI_VERSION 8
npm ERR!       |         ^
npm ERR! In file included from ../src/context.cc:2:
npm ERR! In file included from ../src/context.h:4:
npm ERR! ../src/prefix.h:8:10: fatal error: 'zmq.h' file not found
npm ERR!     8 | #include <zmq.h>
npm ERR!       |          ^~~~~~~
npm ERR! 1 warning and 1 error generated.
npm ERR! gmake: *** [zeromq.target.mk:123: Release/obj.target/zeromq/src/context.o] Error 1
npm ERR! gyp ERR! build error 
npm ERR! gyp ERR! stack Error: `gmake` failed with exit code: 2
npm ERR! gyp ERR! stack     at ChildProcess.onExit (/home/admin/public-pool/node_modules/node-gyp/lib/build.js:194:23)
npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:518:28)
npm ERR! gyp ERR! stack     at ChildProcess._handle.onexit (node:internal/child_process:294:12)
npm ERR! gyp ERR! System FreeBSD 14.1-RELEASE
npm ERR! gyp ERR! command "/usr/local/bin/node" "/home/admin/public-pool/node_modules/.bin/node-gyp" "rebuild"
npm ERR! gyp ERR! cwd /home/admin/public-pool/node_modules/zeromq
npm ERR! gyp ERR! node -v v20.12.2
npm ERR! gyp ERR! node-gyp -v v8.4.1
npm ERR! gyp ERR! not ok

npm ERR! A complete log of this run can be found in: /home/admin/.npm/_logs/2024-07-04T23_33_39_026Z-debug-0.log

It fails.

What if we try to just install zeromq.js:

admin@node:~ $ npm --prefix ~/public-pool install zeromq
npm WARN deprecated @npmcli/[email protected]: This functionality has been moved to @npmcli/fs
npm WARN deprecated [email protected]: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: request-promise has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm ERR! code 1
npm ERR! path /home/admin/public-pool/node_modules/zeromq
npm ERR! command failed
npm ERR! command sh -c (shx test -f ./script/build.js || run-s build.js) && cross-env npm_config_build_from_source=true aminya-node-gyp-build
npm ERR! gmake: Entering directory '/home/admin/public-pool/node_modules/zeromq/build'
npm ERR!   TOUCH 7722eaf02fcc073df28ffd1fa831e71544edfd42.intermediate
npm ERR!   ACTION binding_gyp_libzmq_target_build_libzmq 7722eaf02fcc073df28ffd1fa831e71544edfd42.intermediate
npm ERR! Downloading libzmq source from https://github.com/zeromq/libzmq/archive/20de92ac0a2b2b9a1869782a429df68f93c3625e.tar.gz
npm ERR! Building libzmq Release
npm ERR! cmake -S "libzmq-20de92ac0a2b2b9a1869782a429df68f93c3625e" -B ./build  -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="/home/admin/public-pool/node_modules/zeromq/build/libzmq" -DCMAKE_INSTALL_LIBDIR=lib -DBUILD_STATIC=ON -DBUILD_TESTS=OFF -DBUILD_SHARED=OFF -DWITH_DOCS=OFF -DWITH_LIBSODIUM=OFF
npm ERR! -- The C compiler identification is Clang 18.1.5
npm ERR! -- The CXX compiler identification is Clang 18.1.5
npm ERR! -- Detecting C compiler ABI info
npm ERR! -- Detecting C compiler ABI info - done
npm ERR! -- Check for working C compiler: /usr/bin/cc - skipped
npm ERR! -- Detecting C compile features
npm ERR! -- Detecting C compile features - done
npm ERR! -- Detecting CXX compiler ABI info
npm ERR! -- Detecting CXX compiler ABI info - done
npm ERR! -- Check for working CXX compiler: /usr/bin/c++ - skipped
npm ERR! -- Detecting CXX compile features
npm ERR! -- Detecting CXX compile features - done
npm ERR! -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
npm ERR! -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
npm ERR! -- Looking for pthread_create in pthreads
npm ERR! -- Looking for pthread_create in pthreads - not found
npm ERR! -- Looking for pthread_create in pthread
npm ERR! -- Looking for pthread_create in pthread - found
npm ERR! -- Found Threads: TRUE  
npm ERR! -- Detected ZMQ Version - 4.3.5
npm ERR! -- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) 
npm ERR! -- Performing Test COMPILER_SUPPORTS_CXX11
npm ERR! -- Performing Test COMPILER_SUPPORTS_CXX11 - Success
npm ERR! -- Performing Test COMPILER_SUPPORTS_C11
npm ERR! -- Performing Test COMPILER_SUPPORTS_C11 - Success
npm ERR! -- Performing Test CXX_HAS_TAUT_WARNING
npm ERR! -- Performing Test CXX_HAS_TAUT_WARNING - Success
npm ERR! -- Performing Test CC_HAS_TAUT_WARNING
npm ERR! -- Performing Test CC_HAS_TAUT_WARNING - Success
npm ERR! -- Not building draft classes and methods
npm ERR! -- Using builtin sha1
npm ERR! -- Looking for strlcpy
npm ERR! -- Looking for strlcpy - found
npm ERR! -- Using tweetnacl for CURVE security
npm ERR! -- Looking for kqueue
npm ERR! -- Looking for kqueue - found
npm ERR! -- Using polling method in I/O threads: kqueue
npm ERR! -- Using polling method in zmq_poll(er)_* API: poll
npm ERR! -- Looking for pselect
npm ERR! -- Looking for pselect - found
npm ERR! -- Using 64 bytes alignment for lock-free data structures
npm ERR! -- Looking for posix_memalign
npm ERR! -- Looking for posix_memalign - found
npm ERR! -- Looking for include file windows.h
npm ERR! -- Looking for include file windows.h - not found
npm ERR! -- Looking for include file condition_variable
npm ERR! -- Looking for include file condition_variable - found
npm ERR! -- Using condition_variable_t implementation: stl11
npm ERR! -- Looking for include file ifaddrs.h
npm ERR! -- Looking for include file ifaddrs.h - found
npm ERR! -- Looking for include file sys/uio.h
npm ERR! -- Looking for include file sys/uio.h - found
npm ERR! -- Looking for include file sys/eventfd.h
npm ERR! -- Looking for include file sys/eventfd.h - found
npm ERR! -- Checking whether EFD_CLOEXEC is supported
npm ERR! -- Performing Test ZMQ_HAVE_EVENTFD_CLOEXEC
npm ERR! -- Performing Test ZMQ_HAVE_EVENTFD_CLOEXEC - Success
npm ERR! -- Looking for if_nametoindex
npm ERR! -- Looking for if_nametoindex - found
npm ERR! -- Looking for SO_PEERCRED
npm ERR! -- Looking for SO_PEERCRED - not found
npm ERR! -- Looking for LOCAL_PEERCRED
npm ERR! -- Looking for LOCAL_PEERCRED - not found
npm ERR! -- Looking for SO_BUSY_POLL
npm ERR! -- Looking for SO_BUSY_POLL - not found
npm ERR! -- Looking for clock_gettime
npm ERR! -- Looking for clock_gettime - found
npm ERR! -- Looking for fork
npm ERR! -- Looking for fork - found
npm ERR! -- Looking for gethrtime
npm ERR! -- Looking for gethrtime - not found
npm ERR! -- Looking for mkdtemp
npm ERR! -- Looking for mkdtemp - found
npm ERR! -- Looking for accept4
npm ERR! -- Looking for accept4 - found
npm ERR! -- Looking for strnlen
npm ERR! -- Looking for strnlen - found
npm ERR! -- Performing Test HAVE_FLAG_-Wall
npm ERR! -- Performing Test HAVE_FLAG_-Wall - Success
npm ERR! -- Performing Test HAVE_FLAG_-Wextra
npm ERR! -- Performing Test HAVE_FLAG_-Wextra - Success
npm ERR! -- Performing Test HAVE_FLAG_-Wno-long-long
npm ERR! -- Performing Test HAVE_FLAG_-Wno-long-long - Success
npm ERR! -- Performing Test HAVE_FLAG_-Wno-uninitialized
npm ERR! -- Performing Test HAVE_FLAG_-Wno-uninitialized - Success
npm ERR! -- Performing Test HAVE_FLAG_-pedantic
npm ERR! -- Performing Test HAVE_FLAG_-pedantic - Success
npm ERR! -- Checking whether noexcept is supported
npm ERR! -- Performing Test ZMQ_HAVE_NOEXCEPT
npm ERR! -- Performing Test ZMQ_HAVE_NOEXCEPT - Success
npm ERR! -- Checking whether SOCK_CLOEXEC is supported
npm ERR! -- Performing Test ZMQ_HAVE_SOCK_CLOEXEC
npm ERR! -- Performing Test ZMQ_HAVE_SOCK_CLOEXEC - Success
npm ERR! -- Checking whether O_CLOEXEC is supported
npm ERR! -- Performing Test ZMQ_HAVE_O_CLOEXEC
npm ERR! -- Performing Test ZMQ_HAVE_O_CLOEXEC - Success
npm ERR! -- Checking whether SO_BINDTODEVICE is supported
npm ERR! -- Performing Test ZMQ_HAVE_SO_BINDTODEVICE
npm ERR! -- Performing Test ZMQ_HAVE_SO_BINDTODEVICE - Failed
npm ERR! -- Checking whether SO_KEEPALIVE is supported
npm ERR! -- Performing Test ZMQ_HAVE_SO_KEEPALIVE
npm ERR! -- Performing Test ZMQ_HAVE_SO_KEEPALIVE - Success
npm ERR! -- Checking whether SO_PRIORITY is supported
npm ERR! -- Performing Test ZMQ_HAVE_SO_PRIORITY
npm ERR! -- Performing Test ZMQ_HAVE_SO_PRIORITY - Failed
npm ERR! -- Checking whether TCP_KEEPCNT is supported
npm ERR! -- Performing Test ZMQ_HAVE_TCP_KEEPCNT
npm ERR! -- Performing Test ZMQ_HAVE_TCP_KEEPCNT - Success
npm ERR! -- Checking whether TCP_KEEPIDLE is supported
npm ERR! -- Performing Test ZMQ_HAVE_TCP_KEEPIDLE
npm ERR! -- Performing Test ZMQ_HAVE_TCP_KEEPIDLE - Success
npm ERR! -- Checking whether TCP_KEEPINTVL is supported
npm ERR! -- Performing Test ZMQ_HAVE_TCP_KEEPINTVL
npm ERR! -- Performing Test ZMQ_HAVE_TCP_KEEPINTVL - Success
npm ERR! -- Checking whether TCP_KEEPALIVE is supported
npm ERR! -- Performing Test ZMQ_HAVE_TCP_KEEPALIVE
npm ERR! -- Performing Test ZMQ_HAVE_TCP_KEEPALIVE - Failed
npm ERR! -- Checking whether TIPC is supported
npm ERR! -- Performing Test ZMQ_HAVE_TIPC
npm ERR! -- Performing Test ZMQ_HAVE_TIPC - Failed
npm ERR! -- Checking pthread_setname signature
npm ERR! -- Performing Test ZMQ_HAVE_PTHREAD_SETNAME_1
npm ERR! -- Performing Test ZMQ_HAVE_PTHREAD_SETNAME_1 - Failed
npm ERR! -- Performing Test ZMQ_HAVE_PTHREAD_SETNAME_2
npm ERR! -- Performing Test ZMQ_HAVE_PTHREAD_SETNAME_2 - Success
npm ERR! -- Performing Test ZMQ_HAVE_PTHREAD_SETNAME_3
npm ERR! -- Performing Test ZMQ_HAVE_PTHREAD_SETNAME_3 - Failed
npm ERR! -- Performing Test ZMQ_HAVE_PTHREAD_SET_NAME
npm ERR! -- Performing Test ZMQ_HAVE_PTHREAD_SET_NAME - Failed
npm ERR! -- Checking pthread_setaffinity signature
npm ERR! -- Performing Test ZMQ_HAVE_PTHREAD_SET_AFFINITY
npm ERR! -- Performing Test ZMQ_HAVE_PTHREAD_SET_AFFINITY - Failed
npm ERR! -- Checking whether getrandom is supported
npm ERR! -- Performing Test ZMQ_HAVE_GETRANDOM
npm ERR! -- Performing Test ZMQ_HAVE_GETRANDOM - Success
npm ERR! -- Could NOT find AsciiDoc (missing: ASCIIDOC_EXECUTABLE) 
npm ERR! -- Configuring done (1.9s)
npm ERR! -- Generating done (0.0s)
npm ERR! -- Build files have been written to: /home/admin/public-pool/node_modules/zeromq/build/libzmq-staging/build
npm ERR! cmake --build ./build --config Release --target install
npm ERR! gmake[1]: Entering directory '/home/admin/public-pool/node_modules/zeromq/build/libzmq-staging/build'
npm ERR! [  1%] Building C object CMakeFiles/objects.dir/external/sha1/sha1.c.o
npm ERR! [  2%] Building C object CMakeFiles/objects.dir/src/tweetnacl.c.o
npm ERR! [  3%] Building CXX object CMakeFiles/objects.dir/src/precompiled.cpp.o
npm ERR! [  4%] Building CXX object CMakeFiles/objects.dir/src/address.cpp.o
npm ERR! [  5%] Building CXX object CMakeFiles/objects.dir/src/channel.cpp.o
npm ERR! [  6%] Building CXX object CMakeFiles/objects.dir/src/client.cpp.o
npm ERR! [  7%] Building CXX object CMakeFiles/objects.dir/src/clock.cpp.o
npm ERR! [  8%] Building CXX object CMakeFiles/objects.dir/src/ctx.cpp.o
npm ERR! [  9%] Building CXX object CMakeFiles/objects.dir/src/curve_mechanism_base.cpp.o
npm ERR! [ 10%] Building CXX object CMakeFiles/objects.dir/src/curve_client.cpp.o
npm ERR! gmake[1]: Leaving directory '/home/admin/public-pool/node_modules/zeromq/build/libzmq-staging/build'
npm ERR!   TOUCH Release/obj.target/libzmq.stamp
npm ERR!   CXX(target) Release/obj.target/zeromq/src/context.o
npm ERR! rm 7722eaf02fcc073df28ffd1fa831e71544edfd42.intermediate
npm ERR! gmake: Leaving directory '/home/admin/public-pool/node_modules/zeromq/build'
npm ERR! No native build was found for platform=freebsd arch=x64 runtime=node abi=115 uv=1 libc=glibc node=20.12.2
npm ERR!     loaded from: /home/admin/public-pool/node_modules/zeromq
npm ERR! 
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | freebsd | x64
npm ERR! gyp info find Python using Python version 3.9.18 found at "/usr/local/bin/python3"
npm ERR! gyp info spawn /usr/local/bin/python3
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args   '/home/admin/public-pool/node_modules/node-gyp/gyp/gyp_main.py',
npm ERR! gyp info spawn args   'binding.gyp',
npm ERR! gyp info spawn args   '-f',
npm ERR! gyp info spawn args   'make',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/home/admin/public-pool/node_modules/zeromq/build/config.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/home/admin/public-pool/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/home/admin/.cache/node-gyp/20.12.2/include/node/common.gypi',
npm ERR! gyp info spawn args   '-Dlibrary=shared_library',
npm ERR! gyp info spawn args   '-Dvisibility=default',
npm ERR! gyp info spawn args   '-Dnode_root_dir=/home/admin/.cache/node-gyp/20.12.2',
npm ERR! gyp info spawn args   '-Dnode_gyp_dir=/home/admin/public-pool/node_modules/node-gyp',
npm ERR! gyp info spawn args   '-Dnode_lib_file=/home/admin/.cache/node-gyp/20.12.2/<(target_arch)/node.lib',
npm ERR! gyp info spawn args   '-Dmodule_root_dir=/home/admin/public-pool/node_modules/zeromq',
npm ERR! gyp info spawn args   '-Dnode_engine=v8',
npm ERR! gyp info spawn args   '--depth=.',
npm ERR! gyp info spawn args   '--no-parallel',
npm ERR! gyp info spawn args   '--generator-output',
npm ERR! gyp info spawn args   'build',
npm ERR! gyp info spawn args   '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! gyp info spawn gmake
npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm ERR! CMake Warning (dev) at CMakeLists.txt:2 (project):
npm ERR!   cmake_minimum_required() should be called prior to this top-level project()
npm ERR!   call.  Please see the cmake-commands(7) manual for usage documentation of
npm ERR!   both commands.
npm ERR! This warning is for project developers.  Use -Wno-dev to suppress it.
npm ERR! 
npm ERR! CMake Deprecation Warning at CMakeLists.txt:7 (cmake_minimum_required):
npm ERR!   Compatibility with CMake < 3.5 will be removed from a future version of
npm ERR!   CMake.
npm ERR! 
npm ERR!   Update the VERSION argument <min> value or use a ...<max> suffix to tell
npm ERR!   CMake that the project does not need compatibility with older versions.
npm ERR! 
npm ERR! 
npm ERR! In file included from /home/admin/public-pool/node_modules/zeromq/build/libzmq-staging/libzmq-20de92ac0a2b2b9a1869782a429df68f93c3625e/src/curve_client.cpp:35:
npm ERR! In file included from /home/admin/public-pool/node_modules/zeromq/build/libzmq-staging/libzmq-20de92ac0a2b2b9a1869782a429df68f93c3625e/src/msg.hpp:40:
npm ERR! In file included from /home/admin/public-pool/node_modules/zeromq/build/libzmq-staging/libzmq-20de92ac0a2b2b9a1869782a429df68f93c3625e/src/metadata.hpp:33:
npm ERR! In file included from /usr/include/c++/v1/map:2193:
npm ERR! In file included from /usr/include/c++/v1/functional:526:
npm ERR! In file included from /usr/include/c++/v1/__functional/boyer_moore_searcher.h:27:
npm ERR! /usr/include/c++/v1/vector:411:17: error: static assertion failed due to requirement 'is_same<zmq::secure_allocator_t<unsigned char>, std::allocator<unsigned char>>::value': [allocator.requirements] states that rebinding an allocator to the same type should result in the original allocator
npm ERR!   411 |   static_assert(is_same<allocator_type, __rebind_alloc<__alloc_traits, value_type> >::value,
npm ERR!       |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /home/admin/public-pool/node_modules/zeromq/build/libzmq-staging/libzmq-20de92ac0a2b2b9a1869782a429df68f93c3625e/src/curve_client_tools.hpp:64:60: note: in instantiation of template class 'std::vector<unsigned char, zmq::secure_allocator_t<unsigned char>>' requested here
npm ERR!    64 |         std::vector<uint8_t, secure_allocator_t<uint8_t> > hello_plaintext (
npm ERR!       |                                                            ^
npm ERR! /home/admin/public-pool/node_modules/zeromq/build/libzmq-staging/libzmq-20de92ac0a2b2b9a1869782a429df68f93c3625e/src/curve_client_tools.hpp:110:60: error: no matching constructor for initialization of 'std::vector<uint8_t, secure_allocator_t<uint8_t>>' (aka 'vector<unsigned char, secure_allocator_t<unsigned char>>')
npm ERR!   110 |         std::vector<uint8_t, secure_allocator_t<uint8_t> > welcome_plaintext (
npm ERR!       |                                                            ^
npm ERR!   111 |           crypto_box_ZEROBYTES + 128);
npm ERR!       |           ~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /usr/include/c++/v1/vector:387:28: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'int' to 'const vector<unsigned char, secure_allocator_t<unsigned char>>' for 1st argument
npm ERR!   387 | class _LIBCPP_TEMPLATE_VIS vector {
npm ERR!       |                            ^~~~~~
npm ERR! /usr/include/c++/v1/vector:387:28: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'int' to 'vector<unsigned char, secure_allocator_t<unsigned char>>' for 1st argument
npm ERR!   387 | class _LIBCPP_TEMPLATE_VIS vector {
npm ERR!       |                            ^~~~~~
npm ERR! /usr/include/c++/v1/vector:387:28: note: candidate constructor (the implicit default constructor) not viable: requires 0 arguments, but 1 was provided
npm ERR! In file included from /home/admin/public-pool/node_modules/zeromq/build/libzmq-staging/libzmq-20de92ac0a2b2b9a1869782a429df68f93c3625e/src/curve_client.cpp:38:
npm ERR! In file included from /home/admin/public-pool/node_modules/zeromq/build/libzmq-staging/libzmq-20de92ac0a2b2b9a1869782a429df68f93c3625e/src/curve_client.hpp:37:
npm ERR! /home/admin/public-pool/node_modules/zeromq/build/libzmq-staging/libzmq-20de92ac0a2b2b9a1869782a429df68f93c3625e/src/curve_client_tools.hpp:121:53: error: type 'std::vector<uint8_t, secure_allocator_t<uint8_t>>' (aka 'vector<unsigned char, secure_allocator_t<unsigned char>>') does not provide a subscript operator
npm ERR!   121 |         int rc = crypto_box_open (&welcome_plaintext[0], welcome_box,
npm ERR!       |                                    ~~~~~~~~~~~~~~~~~^~
npm ERR! /home/admin/public-pool/node_modules/zeromq/build/libzmq-staging/libzmq-20de92ac0a2b2b9a1869782a429df68f93c3625e/src/curve_client_tools.hpp:129:47: error: type 'std::vector<uint8_t, secure_allocator_t<uint8_t>>' (aka 'vector<unsigned char, secure_allocator_t<unsigned char>>') does not provide a subscript operator
npm ERR!   129 |         memcpy (cn_server_, &welcome_plaintext[crypto_box_ZEROBYTES], 32);
npm ERR!       |                              ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
npm ERR! /home/admin/public-pool/node_modules/zeromq/build/libzmq-staging/libzmq-20de92ac0a2b2b9a1869782a429df68f93c3625e/src/curve_client_tools.hpp:130:47: error: type 'std::vector<uint8_t, secure_allocator_t<uint8_t>>' (aka 'vector<unsigned char, secure_allocator_t<unsigned char>>') does not provide a subscript operator
npm ERR!   130 |         memcpy (cn_cookie_, &welcome_plaintext[crypto_box_ZEROBYTES + 32],
npm ERR!       |                              ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /home/admin/public-pool/node_modules/zeromq/build/libzmq-staging/libzmq-20de92ac0a2b2b9a1869782a429df68f93c3625e/src/curve_client_tools.hpp:154:60: error: no matching constructor for initialization of 'std::vector<uint8_t, secure_allocator_t<uint8_t>>' (aka 'vector<unsigned char, secure_allocator_t<unsigned char>>')
npm ERR!   154 |         std::vector<uint8_t, secure_allocator_t<uint8_t> > vouch_plaintext (
npm ERR!       |                                                            ^
npm ERR!   155 |           crypto_box_ZEROBYTES + 64);
npm ERR!       |           ~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /usr/include/c++/v1/vector:387:28: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'int' to 'const vector<unsigned char, secure_allocator_t<unsigned char>>' for 1st argument
npm ERR!   387 | class _LIBCPP_TEMPLATE_VIS vector {
npm ERR!       |                            ^~~~~~
npm ERR! /usr/include/c++/v1/vector:387:28: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'int' to 'vector<unsigned char, secure_allocator_t<unsigned char>>' for 1st argument
npm ERR!   387 | class _LIBCPP_TEMPLATE_VIS vector {
npm ERR!       |                            ^~~~~~
npm ERR! /usr/include/c++/v1/vector:387:28: note: candidate constructor (the implicit default constructor) not viable: requires 0 arguments, but 1 was provided
npm ERR! In file included from /home/admin/public-pool/node_modules/zeromq/build/libzmq-staging/libzmq-20de92ac0a2b2b9a1869782a429df68f93c3625e/src/curve_client.cpp:38:
npm ERR! In file included from /home/admin/public-pool/node_modules/zeromq/build/libzmq-staging/libzmq-20de92ac0a2b2b9a1869782a429df68f93c3625e/src/curve_client.hpp:37:
npm ERR! /home/admin/public-pool/node_modules/zeromq/build/libzmq-staging/libzmq-20de92ac0a2b2b9a1869782a429df68f93c3625e/src/curve_client_tools.hpp:159:36: error: no member named 'begin' in 'std::vector<unsigned char, zmq::secure_allocator_t<unsigned char>>'
npm ERR!   159 |         std::fill (vouch_plaintext.begin (),
npm ERR!       |                    ~~~~~~~~~~~~~~~ ^
npm ERR! /home/admin/public-pool/node_modules/zeromq/build/libzmq-staging/libzmq-20de92ac0a2b2b9a1869782a429df68f93c3625e/src/curve_client_tools.hpp:160:36: error: no member named 'begin' in 'std::vector<unsigned char, zmq::secure_allocator_t<unsigned char>>'
npm ERR!   160 |                    vouch_plaintext.begin () + crypto_box_ZEROBYTES, 0);
npm ERR!       |                    ~~~~~~~~~~~~~~~ ^
npm ERR! /home/admin/public-pool/node_modules/zeromq/build/libzmq-staging/libzmq-20de92ac0a2b2b9a1869782a429df68f93c3625e/src/curve_client_tools.hpp:161:33: error: type 'std::vector<uint8_t, secure_allocator_t<uint8_t>>' (aka 'vector<unsigned char, secure_allocator_t<unsigned char>>') does not provide a subscript operator
npm ERR!   161 |         memcpy (&vouch_plaintext[crypto_box_ZEROBYTES], cn_public_, 32);
npm ERR!       |                  ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
npm ERR! /home/admin/public-pool/node_modules/zeromq/build/libzmq-staging/libzmq-20de92ac0a2b2b9a1869782a429df68f93c3625e/src/curve_client_tools.hpp:162:33: error: type 'std::vector<uint8_t, secure_allocator_t<uint8_t>>' (aka 'vector<unsigned char, secure_allocator_t<unsigned char>>') does not provide a subscript operator
npm ERR!   162 |         memcpy (&vouch_plaintext[crypto_box_ZEROBYTES + 32], server_key_, 32);
npm ERR!       |                  ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /home/admin/public-pool/node_modules/zeromq/build/libzmq-staging/libzmq-20de92ac0a2b2b9a1869782a429df68f93c3625e/src/curve_client_tools.hpp:169:50: error: type 'std::vector<uint8_t, secure_allocator_t<uint8_t>>' (aka 'vector<unsigned char, secure_allocator_t<unsigned char>>') does not provide a subscript operator
npm ERR!   169 |           crypto_box (vouch_box, &vouch_plaintext[0], vouch_plaintext.size (),
npm ERR!       |                                   ~~~~~~~~~~~~~~~^~
npm ERR! /home/admin/public-pool/node_modules/zeromq/build/libzmq-staging/libzmq-20de92ac0a2b2b9a1869782a429df68f93c3625e/src/curve_client_tools.hpp:169:71: error: no member named 'size' in 'std::vector<unsigned char, zmq::secure_allocator_t<unsigned char>>'
npm ERR!   169 |           crypto_box (vouch_box, &vouch_plaintext[0], vouch_plaintext.size (),
npm ERR!       |                                                       ~~~~~~~~~~~~~~~ ^
npm ERR! /home/admin/public-pool/node_modules/zeromq/build/libzmq-staging/libzmq-20de92ac0a2b2b9a1869782a429df68f93c3625e/src/curve_client_tools.hpp:177:60: error: no matching constructor for initialization of 'std::vector<uint8_t, secure_allocator_t<uint8_t>>' (aka 'vector<unsigned char, secure_allocator_t<unsigned char>>')
npm ERR!   177 |         std::vector<uint8_t, secure_allocator_t<uint8_t> > initiate_plaintext (
npm ERR!       |                                                            ^
npm ERR!   178 |           crypto_box_ZEROBYTES + 128 + metadata_length_);
npm ERR!       |           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /usr/include/c++/v1/vector:387:28: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'size_t' (aka 'unsigned long') to 'const vector<unsigned char, secure_allocator_t<unsigned char>>' for 1st argument
npm ERR!   387 | class _LIBCPP_TEMPLATE_VIS vector {
npm ERR!       |                            ^~~~~~
npm ERR! /usr/include/c++/v1/vector:387:28: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'size_t' (aka 'unsigned long') to 'vector<unsigned char, secure_allocator_t<unsigned char>>' for 1st argument
npm ERR!   387 | class _LIBCPP_TEMPLATE_VIS vector {
npm ERR!       |                            ^~~~~~
npm ERR! /usr/include/c++/v1/vector:387:28: note: candidate constructor (the implicit default constructor) not viable: requires 0 arguments, but 1 was provided
npm ERR! In file included from /home/admin/public-pool/node_modules/zeromq/build/libzmq-staging/libzmq-20de92ac0a2b2b9a1869782a429df68f93c3625e/src/curve_client.cpp:38:
npm ERR! In file included from /home/admin/public-pool/node_modules/zeromq/build/libzmq-staging/libzmq-20de92ac0a2b2b9a1869782a429df68f93c3625e/src/curve_client.hpp:37:
npm ERR! /home/admin/public-pool/node_modules/zeromq/build/libzmq-staging/libzmq-20de92ac0a2b2b9a1869782a429df68f93c3625e/src/curve_client_tools.hpp:181:39: error: no member named 'begin' in 'std::vector<unsigned char, zmq::secure_allocator_t<unsigned char>>'
npm ERR!   181 |         std::fill (initiate_plaintext.begin (),
npm ERR!       |                    ~~~~~~~~~~~~~~~~~~ ^
npm ERR! /home/admin/public-pool/node_modules/zeromq/build/libzmq-staging/libzmq-20de92ac0a2b2b9a1869782a429df68f93c3625e/src/curve_client_tools.hpp:182:39: error: no member named 'begin' in 'std::vector<unsigned char, zmq::secure_allocator_t<unsigned char>>'
npm ERR!   182 |                    initiate_plaintext.begin () + crypto_box_ZEROBYTES, 0);
npm ERR!       |                    ~~~~~~~~~~~~~~~~~~ ^
npm ERR! /home/admin/public-pool/node_modules/zeromq/build/libzmq-staging/libzmq-20de92ac0a2b2b9a1869782a429df68f93c3625e/src/curve_client_tools.hpp:189:36: error: type 'std::vector<uint8_t, secure_allocator_t<uint8_t>>' (aka 'vector<unsigned char, secure_allocator_t<unsigned char>>') does not provide a subscript operator
npm ERR!   189 |         memcpy (&initiate_plaintext[crypto_box_ZEROBYTES], public_key_, 32);
npm ERR!       |                  ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
npm ERR! /home/admin/public-pool/node_modules/zeromq/build/libzmq-staging/libzmq-20de92ac0a2b2b9a1869782a429df68f93c3625e/src/curve_client_tools.hpp:190:36: error: type 'std::vector<uint8_t, secure_allocator_t<uint8_t>>' (aka 'vector<unsigned char, secure_allocator_t<unsigned char>>') does not provide a subscript operator
npm ERR!   190 |         memcpy (&initiate_plaintext[crypto_box_ZEROBYTES + 32], vouch_nonce + 8,
npm ERR!       |                  ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /home/admin/public-pool/node_modules/zeromq/build/libzmq-staging/libzmq-20de92ac0a2b2b9a1869782a429df68f93c3625e/src/curve_client_tools.hpp:192:36: error: type 'std::vector<uint8_t, secure_allocator_t<uint8_t>>' (aka 'vector<unsigned char, secure_allocator_t<unsigned char>>') does not provide a subscript operator
npm ERR!   192 |         memcpy (&initiate_plaintext[crypto_box_ZEROBYTES + 48],
npm ERR!       |                  ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /home/admin/public-pool/node_modules/zeromq/build/libzmq-staging/libzmq-20de92ac0a2b2b9a1869782a429df68f93c3625e/src/curve_client_tools.hpp:195:40: error: type 'std::vector<uint8_t, secure_allocator_t<uint8_t>>' (aka 'vector<unsigned char, secure_allocator_t<unsigned char>>') does not provide a subscript operator
npm ERR!   195 |             memcpy (&initiate_plaintext[crypto_box_ZEROBYTES + 48 + 80],
npm ERR!       |                      ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! fatal error: too many errors emitted, stopping now [-ferror-limit=]
npm ERR! 20 errors generated.
npm ERR! gmake[3]: *** [CMakeFiles/objects.dir/build.make:202: CMakeFiles/objects.dir/src/curve_client.cpp.o] Error 1
npm ERR! gmake[2]: *** [CMakeFiles/Makefile2:85: CMakeFiles/objects.dir/all] Error 2
npm ERR! gmake[1]: *** [Makefile:136: all] Error 2
npm ERR! In file included from ../src/context.cc:2:
npm ERR! In file included from ../src/context.h:4:
npm ERR! In file included from ../src/prefix.h:5:
npm ERR! /home/admin/.cache/node-gyp/20.12.2/include/node/node_version.h:103:9: warning: 'NAPI_VERSION' macro redefined [-Wmacro-redefined]
npm ERR!   103 | #define NAPI_VERSION 9
npm ERR!       |         ^
npm ERR! /home/admin/.cache/node-gyp/20.12.2/include/node/js_native_api.h:20:9: note: previous definition is here
npm ERR!    20 | #define NAPI_VERSION 8
npm ERR!       |         ^
npm ERR! In file included from ../src/context.cc:2:
npm ERR! In file included from ../src/context.h:4:
npm ERR! ../src/prefix.h:8:10: fatal error: 'zmq.h' file not found
npm ERR!     8 | #include <zmq.h>
npm ERR!       |          ^~~~~~~
npm ERR! 1 warning and 1 error generated.
npm ERR! gmake: *** [zeromq.target.mk:123: Release/obj.target/zeromq/src/context.o] Error 1
npm ERR! gyp ERR! build error 
npm ERR! gyp ERR! stack Error: `gmake` failed with exit code: 2
npm ERR! gyp ERR! stack     at ChildProcess.onExit (/home/admin/public-pool/node_modules/node-gyp/lib/build.js:194:23)
npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:518:28)
npm ERR! gyp ERR! stack     at ChildProcess._handle.onexit (node:internal/child_process:294:12)
npm ERR! gyp ERR! System FreeBSD 14.1-RELEASE
npm ERR! gyp ERR! command "/usr/local/bin/node" "/home/admin/public-pool/node_modules/.bin/node-gyp" "rebuild"
npm ERR! gyp ERR! cwd /home/admin/public-pool/node_modules/zeromq
npm ERR! gyp ERR! node -v v20.12.2
npm ERR! gyp ERR! node-gyp -v v8.4.1
npm ERR! gyp ERR! not ok

npm ERR! A complete log of this run can be found in: /home/admin/.npm/_logs/2024-07-04T23_35_36_361Z-debug-0.log

Fails in the same way.

Lets try to install zeromq.js in a diffrent directory:

admin@node:~ $ mkdir ~/empty
admin@node:~ $ npm --prefix ~/empty install zeromq
npm WARN deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm WARN deprecated [email protected]: Glob versions prior to v9 are no longer supported

added 32 packages in 14s

6 packages are looking for funding
  run `npm fund` for details

It works.

Now.... lets try version 6.0.0-beta.20

admin@node:~ $ npm --prefix ~/public-pool install [email protected]
npm WARN deprecated @npmcli/[email protected]: This functionality has been moved to @npmcli/fs
npm WARN deprecated [email protected]: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: request-promise has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142

added 967 packages, and audited 968 packages in 26s

147 packages are looking for funding
  run `npm fund` for details

19 vulnerabilities (1 low, 13 moderate, 4 high, 1 critical)

To address issues that do not require attention, run:
  npm audit fix

To address all issues possible (including breaking changes), run:
  npm audit fix --force

Some issues need review, and may require choosing
a different dependency.

Run `npm audit` for details.

That worked, and now I can run npm install and build the project:

admin@node:~ $ npm --prefix ~/public-pool install 

up to date, audited 968 packages in 858ms

147 packages are looking for funding
  run `npm fund` for details

19 vulnerabilities (1 low, 13 moderate, 4 high, 1 critical)

To address issues that do not require attention, run:
  npm audit fix

To address all issues possible (including breaking changes), run:
  npm audit fix --force

Some issues need review, and may require choosing
a different dependency.

Run `npm audit` for details.

So what's going on?

@aminya
Copy link
Member

aminya commented Jul 5, 2024

We don't test FreeBSD in the CI, so I don't know how good our support is for that platform.

@aminya aminya changed the title Please help me understand why install works and why it fails between diffrent paths FeeBSD Support Jul 5, 2024
@jirijakes
Copy link

I am running into the same issue on FreeBSD 14.1. Also mystified why sometimes it builds, sometimes not.

Perhaps one way to build it would be to use shared libzmq, however that currently does not work on FreeBSD due to linking issue. Perhaps #641 could help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants