<div dir="ltr">On Tue, Sep 17, 2013 at 12:24 AM, Daniel Veillard <span dir="ltr"><<a href="mailto:veillard@redhat.com" target="_blank">veillard@redhat.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Tue, Sep 17, 2013 at 09:18:02AM +0200, Claudio Bley wrote:<br>
> Hi.<br>
><br>
> At Tue, 17 Sep 2013 10:18:52 +0800,<br>
> Daniel Veillard wrote:<br>
> ><br>
> > > Any ideas with this build issue for FreeBSD update of libvirt-java? I do<br>
> > > have jna (jna-3.2.7_1) installed.<br>
><br>
> Your JNA version is too old. Before version 3.3.0 JNA lacked a<br>
> function to free malloc'd memory.<br>
><br>
> > > build:<br>
> > >     [javac] Compiling 64 source files to<br>
> > > /usr/home/helfman/workspace/ports/devel/libvirt-java/work/libvirt-java-0.5.0/target/classes<br>
> > >     [javac]<br>
> > > /usr/home/helfman/workspace/ports/devel/libvirt-java/work/libvirt-java-0.5.0/src/main/java/org/libvirt/Library.java:41:<br>
> > > cannot find symbol<br>
> > >     [javac] symbol  : method free(long)<br>
> > >     [javac] location: class com.sun.jna.Native<br>
> > >     [javac]         Native.free(Pointer.nativeValue(ptr));<br>
> ><br>
> >   Wido said the requirement for jna had to be bumped to 3.5.0 that<br>
> > might be the reason !<br>
><br>
> The code still only requires at least JNA 3.3.0 - although I'd<br>
> recommend using a more recent version.<br>
><br>
> We could even express this in the POM using a version range, like<br>
><br>
> <dependency><br>
>    <groupId>net.java.dev.jna</groupId><br>
>    <artifactId>jna</artifactId><br>
>    <scope>provided</scope><br>
>    <version>[3.3,4.0)</version><br>
> </dependency><br>
<br>
</div></div> please provide a patch :-)<br>
<div class="HOEnZb"><div class="h5"><br>
Daniel<br>
<br>
--<br>
Daniel Veillard      | Open Source and Standards, Red Hat<br>
<a href="mailto:veillard@redhat.com">veillard@redhat.com</a>  | libxml Gnome XML XSLT toolkit  <a href="http://xmlsoft.org/" target="_blank">http://xmlsoft.org/</a><br>
<a href="http://veillard.com/" target="_blank">http://veillard.com/</a> | virtualization library  <a href="http://libvirt.org/" target="_blank">http://libvirt.org/</a><br>
<br>
</div></div></blockquote></div><br>I was able to update FreeBSD version to 4.0 of jna, and will put to the community and port maintainer for testing. With this update, I was able to build successfully.</div><div class="gmail_extra">
<br></div><div class="gmail_extra">-jgh<br clear="all"><div><br></div>-- <br><div dir="ltr">Jason Helfman          | FreeBSD Committer<br>jgh@FreeBSD.org     | <a href="http://people.freebsd.org/%7Ejgh" target="_blank">http://people.freebsd.org/~jgh</a>  | The Power to Serve<br>
</div>
</div></div>