On Tue, Sep 17, 2013 at 12:24 AM, Daniel Veillard <veillard@xxxxxxxxxx> wrote:
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.
please provide a patch :-)On Tue, Sep 17, 2013 at 09:18:02AM +0200, Claudio Bley wrote:
> Hi.
>
> At Tue, 17 Sep 2013 10:18:52 +0800,
> Daniel Veillard wrote:
> >
> > > Any ideas with this build issue for FreeBSD update of libvirt-java? I do
> > > have jna (jna-3.2.7_1) installed.
>
> Your JNA version is too old. Before version 3.3.0 JNA lacked a
> function to free malloc'd memory.
>
> > > build:
> > > [javac] Compiling 64 source files to
> > > /usr/home/helfman/workspace/ports/devel/libvirt-java/work/libvirt-java-0.5.0/target/classes
> > > [javac]
> > > /usr/home/helfman/workspace/ports/devel/libvirt-java/work/libvirt-java-0.5.0/src/main/java/org/libvirt/Library.java:41:
> > > cannot find symbol
> > > [javac] symbol : method free(long)
> > > [javac] location: class com.sun.jna.Native
> > > [javac] Native.free(Pointer.nativeValue(ptr));
> >
> > Wido said the requirement for jna had to be bumped to 3.5.0 that
> > might be the reason !
>
> The code still only requires at least JNA 3.3.0 - although I'd
> recommend using a more recent version.
>
> We could even express this in the POM using a version range, like
>
> <dependency>
> <groupId>net.java.dev.jna</groupId>
> <artifactId>jna</artifactId>
> <scope>provided</scope>
> <version>[3.3,4.0)</version>
> </dependency>
Daniel
--
Daniel Veillard | Open Source and Standards, Red Hat
veillard@xxxxxxxxxx | libxml Gnome XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | virtualization library http://libvirt.org/
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.
-jgh
--
Jason Helfman | FreeBSD Committer
jgh@xxxxxxxxxxx | http://people.freebsd.org/~jgh | The Power to Serve
jgh@xxxxxxxxxxx | http://people.freebsd.org/~jgh | The Power to Serve
-- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list