Bug 621535 - build failed on openSUSE-11.2
Summary: build failed on openSUSE-11.2
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libvirt
Version: unspecified
Hardware: i686
OS: Linux
low
medium
Target Milestone: ---
Assignee: Daniel Veillard
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-08-05 12:15 UTC by Andrey Ponomarenko
Modified: 2010-08-19 13:46 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
openSUSE-11.2, x86
Last Closed: 2010-08-19 09:41:46 UTC
Embargoed:


Attachments (Terms of Use)
make V=1 log (301.69 KB, text/plain)
2010-08-19 06:58 UTC, Andrey Ponomarenko
no flags Details
./configure >log.txt 2>&1 (37.60 KB, text/plain)
2010-08-19 09:12 UTC, Andrey Ponomarenko
no flags Details

Description Andrey Ponomarenko 2010-08-05 12:15:00 UTC
Description of problem:
build failed on openSUSE-11.2

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

How reproducible: always

Steps to Reproduce:
1. ./configure
2. make
3.
  
Build errors:
...
  CCLD   libvirt_driver_esx.la
  CC     libvirt_driver_nwfilter_la-nwfilter_driver.lo
  CC     libvirt_driver_nwfilter_la-nwfilter_gentech_driver.lo
  CC     libvirt_driver_nwfilter_la-nwfilter_ebiptables_driver.lo
  CC     libvirt_driver_nwfilter_la-nwfilter_learnipaddr.lo
  CCLD   libvirt_driver_nwfilter.la
libtool: link: require no space between `-L' and `/usr/lib'
make[3]: *** [libvirt_driver_nwfilter.la] Error 1
make[3]: Leaving directory `/home/andrey/upstream-tracker/repository/libvirt/install/libvirt-0.8.3/src'

Comment 1 Daniel Berrangé 2010-08-17 13:10:40 UTC
I'm not able to reproduce a problem on any Fedora box, so it must be specific to the build options used on OpenSuse. Can you capture the logs with  'make V=1' so we can see the actual compiler args used.

Comment 2 Andrey Ponomarenko 2010-08-19 06:58:40 UTC
Created attachment 439596 [details]
make V=1 log

Output of the command `make V=1`
The last line is the following:

/bin/sh ../libtool  --tag=CC   --mode=link gcc -I /usr/include -I../src/conf  -g -O2    -o libvirt_driver_nwfilter.la  libvirt_driver_nwfilter_la-nwfilter_driver.lo libvirt_driver_nwfilter_la-nwfilter_gentech_driver.lo libvirt_driver_nwfilter_la-nwfilter_ebiptables_driver.lo libvirt_driver_nwfilter_la-nwfilter_learnipaddr.lo -L /usr/lib -lpcap   -ldl 
libtool: link: require no space between `-L' and `/usr/lib'

This bug was introduced in the 0.8.3, because of the 0.8.2 was successfully installed on my system.

Comment 3 Daniel Berrangé 2010-08-19 08:08:01 UTC
Can you also provide the full output from 'configure' including details of any args passed to it.

Comment 4 Andrey Ponomarenko 2010-08-19 09:12:09 UTC
Created attachment 439626 [details]
./configure >log.txt 2>&1

Added output of configure

Comment 5 Andrey Ponomarenko 2010-08-19 09:37:53 UTC
`pcap-config --libs` command always returns "-L /usr/lib"
I've checked 1.0.0 and 1.1.1 versions.

I have recently installed a pcap-1.0.0 from the SUSE repository and previous versions of libvirt were installed without pcap:

checking libpcap pcap-config >= 1.0.0 ... no

But now the configure detected a pcap:

checking libpcap pcap-config >= 1.0.0 ... yes

Comment 6 Daniel Berrangé 2010-08-19 09:41:46 UTC
Ok, this is a bug in "pcap-config", rather than libvirt. It should not be adding this whitespace. Indeed it shouldn't add  -L/usr/lib at all since /usr/lib is in the default search path. As is /usr/include.

Comment 7 Andrey Ponomarenko 2010-08-19 13:46:54 UTC
Thank you, I've reported it to pcap.


Note You need to log in before you can comment on or make changes to this bug.