java - Why does Avahi "ant test-browse" fail with "libavahi4j.so: undefined symbol: avahi_malloc"? -


i able build avahi per instructions, next step in quick start of running "ant test-browse" results in symbol lookup error, , i'm confused how proceed troubleshooting problem. did find following post showed similar problem, wasn't able make progress (it seems thread never publicly resolved anyway). here error output 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' not set, defaulting build.sysclasspath=last; set false repeatable builds  jar:  jnilib:      [exec] make: entering directory `/home/myuser/downloads/avahi4j-0.1/src'      [exec] make: nothing done `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 workaround: export ld_preload=/usr/lib/x86_64-linux-gnu/libavahi-common.so:/usr/lib/x86_64-linux-gnu/libavahi-client.so

if can shed light on why manual hacking required, love suggestions on why standard build process did not work me (this on ubuntu).


Comments

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -