LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Libcap errors When installing VirtualBox on Slackware 13 (http://www.linuxquestions.org/questions/slackware-14/libcap-errors-when-installing-virtualbox-on-slackware-13-a-796879/)

R Tanner 03-21-2010 12:49 PM

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#


knudfl 03-21-2010 04:05 PM

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
.....

R Tanner 03-21-2010 04:37 PM

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#


R Tanner 03-21-2010 08:02 PM

Any ideas anyone? I have no idea where to even look to try to fix this..

gilead 03-21-2010 08:07 PM

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.

R Tanner 03-21-2010 09:31 PM

Quote:

Originally Posted by gilead (Post 3907004)
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/

ppr:kut 03-22-2010 03:08 AM

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....

knudfl 03-22-2010 03:12 AM

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 "

.....

R Tanner 03-22-2010 09:39 AM

Quote:

Originally Posted by ppr:kut (Post 3907231)
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?

R Tanner 03-22-2010 04:30 PM

Quote:

Originally Posted by ppr:kut (Post 3907231)
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.

knudfl 03-22-2010 04:30 PM

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.

.....


All times are GMT -5. The time now is 09:29 PM.