Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RocksDBJNI 5.18.4 fails with missing symbol on MacOS 10.13.6 #6852

Closed
vcrfxia opened this issue May 15, 2020 · 1 comment
Closed

RocksDBJNI 5.18.4 fails with missing symbol on MacOS 10.13.6 #6852

vcrfxia opened this issue May 15, 2020 · 1 comment
Labels

Comments

@vcrfxia
Copy link

vcrfxia commented May 15, 2020

Expected behavior

Upgrading RocksDB JNI from 5.18.3 to 5.18.4 should succeed on MacOS 10.13.6.

Actual behavior

dyld: lazy symbol binding failed: Symbol not found: ____chkstk_darwin
  Referenced from: /private/var/folders/y4/v3q4tgb559sb0x6kwpll19bm0000gn/T/librocksdbjni4028367213086899694.jnilib (which was built for Mac OS X 10.15)
  Expected in: /usr/lib/libSystem.B.dylib

Steps to reproduce the behavior

Run the following on MacOS 10.13.6:

  public static void main(String[] args) {
    RocksDB.loadLibrary();
    Options options = new Options().setCreateIfMissing(true);
    String path = "/Users/victoria.xia/tmp/tempRocksDB";

    RocksDB db = null;
    try {
      db = RocksDB.open(options, path);
    } catch (RocksDBException e) {

    }

    db.close();
    options.close();
  }

The above error is produced if the dependency is

<dependency>
    <groupId>org.rocksdb</groupId>
    <artifactId>rocksdbjni</artifactId>
    <version>5.18.4</version>
</dependency>

but not with

<dependency>
    <groupId>org.rocksdb</groupId>
    <artifactId>rocksdbjni</artifactId>
    <version>5.18.3</version>
</dependency>
@adamretter
Copy link
Collaborator

It looks like the API of libSystem changed on the Mac build system between releases 5.18.3 and 5.18.4.

You have two options I think:

  1. Upgrade to a newer MacOS
  2. Build the Java artifacts from source

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants