Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 318417 - app-emulation/libvirt-0.8.1 fails to compile
Summary: app-emulation/libvirt-0.8.1 fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-04 14:02 UTC by billy
Modified: 2010-07-06 18:01 UTC (History)
0 users

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


Attachments
config.log (config.log,632.31 KB, text/plain)
2010-05-04 15:16 UTC, billy
Details
complete build log with V=1 (A888CN~4.LOG,289.54 KB, text/plain)
2010-05-04 15:17 UTC, billy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description billy 2010-05-04 14:02:33 UTC
Here is the error messages:

  CCLD   libvirt_driver_security.la
libtool: link: require no space between `-L' and `/usr/lib'
make[3]: *** [libvirt_driver_nwfilter.la] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/var/tmp/portage/app-emulation/libvirt-0.8.1/work/libvirt-0.8.1/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/app-emulation/libvirt-0.8.1/work/libvirt-0.8.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/app-emulation/libvirt-0.8.1/work/libvirt-0.8.1'
make: *** [all] Error 2
 * ERROR: app-emulation/libvirt-0.8.1 failed:
 *   emake failed

Reproducible: Always

Steps to Reproduce:
1. emerge libvirt
2.
3.

Actual Results:  
error "libtool: link: require no space between `-L' and `/usr/lib'"

Expected Results:  
compile cleanly

emerge --info:
Portage 2.1.8.3 (default/linux/x86/10.0/server, gcc-4.3.4, glibc-2.10.1-r1, 2.6.27-openvz-kramskoi.3 i686)
=================================================================
System uname: Linux-2.6.27-openvz-kramskoi.3-i686-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_3600+-with-gentoo-1.12.13
Timestamp of tree: Tue, 04 May 2010 13:00:01 +0000
app-shells/bash:     4.0_p35
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.4-r1
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.63-r1
sys-devel/automake:  1.9.6-r2, 1.10.3, 1.11.1
sys-devel/binutils:  2.18-r3
sys-devel/gcc:       4.3.4
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.29
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA dlj-1.1"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.jaist.ac.jp/pub/Linux/Gentoo/"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="apache2 berkdb bzip2 cjk cli cracklib crypt cups cxx dri fortran gdbm gpm iconv imap maildir modules mudflap mysql ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline reflection rmquota session smp snmp spl ssl symlink sysfs syslog tcpd threads truetype unicode urandom userlocales x86 xml xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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="actions alias asis auth_basic auth_digest authn_file authz_groupfile authz_host authz_user autoindex cache dav dav_lock dav_fs deflate dir env expires filter headers include info log_config logio mime negotiation rewrite setenvif speling status userdir usertrack proxy proxy_http proxy_ajp" APACHE2_MPMS="worker" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa via vmware voodoo" 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, FFLAGS, INSTALL_MASK, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS

Fix:
I tried to add the code into the ebuild and build successfully.
src_compile() {
        find "${WORKDIR}" -name Makefile -exec sed -i 's#-L /usr#-L/usr#' {} \;
        emake || die "emake failed"
}

Please verify the bug and the fix, thanks.
Comment 1 Rafał Mużyło 2010-05-04 14:26:48 UTC
That's not a fix.

Could you attach config.log and and a build log while V=1,
so we can see the failing command ?
Comment 2 billy 2010-05-04 15:16:54 UTC
Created attachment 230283 [details]
config.log
Comment 3 billy 2010-05-04 15:17:31 UTC
Created attachment 230285 [details]
complete build log with V=1
Comment 4 Rafał Mużyło 2010-05-05 02:59:24 UTC
Well, first of all somebody in libvirt upstream should learn the difference
between LDFLAGS and LIBS for automake/libtool.

But the question here is:
what does 'pcap-config --libs' print for you ?
Comment 5 billy 2010-05-05 03:12:56 UTC
(In reply to comment #4)
> Well, first of all somebody in libvirt upstream should learn the difference
> between LDFLAGS and LIBS for automake/libtool.
> 
> But the question here is:
> what does 'pcap-config --libs' print for you ?
> 

gentoosrv ~ # pcap-config --libs
-L /usr/lib -lpcap

thanks.
Comment 6 Rafał Mużyło 2010-05-05 05:17:55 UTC
So, obviously, problem lies the, not in libvirt
(though upstream should consider fixing that LDFLAGS/LIBS issue).

Attach build log and config.log of libpcap.
Comment 7 billy 2010-05-05 16:16:48 UTC
When I updated libpcap-1.0.0-r2 to libpcap-1.1.1, I can build the libvirt-0.8.1 successfully, do you still need the build log and config.log?? thank you for your help.
Comment 8 Wormo (RETIRED) gentoo-dev 2010-05-08 02:22:26 UTC
Looks like libpcap-1.1.1 is already being stabilized (stable on x86 and amd64 already) so this problem is solved
Comment 9 Doug Goldstein (RETIRED) gentoo-dev 2010-07-06 18:01:12 UTC
Well the problem was that we didn't have a proper depend in the ebuild and it was using automagical depends. This is actually fixed in 0.8.2 of libvirt.