# sles12 sp3 virtualbox tools build problem

**URL:** <https://forums.suse.com/t/sles12-sp3-virtualbox-tools-build-problem/30268>\
**Category:** SLES Configure-Administer\
**Created:** [September 8, 2017, 8:54am UTC](https://forums.suse.com/t/sles12-sp3-virtualbox-tools-build-problem/30268 "2017-09-08T08:54:51Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![leh015](https://avatars.discourse-cdn.com/v4/letter/l/ac91a4/32.png) [@leh015](https://forums.suse.com/u/leh015)\
**Post date:** [September 8, 2017, 8:54am UTC](https://forums.suse.com/t/sles12-sp3-virtualbox-tools-build-problem/30268/1 "2017-09-08T08:54:51Z")

</div>

Hi All,  
SP2 was working fine. opensuse with roughly the same kernel is working fine, although ships with the tools. Am I missing something? Errors look like this:

grep: /lib/modules/4.4.82-6.3-default/build/include/linux/version.h: No such file or directory  
make KBUILD\_VERBOSE=1 CONFIG\_MODULE\_SIG= -C /lib/modules/4.4.82-6.3-default/build SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 -j1 modules  
make -C /usr/src/linux-4.4.82-6.3-obj/x86\_64/default KBUILD\_SRC=/usr/src/linux-4.4.82-6.3 \  
-f /usr/src/linux-4.4.82-6.3/Makefile modules  
test -e include/generated/autoconf.h -a -e include/config/auto.conf || ( \  
echo \>&2; \  
echo \>&2 " ERROR: Kernel configuration is invalid."; \  
echo \>&2 " include/generated/autoconf.h or include/config/auto.conf are missing.";\  
echo \>&2 " Run ‘make oldconfig && make prepare’ on kernel src to fix it."; \  
echo \>&2 ; \  
/bin/false)  
mkdir -p /tmp/vbox.0/.tmp\_versions ; rm -f /tmp/vbox.0/.tmp\_versions/\*  
make -f /usr/src/linux-4.4.82-6.3/scripts/Makefile.build obj=/tmp/vbox.0  
gcc -Wp,-MD,/tmp/vbox.0/…

BUILD\_STR(s)=#s" -D"KBUILD\_BASENAME=KBUILD\_STR(memobj\_r0drv\_linux)" -D"KBUILD\_MODNAME=KBUILD\_STR(vboxguest)" -c -o /tmp/vbox.0/r0drv/linux/.tmp\_memobj-r0drv-linux.o  
/tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.c  
/tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.c: In function ÂrtR0MemObjNativeLockUserÂ:  
/tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.c:1117:33: warning: passing argument 1 of Âget\_user\_pagesÂ makes integer from pointer without a cast [enabled by default]  
papVMAs); /\* vmas \*/  
^  
In file included from /tmp/vbox.0/r0drv/linux/the-linux-kernel.h:98:0,  
from /tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.c:31:  
/usr/src/linux-4.4.82-6.3/include/linux/mm.h:1264:6: note: expected Âlong unsigned intÂ but argument is of type Âstruct task\_struct _Â  
long get\_user\_pages(unsigned long start, unsigned long nr\_pages,  
^  
/tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.c:1117:33: warning: passing argument 2 of Âget\_user\_pagesÂ makes integer from pointer without a cast [enabled by default]  
papVMAs); /_ vmas \*/  
^  
In file included from /tmp/vbox.0/r0drv/linux/the-linux-kernel.h:98:0,  
from /tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.c:31:  
/usr/src/linux-4.4.82-6.3/include/linux/mm.h:1264:6: note: expected Âlong unsigned intÂ but argument is of type Âstruct mm\_struct _Â  
long get\_user\_pages(unsigned long start, unsigned long nr\_pages,  
^  
/tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.c:1117:33: warning: passing argument 4 of Âget\_user\_pagesÂ makes pointer from integer without a cast [enabled by default]  
papVMAs); /_ vmas \*/  
^  
In file included from /tmp/vbox.0/r0drv/linux/the-linux-kernel.h:98:0,  
from /tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.c:31:  
/usr/src/linux-4.4.82-6.3/include/linux/mm.h:1264:6: note: expected Âstruct page \*_Â but argument is of type ÂintÂ  
long get\_user\_pages(unsigned long start, unsigned long nr\_pages,  
^  
/tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.c:1117:33: warning: passing argument 5 of Âget\_user\_pagesÂ makes pointer from integer without a cast [enabled by default]  
papVMAs); /_ vmas \*/  
^  
In file included from /tmp/vbox.0/r0drv/linux/the-linux-kernel.h:98:0,  
from /tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.c:31:  
/usr/src/linux-4.4.82-6.3/include/linux/mm.h:1264:6: note: expected Âstruct vm\_area\_struct \*_Â but argument is of type ÂintÂ  
long get\_user\_pages(unsigned long start, unsigned long nr\_pages,  
^  
/tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.c:1117:33: error: too many arguments to function Âget\_user\_pagesÂ  
papVMAs); /_ vmas \*/  
^  
In file included from /tmp/vbox.0/r0drv/linux/the-linux-kernel.h:98:0,  
from /tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.c:31:  
/usr/src/linux-4.4.82-6.3/include/linux/mm.h:1264:6: note: declared here  
long get\_user\_pages(unsigned long start, unsigned long nr\_pages,  
^  
/usr/src/linux-4.4.82-6.3/scripts/Makefile.build:259: recipe for target ‘/tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.o’ failed  
make[4]: \*\*\* [/tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.o] Error 1  
/usr/src/linux-4.4.82-6.3/Makefile:1431: recipe for target ‘_module_/tmp/vbox.0’ failed  
make[3]: \*\*\* [_module_/tmp/vbox.0] Error 2  
Makefile:150: recipe for target ‘sub-make’ failed  
make[2]: \*\*\* [sub-make] Error 2  
Makefile:24: recipe for target ‘\_\_sub-make’ failed  
make[1]: \*\*\* [\_\_sub-make] Error 2  
/tmp/vbox.0/Makefile.include.footer:85: recipe for target ‘vboxguest’ failed  
make: \*\*\* [vboxguest] Error 2  
Creating user for the Guest Additions.  
Creating udev rule for the Guest Additions kernel module.

---

<div class="post-metadata">

**Author:** ![ab1](https://avatars.discourse-cdn.com/v4/letter/a/d2c977/32.png) [@ab1](https://forums.suse.com/u/ab1)\
**Post date:** [September 8, 2017, 11:03am UTC](https://forums.suse.com/t/sles12-sp3-virtualbox-tools-build-problem/30268/2 "2017-09-08T11:03:44Z")

</div>

A common problem, particularly since I presume you just installed and  
maybe applied patches, is around rebooting after doing anything with the  
kernel. If you change the kernel suddenly the filesystem stuff is all  
using kernel-new but, at least until you reboot, you are using kernel-old.  
Be sure to reboot and that the output from ‘uname -a’ exactly matches the  
kernel modules installed and used by whatever products needing to use or  
compile kernel code or other modules.

–  
Good luck.

If you find this post helpful and are logged into the web interface,  
show your appreciation and click on the star below.

If you want to send me a private message, please let me know in the  
forum as I do not use the web interface often.

---

<div class="post-metadata">

**Author:** ![leh015](https://avatars.discourse-cdn.com/v4/letter/l/ac91a4/32.png) [@leh015](https://forums.suse.com/u/leh015)\
**Post date:** [September 8, 2017, 11:19am UTC](https://forums.suse.com/t/sles12-sp3-virtualbox-tools-build-problem/30268/3 "2017-09-08T11:19:10Z")

</div>

It’s not that old chestnut ab.

---

<div class="post-metadata">

**Author:** ![leh015](https://avatars.discourse-cdn.com/v4/letter/l/ac91a4/32.png) [@leh015](https://forums.suse.com/u/leh015)\
**Post date:** [September 15, 2017, 10:12am UTC](https://forums.suse.com/t/sles12-sp3-virtualbox-tools-build-problem/30268/4 "2017-09-15T10:12:42Z")

</div>

A virtualbox update to 5.1.28 fixed the issues I was having with the build on 5.1.26. At the time of release of SLES12 SP3, VB 5.1.26 was the latest - I updated to it before trying the install the first time. 🙂

---

<div class="post-metadata">

**Author:** ![smflood](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/smflood/32/10576_2.png) [@smflood](https://forums.suse.com/u/smflood)\
**Post date:** [September 15, 2017, 1:23pm UTC](https://forums.suse.com/t/sles12-sp3-virtualbox-tools-build-problem/30268/5 "2017-09-15T13:23:05Z")

</div>

On 15/09/17 08:14, leh015 wrote:  
[color=blue]

> A virtualbox update to 5.1.28 fixed the issues I was having with the  
> build on 5.1.26. At the time of release of SLES12 SP3, VB 5.1.26 was the  
> latest - I updated to it before trying the install the first time. :)[/color]

Thanks for taking the time to report back.

Looking at the changelog for VirtualBox 5.1[1] I’m guessing it’s “Linux  
hosts / guests: fixes for Linux 4.4 of openSUSE Leap 42.3 (bug #16966)”  
that fixed it though your earlier comment “opensuse with roughly the  
same kernel is working fine” makes me wonder whether perhaps you are  
using a version of openSUSE with kernel \<= 4.4.74? The linked bug[2]  
suggests issue is with kernel \>= 4.4.76.

HTH.

## [1] [https://www.virtualbox.org/wiki/Changelog](https://www.virtualbox.org/wiki/Changelog) [2] [https://www.virtualbox.org/ticket/16966](https://www.virtualbox.org/ticket/16966)

Simon  
SUSE Knowledge Partner

* * *

## If you find this post helpful and are logged into the web interface, please show your appreciation and click on the star below. Thanks.

---

<div class="post-metadata">

**Author:** ![leh015](https://avatars.discourse-cdn.com/v4/letter/l/ac91a4/32.png) [@leh015](https://forums.suse.com/u/leh015)\
**Post date:** [September 18, 2017, 3:36am UTC](https://forums.suse.com/t/sles12-sp3-virtualbox-tools-build-problem/30268/6 "2017-09-18T03:36:41Z")

</div>

Linux linux.suse 4.4.85-22-default #1 SMP Fri Sep 1 14:21:21 UTC 2017 (0c39a1f) x86\_64 x86\_64 x86\_64 GNU/Linux

So I guess not. However I think the opensuse VM was running the Suse package of VB tools. I had not built them. Anyway, time to update its tools and patch it, now that I have actually turned it on to look for you.

---

<div class="post-metadata">

**Author:** ![smflood](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/smflood/32/10576_2.png) [@smflood](https://forums.suse.com/u/smflood)\
**Post date:** [September 18, 2017, 4:02pm UTC](https://forums.suse.com/t/sles12-sp3-virtualbox-tools-build-problem/30268/7 "2017-09-18T16:02:09Z")

</div>

On 18/09/17 01:44, leh015 wrote:  
[color=blue]

> Linux linux.suse 4.4.85-22-default #1 SMP Fri Sep 1 14:21:21 UTC 2017  
> (0c39a1f) x86\_64 x86\_64 x86\_64 GNU/Linux
> 
> So I guess not. However I think the opensuse VM was running the Suse  
> package of VB tools. I had not built them. Anyway, time to update its  
> tools and patch it, now that I have actually turned it on to look for  
> you.[/color]

Well I guess not all bug descriptions are 100% accurate!

## Thanks.

Simon  
SUSE Knowledge Partner

* * *

## If you find this post helpful and are logged into the web interface, please show your appreciation and click on the star below. Thanks.
