Index | Thread | Search

From:
Volker Schlecht <openbsd-ports@schlecht.dev>
Subject:
Re: Help with porting Node.js 20 to OpenBSD 7.7
To:
Martin Ivanov <marto1980@gmail.com>
Cc:
ports@openbsd.org
Date:
Wed, 28 May 2025 07:32:44 +0200

Download raw body.

Thread
On 2025-05-28 01:41, Martin Ivanov wrote:
>Hello Stuart,
>thank you very much for your helpfulness. I followed your instructions and came
>quite a step forward. But now I am stuck at the following error:

>  cc -o /usr/obj/ports/node-20.18.2/node-v20.18.2/out/Release/obj.target/
>openssl-cli/deps/openssl/openssl/apps/lib/cmp_mock_srv.o ../deps/openssl/
>openssl/apps/lib/cmp_mock_srv.c '-D_GLIBCXX_USE_CXX11_ABI=1'
>'-DNODE_OPENSSL_CONF_NAME=nodejs_conf' '-DNODE_OPENSSL_HAS_QUIC'
>'-DICU_NO_USER_DATA_OVERRIDE' '-D__STDC_FORMAT_MACROS' '-DOPENSSL_NO_PINSHARED'
>'-DOPENSSL_THREADS' '-DOPENSSL_API_COMPAT=0x10100001L' '-DNDEBUG'
>'-DOPENSSL_USE_NODELETE' '-DL_ENDIAN' '-DOPENSSL_BUILDING_OPENSSL' '-DAES_ASM'
>'-DBSAES_ASM' '-DCMLL_ASM' '-DECP_NISTZ256_ASM' '-DGHASH_ASM'
>'-DKECCAK1600_ASM' '-DMD5_ASM' '-DOPENSSL_BN_ASM_GF2m' '-DOPENSSL_BN_ASM_MONT'
>'-DOPENSSL_BN_ASM_MONT5' '-DOPENSSL_CPUID_OBJ' '-DOPENSSL_IA32_SSE2'
>'-DPADLOCK_ASM' '-DPOLY1305_ASM' '-DRC4_ASM' '-DSHA1_ASM' '-DSHA256_ASM'
>'-DSHA512_ASM' '-DVPAES_ASM' '-DWHIRLPOOL_ASM' '-DX25519_ASM' '-DOPENSSL_PIC'
>'-DOPENSSLDIR="/etc/ssl"' '-DENGINESDIR="/dev/null"' '-DTERMIOS' -I../deps/
>openssl/openssl/apps/include -I/usr/local/include -I../deps/openssl/openssl

I may be jumping to conclusions, but this looks like you are trying to build
the bundled version of OpenSSL, because OpenSSL 3.2 which was used by
lang/node in 7.6 has been removed in 7.7.

That won't work. Instead you need to tweak the port to use OpenSSL 3.3 by
changing all occurences of "3.2" to "3.3" and "32" to "33" in the Makefile.