Skip to content

Building Pegasus on Ubuntu 20.04 with OpenSSL 3 installed: undefined reference to ERR_peek_last_error_all #2340

@Samunroyu

Description

@Samunroyu

Bug Report

When building Pegasus (including thirdparty RocksDB) on Ubuntu 20.04 with OpenSSL 3 installed manually, the build fails during the link stage with the following error:

/usr/bin/ld: ../librocksdb.so.8.5.3: undefined reference to `ERR_peek_last_error_all'
make[5]: *** [tools/CMakeFiles/sst_dump.dir/build.make:101: tools/sst_dump] Error 1
make[4]: *** [CMakeFiles/Makefile2:305: tools/CMakeFiles/sst_dump.dir/all] Error 2

This is link with #2325

  1. What did you do?
    I build pegasus on ubuntu 20.04 and failed

Environment
OS: Ubuntu 20.04 (x86_64)
Compiler: GCC (system default)
CMake: system version
OpenSSL:
System default: OpenSSL 1.1.1 (libcrypto.so.1.1)
Manually installed: OpenSSL 3.x (e.g. under /usr/local/openssl)
Project: Pegasus (with thirdparty RocksDB build enabled)

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/bugThis issue reports a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions