LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Can't compile virtualbox-addons 5.2.8 (https://www.linuxquestions.org/questions/slackware-14/cant-compile-virtualbox-addons-5-2-8-a-4175658959/)

aikempshall 08-11-2019 04:41 AM

Can't compile virtualbox-addons 5.2.8
 
Hi all

Having problems with virtualbox-addons copied from ponce.org compiling within a virtualbox instance on a up to date Slackware 14.2+ platform with ktown and multilib.

Give me this error

Quote:

VirtualBox-5.2.8/tools/linux.x86/bin/yasm
VirtualBox-5.2.8/Makefile.kmk
patching file vboxadd.sh
Checking for environment: Determined build machine: linux.amd64, target machine: linux.amd64, OK.
Checking for kBuild: found, OK.
Checking for gcc:
** gcc version 9.1 found, expected gcc 4.x...7.x!
Check /tmp/SBo/VirtualBox-5.2.8/configure.log for details

Gave VirtualBox-5.2.32 a try, but that gave me two patch hunk errors.

Any thoughts?

Maybe correct the patch hunk errors and see if I can move forward.

Alex

ponce 08-11-2019 04:57 AM

Quote:

Originally Posted by aikempshall (Post 6023859)
Hi all

Having problems with virtualbox-addons copied from ponce.org compiling within a virtualbox instance on a up to date Slackware 14.2+ platform with ktown and multilib.

Give me this error

just change this line in the SlackBuild
Code:

sed -i "s|cc_maj -gt 7|cc_maj -gt 8|" configure
to
Code:

sed -i "s|cc_maj -gt 7|cc_maj -gt 9|" configure

bifferos 08-13-2019 08:18 AM

Hey Ponce,

Is this slackBuild 5.2.8 add-ons going to behave much differently than the 6.0.10 additions you get from 'insert Guest additions CD image? I'm just wondering which of the two it's better to use. The official CD installs OK for me so long as I have full kernel sources. It seems to want more than kernel headers for some reason.

regards,
Biff.

ponce 08-13-2019 08:38 AM

Quote:

Originally Posted by bifferos (Post 6024658)
Hey Ponce,

Is this slackBuild 5.2.8 add-ons going to behave much differently than the 6.0.10 additions you get from 'insert Guest additions CD image? I'm just wondering which of the two it's better to use.

hi Biff,

I'm sorry but I can't help you with this as I don't actually use virtualbox.

TheRealGrogan 08-13-2019 01:31 PM

Quote:

Originally Posted by bifferos (Post 6024658)
It seems to want more than kernel headers for some reason.

The difference is in what you consider "kernel headers". In most distros, that just means the sanitized headers that define kernel interfaces for compiling userspace software like glibc and other system software. On others (e.g. redhat/fedora), it's enough of the kernel source tree to compile kernel modules. In Slackware, it's the former and you need configured kernel source for the kernel you are using.

aikempshall 08-16-2019 12:13 AM

Can't explain why I wanted to compile virtualbox-addons for my virtualbox client. Always seems to end in tears as does trying to compile virtualbox-kernel-addons.

Anyway Ponce's suggestion allowed me to compile virtualbox-addons, though I didn't use it in the end.

In the end I went back to and downloaded VBoxGuestAdditions_6.0.4.iso. It gave me everything I wanted shared folders and bidirectional shared clipboard.

This is only for current.

Finally, apologies for posting the initial post for this problem in the wrong thread, but it did give me the first opportunity to use the report button!

Alex

bifferos 08-16-2019 06:49 AM

Quote:

Originally Posted by aikempshall (Post 6025638)
In the end I went back to and downloaded VBoxGuestAdditions_6.0.4.iso

For VirtualBox I've never had any problem with their official ISO. It's what I ended up using for my 'vagaslack' images:
https://app.vagrantup.com/bifferos

When it comes to Slackware if you ever need to run it as a guest on vSphere/ESXi/Workstation the opposite is true, namely go for the slackBuild:
https://slackbuilds.org/repository/1...open-vm-tools/.
Avoid the official VMWare tools because I've had reliability issues with them. open-vm-tools is rock-solid, I'm using it in production.


All times are GMT -5. The time now is 12:55 PM.