Hide Forgot
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'
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
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
I have an autobuild setup on Launchpad and that completed successfully. Thanks again.