LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Can't compile virtualbox-addons with gcc 8.2.0 (https://www.linuxquestions.org/questions/slackware-14/cant-compile-virtualbox-addons-with-gcc-8-2-0-a-4175636096/)

aikempshall 08-10-2018 10:22 AM

Can't compile virtualbox-addons with gcc 8.2.0
 
I have Slackware Current running in VirtualBox. Updated this morning using slackpkg+.

I'm using repositories current, ktown and multilib.

That was all successful as was recreating my initrd.gz and grub.cfg for the new kernel.

I now need to rebuild virtualbox-kernel-addons and virtualbox-addons - versions 5.2.8.

Compiling of virtualbox-addons failed as it was looking for gcc 4.x thru gcc 7.x

Also tried compiling against the latest version 5.2.16 that failed with the same reason.

So elected to go back to 5.2.8, the last working version I had, amended the configure script within VirtualBox-5.2.8.tar.bz2 to accept version 8 of gcc.

Compiled virtualbox-kernel-addons and virtualbox-addons successfully and installed.

Rebooted and everything works!!!!!!

What should I have done? It could be a problem going forward if VirtualBox can only compile against gcc versions 7 or below.

ponce 08-10-2018 11:01 AM

Quote:

Originally Posted by aikempshall (Post 5890195)
I have Slackware Current running in VirtualBox. Updated this morning using slackpkg+.

I'm using repositories current

?

In the unofficial repository for current (of build scripts, not packages!) I have already added, since 20 days, a little hack to fake support for gcc-8.x

http://cgit.ponce.cc/slackbuilds/com...tualbox-addons

maybe you haven't got an up-to-date version...

aikempshall 08-10-2018 11:26 AM

You're quite right. I didn't download the latest SlackBuild. I downloaded the latest tar file from http://cgit.ponce.cc/slackbuilds/tag...ent-20180804.1 then promptly ignored the contents because it was still referred to 5.2.8!

That's a lesson for me - don't take short cuts, always download and run with what's been provided including the SlackBuild.

Thanks.

aikempshall 08-11-2018 03:26 AM

Just gone through the process of installing kernel 4.14.62 released to current late yesterday.

This time did use the contents on virtualbox-addons and virtualbox-kernel-addons in their entirety.

Compiled with no issues.

Tested copying and pasting between virtualbox instances and loading a USB memory stick. No issues.

Will make this as solved even though the problem was only of my making!


All times are GMT -5. The time now is 08:41 PM.