为什么的avahi"蚁测试浏览”失败和QUOT; libavahi4j.so:未定义的符号:avahi_malloc"? [英] Why does Avahi "ant test-browse" fail with "libavahi4j.so: undefined symbol: avahi_malloc"?
问题描述
我是能够成功地打造每说明的avahi,但下一步运行在符号查找错误蚂蚁测试浏览的结果的快速启动,并且我很困惑如何与解决此问题继续进行。我发现下面的帖子的显示了类似的问题,但WASN ŧ能取得任何进展(似乎线程从未公开反正解决)。以下是错误输出,我看到:
MYUSER @ Ubuntu的:〜/下载/ avahi4j-0.1 $蚁测试浏览
构建文件:/home/myUser/Downloads/avahi4j-0.1/build.xml在里面:编译:
[javac的] /home/myUser/Downloads/avahi4j-0.1/build.xml:109:警告:includeantruntime没有设置,默认为build.sysclasspath =最后;设置为false可重复的构建罐:jnilib:
[执行]做:进入目录`/home/myUser/Downloads/avahi4j-0.1/src
[执行]做:对于所有的`'做什么也没有。
[执行]使:离开目录`/home/myUser/Downloads/avahi4j-0.1/src测试浏览:
【JAVA] Avahi4J v0.1-0
【JAVA] / usr / lib目录/ JVM / Java的7甲骨文/ JRE /斌/ java的:符号查找错误:/home/myUser/Downloads/avahi4j-0.1/libavahi4j.so:未定义的符号:avahi_malloc构建失败
/home/myUser/Downloads/avahi4j-0.1/build.xml:185:Java的返回:127总时间:0秒
终于找到了解决方法:出口LD_$p$pLOAD=/usr/lib/x86_64-linux-gnu/libavahi-common.so:/usr/lib/x86_64-linux-gnu/libavahi-client.so$c$c>
如果任何人都可以揭示为什么需要本手册的黑客,我会爱,为什么标准构建过程对我来说没有工作的建议(这是在Ubuntu)。
I was able to successfully build avahi per the instructions, but the next step in the quick start of running "ant test-browse" results in a symbol lookup error, and I'm confused about how to proceed with troubleshooting this problem. I did find the following post that showed a similar problem, but wasn't able to make any progress (it seems the thread was never publicly resolved anyway). Here is the error output that I see:
myUser@ubuntu:~/Downloads/avahi4j-0.1$ ant test-browse
Buildfile: /home/myUser/Downloads/avahi4j-0.1/build.xml
init:
compile:
[javac] /home/myUser/Downloads/avahi4j-0.1/build.xml:109: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
jar:
jnilib:
[exec] make: Entering directory `/home/myUser/Downloads/avahi4j-0.1/src'
[exec] make: Nothing to be done for `all'.
[exec] make: Leaving directory `/home/myUser/Downloads/avahi4j-0.1/src'
test-browse:
[java] Avahi4J v0.1-0
[java] /usr/lib/jvm/java-7-oracle/jre/bin/java: symbol lookup error: /home/myUser/Downloads/avahi4j-0.1/libavahi4j.so: undefined symbol: avahi_malloc
BUILD FAILED
/home/myUser/Downloads/avahi4j-0.1/build.xml:185: Java returned: 127
Total time: 0 seconds
Finally found a workaround: export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libavahi-common.so:/usr/lib/x86_64-linux-gnu/libavahi-client.so
If anyone can shed light on why this manual hacking is required, I would love suggestions on why the standard build process did not work for me (this is on Ubuntu).
这篇关于为什么的avahi"蚁测试浏览”失败和QUOT; libavahi4j.so:未定义的符号:avahi_malloc"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!