<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi all,<div class=""><br class=""></div><div class="">Does anyone here have any experience/worked with Java applications that use jna [2] or jffi [3] on DragonFly? I encountered a problem that maybe was solved already.</div><div class=""><br class=""></div><div class="">I wanted to run most of my work related software on DragonFly. Among those things is Cassandra[1] itself and some services that connect to it. Everything runs mostly on the JVM but some of the Cassandra related libraries use native libs via jna and jffi. </div><div class=""><br class=""></div><div class="">I got jna and jffi to build. But I get an exception when running the cassandra client (which uses jffi):</div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>mmap returned wrong address: wanted 0x400000, got 0x8f180000</div><div class=""><br class=""></div><div class="">which I comes from /usr/src/libexec/rtld-elf/map_object.c (map_object()). This is pretty much outside of my domain but maybe some of you tried to do something similar? If anyone can explain why would mmap be unable to return the correct address (I’ve read the man page, but it's not obvious to me why it happens in my case) or can point me in some productive direction, I’d really appreciate it.</div><div class=""><br class=""></div><div class="">Cheers,</div><div class="">Roland</div><div class=""><br class=""></div><div class="">[1] Cassandra: <a href="http://cassandra.apache.org/" class="">http://cassandra.apache.org/</a></div><div class="">[2] JNA: <a href="https://github.com/java-native-access/jna" class="">https://github.com/java-native-access/jna</a></div><div class="">[3] JFFI: <a href="https://github.com/jnr/jffi" class="">https://github.com/jnr/jffi</a></div><div class=""><br class=""></div><div class=""><br class=""></div></div>
</body></html>