Re: [libvirt] Compile libvirt on Solaris

2012-09-06 Thread Yang Zhou (yangzho)
 no version 
assigned)
_init   
/usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/crti.o  (symbol has no version 
assigned)
__dso_handle
/usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/crtbegin.o  (symbol has no version 
assigned)
_lib_version/usr/ccs/lib/values-Xa.o  (symbol has no 
version assigned)
ld: fatal: Symbol referencing errors. No output written to 
.libs/libvirt-qemu.so.0.9.9
collect2: ld returned 1 exit status
*** Error code 1
The following command caused the error:
echo   CCLD   libvirt-qemu.la;/bin/bash ../libtool --silent --tag=CC
--mode=link gcc -std=gnu99 
-I/export/home/yangzhou/hypervisor/libxml2/include/libxml2  
-Wall -W -Wformat-y2k -Wformat-security -Winit-self -Wunused 
-Wunknown-pragmas -Wstrict-aliasing -Wshadow -Wpointer-arith 
-Wbad-function-cast -Wcast-align -Wwrite-strings -Waggregate-return 
-Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes 
-Wmissing-declarations -Wmissing-noreturn -Wmissing-format-attribute 
-Wredundant-decls -Wnested-externs -Winline -Winvalid-pch 
-Wdisabled-optimization -Wpacked-bitfield-compat -Wmultichar 
-Wdeprecated-declarations -Wdiv-by-zero -Wendif-labels -Wextra 
-Wformat-contains-nul -Wformat-extra-args -Wformat-zero-length -Wformat=2 
-Wmultichar -Wno-sign-compare -Wno-format-nonliteral -Wp,-D_FORTIFY_SOURCE=2 
-fexceptions -fasynchronous-unwind-tables -funit-at-a-time  

 -g -O2 -Wl,-M -Wl,./libvirt_qemu.syms  -version-info 9:9:9-o 
libvirt-qemu.la -rpath /export/home/yangzhou/hypervisor/libvirt/lib 
libvirt_qemu_la-libvirt-qemu.lo libvirt.la  -lnsl -lintl
make: Fatal error: Command failed for target `libvirt-qemu.la'
Current working directory /export/home/tools/libvirt/src
*** Error code 1
make: Fatal error: Command failed for target `all'
Current working directory /export/home/tools/libvirt/src
*** Error code 1
The following command caused the error:
fail= failcom='exit 1'; \
for f in x $MAKEFLAGS; do \
  case $f in \
*=* | --[!k]*);; \
*k*) failcom='fail=yes';; \
  esac; \
done; \
dot_seen=no; \
target=`echo all-recursive | sed s/-recursive//`; \
list='gnulib/lib include src daemon tools docs gnulib/tests  python tests po 
examples/domain-events/events-c examples/hellolibvirt  examples/dominfo 
examples/domsuspend examples/python examples/apparmor  examples/xml/nwfilter 
examples/openauth examples/systemtap'; for subdir in $list; do \
  echo Making $target in $subdir; \
  if test $subdir = .; then \
dot_seen=yes; \
local_target=$target-am; \
  else \
local_target=$target; \
  fi; \
  (CDPATH=${ZSH_VERSION+.}:  cd $subdir  make  $local_target) \
  || eval $failcom; \
done; \
if test $dot_seen = no; then \
  make  $target-am || exit 1; \
fi; test -z $fail
make: Fatal error: Command failed for target `all-recursive'
Current working directory /export/home/tools/libvirt
*** Error code 1
make: Fatal error: Command failed for target `all'
bash-3.00#
-

Can you help on how to solve it?

Regards,

Yang


-Original Message-
From: Daniel P. Berrange [mailto:berra...@redhat.com] 
Sent: 2012年9月6日 16:34
To: Daniel Veillard
Cc: Yang Zhou (yangzho); libvir-list@redhat.com
Subject: Re: [libvirt] Compile libvirt on Solaris

On Thu, Sep 06, 2012 at 03:22:12PM +0800, Daniel Veillard wrote:
 On Tue, Sep 04, 2012 at 04:26:55AM +, Yang Zhou (yangzho) wrote:
  Hi Experts,
  
  I am compiling libvirt 0.9.9 on Solaris 9. But got following errors when 
  run ./configure --with-esx --with-qemu
  
  ---
  checking for library containing dlopen... -ldl checking for 
  xen_vm_start in -lxenserver... no checking for 
  libxl_domain_create_new in -lxenlight... no checking for xs_read in 
  -lxenstore... no checking linux/kvm.h usability... no checking 
  linux/kvm.h presence... no checking for linux/kvm.h... no checking 
  for shell that supports  redirection... /bin/sh checking 
  linux/param.h usability... no checking linux/param.h presence... no 
  checking for linux/param.h... no
  configure: error: You must install kernel-headers in order to 
  compile libvirt with QEMU or LXC support bash-2.05$
  
  
  
  After look at configure, it's found the headers of linux/param.h, 
  linux/sockios.h. linux/if_bridge.h and linux/if_tun.h are required. 
  Obviously these files are missing on Solaris platform. Anybody can 
  help how to solve this issue?
 
   I'm not sure we still have an active maintainer on Solaris, John 
 Levon didn't posted here for ages ...

Even then, he only attempted to have the legacy Xen driver work on Solaris

[libvirt] Compile libvirt on Solaris

2012-09-04 Thread Yang Zhou (yangzho)
Hi Experts,

I am compiling libvirt 0.9.9 on Solaris 9. But got following errors when run 
./configure --with-esx --with-qemu
---
checking for library containing dlopen... -ldl
checking for xen_vm_start in -lxenserver... no
checking for libxl_domain_create_new in -lxenlight... no
checking for xs_read in -lxenstore... no
checking linux/kvm.h usability... no
checking linux/kvm.h presence... no
checking for linux/kvm.h... no
checking for shell that supports  redirection... /bin/sh
checking linux/param.h usability... no
checking linux/param.h presence... no
checking for linux/param.h... no
configure: error: You must install kernel-headers in order to compile libvirt 
with QEMU or LXC support
bash-2.05$


After look at configure, it's found the headers of linux/param.h, 
linux/sockios.h. linux/if_bridge.h and linux/if_tun.h are required. Obviously 
these files are missing on Solaris platform. Anybody can help how to solve this 
issue?

Thanks!

Regards,

Yang



--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list