Problems with included native library on FreeBSD, potentially others
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 45/100
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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?
- Vorherrschende Sprache
- Java
- Sterne
- 1.1k
- Forks
- 261
- Ø Merge
- 2 Min.
- Gemergte PRs (30 T.)
- 2
Entwicklungsumgebung
Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus xerial/snappy-java
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
xerial/snappy-java#658 · 3 Kommentare · 1 Reaktion ·
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 56/100
xerial/snappy-java#607 ·
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 45/100
xerial/snappy-java#603 · 3 Kommentare ·
-
Snappy error on Mac OS Ventura: "no native library is found for os.name=Mac and os.arch=aarch64"Offen
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
xerial/snappy-java#573 · 1 Reaktion ·
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
xerial/snappy-java#567 · 1 Kommentar ·
Alle Issues in xerial/snappy-java
Ähnliche Issues
-
triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
xerial/sqlite-jdbc#1515 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Area/Configuration Type/Improvement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
ballerina-platform/static-code-analysis-tool#217 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
eclipse-dirigible/dirigible#8636 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug severity-medium XS
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 80/100
nikolas-charalambidis/facepalm-maven-plugin#291 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
OakLoaf/PluginUpdater#264 ·
Maintainer antworten meist innerhalb von 1 Tag