Problems with included native library on FreeBSD, potentially others
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 45/100
Hướng nghiên cứu
Start by locating the code that selects and extracts the platform-specific native library from the JAR; the issue does not name a file or test. Check how native libraries installed outside the JAR could be discovered and loaded on FreeBSD, while preserving the bundled library as a fallback. Done means an installed native library is used when available and the bundled one remains the fallback; add tests for both paths.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
I have stumbled upon a problem when using a snappy-java library bundled with a software package.
In my case my operating system is FreeBSD 14.1. The bundled native library seems to be much older, trying to link to the non existant libstdc++.so.6.
I have noticed that as a default snappy-java determines which native library it will need (in this case, FreeBSD) and unpacks it from the .jar file to a temporary directory. I have just started the program and the file name is:
/tmp/snappy-1.1.10-3a114908-1cf9-4b6e-a1b2-620bc8b26ea9-libsnappyjava.so
As I am using FreeBSD I have compiled snappy-java from ports myself (trivial task) and it installs two libraries:
snappyjava-1.1.10.5:
/usr/local/lib/libsnappyjava.so. (the locally compiled native library)
/usr/local/share/java/classes/snappy-java.jar
So, I think it would be ideal to:
- Check whether there is a native library installed. If present, link to it.
- If there is no native library, then use the bundled one as a last resort measure.
What do you think?
- Ngôn ngữ chính
- Java
- Star
- 1.1k
- Fork
- 261
- Merge trung bình
- 2 phút
- Pull request đã merge (30 ngày)
- 2
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của xerial/snappy-java
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
xerial/snappy-java#658 · 3 bình luận · 1 reaction ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 56/100
xerial/snappy-java#607 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
xerial/snappy-java#603 · 3 bình luận ·
-
Snappy error on Mac OS Ventura: "no native library is found for os.name=Mac and os.arch=aarch64"Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
xerial/snappy-java#573 · 1 reaction ·
-
编译 snappy java 1.0.4.1 出现 errorĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
xerial/snappy-java#567 · 1 bình luận ·
Tất cả issue của xerial/snappy-java
Issue tương tự
-
triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
xerial/sqlite-jdbc#1515 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Area/Configuration Type/Improvement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
ballerina-platform/static-code-analysis-tool#217 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
eclipse-dirigible/dirigible#8636 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug severity-medium XS
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
nikolas-charalambidis/facepalm-maven-plugin#291 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
OakLoaf/PluginUpdater#264 ·
Maintainer thường phản hồi trong vòng 1 ngày