Skip to content

[C++][CI] OpenSSL link error in Gandiva on macOS #36329

Closed

Description

@pitrou

Describe the bug, including details regarding any error messages, version, and platform.

As seen on CI:

Undefined symbols for architecture x86_64:
  "_EVP_MD_get_size", referenced from:
      gandiva::gdv_hash_using_openssl(long long, void const*, unsigned long, evp_md_st const*, unsigned int, int*) in libgandiva.a(hash_utils.cc.o)
ld: symbol(s) not found for architecture x86_64

https://github.com/apache/arrow/actions/runs/5390688418/jobs/9786417735#step:9:1716

Also, it would be nice if the CMake configure logs shows the architecture being targeted (perhaps CMAKE_SYSTEM_PROCESSOR?).

Component(s)

C++, Continuous Integration

Activity

  1. pitrou commented on Jun 27, 2023

    @pitrou
    MemberAuthor

    cc @kou

  2. kou commented on Jun 27, 2023

    @kou
    Member

    Ah, sorry. I didn't take a look at this failure.

    It's caused by mixing OpenSSL 1.1 and 3.0.
    In this case, OpenSSL 3.0's include headers (they have #define EVP_MD_size EVP_MD_get_size) are used and OpenSSL 1.1's libraries (they provides EVP_MD_size not EVP_MD_get_size) are used.

  3. added a commit that references this issue on Jun 28, 2023
  4. added a commit that references this issue on Jun 30, 2023
  5. added this to the 13.0.0 milestone on Jun 30, 2023
  6. added 2 commits that reference this issue on Jul 19, 2023
  7. added a commit that references this issue on Jul 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions