Skip to content

Undefined references to libssl functions #7344

@spearman

Description

@spearman

Checklist

Steps to reproduce the issue

I first cloned Open3D by:

git clone https://github.com/isl-org/Open3D.git
cd Open3D

Then, I build Open3D with:

mkdir build
cd build
cmake -DBUILD_SHARED_LIBS=ON -DBUILD_CUDA_MODULE=OFF -DUSE_BLAS=ON -DBUILD_WEBRTC=OFF ..
make -j$(nproc)

Error message

c++ main.cc -o main -L build/install/lib64 -std=c++17 -isystem/home/spearman/cc/remote/Open3D/build/install/lib64/pkgconfig/../../include/ -isystem/home/spearman/cc/remote/Open3D/build/install/lib64/pkgconfig/../../include//open3d/3rdparty -D_GLIBCXX_USE_CXX11_ABI=1 -DFMT_HEADER_ONLY=0 -DFMT_USE_WINDOWS_H=0 -DFMT_STRING_ALIAS=1 -I/nix/store/wr6qvslzqrd3rsf2mw0ssxwmyi2sqjdh-openssl-3.4.2-dev/include -L/home/spearman/cc/remote/Open3D/build/install/lib64/pkgconfig/../../lib -L/nix/store/adh72qn1r2c4nflkgkv3sdv7aag0p9z5-openssl-3.4.2/lib -Wl,-rpath,/home/spearman/cc/remote/Open3D/build/install/lib64/pkgconfig/../../lib -lOpen3D -ltbb -lssl -lcrypto
/nix/store/ap35np2bkwaba3rxs3qlxpma57n2awyb-binutils-2.44/bin/ld: build/install/lib64/libOpen3D.so: undefined reference to `EVP_get_digestbynid'
/nix/store/ap35np2bkwaba3rxs3qlxpma57n2awyb-binutils-2.44/bin/ld: build/install/lib64/libOpen3D.so: undefined reference to `BIO_clear_retry_flags'
/nix/store/ap35np2bkwaba3rxs3qlxpma57n2awyb-binutils-2.44/bin/ld: build/install/lib64/libOpen3D.so: undefined reference to `SSL_CTX_add_extra_chain_cert'
/nix/store/ap35np2bkwaba3rxs3qlxpma57n2awyb-binutils-2.44/bin/ld: build/install/lib64/libOpen3D.so: undefined reference to `BIO_read_filename'
/nix/store/ap35np2bkwaba3rxs3qlxpma57n2awyb-binutils-2.44/bin/ld: build/install/lib64/libOpen3D.so: undefined reference to `SSL_CTX_set_session_cache_mode'
/nix/store/ap35np2bkwaba3rxs3qlxpma57n2awyb-binutils-2.44/bin/ld: build/install/lib64/libOpen3D.so: undefined reference to `BIO_set_retry_read'
/nix/store/ap35np2bkwaba3rxs3qlxpma57n2awyb-binutils-2.44/bin/ld: build/install/lib64/libOpen3D.so: undefined reference to `EVP_PKEY_id'
/nix/store/ap35np2bkwaba3rxs3qlxpma57n2awyb-binutils-2.44/bin/ld: build/install/lib64/libOpen3D.so: undefined reference to `SSL_CTX_set_mode'
/nix/store/ap35np2bkwaba3rxs3qlxpma57n2awyb-binutils-2.44/bin/ld: build/install/lib64/libOpen3D.so: undefined reference to `SSL_set_tlsext_host_name'
/nix/store/ap35np2bkwaba3rxs3qlxpma57n2awyb-binutils-2.44/bin/ld: build/install/lib64/libOpen3D.so: undefined reference to `SSL_CTX_add0_chain_cert'
/nix/store/ap35np2bkwaba3rxs3qlxpma57n2awyb-binutils-2.44/bin/ld: build/install/lib64/libOpen3D.so: undefined reference to `SSL_CTX_set_min_proto_version'
/nix/store/ap35np2bkwaba3rxs3qlxpma57n2awyb-binutils-2.44/bin/ld: build/install/lib64/libOpen3D.so: undefined reference to `SSL_CTX_set1_curves_list'
/nix/store/ap35np2bkwaba3rxs3qlxpma57n2awyb-binutils-2.44/bin/ld: build/install/lib64/libOpen3D.so: undefined reference to `BIO_get_mem_data'
/nix/store/ap35np2bkwaba3rxs3qlxpma57n2awyb-binutils-2.44/bin/ld: build/install/lib64/libOpen3D.so: undefined reference to `SSL_CTX_set_max_proto_version'
/nix/store/ap35np2bkwaba3rxs3qlxpma57n2awyb-binutils-2.44/bin/ld: build/install/lib64/libOpen3D.so: undefined reference to `BIO_get_mem_ptr'
/nix/store/ap35np2bkwaba3rxs3qlxpma57n2awyb-binutils-2.44/bin/ld: build/install/lib64/libOpen3D.so: undefined reference to `BIO_reset'
/nix/store/ap35np2bkwaba3rxs3qlxpma57n2awyb-binutils-2.44/bin/ld: build/install/lib64/libOpen3D.so: undefined reference to `BIO_set_retry_write'
/nix/store/ap35np2bkwaba3rxs3qlxpma57n2awyb-binutils-2.44/bin/ld: build/install/lib64/libOpen3D.so: undefined reference to `SSL_get_peer_certificate'
/nix/store/ap35np2bkwaba3rxs3qlxpma57n2awyb-binutils-2.44/bin/ld: build/install/lib64/libOpen3D.so: undefined reference to `SSL_CTX_set_msg_callback_arg'
/nix/store/ap35np2bkwaba3rxs3qlxpma57n2awyb-binutils-2.44/bin/ld: build/install/lib64/libOpen3D.so: undefined reference to `SSL_CTX_set1_sigalgs_list'
/nix/store/ap35np2bkwaba3rxs3qlxpma57n2awyb-binutils-2.44/bin/ld: build/install/lib64/libOpen3D.so: undefined reference to `SSL_CTX_clear_chain_certs'
collect2: error: ld returned 1 exit status

Open3D, Python and System information

- Operating system: NixOS 25.05
- Python version: NA
- Open3D version: 0.19.0
- System architecture: x86
- Is this a remote workstation?: no
- How did you install Open3D?: build from source
- Compiler version (if built from source): gcc 14.3

Additional information

Trying to link to locally built Open3D there were a number of undefined references to libssl symbols, I added openssl to the pkg-config --libs and that removed some of them but there are still several undefined references. lddtree on libOpen3D.so does not even show libssl as a dependency.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions