Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 454598 - app-emulation/libvirt-1.0.1 USE=xen - configure: error: You must install libxenserver and libcurl to compile the XenAPI driver
Summary: app-emulation/libvirt-1.0.1 USE=xen - configure: error: You must install libx...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Doug Goldstein (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-29 21:55 UTC by Dave Armstrong
Modified: 2013-02-01 00:07 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
failed build log for libvirt-1.0.2 (libvirt-1.0.2-build.log,46.71 KB, text/plain)
2013-01-31 07:05 UTC, Danny Robson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dave Armstrong 2013-01-29 21:55:04 UTC
With USE=xen, libvirt-1.0.1.ebuild passes "--with-xenapi" to the configure script, which fails because it can't find libxenserver.  The library isn't installed by any of the dependencies.

Someone with knowledge of Xen should address the issue.   Based on a quick reading of the "Xen hypervisor driver" page at libvirt.org (http://libvirt.org/drvxen.html),  I commented out the line 'myconf+=" $(use_with xen xenapi)"' in the ebuild as shown in the snippet below, and compilation succeeded:

----------------------
     ## hypervisors on the local host
        myconf="${myconf} $(use_with xen) $(use_with xen xen-inotify)"
#       myconf+=" $(use_with xen xenapi)"
        if use xen && has_version ">=app-emulation/xen-tools-4.2.0"; then
                myconf+=" --with-libxl"
        else
                myconf+=" --without-libxl"
        fi
----------------------

I don't know whether that's the correct solution, but it's necessary as long as the required dependency isn't pulled in.

Update to the above: here's the source of the missing library, and we don't have it in portage (... so why is it enabled?):
http://community.citrix.com/display/xs/Download+SDKs
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2013-01-29 23:05:33 UTC
1) Please post your `emerge --info' output in a comment.
2) Please attach the entire build log to this bug report.
Comment 2 Danny Robson 2013-01-31 07:03:38 UTC
I'm experiencing the same issue as Dave Armstrong. Adding 'USE=xen' results in a test for libxenserver failing thusly:

  checking for xen_vm_start in -lxenserver... no
  configure: error: You must install libxenserver and libcurl to compile the XenAPI driver

Complete build log will be attached. Output of 'emerge --info' follows:

Portage 2.1.11.50 (default/linux/amd64/10.0/desktop/gnome, gcc-4.7.0, glibc-2.16.0, 3.7.3-gentoo x86_64)
=================================================================
System uname: Linux-3.7.3-gentoo-x86_64-Intel-R-_Core-TM-_i7-2600K_CPU_@_3.40GHz-with-gentoo-2.2
KiB Mem:     8153572 total,   2401180 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Thu, 31 Jan 2013 01:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p42
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.3-r3, 3.2.3-r2
dev-util/cmake:           2.8.10.2-r1
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.10.3, 1.11.6, 1.12.6, 1.13.1
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.5.4, 4.6.3, 4.7.0
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.16.0
Repositories: gentoo lottanzb bitcoin sunrise gamerlay java-overlay seden gim x-portage
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.internode.on.net/pub/gentoo"
LANG="en_AU"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/lottanzb /var/lib/layman/bitcoin /var/lib/layman/sunrise /var/lib/layman/gamerlay /var/lib/layman/java-overlay /var/lib/layman/seden /var/lib/layman/gim /var/lib/crossdev/portage"
SYNC="rsync://mouse/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 avx bash-completion berkdb branding bzip2 cairo cdda cdr cli colord consolekit cracklib crypt cscope cxx dbus dri dts dvd dvdr egl emboss encode evo exif fam firefox flac fortran g3dvl gdbm gif glade gnome gnome-keyring gnome-online-accounts gpm gpu gstreamer gtk gtk3 iconv icu jpeg jpeg2k kpathsea kvm lcms libnotify lm_sensors lto mad matroska mmx mng modules mp3 mp4 mpeg mudflap multilib nautilus ncurses nls nptl nvidia offensive ogg openal opengl openmp pam pango pch pcre pdf perl png policykit ppds pulseaudio python qt3support readline samba sdl session socialweb spell sqlite sse sse2 sse4 ssl ssse3 startup-notification svg tcpd theora threads thunar tiff truetype udev udisks unicode upower usb vdpau vim-syntax vorbis wxwidgets x264 xcb xinerama xml xmp xrandr xv xvid xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CURL_SSL="openssl" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_GB en_AU" PHP_TARGETS="php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" QEMU_SOFTMMU_TARGETS="x86_64 i386 arm" QEMU_USER_TARGETS="x86_64 i386 arm" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 3 Danny Robson 2013-01-31 07:05:59 UTC
Created attachment 337384 [details]
failed build log for libvirt-1.0.2
Comment 4 Doug Goldstein (RETIRED) gentoo-dev 2013-02-01 00:07:21 UTC
Never used Xen and never plan on using Xen. I can only support what users provide as feedback regarding Xen. xenapi is dropped in the tree.