LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-26-2010, 06:42 AM   #1
hopbyhop
Member
 
Registered: Aug 2008
Posts: 55

Rep: Reputation: 15
cannot compile libvirt on slackware64 13.1


Hi all, I am in trouble compiling libvirt (latest version 0.8.3) to use with KVM in Slackware64-13.1.
Here's the output of make:
Code:
# make
make  all-recursive
make[1]: Entering directory `/tmp/SBo/libvirt-0.8.3'
Making all in gnulib/lib
make[2]: Entering directory `/tmp/SBo/libvirt-0.8.3/gnulib/lib'
make  all-recursive
make[3]: Entering directory `/tmp/SBo/libvirt-0.8.3/gnulib/lib'
make[4]: Entering directory `/tmp/SBo/libvirt-0.8.3/gnulib/lib'
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory `/tmp/SBo/libvirt-0.8.3/gnulib/lib'
make[3]: Leaving directory `/tmp/SBo/libvirt-0.8.3/gnulib/lib'
make[2]: Leaving directory `/tmp/SBo/libvirt-0.8.3/gnulib/lib'
Making all in include
make[2]: Entering directory `/tmp/SBo/libvirt-0.8.3/include'
Making all in libvirt
make[3]: Entering directory `/tmp/SBo/libvirt-0.8.3/include/libvirt'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/tmp/SBo/libvirt-0.8.3/include/libvirt'
make[3]: Entering directory `/tmp/SBo/libvirt-0.8.3/include'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/tmp/SBo/libvirt-0.8.3/include'
make[2]: Leaving directory `/tmp/SBo/libvirt-0.8.3/include'
Making all in src
make[2]: Entering directory `/tmp/SBo/libvirt-0.8.3/src'
make  all-am
make[3]: Entering directory `/tmp/SBo/libvirt-0.8.3/src'
  CC     libvirt_util_la-authhelper.lo
  CC     libvirt_util_la-bitmap.lo
  CC     libvirt_util_la-bridge.lo
  CC     libvirt_util_la-buf.lo
  CC     libvirt_util_la-conf.lo
  CC     libvirt_util_la-cgroup.lo
  CC     libvirt_util_la-event.lo
  CC     libvirt_util_la-hash.lo
  CC     libvirt_util_la-hooks.lo
  CC     libvirt_util_la-iptables.lo
  CC     libvirt_util_la-ebtables.lo
  CC     libvirt_util_la-dnsmasq.lo
  CC     libvirt_util_la-json.lo
  CC     libvirt_util_la-logging.lo
  CC     libvirt_util_la-macvtap.lo
  CC     libvirt_util_la-memory.lo
  CC     libvirt_util_la-pci.lo
  CC     libvirt_util_la-processinfo.lo
  CC     libvirt_util_la-hostusb.lo
  CC     libvirt_util_la-network.lo
  CC     libvirt_util_la-interface.lo
  CC     libvirt_util_la-qparams.lo
  CC     libvirt_util_la-stats_linux.lo
  CC     libvirt_util_la-storage_file.lo
  CC     libvirt_util_la-threads.lo
  CC     libvirt_util_la-uuid.lo
  CC     libvirt_util_la-util.lo
  CC     libvirt_util_la-xml.lo
  CC     libvirt_util_la-virterror.lo
  CCLD   libvirt_util.la
  CC     libvirt_conf_la-capabilities.lo
  CC     libvirt_conf_la-domain_conf.lo
  CC     libvirt_conf_la-domain_nwfilter.lo
  CC     libvirt_conf_la-domain_event.lo
  CC     libvirt_conf_la-network_conf.lo
  CC     libvirt_conf_la-nwfilter_params.lo
  CC     libvirt_conf_la-nwfilter_conf.lo
  CC     libvirt_conf_la-node_device_conf.lo
  CC     libvirt_conf_la-storage_conf.lo
  CC     libvirt_conf_la-storage_encryption_conf.lo
  CC     libvirt_conf_la-interface_conf.lo
  CC     libvirt_conf_la-secret_conf.lo
  CC     libvirt_conf_la-cpu_conf.lo
  CCLD   libvirt_conf.la
  CC     libvirt_cpu_la-cpu.lo
  CC     libvirt_cpu_la-cpu_generic.lo
  CC     libvirt_cpu_la-cpu_x86.lo
  CC     libvirt_cpu_la-cpu_map.lo
  CCLD   libvirt_cpu.la
  CC     libvirt_driver_la-driver.lo
  CC     libvirt_driver_la-datatypes.lo
  CC     libvirt_driver_la-nodeinfo.lo
  CC     libvirt_driver_la-libvirt.lo
  CCLD   libvirt_driver.la
  CC     libvirt_driver_test_la-test_driver.lo
  CCLD   libvirt_driver_test.la
  CC     libvirt_driver_remote_la-remote_driver.lo
  CC     libvirt_driver_remote_la-remote_protocol.lo
  CC     libvirt_driver_remote_la-qemu_protocol.lo
  CCLD   libvirt_driver_remote.la
  CC     libvirt_driver_openvz_la-openvz_conf.lo
  CC     libvirt_driver_openvz_la-openvz_driver.lo
  CCLD   libvirt_driver_openvz.la
  CC     libvirt_driver_esx_la-esx_driver.lo
  CC     libvirt_driver_esx_la-esx_interface_driver.lo
  CC     libvirt_driver_esx_la-esx_network_driver.lo
  CC     libvirt_driver_esx_la-esx_storage_driver.lo
  CC     libvirt_driver_esx_la-esx_device_monitor.lo
  CC     libvirt_driver_esx_la-esx_secret_driver.lo
  CC     libvirt_driver_esx_la-esx_nwfilter_driver.lo
  CC     libvirt_driver_esx_la-esx_util.lo
  CC     libvirt_driver_esx_la-esx_vi.lo
  CC     libvirt_driver_esx_la-esx_vi_methods.lo
  CC     libvirt_driver_esx_la-esx_vi_types.lo
  CC     libvirt_driver_esx_la-esx_vmx.lo
  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/lib64'
make[3]: *** [libvirt_driver_nwfilter.la] Error 1
make[3]: Leaving directory `/tmp/SBo/libvirt-0.8.3/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/tmp/SBo/libvirt-0.8.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/SBo/libvirt-0.8.3'
make: *** [all] Error 2
I ran
Code:
#./configure --with-gnu-ld
and tried also
Code:
#./configure --with-gnu-ld --libdir=/usr/lib64
and
Code:
# LDFLAGS=-L/usr/lib64 ./configure --with-gnu-ld
with no luck.
Config.log is attached. Any advice?
Attached Files
File Type: log config.log (36.7 KB, 10 views)

Last edited by hopbyhop; 08-26-2010 at 07:27 AM.
 
Old 08-26-2010, 07:43 AM   #2
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,298
Blog Entries: 61

Rep: Reputation: Disabled
What about trying the SlackBuild:
http://slackbuilds.org/repository/13...aries/libvirt/
 
Old 08-26-2010, 07:49 AM   #3
hopbyhop
Member
 
Registered: Aug 2008
Posts: 55

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by brianL View Post
Tried that slackbuild first, but in 0.7.6 version. Did not compile.
Tried 0.7.7 just now (with 0.8.3 sources), got same error as manual compile.
 
Old 08-26-2010, 09:25 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
' libvirt-0.8.3 '

Quote:
link: require no space between `-L' and `/usr/lib64
cd libvirt-0.8.3/src/
grep -n "L /usr" Makefile
... The reply is : 1451:LIBPCAP_LIBS = -L /usr/lib64 -lpcap

Please edit line 1451 to : LIBPCAP_LIBS = -L/usr/lib64 -lpcap
... And make will run with no errors.

(There is the same text in the top directory Makefile line 708,
but it does not seem to disturb anything.)

The correct way with the issue would of course be to trace the bug
in Makefile.in etc., but not that easy when the files that create
the Makefile have "a thousand" upper case L.
...

Last edited by knudfl; 08-26-2010 at 09:29 AM.
 
Old 08-26-2010, 07:40 PM   #5
Slax-Dude
Member
 
Registered: Mar 2006
Location: Valadares, V.N.Gaia, Portugal
Distribution: Slackware
Posts: 528

Rep: Reputation: 272Reputation: 272Reputation: 272
...or you can do what I did: update tcpdump package to current stable version 4.1.1, and then compile latest libvirt.

Got libvirt 0.8.3 and virt-manager 0.8.5 humming away nicely on my servers.
 
Old 08-27-2010, 05:06 AM   #6
hopbyhop
Member
 
Registered: Aug 2008
Posts: 55

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by knudfl View Post
Please edit line 1451 to : LIBPCAP_LIBS = -L/usr/lib64 -lpcap
... And make will run with no errors.
Thanks, that solves!

I modified the slackbuild adding
Code:
sed "s%LIBPCAP_LIBS = -L /usr/lib64%LIBPCAP_LIBS = -L/usr/lib64%" ./src/Makefile > ./src/Makefile.tmp
mv ./src/Makefile.tmp ./src/Makefile
between configure and make commands.
I also had to comment out

Code:
mv $PKG/etc/logrotate.d/libvirtd $PKG/etc/logrotate.d/libvirtd.new
near the end of the file since 0.8.3 seems to generate no /etc/logrotate.d/libvirtd file

BTW, why does tcpdump package relate to libvirtd?
any other issue with virt-manager?
 
Old 08-27-2010, 05:59 AM   #7
Slax-Dude
Member
 
Registered: Mar 2006
Location: Valadares, V.N.Gaia, Portugal
Distribution: Slackware
Posts: 528

Rep: Reputation: 272Reputation: 272Reputation: 272
Quote:
Originally Posted by hopbyhop View Post
BTW, why does tcpdump package relate to libvirtd?
In slackware, libpcap is part of the tcpdump package.
 
Old 08-27-2010, 02:28 PM   #8
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,367

Rep: Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843
Quote:
Originally Posted by hopbyhop View Post
I modified the slackbuild adding
Code:
sed "s%LIBPCAP_LIBS = -L /usr/lib64%LIBPCAP_LIBS = -L/usr/lib64%" ./src/Makefile > ./src/Makefile.tmp
mv ./src/Makefile.tmp ./src/Makefile
Code:
sed -i "s%LIBPCAP_LIBS = -L /usr/lib64%LIBPCAP_LIBS = -L/usr/lib64%" ./src/Makefile
is certainly prettier; no need to move files around. The -i switch tell sed to edit the file in-place.
 
Old 04-29-2011, 02:34 PM   #9
DragonWisard
Member
 
Registered: Sep 2004
Location: MD, USA (D.C. Suburbs)
Distribution: Slackware
Posts: 95

Rep: Reputation: 53
This appears to still be broken in 32-bit Slackware.

Code:
adam@blackflag:~$ pcap-config --libs
-L /usr/lib -lpcap
I've tested with 13.37 on both 32-bit and 64-bit versions. The 64-bit version correctly returns "-L/usr/lib64" but the 32-bit version has the extra, troublesome space.
 
Old 04-29-2011, 03:51 PM   #10
Slax-Dude
Member
 
Registered: Mar 2006
Location: Valadares, V.N.Gaia, Portugal
Distribution: Slackware
Posts: 528

Rep: Reputation: 272Reputation: 272Reputation: 272
Works fine in my slackware 1337
Also, I just compiled libvirt 0.9.0 in both 32bits and 64bits of 1337ness
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Transcode will not compile in Slackware64-13.0, Multilib TSquaredF Slackware 9 04-07-2010 10:39 PM
[SOLVED] Can't compile tolua++ in slackware64-current Daedra Slackware 1 03-23-2010 08:04 AM
Unable to compile FileZilla on Slackware64 AlvaroG Slackware 4 11-02-2009 02:00 PM
Kernel Compile and Slackware64 forum1793 Slackware 8 05-30-2009 07:27 AM
Slackware64, trying to compile wine with SBo suid0 Slackware 6 05-27-2009 09:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration