LinuxQuestions.org
Help answer threads with 0 replies.
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-11-2019, 04:41 AM   #1
aikempshall
Member
 
Registered: Nov 2003
Location: Bristol, Britain
Distribution: Slackware
Posts: 602

Rep: Reputation: 64
Question 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
 
Old 08-11-2019, 04:57 AM   #2
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 4,891

Rep: Reputation: Disabled
Quote:
Originally Posted by aikempshall View Post
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

Last edited by ponce; 08-11-2019 at 11:30 AM. Reason: edited post topic-split!
 
Old 08-13-2019, 08:18 AM   #3
bifferos
Member
 
Registered: Jul 2009
Posts: 168

Rep: Reputation: 60
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.
 
Old 08-13-2019, 08:38 AM   #4
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 4,891

Rep: Reputation: Disabled
Quote:
Originally Posted by bifferos View Post
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.

Last edited by ponce; 08-13-2019 at 01:58 PM.
 
Old 08-13-2019, 01:31 PM   #5
TheRealGrogan
Member
 
Registered: Oct 2010
Location: Ontario, Canada
Distribution: Slackware, Manjaro (for gaming)
Posts: 106

Rep: Reputation: 94
Quote:
Originally Posted by bifferos View Post
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.
 
Old 08-16-2019, 12:13 AM   #6
aikempshall
Member
 
Registered: Nov 2003
Location: Bristol, Britain
Distribution: Slackware
Posts: 602

Original Poster
Rep: Reputation: 64
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
 
Old 08-16-2019, 06:49 AM   #7
bifferos
Member
 
Registered: Jul 2009
Posts: 168

Rep: Reputation: 60
Quote:
Originally Posted by aikempshall View Post
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.
 
  


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
[SOLVED] virtualbox is installed along with virtualbox-dkms and virtualbox-ext-pack and linux-headers-generic, but error for no /dev/vboxdrv Astral Axiom Linux - Software 2 03-04-2019 08:09 PM
[SOLVED] Can't compile virtualbox-kernel-addons aikempshall Slackware 24 01-15-2019 08:42 AM
[SOLVED] Can't compile virtualbox-addons with gcc 8.2.0 aikempshall Slackware 3 08-11-2018 03:26 AM
Does Deepin Desktop Environment support addons that can heavily modify the desktop environment? Joe232 Linux - Software 1 02-07-2018 07:43 AM
Can't download addons Firefox 2.0.04 Suse 10.2 vladi4az Linux - Newbie 1 06-15-2007 10:27 PM

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

All times are GMT -5. The time now is 12:56 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration