Skip to content

compiling node on openBSD  #51967

@sandeep-gh

Description

@sandeep-gh

Version

v18.18.0

Platform

openbsd 7.4

Subsystem

No response

What steps will reproduce the bug?

CXX=c++ CC=cc ./configure --fully-static --openssl-no-asm

How often does it reproduce? Is there a required condition?

All the time.

What is the expected behavior? Why is that the expected behavior?

"-ldl" shouldn't be used when using static compilation.

What do you see instead?

c++: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
ld: error: unable to find library -ldl
c++: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[1]: *** [deps/openssl/openssl-cli.target.mk:249: /home/kabiraatmonallabs/Execution/node-v21.6.2/out/Release/openssl-cli] Error 1

Additional information

Downloaded version 20 of node to compile on openBSD with configure command as CXX=c++ CC=cc ./configure --fully-static --openssl-no-asm.
I get the error:

libopenssl.a -static -ldl -pthread -Wl,--end-group
c++: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
ld: error: unable to find library -ldl
c++: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[1]: *** [deps/openssl/openssl-cli.target.mk:249: /home/kabiraatmonallabs/Execution/node-v21.6.2/out/Release/openssl-cli] Error 1
gmake: *** [Makefile:134: node] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildIssues and PRs related to build files or the CI.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions