Bug 670871 - ruby-libvirt: FTBS with libvirt 0.7.5
Summary: ruby-libvirt: FTBS with libvirt 0.7.5
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libvirt
Version: unspecified
Hardware: Unspecified
OS: Linux
low
medium
Target Milestone: ---
Assignee: Chris Lalancette
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-01-19 15:22 UTC by Neil Wilson
Modified: 2011-04-28 20:53 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-04-28 20:53:30 UTC


Attachments (Terms of Use)

Description Neil Wilson 2011-01-19 15:22:27 UTC
Description of problem:

Tried to build the ruby-libvirt extension (commit 2b13e998aebe96fda3fe5f5c648e87d012525f8f) against the libvirt 0.7.5 version that is native in Ubuntu Lucid and it fails to build. (Builds fine against 0.8.3).

_libvirt.c: In function 'Init__libvirt':
_libvirt.c:773: error: 'VIR_FROM_XENAPI' undeclared (first use in this function)
_libvirt.c:773: error: (Each undeclared identifier is reported only once
_libvirt.c:773: error: for each function it appears in.)
_libvirt.c:774: error: 'VIR_FROM_NWFILTER' undeclared (first use in this function)
_libvirt.c:775: error: 'VIR_FROM_HOOK' undeclared (first use in this function)
_libvirt.c:777: error: 'VIR_FROM_DOMAIN_SNAPSHOT' undeclared (first use in this function)
_libvirt.c:865: error: 'VIR_WAR_NO_NWFILTER' undeclared (first use in this function)
_libvirt.c:867: error: 'VIR_ERR_INVALID_NWFILTER' undeclared (first use in this function)
_libvirt.c:868: error: 'VIR_ERR_NO_NWFILTER' undeclared (first use in this function)
_libvirt.c:870: error: 'VIR_ERR_BUILD_FIREWALL' undeclared (first use in this function)
_libvirt.c:882: error: 'VIR_ERR_HOOK_SCRIPT_FAILED' undeclared (first use in this function)
_libvirt.c:884: error: 'VIR_ERR_INVALID_DOMAIN_SNAPSHOT' undeclared (first use in this function)
_libvirt.c:886: error: 'VIR_ERR_NO_DOMAIN_SNAPSHOT' undeclared (first use in this function)
make[1]: *** [_libvirt.o] Error 1
make[1]: Leaving directory `/build/buildd/ruby-libvirt-0.3.0+255/ext/libvirt'

Comment 1 Chris Lalancette 2011-01-19 15:58:30 UTC
Thanks for the report.  I've just written some code that should improve the situation.  I'm waiting for an Ubuntu CD to download so I can test; I'll push it once I confirm it fixes the problem.

Chris Lalancette

Comment 2 Chris Lalancette 2011-02-10 21:52:50 UTC
I'm sorry for the really long delay; other things got priority.  I've now pushed a patch to the git repository.  I haven't tested it on Ubuntu 10.04, but I did test it against an ancient libvirt 0.3.3 on RHEL-5 and it compiled OK, so I think it will probably work.  If you run into any problems, please let me know.

Chris Lalancette

Comment 3 Neil Wilson 2011-02-11 07:54:42 UTC
I have an autobuild setup on Launchpad and that completed successfully.

Thanks again.


Note You need to log in before you can comment on or make changes to this bug.