LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 09-02-2016, 09:04 PM   #1
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Rep: Reputation: 177Reputation: 177
Need help compiling VirtualBox for Slackware 14.2 x64


I've just installed a new Slackware x64 14.2 system. Now I am trying to install VirtualBox per instructions and files located at https://slackbuilds.org/repository/1...em/virtualbox/. I've make'd and installed acpica-unix2-20160108 and virtualbox-kernel-5.0.14 per the "This Requires" comment on that link.

When I try to `./configure` in the VirtualBox-5.0.14 directory, I get an error:
Code:
***** Checking 32-bit support *****
compiling the following source file:
#include <stdint.h>
int main(void)
{
  return 0;
}
using the following command line:
gcc -m32 -O -Wall -o /user/util/src/vbox/VirtualBox-5.0.14/.tmp_out /user/util/src/vbox/VirtualBox-5.0.14/.tmp_src.c
In file included from /usr/include/features.h:392:0,
                 from /usr/include/stdint.h:25,
                 from /usr/lib64/gcc/x86_64-slackware-linux/5.3.0/include/stdint.h:9,
                 from /user/util/src/vbox/VirtualBox-5.0.14/.tmp_src.c:1:
/usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory
compilation terminated.
I don't really care about 32 bit support. How can I get past this error?

btw, I do have gnu/stubs-64.h, not gnu/stubs-32.h

Last edited by mfoley; 09-02-2016 at 09:09 PM.
 
Old 09-02-2016, 09:17 PM   #2
speck
Member
 
Registered: Nov 2001
Location: US
Distribution: Slackware 14.2
Posts: 375

Rep: Reputation: 115Reputation: 115
I just download and install the *.run file from the Oracle VirtualBox website, it will work in pure 64 bit Slackware.
 
1 members found this post helpful.
Old 09-03-2016, 01:46 AM   #3
guanx
Senior Member
 
Registered: Dec 2008
Posts: 1,176

Rep: Reputation: 233Reputation: 233Reputation: 233
./configure --disable-vmmraw
 
Old 09-03-2016, 07:22 AM   #4
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
In my package repos, I have VirtualBox for Slackware 14.1 and 14.2. My 64-bit systems are normally "pure", e. g. no 32-bit compatibility layer. The workaround I have found for VirtualBox is to temporarily install 32-bit compatibility packages for gcc and glibc, then build VirtualBox, then go pack to "pure" 64-bit. What sounds like a bit of a hassle is in fact quite simple once you've done it a couple times. Works perfectly.

Cheers,

Niki
 
Old 09-03-2016, 10:06 AM   #5
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Original Poster
Rep: Reputation: 177Reputation: 177
Thanks for the responses. I did manage to get past the 32bit failure by installing the 32bit compatability packages from http://alien.slackbook.org/dokuwiki/...kware:multilib. However, my ./configure still fails with:
Code:
Checking for makeself:
  ** makeself (variable makeself) not found!
Any idea what this is about?

I must say, the tarball in the Slackware 14.2 repo for this is certainly a bit lacking. No INSTALL file describing what to do step-wise, no mention of the 32bit issue ...

Next I'll try the *.run from the Oracle site as speck suggested, then kikinovak's suggestion. I'll post back results.

speck: Which oracle site, exactly? I've not found *.run files per se. I've found downloads for various distributions (not Slackware) at https://www.virtualbox.org/wiki/Linux_Downloads.

Last edited by mfoley; 09-03-2016 at 10:09 AM.
 
Old 09-03-2016, 10:50 AM   #6
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Void, Debian, Slackware, VMs
Posts: 7,342

Rep: Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746
Quote:
Originally Posted by speck View Post
I just download and install the *.run file from the Oracle VirtualBox website, it will work in pure 64 bit Slackware.
Yep. That's what I do.
 
Old 09-03-2016, 10:50 AM   #7
speck
Member
 
Registered: Nov 2001
Location: US
Distribution: Slackware 14.2
Posts: 375

Rep: Reputation: 115Reputation: 115
Quote:
Originally Posted by mfoley View Post
speck: Which oracle site, exactly? I've not found *.run files per se. I've found downloads for various distributions (not Slackware) at https://www.virtualbox.org/wiki/Linux_Downloads.
Yes, the AMD64 link listed for All distributions (built in EL5...). The Extension Pack is also available on the Oracle website.
 
Old 09-03-2016, 12:29 PM   #8
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Original Poster
Rep: Reputation: 177Reputation: 177
Quote:
Originally Posted by speck View Post
Yes, the AMD64 link listed for All distributions (built in EL5...). The Extension Pack is also available on the Oracle website.
The "All distributions" link permitted me to save a file named 'VirtualBox-5.1.4-110228-Linux_amd64.run'. This is apparently a 206,776 line, 83M sh script (?) with blocks and blocks of binary data at the end. Pardon my igorance, but what is this and how do I use it? Do I just execute it?

While I'm asking, should I first uninstall the virtualbox kernel and acpica that I installed previously?

Last edited by mfoley; 09-03-2016 at 12:34 PM.
 
Old 09-03-2016, 02:33 PM   #9
speck
Member
 
Registered: Nov 2001
Location: US
Distribution: Slackware 14.2
Posts: 375

Rep: Reputation: 115Reputation: 115
Yes, you would run/execute it as root just like you would any other script.

Code:
sh ./VirtualBox-5.1.4-110228-Linux_amd64.run
I've never had the SlackBuilds and VirtualBox*.run versions installed at the same time, but just to be safe I would remove any VirtualBox SlackBuilds packages before installing the VirtualBox*.run version. I know that installing via the VirtualBox*.run file will work without needing to install anything from SlackBuilds.
 
Old 09-03-2016, 03:10 PM   #10
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
Quote:
Originally Posted by mfoley View Post
Next I'll try the *.run from the Oracle site as speck suggested, then kikinovak's suggestion. I'll post back results.
Or you can install my VirtualBox packages for Slackware64 14.2 from here:

http://www.microlinux.fr/microlinux/...ackware64/xap/

Make sure acpica is installed. If you don't have it, use this one:

http://www.microlinux.fr/microlinux/...microlinux.txz

Cheers,

Niki
 
Old 09-04-2016, 09:25 AM   #11
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Original Poster
Rep: Reputation: 177Reputation: 177
Quote:
Originally Posted by speck View Post
Yes, you would run/execute it as root just like you would any other script.

Code:
sh ./VirtualBox-5.1.4-110228-Linux_amd64.run
I've never had the SlackBuilds and VirtualBox*.run versions installed at the same time, but just to be safe I would remove any VirtualBox SlackBuilds packages before installing the VirtualBox*.run version. I know that installing via the VirtualBox*.run file will work without needing to install anything from SlackBuilds.
I did install that *.run and it worked! However, I did not remove all the other stuff I had previously installed. I do appear to have intermittent problems with the VM hanging up -- unable to click on anything in the VM windows. I'll try reinstalling on a clean machine without the SlackBuild stuff.

kikinovak - I'll try your packages next.
 
Old 09-04-2016, 12:02 PM   #12
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Original Poster
Rep: Reputation: 177Reputation: 177
speck: More info: I installed the AMD64.run package on a clean Slackare64 14.2 system. It installed OK, but when I went to create a new Windows 7 VM the only options I have are for 32bit systems. What's up with that? I did not have that problem on the system where I first installed acpica and virtualbox-kernel.
 
Old 09-04-2016, 12:33 PM   #13
speck
Member
 
Registered: Nov 2001
Location: US
Distribution: Slackware 14.2
Posts: 375

Rep: Reputation: 115Reputation: 115
Quote:
Originally Posted by mfoley View Post
speck: More info: I installed the AMD64.run package on a clean Slackare64 14.2 system. It installed OK, but when I went to create a new Windows 7 VM the only options I have are for 32bit systems. What's up with that? I did not have that problem on the system where I first installed acpica and virtualbox-kernel.
I'm not sure. When I create a new VM the drop down list offers 32bit and 64bit options for Windows. This post might have some useful information.
Attached Thumbnails
Click image for larger version

Name:	vb.png
Views:	65
Size:	99.3 KB
ID:	22931  
 
Old 09-04-2016, 01:38 PM   #14
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
FYI, 32-bit compatibility libraries are build dependencies, but not runtime dependencies. Once VirtualBox compiled, you can safely remove them and replace them by "pure" 64-bit gcc and glibc.
 
Old 09-06-2016, 08:16 AM   #15
commandlinegamer
Member
 
Registered: Dec 2007
Posts: 163

Rep: Reputation: 51
Quote:
Originally Posted by mfoley View Post
I've just installed a new Slackware x64 14.2 system. Now I am trying to install VirtualBox per instructions and files located at https://slackbuilds.org/repository/1...em/virtualbox/. I've make'd and installed acpica-unix2-20160108 and virtualbox-kernel-5.0.14 per the "This Requires" comment on that link.

When I try to `./configure` in the VirtualBox-5.0.14 directory, I get an error:
Code:
***** Checking 32-bit support *****
compiling the following source file:
#include <stdint.h>
int main(void)
{
  return 0;
}
using the following command line:
gcc -m32 -O -Wall -o /user/util/src/vbox/VirtualBox-5.0.14/.tmp_out /user/util/src/vbox/VirtualBox-5.0.14/.tmp_src.c
In file included from /usr/include/features.h:392:0,
                 from /usr/include/stdint.h:25,
                 from /usr/lib64/gcc/x86_64-slackware-linux/5.3.0/include/stdint.h:9,
                 from /user/util/src/vbox/VirtualBox-5.0.14/.tmp_src.c:1:
/usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory
compilation terminated.
I don't really care about 32 bit support. How can I get past this error?

btw, I do have gnu/stubs-64.h, not gnu/stubs-32.h

I'm a bit confused. Are you trying to manually do configure, make, make install in the source directory rather than run the SlackBuild script?

FWIW, I downloaded and installed those packages a couple of days ago without issue.
 
  


Reply

Tags
build from source, slackware 14.2, virtualbox



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
Lost X Randomly -- now only boots to terminal (VirtualBox Ubuntu x64 VM) ComtriS Linux - Virtualization and Cloud 1 09-12-2013 10:42 PM
FFMPEG for APACHE 2.4.6 (x64), PHP 5.5 (x64), MYSQL 5.6 (x64) on WINDOWS 8 (x64) Punctual Programming 3 08-07-2013 05:20 PM
Prob compiling SBo kipi-plugins (Slackware 14 x64) spoovy Slackware 2 03-18-2013 02:13 PM
Slackware 13.37 x64 & Windows 7 x64 Dual Boot Issues toolman30044 Slackware 4 08-08-2011 02:39 PM
Mandriva 2010.1 x64 - Unable to install in 64 bit virtualbox explorer Mandriva 2 12-19-2010 11:40 AM

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

All times are GMT -5. The time now is 04:22 AM.

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
Open Source Consulting | Domain Registration