
Hi, I have a problem with a small python script (using fedora 10 with its shipped rpm's - libvirt-0.4.6-3.fc10.x86_64, libvirt-python-0.4.6-3.fc10.x86_64) I'm running a simple stupid libvirt python script. I happen to want to use SDL, and it fails on "Could not initialize SDL - exiting". While I need to solve this error (i.e., find out in which version this patch was included to allow me to specify the DISPLAY http://www.mail-archive.com/libvir-list@redhat.com/msg08764.html) I am more troubled by the fact that running the script again gives a socket/pipe error until I restart libvirtd: Run #1: ./test_libvirt.py libvir: QEMU error : internal error QEMU quit during console startup Could not initialize SDL - exiting Traceback (most recent call last): File "./test_libvirt.py", line 37, in <module> vm = c.createLinux(x, 0) File "/usr/lib64/python2.5/site-packages/libvirt.py", line 892, in createLinux if ret is None:raise libvirtError('virDomainCreateLinux() failed', conn=self) libvirt.libvirtError: internal error QEMU quit during console startup Run #2: ./test_libvirt.py libvir: Remote error : socket closed unexpectedly Traceback (most recent call last): File "./test_libvirt.py", line 37, in <module> vm = c.createLinux(x, 0) # what a lousy function name File "/usr/lib64/python2.5/site-packages/libvirt.py", line 892, in createLinux if ret is None:raise libvirtError('virDomainCreateLinux() failed', conn=self) libvirt.libvirtError: socket closed unexpectedly libvir: Remote error : Broken pipe Code: #!/usr/bin/env python import libvirt c = libvirt.open('qemu:///system') x = """<domain type='kvm'> <name>yossi2</name> <memory>512000</memory> <currentMemory>512000</currentMemory> <vcpu>1</vcpu> <os> <type arch='i686' machine='pc'>hvm</type> <boot dev='hd'/> </os> <features> <acpi/> </features> <clock offset='utc'/> <devices> <emulator>/usr/bin/qemu-kvm</emulator> <disk type='file' device='disk'> <source file='/mnt/sda2/images/winxp-acpi.vmdk'/> <target dev='hda' bus='ide'/> </disk> <input type='tablet' bus='usb'/> <input type='mouse' bus='ps2'/> <graphics type='sdl'/> </devices> </domain>""" vm = c.createLinux(x, 0) Thanks, Itamar

As no one answered my previous problem., I'm trying to build latest libvirt to be able to be more productive and find out if happens on later versions. Some silly questions to save time (on FC10 64): 1. Can one build without xen-devel (the autobuild.sh does not care for --without-xen configure: error: You must install the Xen development package to compile Xen driver with -lxenstore (I installed xen-devel to bypass for now) 2. checking libxml2 xml2-config >= 2.5.0 ... configure: error: Could not find libxml2 anywhere (see config.log for details) but Package libxml2-2.7.2-2.fc10.x86_64 already installed and latest version? (checked at latest master and 0.50 tag) 3. already found the SDL patch is part of 0.50. since the build failed, I installed the rpm: rpm -i /tmp/libvirt-0.5.0-1.fc9.x86_64.rpm warning: /tmp/libvirt-0.5.0-1.fc9.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID de95bc1f error: Failed dependencies: libgnutls.so.13()(64bit) is needed by libvirt-0.5.0-1.fc9.x86_64 libgnutls.so.13(GNUTLS_1_3)(64bit) is needed by libvirt-0.5.0-1.fc9.x86_64 I checked with 0.4.6 as well, I assume this is a difference between fc9/fc10 somehow (since fc10 comes with 0.4.6) 4. as for the python-libvirt rpm Seems the libvirt-python spec does not check for some dependency of cygwin (why would I need that on fedora)? Traceback (most recent call last): File "./test_libvirt.py", line 2, in <module> import libvirt File "/usr/lib64/python2.5/site-packages/libvirt.py", line 12, in <module> import cygvirtmod as libvirtmod ImportError: No module named cygvirtmod Thanks, Itamar Thanks, Itamar From: libvir-list-bounces@redhat.com [mailto:libvir-list-bounces@redhat.com] On Behalf Of Itamar Heim Sent: Tuesday, December 02, 2008 1:08 AM To: Libvir-list@redhat.com Subject: [libvirt] broken pipe? Hi, I have a problem with a small python script (using fedora 10 with its shipped rpm's - libvirt-0.4.6-3.fc10.x86_64, libvirt-python-0.4.6-3.fc10.x86_64) I'm running a simple stupid libvirt python script. I happen to want to use SDL, and it fails on "Could not initialize SDL - exiting". While I need to solve this error (i.e., find out in which version this patch was included to allow me to specify the DISPLAY http://www.mail-archive.com/libvir-list@redhat.com/msg08764.html) I am more troubled by the fact that running the script again gives a socket/pipe error until I restart libvirtd: Run #1: ./test_libvirt.py libvir: QEMU error : internal error QEMU quit during console startup Could not initialize SDL - exiting Traceback (most recent call last): File "./test_libvirt.py", line 37, in <module> vm = c.createLinux(x, 0) File "/usr/lib64/python2.5/site-packages/libvirt.py", line 892, in createLinux if ret is None:raise libvirtError('virDomainCreateLinux() failed', conn=self) libvirt.libvirtError: internal error QEMU quit during console startup Run #2: ./test_libvirt.py libvir: Remote error : socket closed unexpectedly Traceback (most recent call last): File "./test_libvirt.py", line 37, in <module> vm = c.createLinux(x, 0) # what a lousy function name File "/usr/lib64/python2.5/site-packages/libvirt.py", line 892, in createLinux if ret is None:raise libvirtError('virDomainCreateLinux() failed', conn=self) libvirt.libvirtError: socket closed unexpectedly libvir: Remote error : Broken pipe Code: #!/usr/bin/env python import libvirt c = libvirt.open('qemu:///system') x = """<domain type='kvm'> <name>yossi2</name> <memory>512000</memory> <currentMemory>512000</currentMemory> <vcpu>1</vcpu> <os> <type arch='i686' machine='pc'>hvm</type> <boot dev='hd'/> </os> <features> <acpi/> </features> <clock offset='utc'/> <devices> <emulator>/usr/bin/qemu-kvm</emulator> <disk type='file' device='disk'> <source file='/mnt/sda2/images/winxp-acpi.vmdk'/> <target dev='hda' bus='ide'/> </disk> <input type='tablet' bus='usb'/> <input type='mouse' bus='ps2'/> <graphics type='sdl'/> </devices> </domain>""" vm = c.createLinux(x, 0) Thanks, Itamar

On Wed, Dec 03, 2008 at 02:25:58AM -0500, Itamar Heim wrote:
As no one answered my previous problem., I'm trying to build latest libvirt to be able to be more productive and find out if happens on later versions.
Some silly questions to save time (on FC10 64):
1. Can one build without xen-devel (the autobuild.sh does not care for --without-xen configure: error: You must install the Xen development package to compile Xen driver with -lxenstore (I installed xen-devel to bypass for now)
autobuild.sh is our automated build system for dev purposes, so it forces enablement of everything. For your own builds from CVS, just run autogen.sh and pass whatever flags you need. Or just install xen-devel as you mention.
2. checking libxml2 xml2-config >= 2.5.0 ... configure: error: Could not find libxml2 anywhere (see config.log for details) but Package libxml2-2.7.2-2.fc10.x86_64 already installed and latest version?
You need the development package libxml2-devel for compilation. Also make sure yum gives you the 64-bit -devel package, not just the -32bit one.
3. already found the SDL patch is part of 0.50. since the build failed, I installed the rpm:
rpm -i /tmp/libvirt-0.5.0-1.fc9.x86_64.rpm
The version number here says it was built for Fedora 9
warning: /tmp/libvirt-0.5.0-1.fc9.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID de95bc1f
error: Failed dependencies:
libgnutls.so.13()(64bit) is needed by libvirt-0.5.0-1.fc9.x86_64
libgnutls.so.13(GNUTLS_1_3)(64bit) is needed by libvirt-0.5.0-1.fc9.x86_64
But you mention above you are on Fedora 10. As a general rule you can't mix & match builds like this. The Fedora 9 GNUTLS has a differnt ABI to the Fedora 10 GNUTLS, hence why RPM complains when trying to install a libvirt built on F9, on F10.
4. as for the python-libvirt rpm
Seems the libvirt-python spec does not check for some dependency of cygwin (why would I need that on fedora)?
Traceback (most recent call last):
File "./test_libvirt.py", line 2, in <module>
import libvirt
File "/usr/lib64/python2.5/site-packages/libvirt.py", line 12, in <module>
import cygvirtmod as libvirtmod
ImportError: No module named cygvirtmod
You only get this becasue the first 'import libvirt' failed for some reason - I guess the libvirt-python vs libvirt RPMs you have installed are not matching. If you are compiling from source from CVS, you generally need to make sure you set export LD_LIBRARY_PATH=$PREFIX/lib export PYTHONPATH=$PREFIX/lib/python2.5/site-packages replacing $PREFIX with whatever --prefix value you gave to configure
I happen to want to use SDL, and it fails on "Could not initialize SDL - exiting".
While I need to solve this error (i.e., find out in which version this patch was included to allow me to specify the DISPLAY http://www.mail-archive.com/libvir-list@redhat.com/msg08764.html)
That patch is in 0.5.0 release
./test_libvirt.py
libvir: Remote error : socket closed unexpectedly
Traceback (most recent call last):
File "./test_libvirt.py", line 37, in <module>
vm = c.createLinux(x, 0) # what a lousy function name
File "/usr/lib64/python2.5/site-packages/libvirt.py", line 892, in createLinux
if ret is None:raise libvirtError('virDomainCreateLinux() failed', conn=self)
libvirt.libvirtError: socket closed unexpectedly
libvir: Remote error : Broken pipe
This indicates a bug in the libvirtd daemon - it is probably crashing. If you want to investigate, then use do 'debuginfo-install libvirt' and use gdb to capture a stack trace
Code:
#!/usr/bin/env python
import libvirt
c = libvirt.open('qemu:///system')
x = """<domain type='kvm'>
[snip]
<graphics type='sdl'/>
You really need to set <graphics type='sdl' display='0.0' and xauth='....some xuath file'/> The libvirtd daemon blocks any $DISPLAY env set when it was started, so without explicitly setting the display in the XML you'll be very unlikely to start SDL. Daniel -- |: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :| |: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|

Thanks for the tips. Next batch of issues... 1. while still trying to build manually... Any estimation on when/if 0.5 will make it to F10? 2. I'm using git, not cvs. Are these error in autobuild.sh of any significance? autopoint: *** cvs program not found autopoint: *** Stop. 3. the blocking one - neither 0.5 tag nor head can autobuild or autogen. Both fail with: configure: creating ./config.status config.status: error: cannot find input file: Makefile.in since there are some other messages in the output, I've attached below the full output in case it is relevant. Thanks, Itamar ./autobuild.sh # Make things clean. test -n "$1" && RESULTS=$1 || RESULTS=results.log test -f Makefile && make -k distclean || : rm -rf coverage #rm -rf build #mkdir build #cd build ./autogen.sh --prefix="$AUTOBUILD_INSTALL_ROOT" \ --enable-test-coverage \ --enable-compile-warnings=error \ --with-xen-proxy autopoint: *** cvs program not found autopoint: *** Stop. Putting files in AC_CONFIG_AUX_DIR, `build-aux'. configure.in:1066: required file `build-aux/config.rpath' not found configure.in:1066: required file `./ABOUT-NLS' not found checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for style of include used by make... GNU checking dependency style of gcc... gcc3 checking for a BSD-compatible install... /usr/bin/install -c checking how to run the C preprocessor... gcc -E checking for ranlib... ranlib checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking minix/config.h usability... no checking minix/config.h presence... no checking for minix/config.h... no checking whether it is safe to define __EXTENSIONS__... yes checking for _LARGEFILE_SOURCE value needed for large files... no checking for working alloca.h... yes checking for alloca... yes checking arpa/inet.h usability... yes checking arpa/inet.h presence... yes checking for arpa/inet.h... yes checking sys/socket.h usability... yes checking sys/socket.h presence... yes checking for sys/socket.h... yes checking errno.h usability... yes checking errno.h presence... yes checking for errno.h... yes checking float.h usability... yes checking float.h presence... yes checking for float.h... yes checking netdb.h usability... yes checking netdb.h presence... yes checking for netdb.h... yes checking netinet/in.h usability... yes checking netinet/in.h presence... yes checking for netinet/in.h... yes checking stdio_ext.h usability... yes checking stdio_ext.h presence... yes checking for stdio_ext.h... yes checking termios.h usability... yes checking termios.h presence... yes checking for termios.h... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking sys/ioctl.h usability... yes checking sys/ioctl.h presence... yes checking for sys/ioctl.h... yes checking sys/filio.h usability... no checking sys/filio.h presence... no checking for sys/filio.h... no checking for stdint.h... (cached) yes checking wchar.h usability... yes checking wchar.h presence... yes checking for wchar.h... yes checking stdio.h usability... yes checking stdio.h presence... yes checking for stdio.h... yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking sys/select.h usability... yes checking sys/select.h presence... yes checking for sys/select.h... yes checking for sys/stat.h... (cached) yes checking for unistd.h... (cached) yes checking sys/wait.h usability... yes checking sys/wait.h presence... yes checking for sys/wait.h... yes checking whether the preprocessor supports include_next... yes checking for inline... inline checking whether <sys/socket.h> is self-contained... yes checking for shutdown... yes checking whether <sys/socket.h> defines the SHUT_* macros... yes checking for complete errno.h... yes checking whether stdin defaults to large file offsets... yes checking for struct addrinfo... yes checking for C/C++ restrict keyword... __restrict checking for IPv4 sockets... yes checking for IPv6 sockets... yes checking whether getdelim is declared... yes checking whether getline is declared... yes checking whether getpass is declared... yes checking for __fsetlocking... yes checking for tcgetattr... yes checking for tcsetattr... yes checking for gettimeofday... yes checking for lstat... yes checking for vasnprintf... no checking whether fflush_unlocked is declared... yes checking whether flockfile is declared... yes checking whether fputs_unlocked is declared... yes checking whether funlockfile is declared... yes checking whether putc_unlocked is declared... yes checking for struct timeval... yes checking whether malloc, realloc, calloc are POSIX compliant... yes checking for special C compiler options needed for large files... no checking for _FILE_OFFSET_BITS value needed for large files... no checking for external symbol _system_configuration... no checking whether snprintf is declared... yes checking for stdbool.h that conforms to C99... yes checking for _Bool... yes checking for long long int... yes checking for unsigned long long int... yes checking whether strdup is declared... yes checking for working strerror function... yes checking whether strndup is declared... yes checking whether strnlen is declared... yes checking whether stat file-mode macros are broken... no checking for wchar_t... yes checking for wint_t... yes checking for size_t... yes checking for inttypes.h... yes checking for stdint.h... yes checking for intmax_t... yes checking for alloca as a compiler built-in... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for fseeko... yes configure: checking how to do getaddrinfo, freeaddrinfo and getnameinfo checking for library containing getaddrinfo... none required checking for getaddrinfo... yes checking for gai_strerror (possibly via ws2tcpip.h)... yes checking for library containing gethostbyname... none required checking for library containing getservbyname... none required checking for gethostbyname... yes checking for struct sockaddr.sa_len... no checking whether getaddrinfo is declared... yes checking whether freeaddrinfo is declared... yes checking whether gai_strerror is declared... yes checking whether getnameinfo is declared... yes checking for struct addrinfo... (cached) yes checking for getdelim... yes checking for gethostname... yes checking for getline... yes checking for working getline function... yes checking for getpass... yes checking for gettimeofday with POSIX signature... yes checking whether gettimeofday clobbers localtime buffer... no checking for inet_ntop... yes checking whether inet_ntop is declared... yes checking for inet_pton... yes checking whether inet_pton is declared... yes checking whether lseek detects pipes... yes checking whether lstat dereferences a symlink specified with a trailing slash... yes checking for working mkstemp... yes checking for struct addrinfo... (cached) yes checking whether <netinet/in.h> is self-contained... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for sys/pstat.h... no checking for sys/sysmp.h... no checking for sys/sysinfo.h... yes checking for machine/hal_sysinfo.h... no checking for sys/table.h... no checking for sys/param.h... yes checking for sys/sysctl.h... yes checking for sys/systemcfg.h... no checking for pstat_getstatic... no checking for pstat_getdynamic... no checking for sysmp... no checking for getsysinfo... no checking for sysctl... yes checking for table... no checking poll.h usability... yes checking poll.h presence... yes checking for poll.h... yes checking for poll... yes checking for a shell that conforms to POSIX... /bin/sh checking for stdint.h... (cached) yes checking for SIZE_MAX... yes checking for snprintf... yes checking whether snprintf respects a size of 1... yes checking for socklen_t... yes checking whether stdint.h conforms to C99... yes checking for struct random_data... yes checking for strdup... yes checking for working strndup... yes checking for working strnlen... yes checking for strpbrk... yes checking for strsep... yes checking whether <sys/select.h> is self-contained... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking whether <sys/socket.h> is self-contained... (cached) yes checking for shutdown... (cached) yes checking whether <sys/socket.h> defines the SHUT_* macros... (cached) yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for nlink_t... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for a thread-safe mkdir -p... /bin/mkdir -p checking for ptrdiff_t... yes checking for snprintf... (cached) yes checking for wcslen... yes checking whether _snprintf is declared... no checking for vasprintf... yes checking whether <wchar.h> is standalone... yes checking for stdint.h... (cached) yes checking whether setsockopt requires -lsocket... no checking for wchar_t... (cached) yes checking for wint_t... (cached) yes checking whether <sys/ioctl.h> declares ioctl... checking whether ioctl is declared... yes yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for shutdown... (cached) yes checking for gcc... (cached) gcc checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to accept ISO C89... (cached) none needed checking dependency style of gcc... (cached) gcc3 checking for an ANSI C-conforming const... yes checking for function prototypes... yes checking for string.h... (cached) yes checking for a sed that does not truncate output... /bin/sed checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for /usr/bin/ld option to reload object files... -r checking for BSD-compatible nm... /usr/bin/nm -B checking whether ln -s works... yes checking how to recognize dependent libraries... pass_all checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking dependency style of g++... gcc3 checking how to run the C++ preprocessor... g++ -E checking for g77... no checking for xlf... no checking for f77... no checking for frt... no checking for pgf77... no checking for cf77... no checking for fort77... no checking for fl32... no checking for af77... no checking for xlf90... no checking for f90... no checking for pgf90... no checking for pghpf... no checking for epcf90... no checking for gfortran... no checking for g95... no checking for xlf95... no checking for f95... no checking for fort... no checking for ifort... no checking for ifc... no checking for efc... no checking for pgf95... no checking for lf95... no checking for ftn... no checking whether we are using the GNU Fortran 77 compiler... no checking whether accepts -g... no checking the maximum length of command line arguments... 1966080 checking command to parse /usr/bin/nm -B output from gcc object... ok checking for objdir... .libs checking for ar... ar checking for ranlib... (cached) ranlib checking for strip... strip checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC checking if gcc PIC flag -fPIC works... yes checking if gcc static flag -static works... yes checking if gcc supports -c -o file.o... yes checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes configure: creating libtool appending configuration tag "CXX" to libtool checking for ld used by g++... /usr/bin/ld -m elf_x86_64 checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking for g++ option to produce PIC... -fPIC checking if g++ PIC flag -fPIC works... yes checking if g++ static flag -static works... yes checking if g++ supports -c -o file.o... yes checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking dynamic linker characteristics... GNU/Linux ld.so (cached) (cached) checking how to hardcode library paths into programs... immediate appending configuration tag "F77" to libtool checking whether gcc and cc understand -c and -o together... yes checking whether gcc understands -Wall... yes checking whether gcc understands -Wformat... yes checking whether gcc understands -Wformat-security... yes checking whether gcc understands -Wmissing-prototypes... yes checking whether gcc understands -Wnested-externs... yes checking whether gcc understands -Wpointer-arith... yes checking whether gcc understands -Wextra... yes checking whether gcc understands -Wshadow... yes checking whether gcc understands -Wcast-align... yes checking whether gcc understands -Wwrite-strings... yes checking whether gcc understands -Waggregate-return... yes checking whether gcc understands -Wstrict-prototypes... yes checking whether gcc understands -Winline... yes checking whether gcc understands -Wredundant-decls... yes checking whether gcc understands -Wno-sign-compare... yes checking whether gcc understands -Wp,-D_FORTIFY_SOURCE=2... yes checking whether gcc understands -fexceptions... yes checking whether gcc understands -fasynchronous-unwind-tables... yes checking whether gcc understands -Werror... yes checking what language compliance flags to pass to the C compiler... checking for special C compiler options needed for large files... (cached) no checking for _FILE_OFFSET_BITS value needed for large files... (cached) no checking for cfmakeraw... yes checking for regexec... yes checking for uname... yes checking for sched_getaffinity... yes checking for getuid... yes checking for getgid... yes checking pwd.h usability... yes checking pwd.h presence... yes checking for pwd.h... yes checking paths.h usability... yes checking paths.h presence... yes checking for paths.h... yes checking regex.h usability... yes checking regex.h presence... yes checking for regex.h... yes checking sys/syslimits.h usability... no checking sys/syslimits.h presence... no checking for sys/syslimits.h... no checking sys/utsname.h usability... yes checking sys/utsname.h presence... yes checking for sys/utsname.h... yes checking for sys/wait.h... (cached) yes checking winsock2.h usability... no checking winsock2.h presence... no checking for winsock2.h... no checking sched.h usability... yes checking sched.h presence... yes checking for sched.h... yes checking for termios.h... (cached) yes checking sys/poll.h usability... yes checking sys/poll.h presence... yes checking for sys/poll.h... yes checking for xdrmem_create in -lportablexdr... no checking for library containing xdrmem_create... none required checking for gettext in -lintl... no checking for rpcgen... /usr/bin/rpcgen checking pthread.h usability... yes checking pthread.h presence... yes checking for pthread.h... yes checking for pthread_join in -lpthread... yes checking for rm... /bin/rm checking for mv... /bin/mv checking for tar... /bin/tar checking for xmllint... /usr/bin/xmllint checking for xmlcatalog... /usr/bin/xmlcatalog checking for xsltproc... /usr/bin/xsltproc checking for augparse... /usr/bin/augparse checking for a thread-safe mkdir -p... /bin/mkdir -p checking for dnsmasq... /usr/sbin/dnsmasq checking for brctl... /usr/sbin/brctl checking for udevadm... /sbin/udevadm checking for udevsettle... /sbin/udevsettle checking where to write libvirtd PID file... ${prefix}/var/run/libvirtd.pid checking for init script flavor... redhat checking for lokkit... /usr/sbin/lokkit checking for iptables... /sbin/iptables checking for xs_read in -lxenstore... yes checking for xen/xen.h... yes checking for xen/version.h... yes checking for xen/dom0_ops.h... yes checking for xen/sys/privcmd.h... yes checking linux/inotify.h usability... yes checking linux/inotify.h presence... yes checking for linux/inotify.h... yes checking linux/param.h usability... yes checking linux/param.h presence... yes checking for linux/param.h... yes checking linux/sockios.h usability... yes checking linux/sockios.h presence... yes checking for linux/sockios.h... yes checking linux/if_bridge.h usability... yes checking linux/if_bridge.h presence... yes checking for linux/if_bridge.h... yes checking linux/if_tun.h usability... yes checking linux/if_tun.h presence... yes checking for linux/if_tun.h... yes checking linux/kvm.h usability... yes checking linux/kvm.h presence... yes checking for linux/kvm.h... yes checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for LIBXML... yes checking for struct _xmlURI.query_raw... yes checking gnutls/gnutls.h usability... yes checking gnutls/gnutls.h presence... yes checking for gnutls/gnutls.h... yes checking for gnutls_handshake in -lgnutls... yes checking for gnutls_session... yes checking sasl/sasl.h usability... yes checking sasl/sasl.h presence... yes checking for sasl/sasl.h... yes checking for sasl_client_init in -lsasl2... yes checking for POLKIT... no checking for AVAHI... no checking selinux/selinux.h usability... no checking selinux/selinux.h presence... no checking for selinux/selinux.h... no checking for fgetfilecon in -lselinux... no checking numa.h usability... no checking numa.h presence... no checking for numa.h... no checking for numa_available in -lnuma... no checking readline/readline.h usability... no checking readline/readline.h presence... no checking for readline/readline.h... no checking for readline in -lreadline... no checking for library containing tgetent... no checking for rl_initialize in -lreadline... no configure: WARNING: readline library not found checking for mount... /bin/mount checking for umount... /bin/umount checking for showmount... /usr/sbin/showmount checking for qemu-img... /usr/bin/qemu-img checking for qcow-create... no checking for pvcreate... /sbin/pvcreate checking for vgcreate... /sbin/vgcreate checking for lvcreate... /sbin/lvcreate checking for pvremove... /sbin/pvremove checking for vgremove... /sbin/vgremove checking for lvremove... /sbin/lvremove checking for vgchange... /sbin/vgchange checking for vgscan... /sbin/vgscan checking for pvs... /sbin/pvs checking for vgs... /sbin/vgs checking for lvs... /sbin/lvs checking for iscsiadm... /sbin/iscsiadm checking for parted... /sbin/parted checking for LIBPARTED... no checking parted/parted.h usability... no checking parted/parted.h presence... no checking for parted/parted.h... no checking for uuid_generate in -luuid... no checking for ped_device_read in -lparted... no checking for python... /usr/bin/python Found Python version 2.5 could not find python2.5/Python.h checking whether this host is running a Xen kernel... no checking If XenD UNIX socket /var/run/xend/xmlrpc.sock is accessible... no checking whether compiler accepts -fprofile-arcs... yes checking whether compiler accepts -ftest-coverage... yes checking if Xen setuid proxy is needed... yes checking whether NLS is requested... yes checking for msgfmt... /usr/bin/msgfmt checking for gmsgfmt... /usr/bin/msgfmt checking for xgettext... /usr/bin/xgettext checking for msgmerge... /usr/bin/msgmerge checking for ld used by GCC... /usr/bin/ld -m elf_x86_64 checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes checking for shared library run path origin... /bin/sh: build-aux/config.rpath: No such file or directory done checking for CFPreferencesCopyAppValue... no checking for CFLocaleCopyCurrent... no checking for GNU gettext in libc... yes checking whether to use NLS... yes checking where the gettext function comes from... libc checking for windres... no checking for HAL... no checking for GLIB2... no configure: creating ./config.status config.status: error: cannot find input file: Makefile.in
-----Original Message----- From: Daniel P. Berrange [mailto:berrange@redhat.com] Sent: Wednesday, December 03, 2008 11:28 AM To: Itamar Heim Cc: Libvir-list@redhat.com Subject: Re: [libvirt] broken pipe?
On Wed, Dec 03, 2008 at 02:25:58AM -0500, Itamar Heim wrote:
As no one answered my previous problem., I'm trying to build latest libvirt to be able to be more productive and find out if happens on later versions.
Some silly questions to save time (on FC10 64):
1. Can one build without xen-devel (the autobuild.sh does not care for --without-xen configure: error: You must install the Xen development package to compile Xen driver with -lxenstore (I installed xen-devel to bypass for now)
autobuild.sh is our automated build system for dev purposes, so it forces enablement of everything.
For your own builds from CVS, just run autogen.sh and pass whatever flags you need. Or just install xen-devel as you mention.
2. checking libxml2 xml2-config >= 2.5.0 ... configure: error:
Could
not find libxml2 anywhere (see config.log for details) but Package libxml2-2.7.2-2.fc10.x86_64 already installed and latest version?
You need the development package libxml2-devel for compilation. Also make sure yum gives you the 64-bit -devel package, not just the -32bit one.
3. already found the SDL patch is part of 0.50. since the build failed, I installed the rpm:
rpm -i /tmp/libvirt-0.5.0-1.fc9.x86_64.rpm
The version number here says it was built for Fedora 9
warning: /tmp/libvirt-0.5.0-1.fc9.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID de95bc1f
error: Failed dependencies:
libgnutls.so.13()(64bit) is needed by libvirt-0.5.0-1.fc9.x86_64
libgnutls.so.13(GNUTLS_1_3)(64bit) is needed by libvirt-0.5.0-1.fc9.x86_64
But you mention above you are on Fedora 10. As a general rule you can't mix & match builds like this. The Fedora 9 GNUTLS has a differnt ABI to the Fedora 10 GNUTLS, hence why RPM complains when trying to install a libvirt built on F9, on F10.
4. as for the python-libvirt rpm
Seems the libvirt-python spec does not check for some dependency of cygwin (why would I need that on fedora)?
Traceback (most recent call last):
File "./test_libvirt.py", line 2, in <module>
import libvirt
File "/usr/lib64/python2.5/site-packages/libvirt.py", line 12, in <module>
import cygvirtmod as libvirtmod
ImportError: No module named cygvirtmod
You only get this becasue the first 'import libvirt' failed for some reason - I guess the libvirt-python vs libvirt RPMs you have installed are not matching.
If you are compiling from source from CVS, you generally need to make sure you set
export LD_LIBRARY_PATH=$PREFIX/lib export PYTHONPATH=$PREFIX/lib/python2.5/site-packages
replacing $PREFIX with whatever --prefix value you gave to configure
exiting".
While I need to solve this error (i.e., find out in which version this patch was included to allow me to specify the DISPLAY http://www.mail-archive.com/libvir-list@redhat.com/msg08764.html)
I happen to want to use SDL, and it fails on "Could not initialize SDL
That patch is in 0.5.0 release
./test_libvirt.py
libvir: Remote error : socket closed unexpectedly
Traceback (most recent call last):
File "./test_libvirt.py", line 37, in <module>
vm = c.createLinux(x, 0) # what a lousy function name
File "/usr/lib64/python2.5/site-packages/libvirt.py", line 892, in createLinux
if ret is None:raise libvirtError('virDomainCreateLinux() failed', conn=self)
libvirt.libvirtError: socket closed unexpectedly
libvir: Remote error : Broken pipe
This indicates a bug in the libvirtd daemon - it is probably crashing. If you want to investigate, then use do 'debuginfo-install libvirt' and use gdb to capture a stack trace
Code:
#!/usr/bin/env python
import libvirt
c = libvirt.open('qemu:///system')
x = """<domain type='kvm'>
[snip]
<graphics type='sdl'/>
You really need to set
<graphics type='sdl' display='0.0' and xauth='....some xuath file'/>
The libvirtd daemon blocks any $DISPLAY env set when it was started, so without explicitly setting the display in the XML you'll be very unlikely to start SDL.
Daniel -- |: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :| |: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|

On Wed, Dec 03, 2008 at 05:47:11PM -0500, Itamar Heim wrote:
Thanks for the tips. Next batch of issues...
1. while still trying to build manually... Any estimation on when/if 0.5 will make it to F10?
0.5.1 will be in F10 updates within days I expect
2. I'm using git, not cvs. Are these error in autobuild.sh of any significance? autopoint: *** cvs program not found autopoint: *** Stop.
Even if you use the GIT mirror of libvirt, autopoint itself still uses cvs for something it does (crazy yes). The fact that you have autopoint installed without cvs, suggests that the gettext RPM needs to have a 'Requires: cvs' dependancy added to to - worth filing a bug against gettext RPM for this.
3. the blocking one - neither 0.5 tag nor head can autobuild or autogen. Both fail with: configure: creating ./config.status config.status: error: cannot find input file: Makefile.in since there are some other messages in the output, I've attached below the full output in case it is relevant.
./autogen.sh --prefix="$AUTOBUILD_INSTALL_ROOT" \ --enable-test-coverage \ --enable-compile-warnings=error \ --with-xen-proxy autopoint: *** cvs program not found autopoint: *** Stop. Putting files in AC_CONFIG_AUX_DIR, `build-aux'. configure.in:1066: required file `build-aux/config.rpath' not found configure.in:1066: required file `./ABOUT-NLS' not found
This all stems from missing cvs program, causing autopoint to fail, which causes configure to fail, etc, etc. Hopefully just installing CVS would fix it for you.
checking for POLKIT... no checking for AVAHI... no checking selinux/selinux.h usability... no checking selinux/selinux.h presence... no checking for selinux/selinux.h... no checking for fgetfilecon in -lselinux... no checking numa.h usability... no checking numa.h presence... no checking for numa.h... no checking for numa_available in -lnuma... no checking readline/readline.h usability... no checking readline/readline.h presence... no checking for readline/readline.h... no checking for readline in -lreadline... no checking for library containing tgetent... no checking for rl_initialize in -lreadline... no
Not fatal, but if you want to test the full build you should install PolicyKit-devel avahi-devel libselinux-devel numactl-devel readline-devel So that all those checks there pass.
checking for parted... /sbin/parted checking for LIBPARTED... no checking parted/parted.h usability... no checking parted/parted.h presence... no checking for parted/parted.h... no checking for uuid_generate in -luuid... no checking for ped_device_read in -lparted... no
Also install parted-devel
checking for HAL... no checking for GLIB2... no
And hal-devel Basically take a look at libvirt.spec.in and make sure you have all the 'BuildRequires" lines installed. Regards, Daniel -- |: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :| |: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|

On Thu, Dec 04, 2008 at 07:42:51PM +0000, Daniel P. Berrange wrote:
On Wed, Dec 03, 2008 at 05:47:11PM -0500, Itamar Heim wrote:
Thanks for the tips. Next batch of issues...
1. while still trying to build manually... Any estimation on when/if 0.5 will make it to F10?
0.5.1 will be in F10 updates within days I expect
FWIW, 0.5 is in f10 updates now, 0.5.1 is in updates-testing as of this afternoon. Take care, -Hugh

On Thu, Dec 04, 2008 at 03:29:09PM -0500, Hugh O. Brock wrote:
On Thu, Dec 04, 2008 at 07:42:51PM +0000, Daniel P. Berrange wrote:
On Wed, Dec 03, 2008 at 05:47:11PM -0500, Itamar Heim wrote:
Thanks for the tips. Next batch of issues...
1. while still trying to build manually... Any estimation on when/if 0.5 will make it to F10?
0.5.1 will be in F10 updates within days I expect
FWIW, 0.5 is in f10 updates now, 0.5.1 is in updates-testing as of this afternoon.
Right, I prefer to keep the package in updates-testing for at least a week before pushing to stable. But in general I don't get much feedback for the testing package unless I post publicly about it. Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ daniel@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org/

-----Original Message----- From: Daniel P. Berrange [mailto:berrange@redhat.com] ...
Basically take a look at libvirt.spec.in and make sure you have all the 'BuildRequires" lines installed [IH] done that. Added the following list. xen-devel libxml2-devel gnutls-devel cyrus-sasl-devel cvs PolicyKit-devel avahi-devel libselinux-devel numactl-devel readline-devel parted-devel hal-devel python-devel xhtml1-dtds
I still fail on compile errors for both HEAD and 0.5.0 tag (details for both below): 1) Using autobuild.sh - HEAD fails with this error: gcc -g -O2 -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 -Werror -o libvirt_proxy libvirt_proxy.o xend_internal.o xen_internal.o virterror.o sexpr.o xs_internal.o buf.o capabilities.o memory.o domain_conf.o util.o event.o uuid.o logging.o -lxenstore ../gnulib/lib/.libs/libgnu.a -lpthread domain_conf.o: In function `virDomainFindByName': /a/libvirt/proxy/../src/domain_conf.c:190: undefined reference to `virDomainObjUnlock' /a/libvirt/proxy/../src/domain_conf.c:187: undefined reference to `virDomainObjLock' domain_conf.o: In function `virDomainFindByID': /a/libvirt/proxy/../src/domain_conf.c:155: undefined reference to `virDomainObjLock' /a/libvirt/proxy/../src/domain_conf.c:159: undefined reference to `virDomainObjUnlock' domain_conf.o: In function `virDomainRemoveInactive': /a/libvirt/proxy/../src/domain_conf.c:489: undefined reference to `virDomainObjUnlock' /a/libvirt/proxy/../src/domain_conf.c:508: undefined reference to `virDomainObjUnlock' /a/libvirt/proxy/../src/domain_conf.c:492: undefined reference to `virDomainObjLock' /a/libvirt/proxy/../src/domain_conf.c:494: undefined reference to `virDomainObjUnlock' domain_conf.o: In function `virDomainAssignDef': /a/libvirt/proxy/../src/domain_conf.c:468: undefined reference to `virDomainObjLock' domain_conf.o: In function `virDomainFindByUUID': /a/libvirt/proxy/../src/domain_conf.c:175: undefined reference to `virDomainObjUnlock' /a/libvirt/proxy/../src/domain_conf.c:172: undefined reference to `virDomainObjLock' collect2: ld returned 1 exit status make[2]: *** [libvirt_proxy] Error 1 make[2]: Leaving directory `/a/libvirt/proxy' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/a/libvirt' make: *** [all] Error 2 HEAD is at: commit b8727cf738fb1535d6b3f71cb16ff2b9ff932501 Author: Daniel P. Berrange <berrange@redhat.com> Date: Thu Dec 4 22:19:30 2008 +0000 Remove unused driver arg from monitor APIs ------- 2) 0.5.0 tag fails with this error: gcc -DHAVE_CONFIG_H -I. -I.. -I../gnulib/lib -I../gnulib/lib -I../include -I../include -I../qemud -I/usr/include/libxml2 -DLIBDIR=\"/lib\" -DBINDIR=\"/libexec\" -DSBINDIR=\"/sbin\" -DSYSCONF_DIR=\"/etc\" -DLOCALEBASEDIR=\"/share/locale\" -DLOCAL_STATE_DIR=\"/var\" -DGETTEXT_PACKAGE=\"libvirt\" -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 -Werror -g -O2 -MT libvirt_driver_qemu_la-qemu_conf.lo -MD -MP -MF .deps/libvirt_driver_qemu_la-qemu_conf.Tpo -c qemu_conf.c -fPIC -DPIC -o .libs/libvirt_driver_qemu_la-qemu_conf.o cc1: warnings being treated as errors qemu_conf.c: In function 'qemudCapsInitNUMA': qemu_conf.c:325: error: passing argument 2 of 'numa_node_to_cpus' from incompatible pointer type qemu_conf.c:325: error: too many arguments to function 'numa_node_to_cpus' make[3]: *** [libvirt_driver_qemu_la-qemu_conf.lo] Error 1 make[3]: *** Waiting for unfinished jobs.... 0.5.0 is at: commit 20e8e06b63e6e2dd42b5f6faaf63ba30721b8692 Author: Daniel Veillard <veillard@redhat.com> Date: Tue Nov 25 15:48:11 2008 +0000 Release of 0.5.0 * configure.in docs/* NEWS: release of 0.5.0 * po/*: updated from the translators and merged * docs/apibuild.py src/libvirt.c: avoid some warnings at doc generation time daniel
Regards, Daniel

On Thu, Dec 04, 2008 at 06:23:30PM -0500, Itamar Heim wrote:
-----Original Message----- From: Daniel P. Berrange [mailto:berrange@redhat.com] ...
Basically take a look at libvirt.spec.in and make sure you have all the 'BuildRequires" lines installed [IH] done that. Added the following list. xen-devel libxml2-devel gnutls-devel cyrus-sasl-devel cvs PolicyKit-devel avahi-devel libselinux-devel numactl-devel readline-devel parted-devel hal-devel python-devel xhtml1-dtds
I still fail on compile errors for both HEAD and 0.5.0 tag (details for both below):
This is now fixed. I accidentally broke this with my checkin last night.
domain_conf.o: In function `virDomainFindByName': /a/libvirt/proxy/../src/domain_conf.c:190: undefined reference to `virDomainObjUnlock' /a/libvirt/proxy/../src/domain_conf.c:187: undefined reference to `virDomainObjLock' domain_conf.o: In function `virDomainFindByID': /a/libvirt/proxy/../src/domain_conf.c:155: undefined reference to `virDomainObjLock' /a/libvirt/proxy/../src/domain_conf.c:159: undefined reference to `virDomainObjUnlock' domain_conf.o: In function `virDomainRemoveInactive': /a/libvirt/proxy/../src/domain_conf.c:489: undefined reference to `virDomainObjUnlock' /a/libvirt/proxy/../src/domain_conf.c:508: undefined reference to `virDomainObjUnlock' /a/libvirt/proxy/../src/domain_conf.c:492: undefined reference to `virDomainObjLock' /a/libvirt/proxy/../src/domain_conf.c:494: undefined reference to `virDomainObjUnlock' domain_conf.o: In function `virDomainAssignDef': /a/libvirt/proxy/../src/domain_conf.c:468: undefined reference to `virDomainObjLock' domain_conf.o: In function `virDomainFindByUUID': /a/libvirt/proxy/../src/domain_conf.c:175: undefined reference to `virDomainObjUnlock' /a/libvirt/proxy/../src/domain_conf.c:172: undefined reference to `virDomainObjLock' collect2: ld returned 1 exit status make[2]: *** [libvirt_proxy] Error 1
Daniel -- |: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :| |: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|

Regarding the compile errors below: --without-xen allows me to compile HEAD, but with-xen seems broken For the 0.5.0 tag - 'qemudCapsInitNUMA' qemu_conf.c:325: error: passing argument 2 of 'numa_node_to_cpus' from incompatible pointer type - doesn't seem related to the HEAD break. Could be related to a higher level of gcc in fc10?
-----Original Message----- From: Itamar Heim [mailto:iheim@redhat.com] Sent: Friday, December 05, 2008 1:26 AM To: 'Daniel P. Berrange' Cc: 'Libvir-list@redhat.com' Subject: RE: [libvirt] broken pipe?
-----Original Message----- From: Daniel P. Berrange [mailto:berrange@redhat.com] ...
Basically take a look at libvirt.spec.in and make sure you have all the 'BuildRequires" lines installed [IH] done that. Added the following list. xen-devel libxml2-devel gnutls-devel cyrus-sasl-devel cvs PolicyKit- devel avahi-devel libselinux-devel numactl-devel readline-devel parted- devel hal-devel python-devel xhtml1-dtds
I still fail on compile errors for both HEAD and 0.5.0 tag (details for both below):
1) Using autobuild.sh - HEAD fails with this error: gcc -g -O2 -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 -Werror -o libvirt_proxy libvirt_proxy.o xend_internal.o xen_internal.o virterror.o sexpr.o xs_internal.o buf.o capabilities.o memory.o domain_conf.o util.o event.o uuid.o logging.o - lxenstore ../gnulib/lib/.libs/libgnu.a -lpthread domain_conf.o: In function `virDomainFindByName': /a/libvirt/proxy/../src/domain_conf.c:190: undefined reference to `virDomainObjUnlock' /a/libvirt/proxy/../src/domain_conf.c:187: undefined reference to `virDomainObjLock' domain_conf.o: In function `virDomainFindByID': /a/libvirt/proxy/../src/domain_conf.c:155: undefined reference to `virDomainObjLock' /a/libvirt/proxy/../src/domain_conf.c:159: undefined reference to `virDomainObjUnlock' domain_conf.o: In function `virDomainRemoveInactive': /a/libvirt/proxy/../src/domain_conf.c:489: undefined reference to `virDomainObjUnlock' /a/libvirt/proxy/../src/domain_conf.c:508: undefined reference to `virDomainObjUnlock' /a/libvirt/proxy/../src/domain_conf.c:492: undefined reference to `virDomainObjLock' /a/libvirt/proxy/../src/domain_conf.c:494: undefined reference to `virDomainObjUnlock' domain_conf.o: In function `virDomainAssignDef': /a/libvirt/proxy/../src/domain_conf.c:468: undefined reference to `virDomainObjLock' domain_conf.o: In function `virDomainFindByUUID': /a/libvirt/proxy/../src/domain_conf.c:175: undefined reference to `virDomainObjUnlock' /a/libvirt/proxy/../src/domain_conf.c:172: undefined reference to `virDomainObjLock' collect2: ld returned 1 exit status make[2]: *** [libvirt_proxy] Error 1 make[2]: Leaving directory `/a/libvirt/proxy' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/a/libvirt' make: *** [all] Error 2
HEAD is at: commit b8727cf738fb1535d6b3f71cb16ff2b9ff932501 Author: Daniel P. Berrange <berrange@redhat.com> Date: Thu Dec 4 22:19:30 2008 +0000
Remove unused driver arg from monitor APIs ------- 2) 0.5.0 tag fails with this error: gcc -DHAVE_CONFIG_H -I. -I.. -I../gnulib/lib -I../gnulib/lib - I../include -I../include -I../qemud -I/usr/include/libxml2 - DLIBDIR=\"/lib\" -DBINDIR=\"/libexec\" -DSBINDIR=\"/sbin\" - DSYSCONF_DIR=\"/etc\" -DLOCALEBASEDIR=\"/share/locale\" - DLOCAL_STATE_DIR=\"/var\" -DGETTEXT_PACKAGE=\"libvirt\" -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 -Werror -g -O2 -MT libvirt_driver_qemu_la-qemu_conf.lo -MD -MP -MF .deps/libvirt_driver_qemu_la-qemu_conf.Tpo -c qemu_conf.c -fPIC -DPIC - o .libs/libvirt_driver_qemu_la-qemu_conf.o cc1: warnings being treated as errors qemu_conf.c: In function 'qemudCapsInitNUMA': qemu_conf.c:325: error: passing argument 2 of 'numa_node_to_cpus' from incompatible pointer type qemu_conf.c:325: error: too many arguments to function 'numa_node_to_cpus' make[3]: *** [libvirt_driver_qemu_la-qemu_conf.lo] Error 1 make[3]: *** Waiting for unfinished jobs....
0.5.0 is at: commit 20e8e06b63e6e2dd42b5f6faaf63ba30721b8692 Author: Daniel Veillard <veillard@redhat.com> Date: Tue Nov 25 15:48:11 2008 +0000
Release of 0.5.0 * configure.in docs/* NEWS: release of 0.5.0 * po/*: updated from the translators and merged * docs/apibuild.py src/libvirt.c: avoid some warnings at doc generation time daniel
Regards, Daniel

On Thu, Dec 04, 2008 at 07:06:38PM -0500, Itamar Heim wrote:
Regarding the compile errors below: --without-xen allows me to compile HEAD, but with-xen seems broken For the 0.5.0 tag - 'qemudCapsInitNUMA' qemu_conf.c:325: error: passing argument 2 of 'numa_node_to_cpus' from incompatible pointer type - doesn't seem related to the HEAD break. Could be related to a higher level of gcc in fc10?
No, its because libnuma changed its ABI in F10 and we didn't notice in time. The numa issue is fixed in 0.5.1 Daniel -- |: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :| |: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|
participants (4)
-
Daniel P. Berrange
-
Daniel Veillard
-
Hugh O. Brock
-
Itamar Heim