Undefined references to libssl functions
- Dominant language
- C++
- Stars
- 14k
- Forks
- 2.6k
- Avg merge
- 5d 18h
- Merged PRs (30d)
- 6
Description
### Checklist
- [x] I have searched for [similar issues](https://github.com/isl-org/Open3D/issues).
- [x] For Python issues, I have tested with the [latest development wheel](https://www.open3d.org/docs/latest/getting_started.html#development-version-pip).
- [x] I have checked the [release documentation](https://www.open3d.org/docs/release/) and the [latest documentation](https://www.open3d.org/docs/latest/) (for `main` branch).
### 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
```shell
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
```markdown
- 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.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.