[Slackbuilds-users] slackware14.2 / virtualbox-kernel 5.0.30 / slackbuild fails

Daniel Prosser dpross1100 at msn.com
Sun Mar 19 20:48:44 UTC 2017


I had a similar problem with the 4.9 kernel series. I got around it by
adding this define in arch/x86/include/asm/realmode.h (in the kernel
source):

#define ALIGN(x, a)             __ALIGN_KERNEL((x), (a))

I'm not sure why it's needed, because as far as I could tell, that was
already defined in something #included by realmode.h. There may be a
better solution, but this worked for me.

Dan

On Sun, Mar 19, 2017 at 09:02:55PM +0100, Nico wrote:
> Dear Slackbuild community,
> 
> 
> I'm trying to install virtual from the official slackbuild ( with vbox
> version from the sb - 5.0.30 )
> 
> The build for vbox-kernel fails, logs show that it's looking for smth in
> the kernel source, but I couldn't pinpoint the root-cause.
> 
> I'm running a 4.10.4 kernel ( based from slackware 4.4.38 config with
> the segment-routing capability enable - here is why I switch to 4.10 )
> 
> I wanted to used vbox in order to test segment-routing, could be a good
> idea to mess up on a VM prior to mess with my workstation.
> 
> 
> If anyone can help :)
> 
> 
> Here is the script output:
> 
> [Snip]
> 
> virtualbox-kernel-5.0.30/vboxnetflt/revision-generated.h
> virtualbox-kernel-5.0.30/vboxnetflt/product-generated.h
> virtualbox-kernel-5.0.30/vboxnetflt/math/
> virtualbox-kernel-5.0.30/vboxnetflt/math/gcc/
> virtualbox-kernel-5.0.30/vboxnetflt/math/gcc/quad.h
> virtualbox-kernel-5.0.30/vboxnetflt/math/gcc/qdivrem.c
> virtualbox-kernel-5.0.30/vboxnetflt/math/gcc/udivdi3.c
> virtualbox-kernel-5.0.30/vboxnetflt/math/gcc/divdi3.c
> virtualbox-kernel-5.0.30/vboxnetflt/math/gcc/umoddi3.c
> virtualbox-kernel-5.0.30/vboxnetflt/math/gcc/moddi3.c
> virtualbox-kernel-5.0.30/vboxnetflt/SUPDrvIDC.h
> *** Building 'vboxdrv' module ***
> make[1]: Entering directory '/tmp/SBo/virtualbox-kernel-5.0.30/vboxdrv'
> make KBUILD_VERBOSE= SUBDIRS=/tmp/SBo/virtualbox-kernel-5.0.30/vboxdrv
> SRCROOT=/tmp/SBo/virtualbox-kernel-5.0.30/vboxdrv CONFIG_MODULE_SIG= -C
> /lib/modules/4.10.4-router/build modules
> make[2]: Entering directory '/usr/src/linux-4.10.4'
>   CC [M] /tmp/SBo/virtualbox-kernel-5.0.30/vboxdrv/linux/SUPDrv-linux.o
> In file included from ./arch/x86/include/asm/acpi.h:33:0,
>                  from ./arch/x86/include/asm/fixmap.h:19,
>                  from ./arch/x86/include/asm/apic.h:11,
>                  from ./arch/x86/include/asm/smp.h:12,
>                  from ./include/linux/smp.h:59,
>                  from ./include/linux/topology.h:33,
>                  from ./include/linux/gfp.h:8,
>                  from ./include/linux/slab.h:14,
>                  from
> /tmp/SBo/virtualbox-kernel-5.0.30/vboxdrv/linux/../SUPDrvInternal.h:104,
>                  from
> /tmp/SBo/virtualbox-kernel-5.0.30/vboxdrv/linux/SUPDrv-linux.c:32:
> ./arch/x86/include/asm/realmode.h: In function ???real_mode_size_needed???:
> ./arch/x86/include/asm/realmode.h:66:9: error: implicit declaration of
> function ???ALIGN??? [-Werror=implicit-function-declaration]
>   return ALIGN(real_mode_blob_end - real_mode_blob, PAGE_SIZE);
>          ^
> cc1: some warnings being treated as errors
> make[3]: *** [scripts/Makefile.build:295:
> /tmp/SBo/virtualbox-kernel-5.0.30/vboxdrv/linux/SUPDrv-linux.o] Error 1
> make[2]: *** [Makefile:1490:
> _module_/tmp/SBo/virtualbox-kernel-5.0.30/vboxdrv] Error 2
> make[2]: Leaving directory '/usr/src/linux-4.10.4'
> make[1]: *** [Makefile:298: vboxdrv] Error 2
> make[1]: Leaving directory '/tmp/SBo/virtualbox-kernel-5.0.30/vboxdrv'
> make: *** [Makefile:40: all] Error 2
> root at ws1:/home/nico/Downloads/virtualbox-kernel#
> 
> Best regards,
> 
> Nico
> 
> 
> 
> _______________________________________________
> SlackBuilds-users mailing list
> SlackBuilds-users at slackbuilds.org
> http://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
> Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
> FAQ - https://slackbuilds.org/faq/
> 


More information about the SlackBuilds-users mailing list