Problems with included native library on FreeBSD, potentially others
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 45/100
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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?
- Linguagem predominante
- Java
- Estrelas
- 1.1k
- Forks
- 261
- Merge médio
- 2min
- PRs com merge (30d)
- 2
Preparar o ambiente
Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de xerial/snappy-java
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 35/100
xerial/snappy-java#658 · 3 comentários · 1 reação ·
-
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 56/100
xerial/snappy-java#607 ·
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 45/100
xerial/snappy-java#603 · 3 comentários ·
-
Snappy error on Mac OS Ventura: "no native library is found for os.name=Mac and os.arch=aarch64"Aberta
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 35/100
xerial/snappy-java#573 · 1 reação ·
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 35/100
xerial/snappy-java#567 · 1 comentário ·
Todas as issues de xerial/snappy-java
Issues semelhantes
-
triage
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
xerial/sqlite-jdbc#1515 ·
Mantenedores costumam responder em até 1 dia
-
Area/Configuration Type/Improvement
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
ballerina-platform/static-code-analysis-tool#217 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
eclipse-dirigible/dirigible#8636 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
bug severity-medium XS
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 80/100
nikolas-charalambidis/facepalm-maven-plugin#291 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
OakLoaf/PluginUpdater#264 ·
Mantenedores costumam responder em até 1 dia