Re: [PATCH 14/24] nodejs: use -fpermissive


Martin Jansa
 

This doesn't seem to cover nodejs-native build where it still fails with:

| ../src/node_crypto.cc:4585:37: error: invalid conversion from ‘const dsa_st*’ to ‘DSA*’ {aka ‘dsa_st*’} [-fpermissive]
|  4585 |     DSA* dsa_key = EVP_PKEY_get0_DSA(pkey.get());
|       |                    ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
|       |                                     |
|       |                                     const dsa_st*
| ../src/node_crypto.cc:4587:34: warning: ‘const BIGNUM* DSA_get0_q(const DSA*)’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
|  4587 |     bits = BN_num_bits(DSA_get0_q(dsa_key));
|       |                        ~~~~~~~~~~^~~~~~~~~


On Mon, Oct 11, 2021 at 8:42 PM Alexander Kanavin <alex.kanavin@...> wrote:
This resolves openssl 3.x errors until upstream addresses them properly.

Signed-off-by: Alexander Kanavin <alex@...>
---
 meta-oe/recipes-devtools/nodejs/nodejs_14.17.1.bb | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta-oe/recipes-devtools/nodejs/nodejs_14.17.1.bb b/meta-oe/recipes-devtools/nodejs/nodejs_14.17.1.bb
index 471501979..e44398721 100644
--- a/meta-oe/recipes-devtools/nodejs/nodejs_14.17.1.bb
+++ b/meta-oe/recipes-devtools/nodejs/nodejs_14.17.1.bb
@@ -128,6 +128,9 @@ python do_create_v8_qemu_wrapper () {
 do_create_v8_qemu_wrapper[dirs] = "${B}"
 addtask create_v8_qemu_wrapper after do_configure before do_compile

+# Keep until openssl 3.x compatibility is fixed
+CXXFLAGS += "-fpermissive"
+
 LDFLAGS:append:x86 = " -latomic"

 # Node is way too cool to use proper autotools, so we install two wrappers to forcefully inject proper arch cflags to workaround gypi
--
2.20.1




Join {openembedded-devel@lists.openembedded.org to automatically receive all group messages.