Coder Social home page Coder Social logo

gherynos / libsaltpack-jni Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 606 KB

A Java Native Interface wrapper for libsaltpack

License: Apache License 2.0

CMake 3.01% C++ 31.87% Java 61.70% Shell 1.73% Makefile 1.69%
java android jar saltpack libsaltpack libsaltpack-jni

libsaltpack-jni's Introduction

libsaltpack-jni's People

Contributors

dependabot[bot] avatar gherynos avatar

Watchers

 avatar  avatar  avatar

libsaltpack-jni's Issues

undefined reference to `stderr'

First of all, there are some bugs in android/compile.sh script that are easily fixed:

  1. There’s no longer libsodium 1.0.11, the oldest version is 1.0.12 but the latest is just LATEST.tar.gz with libsodium-stable inside,
  2. NDK version r12b doesn’t support unified headers and so libsodium doesn’t compile, the only one that supports and works with mips32 is r14b,
  3. The host for mips32 is wrong (should be mips64el-linux-android)
  4. There’s newer version of msgpack,
  5. GCC is deprecated in NDK and Clang should be used.

For the above I’ll submit a pull request.

There is one bug which makes it impossible to compile:

The last part, LibSaltpack-jni throws (in both GCC and Clang):

LibSaltpack-jni
[arm64-v8a] Compile++      : saltpack-jni <= InputStreamWrapper.cpp
[arm64-v8a] Compile++      : saltpack-jni <= net_nharyes_libsaltpack_MessageReader.cpp
[arm64-v8a] Compile++      : saltpack-jni <= net_nharyes_libsaltpack_MessageWriter.cpp
[arm64-v8a] Compile++      : saltpack-jni <= net_nharyes_libsaltpack_Utils.cpp
[arm64-v8a] Compile++      : saltpack-jni <= OutputStreamWrapper.cpp
[arm64-v8a] SharedLibrary  : libsaltpack-jni.so
/opt/libsaltpack-jni/android/tmp/gmp-6.1.2/libgmp-android-armv8-a/lib/libgmp.a(realloc.o): In function `__gmpz_realloc':
realloc.c:(.text+0x78): undefined reference to `stderr'
realloc.c:(.text+0x8c): undefined reference to `stderr'
/opt/libsaltpack-jni/android/tmp/gmp-6.1.2/libgmp-android-armv8-a/lib/libgmp.a(assert.o): In function `__gmp_assert_header':
assert.c:(.text+0x24): undefined reference to `stderr'
assert.c:(.text+0x38): undefined reference to `stderr'
/opt/libsaltpack-jni/android/tmp/gmp-6.1.2/libgmp-android-armv8-a/lib/libgmp.a(assert.o): In function `__gmp_assert_fail':
assert.c:(.text+0x78): undefined reference to `stderr'
/opt/libsaltpack-jni/android/tmp/gmp-6.1.2/libgmp-android-armv8-a/lib/libgmp.a(assert.o):assert.c:(.text+0x88): more undefined references to `stderr' follow
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [obj/local/arm64-v8a/libsaltpack-jni.so] Error 1
mv: cannot stat './libs': No such file or directory
	zip warning: name not matched: ./lib

zip error: Nothing to do! (libsaltpack-jni-libs.jar)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.