Bug 465848

Summary: libvirt fails to build --without-libvirtd
Product: [Community] Virtualization Tools Reporter: Robert Buchholz <rbu>
Component: libvirtAssignee: Daniel Veillard <veillard>
Status: CLOSED UPSTREAM QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: berrange, crobinso
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-01-22 12:54:45 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
full build log none

Description Robert Buchholz 2008-10-06 17:44:02 UTC
Created attachment 319580 [details]
full build log

Description of problem:
libvirt fails to compile when --without-libvirtd or --without-qemu is selected, because the tests try to compile qemu-specific files unconditionally

Version-Release number of selected component (if applicable):
0.4.6

How reproducible:
Always

Steps to Reproduce:
1. ./configure --without-libvirtd
2. make
  
Actual results:
in tests:
gcc -g -O2 -o qemuxml2argvtest qemuxml2argvtest.o testutilsqemu.o testutils.o -Wall -Wformat -Wformat-security -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wextra -Wshadow -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Winline -Wredundant-decls -Wno-sign-compare -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fasynchronous-unwind-tables  ../src/.libs/libvirt_test.a /usr/lib64/libxml2.so -lm /usr/lib64/libgnutls.so -L/usr/lib64 /usr/lib64/libtasn1.so -lz /usr/lib64/libgcrypt.so /usr/lib64/libgpg-error.so /usr/lib64/libsasl2.so -ldl -lcrypt -lresolv ../gnulib/lib/.libs/libgnu.a -lxenstore -lpthread
qemuxml2argvtest.o: In function `testCompareXMLToArgvFiles':
/var/tmp/portage/app-emulation/libvirt-0.4.6/distdir/libvirt-0.4.6/tests/qemuxml2argvtest.c:50: undefined reference to `qemudBuildCommandLine'
collect2: ld returned 1 exit status

Comment 1 Daniel Berrangé 2009-01-22 12:54:45 UTC
This is now fixed in latest releases. We also have an automated build which runs with the libvirtd and/or  qemu options disabled, so we'll detect this problem if it ever recurrs.