LinuxQuestions.org
Review your favorite Linux distribution.
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 03-21-2010, 11:49 AM   #1
R Tanner
Member
 
Registered: Sep 2008
Posts: 96

Rep: Reputation: 15
Libcap errors When installing VirtualBox on Slackware 13


I'm trying to install virtualbox on slackware 13 and I'm running into header issues I think...it says it can't find libcap..any ideas? I downloaded libcap from slackbuild and tried to run make but I get errors (the second code block)

any help is greatly appreciated

Code:
VirtualBox-2.1.4_OSE/kBuild/bin/solaris.sparc32/kmk_echo                                                       
VirtualBox-2.1.4_OSE/kBuild/bin/solaris.sparc32/kmk_cp                                                         
VirtualBox-2.1.4_OSE/kBuild/bin/solaris.sparc32/kmk_install                                                    
VirtualBox-2.1.4_OSE/kBuild/env.sh                                                                             
patching file VBox.sh                                                                                          
Checking for environment: Determined build machine: linux.x86, target machine: linux.x86, OK.                  
Checking for kBuild: found, OK.                                                                                
Checking for gcc: found version 4.3.3, OK.                                                                     
Checking for as86: found version 0.16.17, OK.                                                                  
Checking for bcc: found version 0.16.17, OK.                                                                   
Checking for iasl: found version 20100304, OK.                                                                 
Checking for xslt: found, OK.                                                                                  
Checking for pthread: found, OK.                                                                               
Checking for libxml2: found version 2.7.3, OK.                                                                 
Checking for libxslt: found version 1.1.24, OK.                                                                
Checking for libIDL: found version 0.8.10, OK.                                                                 
Checking for zlib: found version 1.2.3, OK.                                                                    
Checking for libpng: found version 1.2.37, OK.                                                                 
Checking for SDL: found version 1.2.13, OK.                                                                    
Checking for X libraries: found, OK.                                                                           
Checking for Xcursor: found, OK.                                                                               
Checking for Qt4: found version 4.5.1, OK.                                                                     
Checking for Qt4 devtools: found version 4.5.1, OK.                                                            
Checking for python support: found version 2.6.2, OK.                                                          
Checking for static stc++ library: found, OK.                                                                  
Checking for ALSA: found version 1.0.18, OK.                                                                   
Checking for libcap library:                                                                                   
  libcap not found at -lcap or libcap headers not found                                                        
  Check the file /tmp/SBo/VirtualBox-2.1.4_OSE/configure.log for detailed error information.                   
root@darkstar:/home/slackware/source/myslackware/virtualbox-ose# cd
Code:
root@darkstar:~/Downloads/libcap-1.10# ls
CHANGELOG  License  Make.Rules  Makefile  README  doc/  libcap/  pgp.keys.asc  progs/  template.c
root@darkstar:~/Downloads/libcap-1.10# nano Make.Rules
root@darkstar:~/Downloads/libcap-1.10# cd doc
root@darkstar:~/Downloads/libcap-1.10/doc# ls
Makefile      cap_copy_ext.3  cap_free.3       cap_get_proc.3  cap_set_file.3  cap_size.3        capget.2   capsetp.3
_cap_names.3  cap_copy_int.3  cap_from_text.3  cap_init.3      cap_set_flag.3  cap_to_text.3     capgetp.3  old/
cap_clear.3   cap_dup.3       cap_get_flag.3   cap_set_fd.3    cap_set_proc.3  capability.notes  capset.2
root@darkstar:~/Downloads/libcap-1.10/doc# cd ..
root@darkstar:~/Downloads/libcap-1.10# nano README
root@darkstar:~/Downloads/libcap-1.10# Linux-Caps % make
-su: Linux-Caps: command not found
root@darkstar:~/Downloads/libcap-1.10# make
make -C libcap CC='gcc' CFLAGS='-Dlinux -ansi -D_POSIX_SOURCE -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wtraditional -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -pedantic -g   -I/root/Downloads/libcap-1.10/libcap/include' LD='ld' LIBS='-L/root/Downloads/libcap-1.10/libcap -lcap' LDFLAGS='-s ' VERSION='1' MINOR='10' LIBDIR='/lib' INCDIR='/usr/include' SBINDIR='/sbin' MANDIR='/usr/man' all
make[1]: Entering directory `/root/Downloads/libcap-1.10/libcap'
gcc -Dlinux -ansi -D_POSIX_SOURCE -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wtraditional -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -pedantic -g   -I/root/Downloads/libcap-1.10/libcap/include -c cap_sys.c -o cap_sys.o
In file included from cap_sys.c:10:
libcap.h:57:3: warning: suggest hiding #error from traditional C with an indented #
libcap.h:58:3: warning: suggest hiding #error from traditional C with an indented #
libcap.h:101:25: warning: ISO C does not permit named variadic macros
cap_sys.c:14: error: expected declaration specifiers or '...' before 'capget'
cap_sys.c:15: error: expected declaration specifiers or '...' before 'header'
cap_sys.c:16: error: expected declaration specifiers or '...' before 'data'
cap_sys.c:18: warning: return type defaults to 'int'
cap_sys.c:14: warning: no previous prototype for '_syscall2'
cap_sys.c: In function '_syscall2':
cap_sys.c:18: error: expected declaration specifiers before '_syscall2'
cap_sys.c:39: warning: traditional C rejects ISO C style function definitions
cap_sys.c:14: error: parameter name omitted
cap_sys.c:15: error: parameter name omitted
cap_sys.c:16: error: parameter name omitted
make[1]: *** [cap_sys.o] Error 1
make[1]: Leaving directory `/root/Downloads/libcap-1.10/libcap'
make: *** [all] Error 2
root@darkstar:~/Downloads/libcap-1.10#
 
Old 03-21-2010, 03:05 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,557

Rep: Reputation: 2512Reputation: 2512Reputation: 2512Reputation: 2512Reputation: 2512Reputation: 2512Reputation: 2512Reputation: 2512Reputation: 2512Reputation: 2512Reputation: 2512
I'm quite sure, you don't need the ancient 'libcap-1.10'.
Please do : ls -l libcap-1.10/libcap : All '1999' files.
Updated 124 months ago ! Last time seen for Slack 11.0 .

It would rather be libcap 2.16..2.17 ( alias libcap2 )
http://www.kernel.org/pub/linux/libs...privs/libcap2/

Or may be libcap-ng ?
http://slackbuilds.org/result/?search=libcap&sv=13.0
.....
 
Old 03-21-2010, 03:37 PM   #3
R Tanner
Member
 
Registered: Sep 2008
Posts: 96

Original Poster
Rep: Reputation: 15
Perfect, that worked. Now I'm getting more errors later in the virtualbox installation..any ideas?

Code:
In file included from /usr/include/linux/byteorder/little_endian.h:12,
                 from /usr/include/asm/byteorder.h:4,
                 from /usr/include/linux/cdrom.h:15,
                 from /tmp/SBo/VirtualBox-2.1.4_OSE/src/VBox/Devices/Storage/DrvHostDVD.cpp:54:
/usr/include/linux/swab.h: In function '__u16 __swab16p(const __u16*)':
/usr/include/linux/swab.h:148: error: redefinition of '__u16 __swab16p(const __u16*)'
/tmp/SBo/VirtualBox-2.1.4_OSE/src/VBox/Devices/Storage/swab.h:42: error: '__u16 __swab16p(const __u16*)' previously defined here
/usr/include/linux/swab.h: In function '__u32 __swab32p(const __u32*)':
/usr/include/linux/swab.h:161: error: redefinition of '__u32 __swab32p(const __u32*)'
/tmp/SBo/VirtualBox-2.1.4_OSE/src/VBox/Devices/Storage/swab.h:48: error: '__u32 __swab32p(const __u32*)' previously defined here
/usr/include/linux/swab.h: In function '__u64 __swab64p(const __u64*)':
/usr/include/linux/swab.h:174: error: redefinition of '__u64 __swab64p(const __u64*)'
/tmp/SBo/VirtualBox-2.1.4_OSE/src/VBox/Devices/Storage/swab.h:55: error: '__u64 __swab64p(const __u64*)' previously defined here
kmk[2]: *** [/tmp/SBo/VirtualBox-2.1.4_OSE/out/linux.x86/release/obj/Drivers/Storage/DrvHostDVD.o] Error 1
The failing command:
@g++ -c -O2 -g -pipe -pedantic -Wall -Wextra -Wno-missing-field-initializers -Wno-unused -Wno-trigraphs -Wno-long-long -Wno-variadic-macros -march=i586 -O2 -mtune=generic -fno-omit-frame-pointer -fno-strict-aliasing -fvisibility-inlines-hidden -fvisibility=hidden -DVBOX_HAVE_VISIBILITY_HIDDEN -DRT_USE_VISIBILITY_DEFAULT -m32 -I/tmp/SBo/VirtualBox-2.1.4_OSE/src/VBox/Devices -I/tmp/SBo/VirtualBox-2.1.4_OSE/src/VBox/Devices/Network/slirp -I/tmp/SBo/VirtualBox-2.1.4_OSE/include -I/tmp/SBo/VirtualBox-2.1.4_OSE/out/linux.x86/release -DRTPATH_APP_PRIVATE=\"/usr/share/virtualbox\" -DVBOX -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DVBOX_WITH_HARDENING -DRTPATH_APP_PRIVATE=\"/usr/share/virtualbox\" -DRTPATH_APP_PRIVATE_ARCH=\"/usr/lib/virtualbox\" -DRTPATH_SHARED_LIBS=\"/usr/lib/virtualbox\" -DRTPATH_APP_DOCS=\"\" -DRTPATH_APP_PRIVATE=\"/usr/share/virtualbox\" -DRT_OS_LINUX -D_FILE_OFFSET_BITS=64 -DRT_ARCH_X86 -D__X86__ -DIN_RING3 -DHC_ARCH_BITS=32 -DGC_ARCH_BITS=64 -DIN_IDE_R3 -DVBOX_WITH_NETFLT -DVBOX_WITH_ALSA -Wp,-MD,/tmp/SBo/VirtualBox-2.1.4_OSE/out/linux.x86/release/obj/Drivers/Storage/DrvHostDVD.o.dep -Wp,-MT,/tmp/SBo/VirtualBox-2.1.4_OSE/out/linux.x86/release/obj/Drivers/Storage/DrvHostDVD.o -Wp,-MP -o /tmp/SBo/VirtualBox-2.1.4_OSE/out/linux.x86/release/obj/Drivers/Storage/DrvHostDVD.o /tmp/SBo/VirtualBox-2.1.4_OSE/src/VBox/Devices/Storage/DrvHostDVD.cpp
kmk[2]: *** Waiting for unfinished jobs....
kmk[2]: Leaving directory `/tmp/SBo/VirtualBox-2.1.4_OSE'
kmk[2]: Entering directory `/tmp/SBo/VirtualBox-2.1.4_OSE'
kmk[2]: *** Exiting with status 2
kmk[1]: *** [pass_libraries_this] Error 2
kmk[1]: Leaving directory `/tmp/SBo/VirtualBox-2.1.4_OSE'
kmk: *** [pass_libraries_order] Error 2
root@darkstar:/home/slackware/source/myslackware/virtualbox-ose#
 
Old 03-21-2010, 07:02 PM   #4
R Tanner
Member
 
Registered: Sep 2008
Posts: 96

Original Poster
Rep: Reputation: 15
Any ideas anyone? I have no idea where to even look to try to fix this..
 
Old 03-21-2010, 07:07 PM   #5
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 151Reputation: 151
When you installed libcap 2.16 did you use the package that comes with Slackware or did you get it from somewhere else? I'm using the package that came with Slackware 13 and don't remember having problems like that with Virtualbox.
 
Old 03-21-2010, 08:31 PM   #6
R Tanner
Member
 
Registered: Sep 2008
Posts: 96

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by gilead View Post
When you installed libcap 2.16 did you use the package that comes with Slackware or did you get it from somewhere else? I'm using the package that came with Slackware 13 and don't remember having problems like that with Virtualbox.
I used the 2.19 libcap at the following link..

http://www.kernel.org/pub/linux/libs...privs/libcap2/
 
Old 03-22-2010, 02:08 AM   #7
ppr:kut
Member
 
Registered: Aug 2006
Location: Netherlands
Distribution: Slackware
Posts: 358

Rep: Reputation: 92
why the hell do you want to run an ancient version of vbox on the most recent Slackware release? There's bound to be lots of issues....
 
1 members found this post helpful.
Old 03-22-2010, 02:12 AM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,557

Rep: Reputation: 2512Reputation: 2512Reputation: 2512Reputation: 2512Reputation: 2512Reputation: 2512Reputation: 2512Reputation: 2512Reputation: 2512Reputation: 2512Reputation: 2512
When you intend to use something other than the recommended,
it is a good idea to check if anybody at all uses it, or will
do that in the future :
Slackware Current, Debian Sid, Fedora 13 : libcap 2.16
Fedora 14 : libcap 2.17 .

.....

So better go with ..
" install disk 1 / slackware/l/libcap-2.16-i486-2.txz "

.....
 
Old 03-22-2010, 08:39 AM   #9
R Tanner
Member
 
Registered: Sep 2008
Posts: 96

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by ppr:kut View Post
why the hell do you want to run an ancient version of vbox on the most recent Slackware release? There's bound to be lots of issues....
I downloaded 2.1.4 version of virtualbox from slackbuild.org..is that ancient?
 
Old 03-22-2010, 03:30 PM   #10
R Tanner
Member
 
Registered: Sep 2008
Posts: 96

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by ppr:kut View Post
why the hell do you want to run an ancient version of vbox on the most recent Slackware release? There's bound to be lots of issues....
Thanks this is what i needed. Sometimes I'm pretty retarded. I was trying to use a guide to install virtualbox and it was leading me down a path of installing a bunch of old versions. I just ran the install and it was pretty seamless.
 
Old 03-22-2010, 03:30 PM   #11
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,557

Rep: Reputation: 2512Reputation: 2512Reputation: 2512Reputation: 2512Reputation: 2512Reputation: 2512Reputation: 2512Reputation: 2512Reputation: 2512Reputation: 2512Reputation: 2512
Post # 9 : The current version is 3.1.4
http://www.virtualbox.org/wiki/Linux_Downloads
> > http://download.virtualbox.org/virtu...-Linux_x86.run
> VirtualBox-3.1.4-57640-Linux_x86.run
.. It is an installer , no compilation !


Version 2.1.4 is "older" , eight to ten versions behind today ?
And you can not use libcap 2.19 .
The stable version is 2.16 , see post # 8, please.

.....

Last edited by knudfl; 03-22-2010 at 03:35 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Problem Installing libcap hazdingo Linux - Software 7 08-18-2009 09:19 PM
Success/failure reports installing Windows 7 beta in VirtualBox on Slackware 12.2 ? Didier Spaier Slackware 8 03-27-2009 04:46 AM
Problems installing VirtualBox on Slackware 11.0 SamInside Slackware 3 02-08-2009 07:32 AM
Installing VirtualBox from SlackBuild - Slackware 12 - vboxdrv problem Do7AN Slackware 9 01-22-2009 01:58 PM
Errors installing Slackware 8.1 F|eA Slackware 2 11-03-2002 04:01 PM


All times are GMT -5. The time now is 10:02 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration